I am using the code like this. When lan is null, I am getting exception TypeInitializationException.
Is there any way to check null for URI??
ResourceDictionary dict = new ResourceDictionary();
dict.Source = new Uri("/Emdep.Geos.UI.Common;component/Resources/Language." + lan + ".xaml", UriKind.RelativeOrAbsolute);
An unhandled exception of type 'System.TypeInitializationException' occurred in Emdep.Geos.UI.Common.dll## Heading ##