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

◆ In

TextReader System.Console.In
staticget

Definition at line 44 of file Console.cs.

45 {
46 get
47 {
48 return Volatile.Read(ref s_in) ?? EnsureInitialized();
49 static TextReader EnsureInitialized()
50 {
51 ConsolePal.EnsureConsoleInitialized();
52 lock (s_syncObject)
53 {
54 if (s_in == null)
55 {
56 Volatile.Write(ref s_in, ConsolePal.GetOrCreateReader());
57 }
58 return s_in;
59 }
60 }
61 }
62 }
static readonly object s_syncObject
Definition Console.cs:12
static TextReader s_in
Definition Console.cs:14
static bool Read(ref bool location)
Definition Volatile.cs:67
static void Write(ref bool location, bool value)
Definition Volatile.cs:74

Referenced by System.Console.Read(), and System.Console.ReadLine().