static void M1(FieldB b, FieldC c)
 {
     b.Field = new object();
     b.CallM(); // no flow
     c.Field = new object();
     c.CallM(); // flow
 }
Exemple #2
0
 public override string ToString()
 {
     return(String.Format("{0} {1}{2}, {3}{4}",
                          statementFactory.GetStatementMnemonic(Type),
                          (char)ModeA,
                          ModularArith.Mod(FieldA.Calculate()),
                          (char)ModeB,
                          ModularArith.Mod(FieldB.Calculate())));
 }
Exemple #3
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash  = 17;
                int prime = 23;

                hash = hash * prime + FieldA.GetHashCode();
                hash = hash * prime + FieldB.GetHashCode();
                hash = hash * prime + FieldC.GetHashCode();
                hash = hash * prime + FieldD.GetHashCode();

                return(hash);
            }
        }
Exemple #4
0
 public override int GetHashCode()
 {
     return(Type.GetHashCode() ^ ModeA.GetHashCode() ^ FieldA.Calculate().GetHashCode() ^
            ModeB.GetHashCode() ^ FieldB.Calculate().GetHashCode());
 }