Foxoft.Ci.CiResolver.GetErrorValue C# (CSharp) Method

GetErrorValue() static private method

static private GetErrorValue ( CiType type ) : object
type CiType
return object
        static object GetErrorValue(CiType type)
        {
            if (type == CiType.Void)
            return false;
            if (type == CiIntType.Value)
            return -1;
            if (type == CiStringPtrType.Value || type is CiClassPtrType || type is CiArrayPtrType)
            return null;
            throw new ResolveException("throw in a method of unsupported return type");
        }