Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateArgs()

static void System.IO.StreamReader.ValidateArgs ( string path,
Encoding encoding )
inlinestaticprivateinherited

Definition at line 243 of file StreamReader.cs.

244 {
245 if (path == null)
246 {
247 throw new ArgumentNullException("path");
248 }
249 if (encoding == null)
250 {
251 throw new ArgumentNullException("encoding");
252 }
253 if (path.Length == 0)
254 {
255 throw new ArgumentException(SR.Argument_EmptyPath);
256 }
257 }

References System.SR.Argument_EmptyPath.

Referenced by System.IO.StreamReader.ValidateArgsAndOpenPath(), and System.IO.StreamReader.ValidateArgsAndOpenPath().