Exemple #1
0
        ///// <summary>
        /////
        ///// </summary>
        ///// <param name="type"></param>
        ///// <returns></returns>
        //public static Type GetNonNullableType(Type type)
        //{
        //    if (TypeHelper.IsNullable(type))
        //        return Nullable.GetUnderlyingType(type);
        //    return type;
        //}

        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static object GetDefault(Type type)
        {
            //Guard.NotNull(type, "type");
            return(ObjectCreator.Create(type));
        }