public class Sample<T0, T1>
A sample class that is documented.
This a second paragraph.
It is indented.
This is the third paragraph.
Here is a italic, italic2 fragment.
Here is a bold, bold2 fragment.
Here is a code
fragment.
Here is a strikethrough fragment.
Remarks section.
Second line.
Another paragraph.
Btw, this type has a child: Sample<T0, T1>.Child
.
T0
: A first type parameter.T1
: A second type parameter.
public void Delegate1(int x, int y)
A sample delegate.
public event Action Event1
A sample field event.
public Action Event2
A sample property event.
public int Field
A field of the child class.
Warning
The field is deprecated.
[Obsolete("The field is deprecated.")]
public int Field1
A sample field.
public int Field2
A pair of fields.
public int Field3
A pair of fields.
public int Property1 { get; set; }
A sample property.
public int Property2 { set; }
A sample property with custom visibility.
public int Property3 { get; }
A sample property with custom visibility and an exception.
ArithmeticException
: Invalid number.
public int Property4 { get; set; }
A sample property with custom accessors.
public int this[int i] { get; }
A sample indexer.
i
: The parameter for indexer.
What indexer returns.
public TimeSpan Method<M0, M1, M2>(int x, string y)
A simple method. It contains two parameters:
x
meansx
y
meansy
It contains three type parameters:M0
is the first oneM1
is the second oneM2
is the third one
M0
: The first type parameter of the method.M1
: The second type parameter of the method.M2
: The third type parameter of the method.
x
: Thex
of the method.y
: They
of the method.
The TimeSpan
instance.
ArgumentException
: The argument is incorrect.ApplicationException
: Something went wrong.
public TimeSpan Method<M0, M1, M2>(short x, string y)
The overloaded Method<M0, M1, M2>(int, string)
.
M0
: The first type parameter of the method.M1
: The second type parameter of the method.M2
: The third type parameter of the method.
x
: Thex
of the method.y
: They
of the method.
The TimeSpan
instance.
ArgumentException
: The argument is incorrect.ApplicationException
: Something went wrong.