Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetCurrentContextInfo()

static LicenseContext System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo ( Type type,
out bool isDesignTime,
out string key )
inlinestatic

Definition at line 92 of file LicenseManager.cs.

93 {
94 LicenseContext currentContext = CurrentContext;
95 isDesignTime = currentContext.UsageMode == LicenseUsageMode.Designtime;
96 key = null;
97 if (!isDesignTime)
98 {
99 key = currentContext.GetSavedLicenseKey(type, null);
100 }
101 return currentContext;
102 }

References System.ComponentModel.LicenseManager.CurrentContext, System.ComponentModel.LicenseContext.GetSavedLicenseKey(), System.key, and System.type.