public Resource(PersistedReader reader) { Name = reader.ReadDomainName(); Type = (Type)reader.ReadUInt16(); Class = (Class)reader.ReadUInt16(); TTL = reader.ReadUInt32(); Length = reader.ReadUInt16(); RECORD = ReadRecord(reader, Type, Length); }