Esempio n. 1
0
 public static bool HasOwnValue(this IPropertyProvider properties, string key)
 {
     return(properties.GetValue(key, null) != properties.GetDefaultValue(key, null));
 }
Esempio n. 2
0
        protected TValue GetDefaultValue <TValue>() where TValue : IConvertible
        {
            var defval = this.GetMetaDataValue("Default", default(TValue));

            return(_Properties.GetDefaultValue(SerializationKey, defval.ConvertToString <TValue>()).ConvertToValue <TValue>());
        }
Esempio n. 3
0
 public string GetDefaultValue(string serializationKey, string defval)
 {
     return(_Properties.GetDefaultValue(serializationKey, defval));
 }