Example #1
0
 public LiftedBinaryOperatorMethod(CSharpOperators operators, BinaryOperatorMethod baseMethod)
     : base(operators.compilation)
 {
     this.baseMethod = baseMethod;
     this.ReturnType = NullableType.Create(operators.compilation, baseMethod.ReturnType);
     this.Parameters.Add(operators.MakeNullableParameter(baseMethod.Parameters[0]));
     this.Parameters.Add(operators.MakeNullableParameter(baseMethod.Parameters[1]));
 }
Example #2
0
            public LiftedEqualityOperatorMethod(CSharpOperators operators, EqualityOperatorMethod baseMethod)
                : base(operators.compilation)
            {
                this.baseMethod = baseMethod;
                this.ReturnType = baseMethod.ReturnType;
                IParameter p = operators.MakeNullableParameter(baseMethod.Parameters[0]);

                this.Parameters.Add(p);
                this.Parameters.Add(p);
            }