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

◆ ValidateHandle() [2/2]

static void System.IO.FileStream.ValidateHandle ( SafeFileHandle handle,
FileAccess access,
int bufferSize,
bool isAsync )
inlinestaticprivateinherited

Definition at line 127 of file FileStream.cs.

128 {
129 ValidateHandle(handle, access, bufferSize);
130 if (isAsync && !handle.IsAsync)
131 {
132 ThrowHelper.ThrowArgumentException_HandleNotAsync("handle");
133 }
134 else if (!isAsync && handle.IsAsync)
135 {
136 ThrowHelper.ThrowArgumentException_HandleNotSync("handle");
137 }
138 }
static void ValidateHandle(SafeFileHandle handle, FileAccess access, int bufferSize)

References System.handle, System.ThrowHelper.ThrowArgumentException_HandleNotAsync(), System.ThrowHelper.ThrowArgumentException_HandleNotSync(), and System.IO.FileStream.ValidateHandle().