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

◆ ValidateArgs()

static void System.IO.StreamWriter.ValidateArgs ( string path,
Encoding encoding )
inlinestaticprivate

Definition at line 183 of file StreamWriter.cs.

184 {
185 if (path == null)
186 {
187 throw new ArgumentNullException("path");
188 }
189 if (encoding == null)
190 {
191 throw new ArgumentNullException("encoding");
192 }
193 if (path.Length == 0)
194 {
195 throw new ArgumentException(SR.Argument_EmptyPath);
196 }
197 }

References System.SR.Argument_EmptyPath.

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