| Differences in declaring a variable before or in a loop (C#) | Declaring a variable inside a loop actually gives slightly better performance. Remember that local variables captured by an anonymous method (or lambda expression) behaves differently than variables declared outside the loop! | | List<T> class inner structure | This is just a generic version of the ArrayList class | | .settings vs .config | App.config is an older mechanism to define and read simple key/value combinations. MySettings is a newer version which brings new features and a new GUI to the table. | | SPROC and return values | Using Return <value> in a SPROC will not work with ExecuteScalar or ExecuteNonQuery. Have to use SELECT <value> or use return parameters for the command to get the return value. | | Using GUID as EntityKey in Entity Framework 4 | A good article about using a GUID as EntityKey: http://leedumond.com/blog/using-a-guid-as-an-entitykey-in-entity-framework-4/ |
|
|