S
Steve
I'm confused with creating the == operator for my class. It appears that c#
requires the signature:
public static bool operator==(Type a, Type b);
I want to use:
public bool operator==(Type RightHandSide)
{
return this.SomeMember = RightHandSide.SomeMember;
}
This can't be correct, that I can't make a member operator to my class and
use the 'this' reference?
requires the signature:
public static bool operator==(Type a, Type b);
I want to use:
public bool operator==(Type RightHandSide)
{
return this.SomeMember = RightHandSide.SomeMember;
}
This can't be correct, that I can't make a member operator to my class and
use the 'this' reference?