コード例 #1
0
 public override int GetHashCode()
 {
     // Add ControlVariables
     return(A1_Escaping.GetHashCode()
            + A2_Variables.GetHashCode()
            + A3_Fields.GetHashCode()
            + A4_Ouput.GetHashCode()
            + ControlVariables.GetHashCode());
 }
コード例 #2
0
        public override string ToString()
        {
            var result = "";

            if (IsTop)
            {
                return("__TOP__");
            }
            result += "A3\n";
            foreach (var var in this.A3_Fields.Keys)
            {
                result += String.Format(CultureInfo.InvariantCulture, "{0}:{1}\n", var, ToString(A3_Fields[var]));
            }
            result += "A4\n";
            foreach (var var in this.A4_Ouput.Keys)
            {
                var a2_value = "";
                if (A2_Variables.ContainsKey(var))
                {
                    a2_value = ToString(A2_Variables[var]);
                }
                result += String.Format(CultureInfo.InvariantCulture, "({0}){1}= dep({2})\n", var, a2_value, ToString(A4_Ouput[var]));
            }
            result += "A4_Control\n";
            foreach (var var in this.A4_Ouput_Control.Keys)
            {
                var a2_value = "";
                if (A2_Variables.ContainsKey(var))
                {
                    a2_value = ToString(A2_Variables[var]);
                }
                result += String.Format(CultureInfo.InvariantCulture, "({0}){1}= dep({2})\n", var, a2_value, ToString(A4_Ouput_Control[var]));
            }
            result += "Escape\n";
            result += ToString(A1_Escaping);

            return(result);
        }