c# Programming Glossary: they're
Can attributes be added dynamically in C#? http://stackoverflow.com/questions/129285/can-attributes-be-added-dynamically-in-c of an attribute for a type and change the properties if they're writable but that won't affect the attribute as it is applied..
What are the pros and cons to keeping SQL in Stored Procs versus Code http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code you can use a library which does it for you. I believe they're called Object Relational Mappers and are pretty common these..
How slow are .NET exceptions? http://stackoverflow.com/questions/161942/how-slow-are-net-exceptions to make it clear I don't support using exceptions where they're not logical. For instance int.TryParse is entirely appropriate..
Embedding DLLs in a compiled executable http://stackoverflow.com/questions/189549/embedding-dlls-in-a-compiled-executable c# dll merge linker share improve this question If they're actually managed assemblies you can use ILMerge . For native..
Which .NET Dependency Injection frameworks are worth looking into? [closed] http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into me to setup and frustration often won the day. I believe they're all moving towards a more strongly typed config now or at least..
Access to Modified Closure http://stackoverflow.com/questions/235455/access-to-modified-closure would throw exceptions when trying to access files i they're capturing the variable i rather than its value at the time of..
What are the correct version numbers for C#? http://stackoverflow.com/questions/247621/what-are-the-correct-version-numbers-for-c
What do 'statically linked' and 'dynamically linked' mean? http://stackoverflow.com/questions/311882/what-do-statically-linked-and-dynamically-linked-mean that these dynamically linked files are bought in and they're only bought into the in memory copy of the executable not the.. . Since the user typically cannot re link the executable they're stuck with the behaviour of the library. In the dynamic case..
Casting vs using the 'as' keyword in the CLR http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr T is a reference type or not so you can't use as but they're relatively obscure. I've almost certainly used is for the value..
Proper use of the IDisposable interface http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface needs to get rid of 530 MB of internal images now since they're no longer needed. When we don't the machine grinds to a swapping..
Calling null on a class vs Dispose() http://stackoverflow.com/questions/574019/calling-null-on-a-class-vs-dispose a finalizer written as ~Foo in C# somewhat confusingly they're nothing like C destructors . It runs the finalizers on these..
How to create LINQ Expression Tree with anonymous type in it http://stackoverflow.com/questions/606104/how-to-create-linq-expression-tree-with-anonymous-type-in-it if fields are simply reordered that doesn't mean that they're actually different types so this needs to be smarter string..
How do I convert Word files to PDF programmatically? http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically that allow you to convert .doc files to .pdf files but they're all of the application printer driver variety with no SDK attached... SDK allowing you to convert .doc files to .pdf files but they're all of the proprietary type 2 000 a license or thereabouts...
What's the best way to learn C# quickly? [closed] http://stackoverflow.com/questions/72893/whats-the-best-way-to-learn-c-sharp-quickly out there now. The best way to learn is doing . Even if they're learning as they knock out production code they should maintain.. focus.Obviously this would be tailored to suit whatever they're likely to work on first. e.g. Build me a hello world website...
How can I ensure that a division of integers is always rounded up? http://stackoverflow.com/questions/921180/how-can-i-ensure-that-a-division-of-integers-is-always-rounded-up Either they are of the same sign or opposite signs. If they're of opposite sign then we rounded UP towards zero so we're done... sign then we rounded UP towards zero so we're done. If they're of the same sign then we rounded DOWN towards zero so we need..
Difference Between Equals and == http://stackoverflow.com/questions/971954/difference-between-equals-and which matches the compile time types of a and b e.g. if they're both declared as strings then that overload will be called...
Are static methods thread safe http://stackoverflow.com/questions/1090650/are-static-methods-thread-safe question Static methods aren't inherently thread safe. They're treated no differently by the CLR than instance methods. The..
“const correctness” in C# http://stackoverflow.com/questions/114149/const-correctness-in-c-sharp the idea that C# is any form or even an evolution of C . They're two different languages that share almost the same syntax. I..
What strategies and tools are useful for finding memory leaks in .NET? http://stackoverflow.com/questions/134086/what-strategies-and-tools-are-useful-for-finding-memory-leaks-in-net writing C#. I find I still get lots of memory problems. They're difficult to diagnose and fix due to the non determinancy and..
Difference between ref and out parameters in .NET [duplicate] http://stackoverflow.com/questions/135234/difference-between-ref-and-out-parameters-in-net and another can't c# .net share improve this question They're pretty much the same the only difference is that a variable..
C#: new versus override http://stackoverflow.com/questions/1399127/c-new-versus-override b.DoIt d.DoIt Will first call Base.DoIt then Derived.DoIt. They're effectively two entirely separate methods which happen to have..
Best Practice for Exception Handling in a Windows Forms Application? http://stackoverflow.com/questions/183589/best-practice-for-exception-handling-in-a-windows-forms-application of what language features C# has to deal with exceptions. They're all quite theoretical however so what I haven't got yet is a..
Which .NET Dependency Injection frameworks are worth looking into? [closed] http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into beehiind was all that pesky XML config you had to write They're pretty much all moving this way now but I started using StructureMap..
When to Use Static Classes in C# http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp lie around causing redundancy and maintenance hell. They're very easy to use no instantiation no disposal just fire'n'forget...
How to do joins in LINQ on multiple fields in single join http://stackoverflow.com/questions/373541/how-to-do-joins-in-linq-on-multiple-fields-in-single-join a date range join you need to use a where clause instead. They're semantically equivalent really so it's just a matter of the..
How can I get the DateTime for the start of the week? http://stackoverflow.com/questions/38039/how-can-i-get-the-datetime-for-the-start-of-the-week share improve this question Using an extension method. They're the answer to everything you know public static class DateTimeExtensions..
Is everything in .NET an object? http://stackoverflow.com/questions/436211/is-everything-in-net-an-object int inherits from ValueType which inherits from Object. They're not objects in the traditional sense because a an int isn't..
Can a C# thread really cache a value and ignore changes to that value on other threads? http://stackoverflow.com/questions/458173/can-a-c-sharp-thread-really-cache-a-value-and-ignore-changes-to-that-value-on-ot questions 434890 is a string property itself threadsafe They're really the same article since one references the other. One..
Casting vs using the 'as' keyword in the CLR http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr the balance tips slightly in favour of as plus null check. They're all insanely fast. This simply will not be the bottleneck in..
Convert DateTime to Julian Date in C# (ToOADate Safe?) http://stackoverflow.com/questions/5248827/convert-datetime-to-julian-date-in-c-sharp-tooadate-safe subtract 30 and you end up with 1 0 1 0 1 1 0 1 0 1 1 2. They're creating that pattern of 1s and 0s by doing that division in..
lock keyword in C# http://stackoverflow.com/questions/59590/lock-keyword-in-c-sharp thread. Is there performance issues with using lock Yes. They're not very big in a single threaded application but why make calls..
What are the advantages of delegates? [duplicate] http://stackoverflow.com/questions/639320/what-are-the-advantages-of-delegates c# .net delegates share improve this question They're a great way of encapsulating a piece of code. For instance when..
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 to make this temporary it's still a hole in their opinion. They're open to the third option but the remote network admins insist..
Launching a Desktop Application with a Metro-style app http://stackoverflow.com/questions/9527644/launching-a-desktop-application-with-a-metro-style-app some games photoshop etc not anything I've made myself. They're also just for personal use so I can use direct paths to applications..
When not to use Regex in C# (or Java, C++, etc.) http://stackoverflow.com/questions/968919/when-not-to-use-regex-in-c-sharp-or-java-c-etc data with strict formal standards like e mail addresses. They're harder than you want and you'll either have unaccurate or a..
|