Browse by Tags
Sorry, but there are no more tags available to filter with.
-
-
Tired to compare a string to empty, null , db.null and everything else just to find out if it's really null? Use a Nullable Type... -f. ref.: http://msdn.microsoft.com/en-ca/library/1t3y8s4s.aspx
-
-
What is the difference, when to use a ID, or a UID... I don’t know, but here is my rule: An ID is automatically generated (like a Identity, or a GUID). A UID is generated by hand (like the unique id of an Account). A GUID is a type, so you never use it...
-
-
When testing if a string is empty, it’s always a good idea to test if it’s null too… if( string !=null && string .Length>0) {} Maybe it's a good case for a Extension Method? -f.
-
-
There is not better type for bitwise operation, but the smallest it is, the better it is. So, a Byte is better if you want less than 8 bits, an int is the next etc. -f.
-
-
It is exactly the same. At this point the only consideration should be... the color of it! When it’s a Decimal the color is handled as a Class/Struct, when it’s decimal it’s handled as a type. -f.