¡@

Home 

c# Programming Glossary: stuff

How to make Databinding type safe and support refactoring

http://stackoverflow.com/questions/1329138/how-to-make-databinding-type-safe-and-support-refactoring

dataObject dataMember This makes use of a lot of the new stuff in C# 3.5 and shows just what is possible. Now if only we had..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

use the reader connection.Close Do other stuff here that may or may not involve enlisting in the ambient transaction..

Transactions in .net

http://stackoverflow.com/questions/224689/transactions-in-net

pitfalls to look out for etc. All that commit and rollback stuff. I'm just starting a project where I might need to do some transactions.. data into the DB. Any responses or links for even basic stuff about transactions are welcome. c# .net transactions share..

Accessing Password Protected Network Drives in Windows in C#?

http://stackoverflow.com/questions/2563724/accessing-password-protected-network-drives-in-windows-in-c

FileLocation while fin.EndOfStream Do some cool stuff with file However I get the following error System.IO.IOException.. new WindowsIdentity tokenDuplicate .Impersonate Do stuff with your share here. impersonationContext.Undo return finally..

Getting all types that implement an interface with C# 3.0

http://stackoverflow.com/questions/26733/getting-all-types-that-implement-an-interface-with-c-sharp-3-0

in this.GetType .Assembly.GetTypes if t is IMyInterface do stuff c# optimization reflection lambda c# 3.0 share improve this..

Parsing JSON using Json.net

http://stackoverflow.com/questions/401756/parsing-json-using-json-net

x 5 y 7 The only data I really need from this is the stuff in the objects array. Is it possible for me to parse through..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

as TargetType if convertedRandomObject null Do stuff with convertedRandomObject If randomObject might be an instance.. as TargetType if convertedRandomObject null Do stuff with convertedRandomObject.Value Note currently this is actually..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

for a method we call when we want to get rid of unmanaged stuff. The destruction of our object by the Garbage collector is the..

IPC Mechanisms in C# - Usage and Best Practices

http://stackoverflow.com/questions/56121/ipc-mechanisms-in-c-sharp-usage-and-best-practices

ipc share improve this question Most recent Microsoft's stuff in IPC is Windows Communication Foundation . Actually there..

Deep cloning objects in C#

http://stackoverflow.com/questions/78536/deep-cloning-objects-in-c-sharp

on The Code Project a while ago and incorporated it in our stuff. As mentioned elsewhere it does require your objects to be serializable...

Why would you use Expression<Func<T>> rather than Func<T>?

http://stackoverflow.com/questions/793571/why-would-you-use-expressionfunct-rather-than-funct

it to an actual method with Expression.Compile or do other stuff like the LINQ to SQL example with it. The act of treating lambdas..

Understanding events and event handlers in C#

http://stackoverflow.com/questions/803242/understanding-events-and-event-handlers-in-c-sharp

fires. void HandleSomethingHappened string foo Do some stuff I am creating a delegate pointer to HandleSomethingHappened..

Using C#, how does one figure out what process locked a file?

http://stackoverflow.com/questions/860656/using-c-how-does-one-figure-out-what-process-locked-a-file

threads to protect against some nasty Win32 bugs. Mostly stuff found on the Internet. Updated to prevent a few managed memory..

Why catch and rethrow Exception in C#?

http://stackoverflow.com/questions/881473/why-catch-and-rethrow-exception-in-c

anyone who finds this thread in future... DO NOT try do stuff that might throw an exception catch Exception e throw e this.. to identifying the root cause of the problem DO try do stuff that might throw an exception catch SqlException e log it if..

C# Finalize/Dispose pattern

http://stackoverflow.com/questions/898828/c-sharp-finalize-dispose-pattern

the using statement using myClass objClass new myClass Do stuff here I have developed this simple code below to demonstrate.. like this using NoGateway objNoGateway new NoGateway Do stuff here Would the Dispose method be automatically called when execution.. method i.e. NoGateway objNoGateway new NoGateway Do stuff with object objNoGateway.Dispose finished with it I am using..

