Example #1
0
        CreateSharedLinkError enc.IEncodable <CreateSharedLinkError> .Decode(enc.IDecoder decoder)
        {
            switch (decoder.GetUnionName())
            {
            case "path":
                var path = new Files.LookupError();
                return(new Path(((enc.IEncodable <Files.LookupError>)path).Decode(decoder)));

            default:
                return(Other.Instance);
            }
        }
Example #2
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="Path" /> class.</para>
 /// </summary>
 /// <param name="value">The value</param>
 public Path(Files.LookupError value)
 {
     this.Value = value;
 }