コード例 #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);
        }
コード例 #2
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)
 {
     return(TypeDefaultValue.GetDefaultValue(defaultValueType));
 }