示例#1
0
        public override int GetHashCode()
        {
            int result = constType != null?constType.GetHashCode() : 0;

            result = 31 * result + (value != null ? value.GetHashCode() : 0);
            return(result);
        }
    public override int GetHashCode()
    {
        int hashVal = 0;

        foreach (VarType v in ArgTypes)
        {
            hashVal += v.GetHashCode();
        }
        return(hashVal += RetType.GetHashCode());
    }
    public override int GetHashCode()
    {
        int hashNum = 0;

        hashNum += baseType.GetHashCode();
        foreach (var i in arrayDimensions)
        {
            hashNum += i.GetHashCode();
        }
        return(hashNum);
    }
示例#4
0
        //public static Script ParseCompact(string compactScript) => KzBScript.ParseCompact(compactScript).ToScript();

        //public static Script ParseTestScript(string testScript) => KzBScript.ParseTestScript(testScript).ToScript();

        public override int GetHashCode() => _script.GetHashCode();