Multi-line string in a PropertyGrid

http://stackoverflow.com/questions/130032/multi-line-string-in-a-propertygrid

which can be used as follows public class Stuff Editor typeof MultilineStringEditor typeof UITypeEditor public..

EntitySet System.InvalidOperationException - “the entity type is not part of the model for the current context”

http://stackoverflow.com/questions/13634819/entityset-system-invalidoperationexception-the-entity-type-is-not-part-of-the

public class Meal public int Id get set public string Stuff get set public virtual ICollection Meat Meats get set public..

.NET 4 RTM MetadataType attribute ignored when using Validator

http://stackoverflow.com/questions/2657358/net-4-rtm-metadatatype-attribute-ignored-when-using-validator

box. Any ideas class Program static void Main string args Stuff t new Stuff try Validator.ValidateProperty t.X new ValidationContext.. class Program static void Main string args Stuff t new Stuff try Validator.ValidateProperty t.X new ValidationContext t.. Console.WriteLine Succeeded MetadataType typeof StuffMetadata public class Stuff Required works here public string..

Is Using Tuples in my .NET 4.0 Code a Poor Design Decision?

http://stackoverflow.com/questions/3017352/is-using-tuples-in-my-net-4-0-code-a-poor-design-decision

get set public ResultType GetAClassedValue ..Do Some Stuff ResultType result new ResultType StringValue A String IntValue..

What's the correct way to edit a collection in a property grid

http://stackoverflow.com/questions/4145324/whats-the-correct-way-to-edit-a-collection-in-a-property-grid

an other member something like this public List SomeType Stuff get List SomeType stuff new List SomeType ...populate stuff.. collection from the UI to the property ClassContainingStuffProperty context.Instance .Stuff List SomeType result return.. property ClassContainingStuffProperty context.Instance .Stuff List SomeType result return result Then you have to decorate..

C#: How to access an Excel cell?

http://stackoverflow.com/questions/472959/c-how-to-access-an-excel-cell

sheet in sheets Do Stuff And if you need to insert rows columns Inserts a new row at..

Extracting files from a Zip archive programmatically using C# and System.IO.Packaging

http://stackoverflow.com/questions/507751/extracting-files-from-a-zip-archive-programmatically-using-c-sharp-and-system-io

foreach PackageRelationship relation in packageParts Do Stuff but never gets here since packageParts is empty. The problem..

Liskov Substition and Composition

http://stackoverflow.com/questions/554145/liskov-substition-and-composition

like this public sealed class Foo public void Bar Do Bar Stuff And I want to extend it to add something beyond what an extension.. public void Bar _internalFoo.Bar public void Baz Do Baz Stuff While this works it is a lot of work...however I still run into..

Using the using statment in c# [duplicate]

http://stackoverflow.com/questions/614959/using-the-using-statment-in-c-sharp

you could just use FileStream fs try fs new FileStream do Stuff finally if fs null fs.Dispose Extra reading from MSDN C# through..

Getting length of video

http://stackoverflow.com/questions/6215185/getting-length-of-video

Assume standard file formats such as wmv avi mp4 mpeg. Stuff that has metadata. c# video ffmpeg duration share improve..

How can I tell if the connection has been broken in my sockets based client?

http://stackoverflow.com/questions/681866/how-can-i-tell-if-the-connection-has-been-broken-in-my-sockets-based-client

Performance Counter - System.InvalidOperationException: Category does not exist

http://stackoverflow.com/questions/8171865/performance-counter-system-invalidoperationexception-category-does-not-exist

#region General Declaration Static Stuff for the polling timer private static System.Threading.Timer.. 0 private static int lockTimerCounter 0 Instance Stuff for our performance counter private static System.Diagnostics.PerformanceCounter..