Ejemplo n.º 1
0
        private ReadOnlyCollection <NameResolutionRecord> ReadRecords(BinaryReader reader)
        {
            var records = new List <NameResolutionRecord>();
            NameResolutionRecord record;

            do
            {
                record = new NameResolutionRecord(reader);
                records.Add(record);
            }while (record.IpAddress != null);

            return(new ReadOnlyCollection <NameResolutionRecord>(records));
        }
        private ReadOnlyCollection<NameResolutionRecord> ReadRecords(BinaryReader reader)
        {
            var records = new List<NameResolutionRecord>();
            NameResolutionRecord record;
            do
            {
                record = new NameResolutionRecord(reader);
                records.Add(record);
            }
            while (record.IpAddress != null);

            return new ReadOnlyCollection<NameResolutionRecord>(records);
        }