¡@

Home 

c# Programming Glossary: situations

Why is there not a ForEach extension method on the IEnumerable interface?

http://stackoverflow.com/questions/101265/why-is-there-not-a-foreach-extension-method-on-the-ienumerable-interface

a ForEach extension method would indeed be useful in some situations. Here are the major differences between the statement and the..

.NET HashTable Vs Dictionary - Can the Dictionary be as fast?

http://stackoverflow.com/questions/1089132/net-hashtable-vs-dictionary-can-the-dictionary-be-as-fast

it this leads to the HashTable being far faster for some situations. My question is really what might those situations be Am I just.. some situations. My question is really what might those situations be Am I just wrong in my assumptions above What situations might.. situations be Am I just wrong in my assumptions above What situations might you use to choose one above the other yes the last one..

Difference between ref and out parameters in .NET [duplicate]

http://stackoverflow.com/questions/135234/difference-between-ref-and-out-parameters-in-net

between ref and out parameters in .NET What are the situations where one can be more useful than the other What would be a..

String output: format or concat in C#?

http://stackoverflow.com/questions/16432/string-output-format-or-concat-in-c

you have 1000 milliseconds and 100 milliseconds. In both situations you will get 0 ms after dividing it by 1000000. Stopwatch s..

TransactionScope automatically escalating to MSDTC on some machines?

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

SqlConnection object around...which seems problematic in situations where the SqlConnection can't easily be passed around...it just..

Method can be made static, but should it?

http://stackoverflow.com/questions/169378/method-can-be-made-static-but-should-it

create over instance methods but only in somewhat extreme situations. Rule CA1822 in FxCop or Code Analysis states After marking..

FileSystemWatcher Changed event is raised twice

http://stackoverflow.com/questions/1764809/filesystemwatcher-changed-event-is-raised-twice

the documentation of the class You may notice in certain situations that a single creation event generates multiple Created events..

Should C# have multiple inheritance? [closed]

http://stackoverflow.com/questions/191691/should-c-sharp-have-multiple-inheritance

it is not suited to all software designs there are situations where it is difficult to deny it's utility over interfaces composition..

How to RedirectToAction in ASP.NET MVC without losing request data

http://stackoverflow.com/questions/1936/how-to-redirecttoaction-in-asp-net-mvc-without-losing-request-data

without losing request data Using ASP.NET MVC there are situations such as form submission that may require a RedirectToAction..

Does using “new” on a strict allocate it on the heap or stack?

http://stackoverflow.com/questions/203695/does-using-new-on-a-strict-allocate-it-on-the-heap-or-stack

would still conform with the spec. There are two different situations with the new operator on value types you can either call a parameterless..

LINQ - Fluent and Query Expression - Is there any benefit(s) of one over other? [closed]

http://stackoverflow.com/questions/214500/linq-fluent-and-query-expression-is-there-any-benefits-of-one-over-other

leverage multiple range variables . This happens in three situations When using the let keyword When you have multiple generators..

Tips for optimizing C#/.NET programs [closed]

http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs

that are narrowly applicable to trivial or unrealistic situations. I have never once solved a real world performance problem through..

Why is lock(this) {…} bad?

http://stackoverflow.com/questions/251391/why-is-lockthis-bad

special care should be taken to consider possible deadlock situations and having an unknown number of lock entry points hinders this...

How costly is .NET reflection?

http://stackoverflow.com/questions/25458/how-costly-is-net-reflection

to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it I was..

DateTime vs DateTimeOffset

http://stackoverflow.com/questions/4331189/datetime-vs-datetimeoffset

but you can express offsets down to the tick So in these situations make sure you understand how to either limit the who's asking..

Casting vs using the 'as' keyword in the CLR

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

no significant difference between them. In fact there are situations in which the as plus null check definitely is slower. The above..

Large Object Heap Fragmentation

http://stackoverflow.com/questions/686950/large-object-heap-fragmentation

small 85k object arrays are ending up on the LOH what situations will .NET put a small object array in there Also does anyone..

Finalize vs Dispose

http://stackoverflow.com/questions/732864/finalize-vs-dispose

use the Finalize method over the Dispose method In what situations would you use the Finalize method over the Dispose method and..

Entity Framework - Using Transactions or SaveChanges(false) and AcceptAllChanges()?

http://stackoverflow.com/questions/815586/entity-framework-using-transactions-or-savechangesfalse-and-acceptallchanges

pairing is useful. The most useful place for this is in situations where you want to do a distributed transaction across two different..