c# Programming Glossary: interesting
Should Usings be inside or outside the namespace http://stackoverflow.com/questions/125319/should-usings-be-inside-or-outside-the-namespace and it affects the maintainability of your code. It's also interesting to note what happens if Foo is in namespace Outer rather than..
Do try/catch blocks hurt performance when exceptions are not thrown? http://stackoverflow.com/questions/1308432/do-try-catch-blocks-hurt-performance-when-exceptions-are-not-thrown are not thrown EDIT I'm adding a bounty. There are interesting responses but I would like to get some more input. c# performance..
How to bind to a PasswordBox in MVVM http://stackoverflow.com/questions/1483892/how-to-bind-to-a-passwordbox-in-mvvm the MVVM pattern so I wish to bypass this. I found some interesting code here has anyone used this or something similar http www.wpftutorial.net..
Graph nodes coordinates evaluation [closed] http://stackoverflow.com/questions/15579069/graph-nodes-coordinates-evaluation sample of a Nodes Editor supporting drag and drop and many interesting visual features. It looks like this Its a little to much code..
When should I use a List vs a LinkedList http://stackoverflow.com/questions/169973/when-should-i-use-a-list-vs-a-linkedlist this question I know this answer is late but I found interesting results temp class to show example class Temp public decimal..
Expression Versus Statement http://stackoverflow.com/questions/19132/expression-versus-statement
Compiler Ambiguous invocation error - anonymous method and method group with Func<> or Action http://stackoverflow.com/questions/2057146/compiler-ambiguous-invocation-error-anonymous-method-and-method-group-with-fun in the following. This line really doesn't say anything interesting. Note that the existence of an implicit conversion from E to..
What is a message pump? http://stackoverflow.com/questions/2222365/what-is-a-message-pump of its time there waiting for Windows to tell it something interesting happened. TranslateMessage is a helper function that translates..
How do I reflect over the members of dynamic object? http://stackoverflow.com/questions/2634858/how-do-i-reflect-over-the-members-of-dynamic-object Impromptu does this but it's harder to point to just the interesting bits and have it make sense. Here's the documentation and it..
C# Captured Variable In Loop http://stackoverflow.com/questions/271440/c-sharp-captured-variable-in-loop Captured Variable In Loop I met a interesting issue about C#. I have code like below List Func int actions..
Why can't I have abstract static methods in C#? http://stackoverflow.com/questions/3284/why-cant-i-have-abstract-static-methods-in-c with providers a fair bit lately and I came across an interesting situation where I wanted to have an abstract class that had..
Reading csv file http://stackoverflow.com/questions/3507498/reading-csv-file I found another way doing that using DataTable. Very interesting approach here is the link link text c# csv share improve..
IEnumerable vs List - What to Use? How do they work? http://stackoverflow.com/questions/3628425/ienumerable-vs-list-what-to-use-how-do-they-work sel which in that case is the IEnumerable it has some interesting members inner outer innerKeySelector and outerKeySelector these..
Enterprise Library Unity vs Other IoC Containers http://stackoverflow.com/questions/411660/enterprise-library-unity-vs-other-ioc-containers All in all this is one of my favorites. Some very interesting ideas around how StructureMap uses Attributes. ObjectFactory.Initialize..
Find Recursive Group Membership (Active Directory) using C# http://stackoverflow.com/questions/6252819/find-recursive-group-membership-active-directory-using-c-sharp share improve this question Thirst thanks for this an interesting question. Next just a correction you say I've looked into the..
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 Non Trusted Domain With Credentials We've run into an interesting situation that needs solving and my searches have turned up..
Is String.Format as efficient as StringBuilder http://stackoverflow.com/questions/6785/is-string-format-as-efficient-as-stringbuilder The 0 in the hat cat If so why EDIT After some interesting answers I realised I probably should have been a little clearer..
The name 'controlname' does not exist in the current context http://stackoverflow.com/questions/706603/the-name-controlname-does-not-exist-in-the-current-context if the codebehind isn't recognizing the controls. Another interesting thing is that the intellisense isn't picking up any of the controls..
Algorithm to find which numbers from a list of size n sum to another number http://stackoverflow.com/questions/83547/algorithm-to-find-which-numbers-from-a-list-of-size-n-sum-to-another-number answers. Thank you for the pointers to wikipedia whilst interesting they don't actually solve the problem as stated as I was looking..
How is Math.Pow() implemented in .Net Framework? http://stackoverflow.com/questions/8870442/how-is-math-pow-implemented-in-net-framework of pow . The only other implementation detail that's interesting is the FCIntrinsic macro in the table. That's a hint that the..
Why are the properties of anonymous types in C# read-only? http://stackoverflow.com/questions/1089406/why-are-the-properties-of-anonymous-types-in-c-sharp-read-only read only c# c# 3.0 share improve this question Interesting article on that here . From there ... ... B y ensuring that..
Conversion of a decimal to double number in C# results in a difference http://stackoverflow.com/questions/1584314/conversion-of-a-decimal-to-double-number-in-c-sharp-results-in-a-difference dbl2 c# double decimal share improve this question Interesting although I generally don't trust normal ways of writing out..
Interesting “params of ref” feature, any workarounds? http://stackoverflow.com/questions/1776020/interesting-params-of-ref-feature-any-workarounds &ldquo params of ref&rdquo feature any workarounds I wonder..
XML Serialization and Inherited Types http://stackoverflow.com/questions/20084/xml-serialization-and-inherited-types
What is the fastest way I can compare two equal-size bitmaps to determine whether they are identical? http://stackoverflow.com/questions/2031217/what-is-the-fastest-way-i-can-compare-two-equal-size-bitmaps-to-determine-whethe CompareByMask GrayWizardX 630ms CompareByMemCmp Erik 105ms Interesting that the MD5 method didn't improve at all. Edit 3 Posted my..
C# char to int http://stackoverflow.com/questions/239103/c-sharp-char-to-int conversion. c# char int share improve this question Interesting answers but the docs say differently Use the GetNumericValue..
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 post about DateTime.Now precision for a great summary. Interesting trivia The stopwatch falls back on DateTime.UtcNow if your hardware..
Why IsNan is a static method on the Double class instead of an instance property? http://stackoverflow.com/questions/370859/why-isnan-is-a-static-method-on-the-double-class-instead-of-an-instance-property syntax c# design oop share improve this question Interesting question don't know the answer but if it really bugs you you..
Disposing WPF User Controls http://stackoverflow.com/questions/502761/disposing-wpf-user-controls wpf user controls dispose share improve this question Interesting blog post here http geekswithblogs.net cskardon archive 2008..
Does C# inline properties? http://stackoverflow.com/questions/646779/does-c-sharp-inline-properties
how to popup a webform in c# windows application? [duplicate] http://stackoverflow.com/questions/6910153/how-to-popup-a-webform-in-c-sharp-windows-application you're probably going to have to rewrite the user control Interesting almost impossible too however how about using the IIS hostable..
C# - What is the best way to modify a list in a 'foreach' loop? http://stackoverflow.com/questions/759966/c-sharp-what-is-the-best-way-to-modify-a-list-in-a-foreach-loop getting the exception. See Paul Jackson's blog entry An Interesting Side Effect of Concurrency Removing Items from a Collection..
Exception Driven Programming in Java [closed] http://stackoverflow.com/questions/760397/exception-driven-programming-in-java about something like ELMAH for Java. Did you know it Interesting features A web page to remotely view the entire log of recoded..
Algorithm to find which numbers from a list of size n sum to another number http://stackoverflow.com/questions/83547/algorithm-to-find-which-numbers-from-a-list-of-size-n-sum-to-another-number algorithm math np complete share improve this question Interesting answers. Thank you for the pointers to wikipedia whilst interesting..
Generic type checking http://stackoverflow.com/questions/8941/generic-type-checking to worry about the structs that are used such as Size .. Interesting problem no Here it is where T struct Taken from MSDN . I'm curious....
|