Re: compare two structs via ==

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Jun 5, 1:07 pm, cody <deutron...@xxxxxx> wrote:
I have create a Data access layer, something like DLinq.
I created a class Expression where operator== yields a new compound
expression:

public static Expression operator==(Expression a, Expression b)
{
return GenerateBinaryExpression("=", a, b);
}

Hmm. I can sort of see the benefit, but at the same time it feels
sufficiently unlike the *normal* meaning of == that I'd be loathe to
do something like that myself.

Jon

.



Relevant Pages