示例#1
0
        protected TValue GetValue <TValue>() where TValue : IConvertible
        {
            var defval = default(TValue);

            defval = this.GetMetaDataValue("Default", defval);

            return(_Properties.GetValue(SerializationKey, defval.ConvertToString <TValue>()).ConvertToValue <TValue>());
        }
示例#2
0
 public static bool HasOwnValue(this IPropertyProvider properties, string key)
 {
     return(properties.GetValue(key, null) != properties.GetDefaultValue(key, null));
 }
示例#3
0
        public string GetValue(string serializationKey, string defval)
        {
            var underlayingValue = GetDefaultValue(serializationKey, defval);

            return(_Current.GetValue(serializationKey, underlayingValue));
        }
示例#4
0
 public string GetValue(string serializationKey, string defval)
 {
     return(_Properties.GetValue(serializationKey, defval));
 }
示例#5
0
 public string GetDefaultValue(string serializationKey, string defval)
 {
     return(_Base == null ? defval : _Base.GetValue(serializationKey, defval));
 }