Class Token<TToken>
Represents an abstract class for objects that are used as identification tokens.
Implements
Namespace: Sartorius.SAF.Notification
Assembly: Sartorius.SAF.dll
Syntax
public abstract class Token<TToken> : IEquatable<TToken> where TToken : Token<TToken>
Type Parameters
| Name | Description |
|---|---|
| TToken | The Token Type which represents a more specific identification type. |
Constructors
View SourceToken()
Initializes a new instance of the Token.
Declaration
protected Token()
Methods
View SourceEquals(TToken)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TToken other)
Parameters
| Type | Name | Description |
|---|---|---|
| TToken | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the current object is equal to the |
Equals(Token<TToken>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Token<TToken> other)
Parameters
| Type | Name | Description |
|---|---|---|
| Token<TToken> | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.NullReferenceException | The |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A hash code for the current System.Object. |