Show / Hide Table of Contents

Class Token<TToken>

Represents an abstract class for objects that are used as identification tokens.

Inheritance
System.Object
Token<TToken>
SubscriptionToken
Implements
System.IEquatable<TToken>
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

Token()

Initializes a new instance of the Token.

Declaration
protected Token()

Methods

View Source

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
System.Boolean

true if the current object is equal to the other parameter; otherwise, false.

View Source

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 other parameter; otherwise, false.

View Source

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
System.Object.Equals(System.Object)
Exceptions
Type Condition
System.NullReferenceException

The obj parameter is null.

View Source

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.

Overrides
System.Object.GetHashCode()

Implements

System.IEquatable<T>

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX