Ejemplo n.º 1
0
            public static LedgerEntryExt Decode(XdrDataInputStream stream)
            {
                LedgerEntryExt decodedLedgerEntryExt = new LedgerEntryExt();
                int            discriminant          = stream.ReadInt();

                decodedLedgerEntryExt.Discriminant = discriminant;
                switch (decodedLedgerEntryExt.Discriminant)
                {
                case 0:
                    break;

                case 1:
                    decodedLedgerEntryExt.V1 = LedgerEntryExtensionV1.Decode(stream);
                    break;
                }
                return(decodedLedgerEntryExt);
            }