internal void AddAddress(PlatformSwapAddress addr) { var list = InteropAddresses.ToList(); list.Add(addr); this.InteropAddresses = list.ToArray(); }
public void UnserializeData(BinaryReader reader) { this.Name = reader.ReadVarString(); this.Symbol = reader.ReadVarString(); var interopCount = (int)reader.ReadVarInt(); this.InteropAddresses = new PlatformSwapAddress[interopCount]; for (int i = 0; i < interopCount; i++) { var temp = new PlatformSwapAddress(); temp.ExternalAddress = reader.ReadVarString(); temp.LocalAddress = reader.ReadAddress(); InteropAddresses[i] = temp; } }