Class ConstructorModel
Interface IHistoryModel used for identifying objects that can be put in the history model.
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Core.dll
Syntax
public sealed class ConstructorModel : IHistoryModel, IEquatable<ConstructorModel>
Properties
ConstructorInfo
Gets the constructor information.
Declaration
public ConstructorInfo? ConstructorInfo { get; }
Property Value
| Type | Description |
|---|---|
| ConstructorInfo | The constructor information. |
ParameterList
Gets the parameter list.
Declaration
public object?[] ParameterList { get; }
Property Value
| Type | Description |
|---|---|
| object[] | The parameter list. |
Methods
Equals(ConstructorModel?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ConstructorModel? other)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructorModel | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |