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

◆ GetApartmentStateSafely()

static ApartmentState ReLogic.OS.Windows.Clipboard.GetApartmentStateSafely ( )
inlinestaticprivate

Definition at line 80 of file Clipboard.cs.

81 {
82 try
83 {
84 return Thread.CurrentThread.GetApartmentState();
85 }
86 catch
87 {
88 return ApartmentState.MTA;
89 }
90 }
static Thread CurrentThread
Definition Thread.cs:312

References System.Threading.Thread.CurrentThread.

Referenced by ReLogic.OS.Windows.Clipboard.InvokeInStaThread(), and ReLogic.OS.Windows.Clipboard.InvokeInStaThread< T >().