del.icio.us Tags: ASP.NET , C# Hi there, Here is an extension method for getting a value from the session in a safe manner. 1: static public bool TryGet<T>( this HttpSessionState session, string key, out T value ) { 2: 3: bool flag = false ; 4: value = default (T); 5: 6: if (session...
When tasking for assembly resources, especially for localized strings, I prefer putting them in a separate assembly. Main problem I faced in that approach is to make the resources visible outside the assembly, export them. As you know, the generated classes by ResXFileCodeGenerator for strong type resource...