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

◆ Close()

override void System.Net.ClosableStream.Close ( )
inlinevirtual

Reimplemented from System.IO.Stream.

Definition at line 18 of file ClosableStream.cs.

19 {
20 if (Interlocked.Increment(ref _closed) == 1)
21 {
22 _onClose?.Invoke(this, new EventArgs());
23 }
24 }
readonly EventHandler _onClose
static int Increment(ref int location)

References System.Net.ClosableStream._closed, System.Net.ClosableStream._onClose, and System.Threading.Interlocked.Increment().