Пример #1
0
        /// <summary>Returns a default value for the type specified</summary>
        /// <param name="defaultValueType">The type which default value should be returned.</param>
        /// <returns>The default value for the type specified.</returns>
        public object DefaultValue(System.Type defaultValueType)
        {
            var toReturn = TypeDefaultValue.GetDefaultValue(defaultValueType);

            PostProcessValueToReturn(defaultValueType, ref toReturn);
            return(toReturn);
        }
 /// <summary>
 /// Returns a default value for the type specified
 /// </summary>
 /// <param name="defaultValueType">The type which default value should be returned.</param>
 /// <returns>The default value for the type specified.</returns>
 public object DefaultValue(System.Type defaultValueType)
 {
     return(TypeDefaultValue.GetDefaultValue(defaultValueType));
 }