internal override DnsResourceData CreateInstance(DataSegment data) { List <DataSegment> list = DnsResourceDataStrings.ReadStrings(data, 1); if (list == null || list.Count < 1) { return((DnsResourceData)null); } return((DnsResourceData) new DnsResourceDataNInfo(list.AsReadOnly())); }
internal override DnsResourceData CreateInstance(DataSegment data) { List <DataSegment> list = DnsResourceDataStrings.ReadStrings(data, 2); if (list == null || list.Count != 2) { return((DnsResourceData)null); } return((DnsResourceData) new DnsResourceDataHostInformation(list[0], list[1])); }
internal override DnsResourceData CreateInstance(DataSegment data) { List <DataSegment> list = DnsResourceDataStrings.ReadStrings(data, 2); if (list == null) { return((DnsResourceData)null); } if (list.Count == 1) { return((DnsResourceData) new DnsResourceDataIsdn(list[0])); } if (list.Count == 2) { return((DnsResourceData) new DnsResourceDataIsdn(list[0], list[1])); } return((DnsResourceData)null); }
internal override DnsResourceData CreateInstance(DataSegment data) { return((DnsResourceData) new DnsResourceDataText(DnsResourceDataStrings.ReadStrings(data, 0).AsReadOnly())); }