Easy/Platform/Setting.cs
/// <summary>
/// Gets the default value of the given type
/// </summary>
/// <param name="type">Type</param>
/// <returns>Default value</returns>
Gets the default value of the given type
Gets the default value of the given type
private static object GetDefaultValue(Type type)
        {
            if (type.Equals(typeof(string)))
            {
                return String.Empty;
            }
            else
            {
                return Activator.CreateInstance(type);
            }
        }
private static object GetDefaultValue ( Type type ) { if ( type . Equals ( typeof ( string ) ) ) { return String . Empty ; } else { return Activator . CreateInstance ( type ) ; } }
Gets the default value of the given type
Gets the default value of the given type
None
type
Type
None