Generic ClassT1, T2 Class
This class is used to demonstrate the various XML comments elements
related to generics. It serves no useful purpose.
Definition
Namespace: XMLCommentsExamples
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public class GenericClass<T1, T2>
where T2 : EventArgs
VB
Public Class GenericClass(Of T1, T2 As EventArgs)C++
generic<typename T1, typename T2>
where T2 : EventArgs
public ref class GenericClassF#
type GenericClass<'T1, 'T2 when 'T2 : EventArgs> = class end- Inheritance
- Object GenericClassT1, T2
Type Parameters
- T1
- This is the first generic argument.
- T2
- This is the second generic argument constrained to be or derive from EventArgs.
Constructors
| GenericClassT1, T2 | Initializes a new instance of the GenericClassT1, T2 class |
Properties
| Property | This is a property that gets or sets an instance of the type specified by the generic type argument T1. |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GenericMethodT3, T4 | This is a generic method that takes two other generic types |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Method | This is a method with an argument. |
| OnSomethingHappened | This is a protected virtual method used to raise the SomethingHappened event. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Events
| SomethingHappened | This is an event that takes a generic argument. |