public GetTypedConfigProperty ( string name, |
||
name | string | |
type | ||
storageType | _PersistStorageType | |
Résultat | object |
public virtual object GetTypedConfigProperty(string name, Type type, _PersistStorageType storageType)
{
string value = GetConfigProperty(name, storageType);
if(string.IsNullOrEmpty(value)) return null;
TypeConverter tc = TypeDescriptor.GetConverter(type);
return tc.ConvertFromInvariantString(value);
}