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

◆ CreateWithContext() [2/2]

static ? object System.ComponentModel.LicenseManager.CreateWithContext ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type type,
LicenseContext creationContext,
object[] args )
inlinestatic

Definition at line 189 of file LicenseManager.cs.

190 {
191 object obj = null;
193 {
194 LicenseContext currentContext = CurrentContext;
195 try
196 {
197 CurrentContext = creationContext;
199 try
200 {
201 return Activator.CreateInstance(type, args);
202 }
204 {
205 throw ex.InnerException;
206 }
207 }
208 finally
209 {
211 CurrentContext = currentContext;
212 }
213 }
214 }
static void UnlockContext(object contextUser)
static void LockContext(object contextUser)
static readonly object s_internalSyncObject
Exception? InnerException
Definition Exception.cs:104

References System.Activator.CreateInstance(), System.ComponentModel.LicenseManager.CurrentContext, System.Exception.InnerException, System.ComponentModel.LicenseManager.LockContext(), System.obj, System.ComponentModel.LicenseManager.s_internalSyncObject, System.ComponentModel.LicenseManager.s_selfLock, System.type, and System.ComponentModel.LicenseManager.UnlockContext().