Example #1
0
 public static bool HasOwnValue(this IPropertyProvider properties, string key)
 {
     return(properties.GetValue(key, null) != properties.GetDefaultValue(key, null));
 }
Example #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>());
        }
Example #3
0
 public string GetDefaultValue(string serializationKey, string defval)
 {
     return(_Properties.GetDefaultValue(serializationKey, defval));
 }