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