0

The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse

Posted by Sameer on August 7, 2009 in Uncategorized |

I think this is a classic post that everyone should read: The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse Related Reading: Head First Java, 2nd Edition Effective Java (2nd Edition) Java The Complete Reference, 8th Edition

4

Annoying Nulls in SQLParameters

Posted by Sameer on August 7, 2009 in Uncategorized |

If you read Creating SqlParameters Best Practices you will find the fun you have if you have null values: SqlParameter[] sqlParams = new SqlParameter[] { new SqlParameter("@Required", required), questionCode == null ? new SqlParameter("@Code", DBNull.Value) : new SqlParameter("@Code", questionCode) }; Here is a nice helper function to deal with nulls without having to manually check [...]

Copyright © 2007-2012 SharpDeveloper now AgileChai All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.2, from BuyNowShop.com.