c# Programming Glossary: people
decimal vs double! - Which one should I use and when? [duplicate] http://stackoverflow.com/questions/1165761/decimal-vs-double-which-one-should-i-use-and-when double instead of decimal 7 answers I keep seeing people using doubles in C#. I know I read somewhere that doubles sometimes.. storage or calculations scores or other numbers that people might do by hand. If the exact value of numbers is not important..
Simple 2 way encryption for C# http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp It's not mission critical. I need something to keep honest people honest but something a little stronger than ROT13 or Base64...
Embedding DLLs in a compiled executable http://stackoverflow.com/questions/189549/embedding-dlls-in-a-compiled-executable program handle everything but there have been a couple of people at work who have asked me this and I honestly don't know. c#..
Which .NET Dependency Injection frameworks are worth looking into? [closed] http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into typed config now or at least providing the option but some people love putting all the config in XML personally I can't bare it..
When do you use the “this” keyword? [closed] http://stackoverflow.com/questions/23250/when-do-you-use-the-this-keyword This may be a silly question but I was curious how other people use the this keyword. I tend to use it in constructors but may..
Best Practice: Initialize class fields in constructor or at declaration? http://stackoverflow.com/questions/24551/best-practice-initialize-class-fields-in-constructor-or-at-declaration programming in C# and Java recently and I am curious what people would consider the best practice concerning when you should..
Tips for optimizing C#/.NET programs [closed] http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs times over the years for my list of tips and tricks that people can use to optimize their vbscript their jscript their active..
Randomize a List<T> in C# http://stackoverflow.com/questions/273313/randomize-a-listt-in-c-sharp Edit Since writing this answer a couple years back many people have commented or written to me to point out the big silly flaw..
.NET String to byte Array C# http://stackoverflow.com/questions/472906/net-string-to-byte-array-c-sharp bytes. For those goals I honestly do not understand why people keep telling you that you need the encodings. You certainly..
Protect .NET code from reverse engineering? http://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering make it difficult enough to crack to make it not worth peoples' trouble. Some suggestions I have for you to help protect your.. application. Themida is one of the better ones. This stops people from reflecting your application in .NET Reflector and makes.. on writing your own Win32 packer. Ultimately though if people want your application cracked they will. Look at all the commercial..
Proper use of the IDisposable interface http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface MyCollection any faster than it normally would edit So far people have posted some good examples of using IDisposable to clean..
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 ASP.NET online I will get the following when two or more people connect simultaneously ExecuteReader requires an open and available.. i'm posting almost every day a similar comment since many people think that it would be smart to encapsulate ADO.NET functionality..
How to wait for a BackgroundWorker to cancel? http://stackoverflow.com/questions/123661/how-to-wait-for-a-backgroundworker-to-cancel how can you wait for an BackgroundWorker to finish Update People seem to be confused by this question. They seem to think that..
QueryString malformed after URLDecode http://stackoverflow.com/questions/123994/querystring-malformed-after-urldecode PE0iIHBsdXMgb3IgbWludXMgNSBwZXJjZW50Lg People have suggested URLEncoding the querystring System.Web.HttpUtility.UrlEncode..
How to bind to a PasswordBox in MVVM http://stackoverflow.com/questions/1483892/how-to-bind-to-a-passwordbox-in-mvvm improve this question Sorry but you're doing it wrong. People should have the following security guideline tattooed on the..
What is F#? What can it do that C# can't? [closed] http://stackoverflow.com/questions/2170749/what-is-f-what-can-it-do-that-c-sharp-cant F# be more popular than C# F# is an excellent language. People might like it better than C#. Yes but I am looking for the reasons... oriented language that supports functional programming. People in the future might prefer functional programming to object..
How to deal with XML in C# http://stackoverflow.com/questions/220867/how-to-deal-with-xml-in-c-sharp XmlDocument document new XmlDocument document.LoadXml People Person Name 'Nick' Person Name 'Joe' People Loading XML From.. People Person Name 'Nick' Person Name 'Joe' People Loading XML From a File XmlDocument document new XmlDocument.. edit XmlDocument document new XmlDocument document.LoadXml People Person Name 'Nick' Person Name 'Joe' People Select a single..
Why use simple properties instead of fields in C#? [duplicate] http://stackoverflow.com/questions/2374416/why-use-simple-properties-instead-of-fields-in-c between Automatic Properties and public field in C# 3.0 People seem to dogmatically insist on the use of public properties..
Is it the best practice to extract an interface for every class? http://stackoverflow.com/questions/3036749/is-it-the-best-practice-to-extract-an-interface-for-every-class answer for context. Interfaces define a public contract. People implementing interfaces have to implement this contract. Consumers..
What are reasons why one would want to use nested classes? [duplicate] http://stackoverflow.com/questions/3300051/what-are-reasons-why-one-would-want-to-use-nested-classes rules of the language in those specific classes. People also use nested classes to build things like iterators or comparators..
C#: Throwing Custom Exception Best Practices http://stackoverflow.com/questions/4761216/c-throwing-custom-exception-best-practices you can anticipate in a FooException for a few reasons People know it came from your classes or at least their usage of them...
How do I get the path of the assembly the code is in? http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in from TestDriven.NET the MbUnit GUI or something else. Edit People seem to be misunderstanding what I'm asking. My test library..
If strings are immutable in .NET, then why does Substring take O(n) time? http://stackoverflow.com/questions/6742923/if-strings-are-immutable-in-net-then-why-does-substring-take-on-time complex persistent data structure doesn't pay for itself. People typically use substring to extract a short string say ten or..
Why no Reference Counting + Garbage Collection in C#? http://stackoverflow.com/questions/867114/why-no-reference-counting-garbage-collection-in-c of deterministic destructors we have the dispose pattern. People start to wonder whether spreading the IDisposable cancer through..
|