| | 1 | | // Copyright (c) ZeroC, Inc. |
| | 2 | |
|
| | 3 | | using IceRpc.Internal; |
| | 4 | | using ZeroC.Slice; |
| | 5 | |
|
| | 6 | | namespace IceRpc.Slice.Ice; |
| | 7 | |
|
| | 8 | | /// <summary>Provides an extension for <see cref="SliceEncoder" /> to encode a path as an Ice identity.</summary> |
| | 9 | | public static class IdentityPathSliceEncoderExtensions |
| | 10 | | { |
| | 11 | | /// <summary>Encodes a path as an Ice identity.</summary> |
| | 12 | | /// <param name="encoder">The Slice encoder.</param> |
| | 13 | | /// <param name="value">The path to encode as an Ice identity.</param> |
| | 14 | | public static void EncodeIdentityPath(this ref SliceEncoder encoder, string value) => |
| 0 | 15 | | Identity.Parse(value).Encode(ref encoder); |
| | 16 | | } |