c# Programming Glossary: inspired
Generic type parameter covariance and multiple interface implementations http://stackoverflow.com/questions/14562047/generic-type-parameter-covariance-and-multiple-interface-implementations returned the first declared interface. Why is this allowed inspired by A class implementing two different IObservables . I tried..
Convert comma separated string of ints to int array http://stackoverflow.com/questions/1763613/convert-comma-separated-string-of-ints-to-int-array 4 5 to an array or list of ints. Here is my implementation inspired by this post by Eric Lippert public static IEnumerable int StringToIntList..
avoiding null reference exceptions http://stackoverflow.com/questions/1943465/avoiding-null-reference-exceptions refer to this issue as void safety and like so many things inspired or developed by Dr. Bertrand Meyer they have an eloquent and..
What's the reason high-level languages like C#/Java mask the bit shift count operand? http://stackoverflow.com/questions/2311476/whats-the-reason-high-level-languages-like-c-java-mask-the-bit-shift-count-ope 1 32 1 I understand that this specification is probably inspired by the fact that the underlying hardware only takes 5 bits for..
How should I model my code to maximize code re-use in this specific situation? http://stackoverflow.com/questions/3389588/how-should-i-model-my-code-to-maximize-code-re-use-in-this-specific-situation be best to use. This is the solution I ended up going with inspired by Victor's answer and Reed's answer and comments to use an..
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 the same name in the double class they favored the java inspired syntax. In fact you could have both as one define a get_IsNaN..
How to get full host name + port number in Application_Start of Global.aspx? http://stackoverflow.com/questions/4243270/how-to-get-full-host-name-port-number-in-application-start-of-global-aspx Request context is available. Edit Here is a code sample inspired by the Mike Volodarsky's blog that Michael Shimmins linked to..
C# Active Directory: Get domain name of user? http://stackoverflow.com/questions/4249139/c-sharp-active-directory-get-domain-name-of-user foundLogin .ToUpperInvariant The source from which I inspired myself is Find the NetBios Name of a domain in AD share improve..
Why assigning null in ternary operator fails: no implicit conversion between null and int? http://stackoverflow.com/questions/4290203/why-assigning-null-in-ternary-operator-fails-no-implicit-conversion-between-nul result in 3 which results in the compile time error that inspired your question. Note the implicit conclusion from the above that..
How the right associative of null coalescing operator behaves? http://stackoverflow.com/questions/6238074/how-the-right-associative-of-null-coalescing-operator-behaves an erratum for the relevant section of C# in Depth which inspired this question . EDIT Okay I've now got an example where it does..
How do you know what to test when writing unit tests? http://stackoverflow.com/questions/62625/how-do-you-know-what-to-test-when-writing-unit-tests recommend taking a look at my blog post which was partly inspired by my question I have got some good feedback on that. Namely..
What is the lifetime of a delegate created by a lambda in C#? http://stackoverflow.com/questions/6280656/what-is-the-lifetime-of-a-delegate-created-by-a-lambda-in-c figured they are probably only created once . This inspired me to create a solution which allows to restrict the scope of..
Why does casting int to invalid enum value NOT throw exception? http://stackoverflow.com/questions/6413804/why-does-casting-int-to-invalid-enum-value-not-throw-exception to realize that the .NET version of Enum follows a more C inspired pattern than a Java inspired one. This makes it possible to.. of Enum follows a more C inspired pattern than a Java inspired one. This makes it possible to have Bit Flag enums which can..
How to read data of an Excel file using C#? http://stackoverflow.com/questions/657131/how-to-read-data-of-an-excel-file-using-c give you the value found Here is another example inspired by this site range sheet.Cells.Find Value to find Type.Missing..
C# - Assignment in an if statement http://stackoverflow.com/questions/7113347/c-sharp-assignment-in-an-if-statement EVIL for var t value as T t null t null action t EDIT inspired by a colleague's suggestion you can use an extension method..
How do you pass an authenticaticated session between app domains http://stackoverflow.com/questions/72125/how-do-you-pass-an-authenticaticated-session-between-app-domains FormsIdentity User.Identity .Ticket I was inspired by the cross app form authentication section in Chapter 5 of..
How to use WebBrowser control DocumentCompleted event in C#? http://stackoverflow.com/questions/840813/how-to-use-webbrowser-control-documentcompleted-event-in-c But suddenly while writing this question 'What if' monster inspired me and i fix'ed the problem that i was trying to solve. As i..
Programmatically apply / deactivate breakpoints in visual studio http://stackoverflow.com/questions/841782/programmatically-apply-deactivate-breakpoints-in-visual-studio studio breakpoints share improve this question You inspired me to poke around with this thanks for keeping me awake all..
|