diff --git a/src/CsvHelper/CsvReader.cs b/src/CsvHelper/CsvReader.cs
index 3fa74c2a0..d9a1402f6 100644
--- a/src/CsvHelper/CsvReader.cs
+++ b/src/CsvHelper/CsvReader.cs
@@ -891,11 +891,12 @@ record = read();
}
}
- ///
- public virtual IEnumerable GetRecords(T anonymousTypeDefinition)
- {
- if (anonymousTypeDefinition == null)
- {
+ ///
+ /// Thrown when the reader has been disposed.
+ public virtual IEnumerable GetRecords(T anonymousTypeDefinition)
+ {
+ if (anonymousTypeDefinition == null)
+ {
throw new ArgumentNullException(nameof(anonymousTypeDefinition));
}
@@ -907,11 +908,12 @@ public virtual IEnumerable GetRecords(T anonymousTypeDefinition)
return GetRecords();
}
- ///
- public virtual IEnumerable