Beispiel #1
0
 public static Expression EncodeReferenceEquals(Expression a, Expression b)
 {
     return(PrimitiveEncoder.EncodeReferenceEquals(a, b, PreboxedConstants.True_Expression, PreboxedConstants.False_Expression));
 }
 /// <summary>
 /// Generates an identity (reference equals) test expression.
 /// </summary>
 /// <returns>An Expression with the logic necessary to perform the operation. Null if 'this.Parameters' does not contain exactly 2 elements.</returns>
 /// <remarks>For System.Boolean values, the test is equality, because Smalltalk assumes that true and false are singletons.</remarks>
 private Expression IdentityEquals()
 {
     return(this.BinaryOperation((arg1, arg2) => PrimitiveEncoder.EncodeReferenceEquals(arg1, arg2)));
 }