Resulting XML
Here is the output produced by one documentation generator when given the source code for class Point, shown above:
Point
Class Point models a point in a two-dimensional
plane.
Instance variable x represents the point's
x-coordinate.
Instance variable y represents the point's
y-coordinate.
This constructor initializes the new Point to
(0,0).
This constructor initializes the new Point to
(
,
).
xor is the new Point's x-coordinate.
yor is the new Point's y-coordinate.
This method changes the point's location to
the given coordinates.
xor is the new x-coordinate.
yor is the new y-coordinate.
name="M:Graphics.Point.Translate(System.Int32,System.Int32)">
This method changes the point's location by
the given x- and y-offsets.
For example:
Point p = new Point(3,5);
p.Translate(-1,3);
results in p's having the value (2,8).
xor is the relative x-offset.
yor is the relative y-offset.
This method determines whether two Points have the same
location.
o is the object to be compared to the current
object.
True if the Points have the same location and they have
the exact same type; otherwise, false.
cref="M:Graphics.Point.op_Equality(Graphics.Point,Graphics.Point)"/>
cref="M:Graphics.Point.op_Inequality(Graphics.Point,Graphics.Point)"/>
Report a point's location as a string.
A string representing a point's location, in the form
(x,y),
without any leading, training, or embedded whitespace.
name="M:Graphics.Point.op_Equality(Graphics.Point,Graphics.Point)">
This operator determines whether two Points have the
same
location.
p1 is the first Point to be compared.
p2 is the second Point to be compared.
True if the Points have the same location and they have
the exact same type; otherwise, false.
cref="M:Graphics.Point.op_Inequality(Graphics.Point,Graphics.Point)"/>
name="M:Graphics.Point.op_Inequality(Graphics.Point,Graphics.Point)">
This operator determines whether two Points have the
same
location.
p1 is the first Point to be compared.
p2 is the second Point to be compared.
True if the Points do not have the same location and
the
exact same type; otherwise, false.
cref="M:Graphics.Point.op_Equality(Graphics.Point,Graphics.Point)"/>
This is the entry point of the Point class testing
program.
This program tests each method and operator, and
is intended to be run after any non-trvial maintenance has
been performed on the Point class.
Property X represents the point's
x-coordinate.
Property Y represents the point's
y-coordinate.
Do'stlaringiz bilan baham: |