IFieldCodecProvider.TryGetCodec Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryGetCodec(Type) |
Gets a codec for the specific type, or |
TryGetCodec<TField>() |
Gets a codec for the specific type, or |
TryGetCodec(Type)
Gets a codec for the specific type, or null
if no appropriate codec was found.
public Orleans.Serialization.Codecs.IFieldCodec TryGetCodec (Type fieldType);
abstract member TryGetCodec : Type -> Orleans.Serialization.Codecs.IFieldCodec
Public Function TryGetCodec (fieldType As Type) As IFieldCodec
Parameters
- fieldType
- Type
The field type.
Returns
A codec.
Applies to
TryGetCodec<TField>()
Gets a codec for the specific type, or null
if no appropriate codec was found.
public Orleans.Serialization.Codecs.IFieldCodec<TField> TryGetCodec<TField> ();
abstract member TryGetCodec : unit -> Orleans.Serialization.Codecs.IFieldCodec<'Field>
Public Function TryGetCodec(Of TField) () As IFieldCodec(Of TField)
Type Parameters
- TField
The field type.
Returns
IFieldCodec<TField>
A codec.