usingSystem.Collections.Generic;usingNBitcoin;namespaceStratis.Bitcoin.P2P.Protocol.Payloads{/// <summary>/// Ask for transaction, block or merkle block./// </summary>[Payload("getdata")]publicclassGetDataPayload:Payload{privateList<InventoryVector>inventory=newList<InventoryVector>();publicList<InventoryVector>Inventory{set{this.inventory=value;}get{returnthis.inventory;}}publicGetDataPayload(){}publicGetDataPayload(paramsInventoryVector[]vectors){this.inventory.AddRange(vectors);}publicoverridevoidReadWriteCore(BitcoinStreamstream){stream.ReadWrite(refthis.inventory);}}}