Depending on what type of CommomSettings.Default , a simple zero check should be in order:
if(setting != null) DoSomethingElse(setting);
If you want to check before trying to get this parameter, you need to publish Type of CommonSettings.Default. This is like a dictionary so you can leave:
if(CommonSettings.Default.ContainsKey(str)) { DoSomethingElse(CommonSettings.Default[str]); }
Justin niessner
source share