Hello,
I have the following code snippet that overloads the "-" operator:
// unary
public static Vector operator -( Vector v )
{
return new Vector( -v.X, -v.Y );
}
// binary
public static Vector operator -( Vector v1, Vector v2 )
{
return new Vector( v1.X-v2.X, v1.Y-v2.Y );
}
It compiles fine, but when I switch to "Class View" in "Solution Explorer"
both operators have a red exclamation sign and a message: "Unable to create
description".
Is it something wrong or just a weirdness of VS.NET 2003?
Thanks,
Leszek