Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
POINT (Structures)
.
C# Signature:
[StructLayout(LayoutKind.Sequential)]
struct POINT {
public int x;
public int y;
public POINT(int x, int y) {
this.x = x;
this.y = y;
}
public Point ToPoint() {
return new Point(x, y);
}
public static POINT FromPoint(Point pt) {
return new POINT(pt.X, pt.Y);
}
public override bool Equals(object obj)
{
// I wish we could use the "as" operator
// and check the type compatibility only
// once here, just like with reference
// types. Maybe in the v2.0 :)
if (!(obj is POINT))
{
return false;
}
POINT point = (POINT)obj;
if (point.x == this.x)
{
return (point.y == this.y);
}
return false;
}
public override int GetHashCode()
{
// this is the Microsoft implementation for the
// System.Drawing.Point's GetHashCode() method.
return (this.x ^ this.y);
}