Aqueduct.SitecoreLib.DataAccess.ValueResolvers.NullableResolver.GetConvertibleValue C# (CSharp) Method

GetConvertibleValue() private static method

private static GetConvertibleValue ( Type type, string value ) : object
type System.Type
value string
return object
        private static object GetConvertibleValue (Type type, string value)
        {
            try
            {
                return Convert.ChangeType (value, type);
            }
            catch (Exception)
            {
                return null;
            }
        }