lamp

Browse by Tags

Sorry, but there are no more tags available to filter with.
Nullable Types
30 June 09 02:28 PM | Frederick.Chapleau | with no comments
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
Filed under:
ID, UID, GUID, UUID?
23 June 09 07:10 AM | Frederick.Chapleau | with no comments
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...
Filed under:
A NotNullAndNotEmpty test
22 June 09 06:12 PM | Frederick.Chapleau | with no comments
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.
Filed under:
The best bitwise type
14 June 09 10:57 PM | Frederick.Chapleau | with no comments
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.
Filed under:
decimal or Decimal
13 June 09 06:50 AM | Frederick.Chapleau | with no comments
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.
Filed under: