System.TypeExtensions.DefaultValue C# (CSharp) Метод

DefaultValue() публичный статический Метод

public static DefaultValue ( this type ) : object
type this
Результат object
		public static object DefaultValue(this Type type)
		{
			return type.IsValueType ? Activator.CreateInstance(type) : null;
		}