Пример #1
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                hashCode += 1000000007 * OpCode.GetHashCode();
                hashCode += 1000000009 * ByteArgument.GetHashCode();
                hashCode += 1000000021 * SByteArgument.GetHashCode();
                hashCode += 1000000033 * Int16Argument.GetHashCode();
                hashCode += 1000000087 * Int32Argument.GetHashCode();
                hashCode += 1000000093 * Int64Argument.GetHashCode();
                hashCode += 1000000097 * SingleArgument.GetHashCode();
                hashCode += 1000000103 * DoubleArgument.GetHashCode();
                if (argument != null)
                {
                    hashCode += 1000000123 * argument.GetHashCode();
                }
            }
            return(hashCode);
        }
Пример #2
0
 public T With <T>(T t, SingleArgument <T> del)
 {
     del(t);
     return(t);
 }