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(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 |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The |
Equals(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 |
|---|---|
| bool | true if the current object is equal to the |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |