void ValidateState () { if (IsClosed) throw new InvalidOperationException ("Invalid attempt to read data when reader is closed"); }