Cast Method
Cast<T>(IPrivateKey)
Casts the key to the specified type.
C#
public static T Cast<T>(this IPrivateKey key) where T : class, IPrivateKey
Parameters
Type | Name | Description |
---|---|---|
IPrivateKey | key |
Returns
T
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
InvalidCastException |