예제 #1
0
 public object GetDefaultValue()
 {
     if (IsBasicValue)
     {
         return(_basicDefaultValueObject.GetValue());
     }
     else
     {
         return(_complexDefaultValueObject);
     }
 }
예제 #2
0
        public object GetValue()
        {
            switch (_strType.ToLower())
            {
            case "list":
                return(_processParameterList.Count > 0 ? _processParameterList : null);

            case "dictionary":
                return(_processParameterDictionary.Count > 0 ? _processParameterDictionary : null);
            }


            if (_hasValue)
            {
                return(IsBasicValue ? _basicValueObject.GetValue() : _complexValueObject);
            }

            return(GetDefaultValue());
        }