History

Added more code to GSF shared code project - moved PathHelper path validation function into FilePath

J. Ritchie Carroll committed 10 years ago

Commit e16ec441 parent 612a09672 files · +1523 −1481Browse files

Showing the changes to Source/Libraries/GSF.Core/Data/DataSetExtensions.cs (1 of 72 files). Show all

Unified · Split

Source/Libraries/GSF.Core/Data/DataSetExtensions.cs+3−3
@@ -153,10 +153,10 @@ namespace GSF.Data · 152 unmodified lines
153153 public static void SerializeToStream(this DataSet source, Stream destination, bool assumeStringForUnknownTypes = true)
154154 {
155155 if ((object)source == null)
156− throw new ArgumentNullException("source");
156+ throw new ArgumentNullException(nameof(source));
157157
158158 if ((object)destination == null)
159− throw new ArgumentNullException("destination");
159+ throw new ArgumentNullException(nameof(destination));
160160
161161 if (!destination.CanWrite)
162162 throw new InvalidOperationException("Cannot write to a read-only stream");
@@ -299,7 +299,7 @@ namespace GSF.Data · 136 unmodified lines
299299 public static DataSet DeserializeToDataSet(this Stream source)
300300 {
301301 if ((object)source == null)
302− throw new ArgumentNullException("source");
302+ throw new ArgumentNullException(nameof(source));
303303
304304 if (!source.CanRead)
305305 throw new InvalidOperationException("Cannot read from a write-only stream");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t