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

◆ VerifyValidPath()

static void System.IO.FileSystem.VerifyValidPath ( string path,
string argName )
inlinestaticpackage

Definition at line 10 of file FileSystem.cs.

11 {
12 if (path == null)
13 {
14 throw new ArgumentNullException(argName);
15 }
16 if (path.Length == 0)
17 {
18 throw new ArgumentException(SR.Arg_PathEmpty, argName);
19 }
20 if (path.Contains('\0'))
21 {
22 throw new ArgumentException(SR.Argument_InvalidPathChars, argName);
23 }
24 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)

References System.SR.Arg_PathEmpty, System.SR.Argument_InvalidPathChars, and System.Collections.Generic.Dictionary< TKey, TValue >.Contains().

Referenced by System.IO.FileSystemInfo.CreateAsSymbolicLink(), System.IO.Directory.CreateSymbolicLink(), System.IO.File.CreateSymbolicLink(), System.IO.Directory.ResolveLinkTarget(), and System.IO.File.ResolveLinkTarget().