GenericParameterHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class is designed to help user doing unit testing for types which uses generic types. GenericParameterHelper satisfies some common generic type constraints such as:
- public default constructor
- implements common interface: IComparable, IEnumerable
public ref class GenericParameterHelper : ICloneable, IComparable, System::Collections::IEnumerable
public class GenericParameterHelper : ICloneable, IComparable, System.Collections.IEnumerable
type GenericParameterHelper = class
interface IComparable
interface IEnumerable
interface ICloneable
Public Class GenericParameterHelper
Implements ICloneable, IComparable, IEnumerable
- Inheritance
-
GenericParameterHelper
- Implements
Constructors
GenericParameterHelper() |
Initializes a new instance of the GenericParameterHelper class that satisfies the 'newable' constraint in C# generics. |
GenericParameterHelper(Int32) |
Initializes a new instance of the GenericParameterHelper class that initializes the Data property to a user-supplied value. |
Properties
Data |
Gets or sets the Data |
Methods
Clone() |
Returns a GenericParameterHelper object that is equal to the current object. |
CompareTo(Object) |
Compares the data of the two GenericParameterHelper objects. |
Equals(Object) |
Do the value comparison for two GenericParameterHelper object |
GetEnumerator() |
Returns an IEnumerator object whose length is derived from the Data property. |
GetHashCode() |
Returns a hashcode for this object. |