Skip to content

Latest commit

 

History

History
179 lines (135 loc) · 3.59 KB

Summary.Samples.Sample{T0,T1}.md

File metadata and controls

179 lines (135 loc) · 3.59 KB
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.

Type Parameters

  • T0: A first type parameter.
  • T1: A second type parameter.

Delegates

public void Delegate1(int x, int y)

A sample delegate.

Events

public event Action Event1

A sample field event.

public Action Event2

A sample property event.

Fields

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.

Properties

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.

Exceptions

  • ArithmeticException: Invalid number.
public int Property4 { get; set; }

A sample property with custom accessors.

Indexers

public int this[int i] { get; }

A sample indexer.

Parameters

  • i: The parameter for indexer.

Returns

What indexer returns.

Methods

public TimeSpan Method<M0, M1, M2>(int x, string y)

A simple method. It contains two parameters:

  • x means x
  • y means y It contains three type parameters:
  • M0 is the first one
  • M1 is the second one
  • M2 is the third one

Type Parameters

  • M0: The first type parameter of the method.
  • M1: The second type parameter of the method.
  • M2: The third type parameter of the method.

Parameters

  • x: The x of the method.
  • y: The y of the method.

Returns

The TimeSpan instance.

Exceptions

  • 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).

Type Parameters

  • M0: The first type parameter of the method.
  • M1: The second type parameter of the method.
  • M2: The third type parameter of the method.

Parameters

  • x: The x of the method.
  • y: The y of the method.

Returns

The TimeSpan instance.

Exceptions

  • ArgumentException: The argument is incorrect.
  • ApplicationException: Something went wrong.