Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DesigntimeLicenseContext.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
using
System.Reflection
;
3
4
namespace
System.ComponentModel.Design
;
5
6
public
class
DesigntimeLicenseContext
:
LicenseContext
7
{
8
internal
Hashtable
_savedLicenseKeys
=
new
Hashtable
();
9
10
public
override
LicenseUsageMode
UsageMode
=>
LicenseUsageMode
.Designtime;
11
12
public
override
string
?
GetSavedLicenseKey
(
Type
type
,
Assembly
? resourceAssembly)
13
{
14
return
null
;
15
}
16
17
public
override
void
SetSavedLicenseKey
(
Type
type
,
string
key
)
18
{
19
if
(
type
==
null
)
20
{
21
throw
new
ArgumentNullException
(
"type"
);
22
}
23
_savedLicenseKeys
[
type
.AssemblyQualifiedName] =
key
;
24
}
25
}
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.Collections.Hashtable
Definition
Hashtable.cs:13
System.ComponentModel.Design.DesigntimeLicenseContext.SetSavedLicenseKey
override void SetSavedLicenseKey(Type type, string key)
Definition
DesigntimeLicenseContext.cs:17
System.ComponentModel.Design.DesigntimeLicenseContext.UsageMode
override LicenseUsageMode UsageMode
Definition
DesigntimeLicenseContext.cs:10
System.ComponentModel.Design.DesigntimeLicenseContext.GetSavedLicenseKey
override? string GetSavedLicenseKey(Type type, Assembly? resourceAssembly)
Definition
DesigntimeLicenseContext.cs:12
System.ComponentModel.Design.DesigntimeLicenseContext._savedLicenseKeys
Hashtable _savedLicenseKeys
Definition
DesigntimeLicenseContext.cs:8
System.ComponentModel.Design.DesigntimeLicenseContext
Definition
DesigntimeLicenseContext.cs:7
System.ComponentModel.LicenseContext
Definition
LicenseContext.cs:6
System.Reflection.Assembly
Definition
Assembly.cs:16
System.Type
Definition
Type.cs:14
System.Collections
Definition
BlockingCollection.cs:8
System.ComponentModel.Design
Definition
DesignerSerializerAttribute.cs:1
System.ComponentModel.LicenseUsageMode
LicenseUsageMode
Definition
LicenseUsageMode.cs:4
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.ExceptionArgument.key
@ key
System.ExceptionArgument.type
@ type
source
System.ComponentModel.TypeConverter
System.ComponentModel.Design
DesigntimeLicenseContext.cs
Generated by
1.10.0