Table of Contents

Class IceProxyIceDecoderExtensions

Namespace
IceRpc.Ice.Operations
Assembly
IceRpc.Ice.dll

Provides extension methods for IceDecoder to decode proxies.

public static class IceProxyIceDecoderExtensions
Inheritance
IceProxyIceDecoderExtensions
Inherited Members

Methods

DecodeProxy<TProxy>(ref IceDecoder)

Decodes a proxy struct.

public static TProxy? DecodeProxy<TProxy>(this ref IceDecoder decoder) where TProxy : struct, IIceProxy

Parameters

decoder IceDecoder

The Ice decoder.

Returns

TProxy?

The decoded proxy, or null.

Type Parameters

TProxy

The type of the proxy struct to decode.

Remarks

The decoding context of the decoder, when not null, must be the base proxy, an IIceProxy: the decoded proxy inherits the invoker and encode options of this base proxy. Without a decoding context, the decoded proxy has Instance as its invoker and no encode options.