c# Programming Glossary: great
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 of such a feature is open to discussion. Those are all great points made by many people here and I can see why people are..
Problem with converting int to string in Linq to entities http://stackoverflow.com/questions/1066760/problem-with-converting-int-to-string-in-linq-to-entities there is no problem use the first snippet it works just great VB is flexible im unable to get used to C#'s strictness c#..
Volatile vs. Interlocked vs. lock http://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock the multi cpu reordering problems as above which is great. The problem is locking is slow and if you re use the locker..
Transitioning from Windows Forms to WPF http://stackoverflow.com/questions/15681352/transitioning-from-windows-forms-to-wpf
Throwing Exceptions best practices http://stackoverflow.com/questions/22623/throwing-exceptions-best-practices pass an exception which is recommended . Karl Seguin has a great write up on exception handling in his foundations of programming..
Creating application shortcut in a directory http://stackoverflow.com/questions/234231/creating-application-shortcut-in-a-directory It's not as simple as I'd have liked but there is a great class call ShellLink.cs at vbAccelerator This code uses interop..
When to Use Static Classes in C# http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp utility classes filled up with static methods. They made a great consolidation of helper methods that would otherwise lie around..
How do I build a JSON object to send to an AJAX WebService? http://stackoverflow.com/questions/2737525/how-do-i-build-a-json-object-to-send-to-an-ajax-webservice int Code public string Description The web service works great with using SOAP XML but I can't seem to get a valid response..
Is DateTime.Now the best way to measure a function's performance? http://stackoverflow.com/questions/28637/is-datetime-now-the-best-way-to-measure-a-functions-performance Chapman's blog post about DateTime.Now precision for a great summary. Interesting trivia The stopwatch falls back on DateTime.UtcNow..
What static analysis tools are available for C#? [closed] http://stackoverflow.com/questions/38635/what-static-analysis-tools-are-available-for-c of security flaws Quality Metric Tools NDepend great visual tool. Useful for coupling and dependency studies. Nitriq..
Performance differences between debug and release builds http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds The C# compiler itself doesn't alter the emitted IL a great deal in the Release build. Notable is that it no longer emits.. These are very important optimizations that can make a great deal of difference when for example you profile the Debug build..
POCO vs DTO http://stackoverflow.com/questions/725348/poco-vs-dto Are POCO and DTO the same thing ps look at this great article about POCO as a lifestyle c# .net poco dto share..
jQuery UI Dialog with ASP.NET button postback http://stackoverflow.com/questions/757232/jquery-ui-dialog-with-asp-net-button-postback ASP.NET button postback I have a jQuery UI Dialog working great on my ASP.NET page jQuery function jQuery #dialog .dialog draggable..
Replacing .NET WebBrowser control with a better browser, like Chrome? http://stackoverflow.com/questions/790542/replacing-net-webbrowser-control-with-a-better-browser-like-chrome Gecko Firefox engine with C# The webkit one isn't great as the other answer states one version no longer works the google..
When should I use double instead of decimal? http://stackoverflow.com/questions/803225/when-should-i-use-double-instead-of-decimal in normal applications Edited to add Thanks for all the great responses I learned from them. One further question A few people.. . In general the double type is going to offer at least as great precision someone correct me if I'm wrong and definitely greater.. precision someone correct me if I'm wrong and definitely greater speed for arbitrary real numbers. The simple conclusion is..
Is there a way to check if a file is in use? http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use
ExecuteReader requires an open and available Connection. The connection's current state is Connecting http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren is a multithreading environment by nature. So theres a great chance for these locks which causes performance issues at best...
How can I make a .Net Winforms application that only runs in the System Tray? http://stackoverflow.com/questions/995195/how-can-i-make-a-net-winforms-application-that-only-runs-in-the-system-tray on Simple Talk.com that addresses these points and more in great detail providing a tray application framework that you can put..
Shredding files in .NET http://stackoverflow.com/questions/1046635/shredding-files-in-net Shyaam Sundhar R. S. Overwriting Hard Drive Data The Great Wiping Controversy . They concluded that after a single overwrite..
Using clause fails to call Dispose? http://stackoverflow.com/questions/11896282/using-clause-fails-to-call-dispose using var mbo e.NewEvent eventName mbo.ClassPath.ClassName Great only now the memory leak is back. What happened Well I don't..
C# - Get values of static properties from static class http://stackoverflow.com/questions/1487867/c-sharp-get-values-of-static-properties-from-static-class of other flags then it always returns 0 properties. Great. Does it matter that my static class is actually declared within..
Web API OData Inlinecount not working http://stackoverflow.com/questions/15422831/web-api-odata-inlinecount-not-working c# asp.net web api odata share improve this question Great question. inlinecount out of the box only works when you're..
Overhead of a .NET array? http://stackoverflow.com/questions/1589669/overhead-of-a-net-array type arrays are slightly bigger than value type arrays. Great question really interesting to delve into it share improve..
Calculate the number of business days between two dates? http://stackoverflow.com/questions/1617049/calculate-the-number-of-business-days-between-two-dates return businessDays Edit by Slauma August 2011 Great answer There is little bug though. I take the freedom to edit..
Resources for 2d game physics [closed] http://stackoverflow.com/questions/165404/resources-for-2d-game-physics Integration Wikipedia Article Advanced Character Physics Great article Includes movement collisions joints and other constraints...
Why is String.Concat not optimized to StringBuilder.Append? http://stackoverflow.com/questions/2177447/why-is-string-concat-not-optimized-to-stringbuilder-append expressions are optimized by the compiler into one string. Great. Now with string concatenation of strings only known at runtime..
Managing EntityConnection lifetime http://stackoverflow.com/questions/2575485/managing-entityconnection-lifetime be considered a unit of work and therefore not reused. Great. But while doing some research for speeding up my database access..
C#, can we share some contents of App.config between projects? http://stackoverflow.com/questions/2746797/c-can-we-share-some-contents-of-app-config-between-projects your local project and they'll always be kept up to date. Great productivity booster if you need to do some file level sharing..
Common programming mistakes in .Net when handling exceptions? [closed] http://stackoverflow.com/questions/2883936/common-programming-mistakes-in-net-when-handling-exceptions have permission to determine the name of file C foo.txt . Great. Thanks for letting me know. What is stopping said assembly..
“using” keyword in java http://stackoverflow.com/questions/2943542/using-keyword-in-java for an object using AwesomeClass hooray new AwesomeClass Great code c# java using share improve this question There is..
What are the differences between various threading synchronization options in C#? http://stackoverflow.com/questions/301160/what-are-the-differences-between-various-threading-synchronization-options-in-c locking mutex share improve this question Great question. I maybe wrong.. Let me try.. Revision#2 of my orig..
Does the C# “finally” block ALWAYS execute? [duplicate] http://stackoverflow.com/questions/3216046/does-the-c-sharp-finally-block-always-execute message string.Empty try switch ext case xls message Great choice break case csv message Better choice break case exe message..
Enterprise Library Unity vs Other IoC Containers http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containers Nice library but XML configuration is a pain in the butt. Great library for Microsoft or the highway shops. Code initialization..
How to hide wpf datagrid columns depending on a property http://stackoverflow.com/questions/6857780/how-to-hide-wpf-datagrid-columns-depending-on-a-property
IoC, Dll References, and Assembly Scanning http://stackoverflow.com/questions/809051/ioc-dll-references-and-assembly-scanning code I need a person. StructureMap can scan assemblies. Great I'll ask StructureMap for one Now in my main code I am of course..
How to create and use resources in .NET http://stackoverflow.com/questions/90697/how-to-create-and-use-resources-in-net clicking there is just as effective How to use a resource. Great so we have our new resource and we're itching to have those..
Is there any definitive documentation on writing software installers? http://stackoverflow.com/questions/923384/is-there-any-definitive-documentation-on-writing-software-installers results. If this all seems too much then check out NSIS . Great for simple I just need to copy files type installations not..
|