Compartir a través de


GenericParameterHelper Class

Definition

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:

  1. public default constructor
  2. 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.

Applies to