Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Constant.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Metadata
;
2
3
public
readonly
struct
Constant
4
{
5
private
readonly
MetadataReader
_reader
;
6
7
private
readonly
int
_rowId
;
8
9
private
ConstantHandle
Handle
=>
ConstantHandle
.
FromRowId
(
_rowId
);
10
11
public
ConstantTypeCode
TypeCode
=>
_reader
.
ConstantTable
.GetType(
Handle
);
12
13
public
BlobHandle
Value
=>
_reader
.
ConstantTable
.GetValue(
Handle
);
14
15
public
EntityHandle
Parent
=>
_reader
.
ConstantTable
.GetParent(
Handle
);
16
17
internal
Constant
(
MetadataReader
reader,
int
rowId)
18
{
19
_reader
= reader;
20
_rowId
= rowId;
21
}
22
}
System.Reflection.Metadata.MetadataReader.ConstantTable
ConstantTableReader ConstantTable
Definition
MetadataReader.cs:97
System.Reflection.Metadata.MetadataReader
Definition
MetadataReader.cs:12
System.Reflection.Metadata.ConstantTypeCode
ConstantTypeCode
Definition
ConstantTypeCode.cs:4
System.Reflection.Metadata
Definition
AssemblyExtensions.cs:4
System.TypeCode
TypeCode
Definition
TypeCode.cs:4
System.Reflection.Metadata.BlobHandle
Definition
BlobHandle.cs:6
System.Reflection.Metadata.ConstantHandle.FromRowId
static ConstantHandle FromRowId(int rowId)
Definition
ConstantHandle.cs:16
System.Reflection.Metadata.ConstantHandle
Definition
ConstantHandle.cs:4
System.Reflection.Metadata.Constant.Value
BlobHandle Value
Definition
Constant.cs:13
System.Reflection.Metadata.Constant.Constant
Constant(MetadataReader reader, int rowId)
Definition
Constant.cs:17
System.Reflection.Metadata.Constant.Parent
EntityHandle Parent
Definition
Constant.cs:15
System.Reflection.Metadata.Constant._rowId
readonly int _rowId
Definition
Constant.cs:7
System.Reflection.Metadata.Constant._reader
readonly MetadataReader _reader
Definition
Constant.cs:5
System.Reflection.Metadata.Constant
Definition
Constant.cs:4
System.Reflection.Metadata.EntityHandle
Definition
EntityHandle.cs:6
System.Reflection.Metadata.Handle
Definition
Handle.cs:6
source
System.Reflection.Metadata
System.Reflection.Metadata
Constant.cs
Generated by
1.10.0