L
Leszek Taratuta
Hello,
I posted this problem a few days ago. I am not sure if I was not enough
specific but nobody answered, so I am posting it again:
I have the following code snippet that overloads the "-" operator (just copy
and paste to your CS file):
public class Vector
{
public float X = 0.0F;
public float Y = 0.0F;
public Vector( float x, float y )
{
this.X = x;
this.Y = y;
}
// 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
I posted this problem a few days ago. I am not sure if I was not enough
specific but nobody answered, so I am posting it again:
I have the following code snippet that overloads the "-" operator (just copy
and paste to your CS file):
public class Vector
{
public float X = 0.0F;
public float Y = 0.0F;
public Vector( float x, float y )
{
this.X = x;
this.Y = y;
}
// 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