¡@

Home 

c# Programming Glossary: rather

Should Usings be inside or outside the namespace

http://stackoverflow.com/questions/125319/should-usings-be-inside-or-outside-the-namespace

to note what happens if Foo is in namespace Outer rather than Outer.Inner . In that case adding Outer.Math in File2 breaks..

What is the correct way to create a single instance application?

http://stackoverflow.com/questions/19147/what-is-the-correct-way-to-create-a-single-instance-application

a single instance application Using C# and WPF under .net rather than WindowsForms or console what is the correct way to create.. is I do not use the Microsoft.VisualBasic assembly and I'd rather not add an unnecessary dependency to my project. Second the..

Which .NET Dependency Injection frameworks are worth looking into? [closed]

http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into

be a tough choice going forward between those two but I'd rather have competition than stagnation and there's a decent amount..

Reading/writing an INI file

http://stackoverflow.com/questions/217902/reading-writing-an-ini-file

the .NET framework want you to use XML based config files rather than ini files. So no there is no builtin mechanism for reading..

Access to Modified Closure

http://stackoverflow.com/questions/235455/access-to-modified-closure

trying to access files i they're capturing the variable i rather than its value at the time of the delegates creation. In short..

Why .NET String is immutable? [duplicate]

http://stackoverflow.com/questions/2365272/why-net-string-is-immutable

like value types in particular equality is based on state rather than identity. This means that abc ab c . While this doesn't.. that Christmas.AddMonths 1 produces a new DateTime rather than changing a mutable one. Another example if I as a mutable..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

should have a single purpose within the system. I'd much rather have a five times the classes as long as their purposes are..

Casting vs using the 'as' keyword in the CLR

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

be checking different things if randomObject is a field rather than a local variable. It's possible for the if to pass but.. the cast. That would be a pretty rare situation but I'd rather have a convention which I can use consistently. I also maintain..

Creating a blocking Queue<T> in .NET?

http://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net

like a bool flag if set an empty queue just returns rather than blocking bool closing public void Close lock queue closing..

Proper use of the IDisposable interface

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

a million strings and you wanted to free that memory now rather than waiting for the garbage collector. Would the above code.. answer your original question Why not release memory now rather than for when the GC decides to do it I have a facial recognition..

C# DLL config file

http://stackoverflow.com/questions/594298/c-sharp-dll-config-file

the configuration of the App Domain you are executing in rather than the particular assembly. The App Domain is bound to the.. referenced you'll need to determine your location for it rather than .NET figuring out an appropriate one automatically. You'll..

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials

third option but the remote network admins insist on SFTP rather than FTPS and FtpWebRequest only supports FTPS. SFTP is the..

What does the [Flags] Enum Attribute mean in C#?

http://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c

whenever the enumerable represents a collection of flags rather than a single value. Such collections are usually manipulated..

Difference Between Equals and ==

http://stackoverflow.com/questions/971954/difference-between-equals-and

Note that this depends on the execution time type rather than the compilation time type that overload resolution depends..

C# convert integer to hex and back again

http://stackoverflow.com/questions/1139957/c-sharp-convert-integer-to-hex-and-back-again

have User IDs in my database that are stored as integers. Rather than having users reference their IDs I want to let them use..

C# UserControl Constructor with Parameters

http://stackoverflow.com/questions/1784303/c-sharp-usercontrol-constructor-with-parameters

you're stepping outside the generally approved mechanisms. Rather Windows Forms prefers initialization of values via properties...

Can I specify my explicit type comparator inline?

http://stackoverflow.com/questions/188120/can-i-specify-my-explicit-type-comparator-inline

is really simple something like foo1.key foo2.key. Rather than creating a new IEqualityComparer for the type can I simply..

What is a message pump?

http://stackoverflow.com/questions/2222365/what-is-a-message-pump

of information used to construct a medical report number. Rather than try and figure out how the formatting instructions in RTF..

Fastest method for SQL Server inserts, updates, selects

http://stackoverflow.com/questions/2862428/fastest-method-for-sql-server-inserts-updates-selects

new Foo Property1 record 0 Property2 record 1 ... Rather than having these live in their class you could also group them..

How are DLLs loaded by the CLR?

http://stackoverflow.com/questions/2967164/how-are-dlls-loaded-by-the-clr

automatically load the subordinate modules or assemblies . Rather the subordinate pieces are loaded on demand only if they are..

Dependency injection and named loggers

http://stackoverflow.com/questions/3452318/dependency-injection-and-named-loggers

How to I inject logging platform xxx using ioc tool yyy Rather I am interested in how people have handled wrapping the logging..

Cancellation token in Task constructor: why?

http://stackoverflow.com/questions/3712939/cancellation-token-in-task-constructor-why

to the Task starting to execute the Task won't execute. Rather than transitioning to Running it'll immediately transition to..

Entity Framework 4 - AddObject vs Attach

http://stackoverflow.com/questions/3920111/entity-framework-4-addobject-vs-attach

is used for entities that already exist in the database. Rather than setting the EntityState to Added Attach results in an Unchanged..

Combine paths in Java

http://stackoverflow.com/questions/412380/combine-paths-in-java

into a path. c# java path share improve this question Rather than keeping everything string based if you use java.io.File..

C# “as” cast vs classic cast [duplicate]

http://stackoverflow.com/questions/4926677/c-sharp-as-cast-vs-classic-cast

the CLR I recently learned about a different way to cast. Rather than using SomeClass someObject SomeClass obj one can use this..

What is the difference between null and System.DBNull.Value?

http://stackoverflow.com/questions/4958379/what-is-the-difference-between-null-and-system-dbnull-value

this question Well null is not an instance of any type. Rather it is an invalid reference. However System.DbNull.Value is a..

Using SSL and SslStream for peer to peer authentication?

http://stackoverflow.com/questions/695802/using-ssl-and-sslstream-for-peer-to-peer-authentication

communication. I want both authentication and encryption. Rather than re invent the wheel I would really like to use SSL and..

Single Form Hide on Startup

http://stackoverflow.com/questions/70272/single-form-hide-on-startup

will be free to show and hide forms as much as you like. Rather than hiding the form in the Load method set the Visible property..

No type inference with generic extension method

http://stackoverflow.com/questions/7171067/no-type-inference-with-generic-extension-method

does not make any deductions from the constraints. Rather deductions are made from the arguments and the formal parameters..

When should the volatile keyword be used in C#?

http://stackoverflow.com/questions/72275/when-should-the-volatile-keyword-be-used-in-c

what it is doing and updates caches to from main memory. Rather they provide weaker guarantees about how memory accesses before..

Listing all permutations of a string/integer

http://stackoverflow.com/questions/756055/listing-all-permutations-of-a-string-integer

0111551 stories 2002 10 14 permutations.html Rather lengthy but I decided to copy it anyway so the post is not dependent..

Why some types do not have literal modifiers

http://stackoverflow.com/questions/8671427/why-some-types-do-not-have-literal-modifiers

The absence of a feature does not need justification. Rather all features must be justified by showing that their benefits..

MVC Razor view nested foreach's model

http://stackoverflow.com/questions/8894442/mvc-razor-view-nested-foreachs-model

you could just say @Html.TextBoxFor model model.FooBar Rather than @Html.TextBoxFor model model.Foo.Bar.Baz.FooBar That means..

ServiceStack.Net Redis: Storing Related Objects vs. Related Object Ids

http://stackoverflow.com/questions/8914349/servicestack-net-redis-storing-related-objects-vs-related-object-ids

c# .net redis servicestack share improve this question Rather than re hash a lot of other documentation that's out there in..