Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExportedType.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Metadata
;
2
3
public
readonly
struct
ExportedType
4
{
5
internal
readonly
MetadataReader
reader
;
6
7
internal
readonly
int
rowId
;
8
9
private
ExportedTypeHandle
Handle
=>
ExportedTypeHandle
.
FromRowId
(
rowId
);
10
11
public
TypeAttributes
Attributes
=>
reader
.
ExportedTypeTable
.GetFlags(
rowId
);
12
13
public
bool
IsForwarder
14
{
15
get
16
{
17
if
(
Attributes
.IsForwarder())
18
{
19
return
Implementation.Kind ==
HandleKind
.AssemblyReference;
20
}
21
return
false
;
22
}
23
}
24
25
public
StringHandle
Name
=>
reader
.
ExportedTypeTable
.GetTypeName(
rowId
);
26
27
public
StringHandle
Namespace
=>
reader
.
ExportedTypeTable
.GetTypeNamespaceString(
rowId
);
28
29
public
NamespaceDefinitionHandle
NamespaceDefinition
=>
reader
.
ExportedTypeTable
.GetTypeNamespace(
rowId
);
30
31
public
EntityHandle
Implementation
=>
reader
.
ExportedTypeTable
.GetImplementation(
rowId
);
32
33
internal
ExportedType
(
MetadataReader
reader
,
int
rowId
)
34
{
35
this.reader =
reader
;
36
this.rowId =
rowId
;
37
}
38
39
public
CustomAttributeHandleCollection
GetCustomAttributes
()
40
{
41
return
new
CustomAttributeHandleCollection
(
reader
,
Handle
);
42
}
43
}
System.Reflection.Metadata.MetadataReader.ExportedTypeTable
ExportedTypeTableReader ExportedTypeTable
Definition
MetadataReader.cs:153
System.Reflection.Metadata.MetadataReader
Definition
MetadataReader.cs:12
System.Reflection.Metadata.HandleKind
HandleKind
Definition
HandleKind.cs:4
System.Reflection.Metadata
Definition
AssemblyExtensions.cs:4
System.Reflection.TypeAttributes
TypeAttributes
Definition
TypeAttributes.cs:5
System.Reflection.Metadata.CustomAttributeHandleCollection
Definition
CustomAttributeHandleCollection.cs:7
System.Reflection.Metadata.EntityHandle
Definition
EntityHandle.cs:6
System.Reflection.Metadata.ExportedTypeHandle.FromRowId
static ExportedTypeHandle FromRowId(int rowId)
Definition
ExportedTypeHandle.cs:16
System.Reflection.Metadata.ExportedTypeHandle
Definition
ExportedTypeHandle.cs:4
System.Reflection.Metadata.ExportedType.Namespace
StringHandle Namespace
Definition
ExportedType.cs:27
System.Reflection.Metadata.ExportedType.Name
StringHandle Name
Definition
ExportedType.cs:25
System.Reflection.Metadata.ExportedType.GetCustomAttributes
CustomAttributeHandleCollection GetCustomAttributes()
Definition
ExportedType.cs:39
System.Reflection.Metadata.ExportedType.reader
readonly MetadataReader reader
Definition
ExportedType.cs:5
System.Reflection.Metadata.ExportedType.IsForwarder
bool IsForwarder
Definition
ExportedType.cs:14
System.Reflection.Metadata.ExportedType.Attributes
TypeAttributes Attributes
Definition
ExportedType.cs:11
System.Reflection.Metadata.ExportedType.ExportedType
ExportedType(MetadataReader reader, int rowId)
Definition
ExportedType.cs:33
System.Reflection.Metadata.ExportedType.Implementation
EntityHandle Implementation
Definition
ExportedType.cs:31
System.Reflection.Metadata.ExportedType.rowId
readonly int rowId
Definition
ExportedType.cs:7
System.Reflection.Metadata.ExportedType
Definition
ExportedType.cs:4
System.Reflection.Metadata.Handle
Definition
Handle.cs:6
System.Reflection.Metadata.NamespaceDefinitionHandle
Definition
NamespaceDefinitionHandle.cs:7
System.Reflection.Metadata.NamespaceDefinition
Definition
NamespaceDefinition.cs:7
System.Reflection.Metadata.StringHandle
Definition
StringHandle.cs:6
source
System.Reflection.Metadata
System.Reflection.Metadata
ExportedType.cs
Generated by
1.10.0