Apr
15
awarded Notable Question
Mar
14
comment Finding exact eqality of two strings using regular expressions
I think you should update the HashSet example. I can't imagine you would want to use the same IsUnit method as the array example, which won't take advantage of the HashSet behavior.
Feb
15
accepted C# static classes and the is operator
Feb
15
awarded Nice Question
Feb
15
comment C# static classes and the is operator
@Robert: Sure it does, it is of type System.Object. I would expect the compiler to know that nothing can ever be of that type because that type is a static class and hence there can be no instances of it, unless I'm forgetting something.
Feb
14
asked C# static classes and the is operator
Jan
14
comment Detecting an undefined object property in JavaScript
@Mark Amery: Ask the JQuery guys. They make effort to ensure that they get a clean variable that is undefined rather than depend on the "global" undefined variable. I assume their reasoning is that they are developing a library that may be consumed by developers with a varied levels of experience, some of whom may not realize what 'undefined' even means. It would be most unfortunate if JQuery exhibited a bug because of their external code. Look at the first and last lines of unminified JQuery to see what I mean.
Dec
19
comment Why do we need IEnumerator and IEnumerable?
@EricLippert "IEnumerator is like a book. IEnumerable is like a reader." Is that what you intended to say? Sounds backwards to me.
Dec
14
comment Version object is comparing two versions incorrectly
Added an example.
Dec
14
revised Version object is comparing two versions incorrectly
added 196 characters in body
Dec
14
answered Version object is comparing two versions incorrectly
Dec
13
comment VS2010 MPF: Populating 'Add->New Item...' list for a custom project
This was so tremendously helpful for me. The missing ingredient was adding the elements to the manifest. I could find no reference about needing to do that. If I could give you more than one up vote I would! Wish I hadn't wasted so many hours fumbling around before I found this...
Nov
27
answered StringBuilder used with PadLeft/Right OutOfMemoryException
Nov
15
accepted Will the expression provided to Debug.Assert be evaluated in a release build?
Nov
14
comment Will the expression provided to Debug.Assert be evaluated in a release build?
@SteveWellens Thanks for the helpful comments.
Nov
14
comment c# Object reference not set to an instance of an object
@jordandap No worries. I'd still recommend that article though, if you haven't read it already. Good luck with your homework! :)
Nov
14
asked Will the expression provided to Debug.Assert be evaluated in a release build?
Nov
14
comment c# Object reference not set to an instance of an object
@jordandap "once this code finishes" with an exceptional state? I only looked at your code long enough to see that you were using fixed length arrays, then decided that it was questionable design.
Nov
14
comment c# Object reference not set to an instance of an object
I would refer you to this article: blogs.msdn.com/b/ericlippert/archive/2008/09/22/… One of Eric's best in my opinion.
Nov
7
answered How to prevent hide or override on a public property
1 2 3 4 5