コード例 #1
0
 private static Gen <OutputDescriptor> AddrOutputDescriptorGen(Network?n = null) =>
 from addr in n is null?AddressGenerator.RandomAddress() : AddressGenerator.RandomAddress(n)
     select OutputDescriptor.NewAddr(addr);
コード例 #2
0
 private static Gen <OutputDescriptor> AddrOutputDescriptorGen(Network n) =>
 from addr in AddressGenerator.RandomAddress(n)
 select OutputDescriptor.NewAddr(addr, n);