44 instantiations of Row
Mono.Cecil (44)
Mono.Cecil\AssemblyReader.cs (9)
1012
return new
Row
<short, int> (Mixin.NoDataMarker, Mixin.NoDataMarker);
1019
return new
Row
<short, int> ((short) class_layout.Col1, (int) class_layout.Col2);
1037
class_layouts.Add (parent, new
Row
<ushort, uint> (packing_size, class_size));
1259
AddInterfaceMapping (type, new
Row
<uint, MetadataToken> (i, @interface));
1693
semantics [method_rid] = new
Row
<MethodSemanticsAttributes, MetadataToken> (attributes, association);
2037
new
Row
<uint, MetadataToken> (i, ReadMetadataToken (CodedIndex.TypeDefOrRef)));
2407
constants.Add (owner, new
Row
<ElementType, uint> (type, signature));
3254
return new
Row
<byte [], bool> (signature.ReadBytes ((int) length), false);
3263
return new
Row
<byte [], bool> (decompressed_document, true);
Mono.Cecil\AssemblyWriter.cs (12)
1563
var rid = table.AddRow (new
GenericParamConstraintRow
(
1582
var rid = iface_impl_table.AddRow (new
InterfaceImplRow
(
1611
nested_table.AddRow (new
NestedClassRow
(nested.token.RID, type.token.RID));
1666
table.AddRow (new
FieldRVARow
(
1674
table.AddRow (new
FieldLayoutRow
((uint) field.Offset, field.token.RID));
1797
table.AddRow (new
FieldMarshalRow
(
1806
property_map_table.AddRow (new
PropertyMapRow
(type.token.RID, property_rid));
1848
event_map_table.AddRow (new
EventMapRow
(type.token.RID, event_rid));
2082
return new
MethodSpecRow
(
2329
state_machine_method_table.AddRow (new
StateMachineMethodRow
(method_info.Method.MetadataToken.RID, method_info.StateMachineKickOffMethod.MetadataToken.RID));
2372
local_constant_table.AddRow (new
LocalConstantRow
(GetStringIndex (constant.Name), GetBlobIndex (GetConstantSignature(constant))));
2552
var row = new
ImportScopeRow
(parent, targets_index);
Mono.Cecil\MetadataSystem.cs (18)
73
{ "Void", new
Row
<ElementType, bool> (ElementType.Void, false) },
74
{ "Boolean", new
Row
<ElementType, bool> (ElementType.Boolean, true) },
75
{ "Char", new
Row
<ElementType, bool> (ElementType.Char, true) },
76
{ "SByte", new
Row
<ElementType, bool> (ElementType.I1, true) },
77
{ "Byte", new
Row
<ElementType, bool> (ElementType.U1, true) },
78
{ "Int16", new
Row
<ElementType, bool> (ElementType.I2, true) },
79
{ "UInt16", new
Row
<ElementType, bool> (ElementType.U2, true) },
80
{ "Int32", new
Row
<ElementType, bool> (ElementType.I4, true) },
81
{ "UInt32", new
Row
<ElementType, bool> (ElementType.U4, true) },
82
{ "Int64", new
Row
<ElementType, bool> (ElementType.I8, true) },
83
{ "UInt64", new
Row
<ElementType, bool> (ElementType.U8, true) },
84
{ "Single", new
Row
<ElementType, bool> (ElementType.R4, true) },
85
{ "Double", new
Row
<ElementType, bool> (ElementType.R8, true) },
86
{ "String", new
Row
<ElementType, bool> (ElementType.String, false) },
87
{ "TypedReference", new
Row
<ElementType, bool> (ElementType.TypedByRef, false) },
88
{ "IntPtr", new
Row
<ElementType, bool> (ElementType.I, true) },
89
{ "UIntPtr", new
Row
<ElementType, bool> (ElementType.U, true) },
90
{ "Object", new
Row
<ElementType, bool> (ElementType.Object, false) },
Mono.Cecil\ModuleDefinition.cs (1)
690
return Read (new
Row
<string, string> (scope, fullname), (row, reader) => reader.GetTypeReference (row.Col1, row.Col2));
Mono.Cecil\TypeDefinitionCollection.cs (3)
73
name_cache [new
Slot
(type.Namespace, type.Name)] = type;
80
name_cache.Remove (new
Slot
(type.Namespace, type.Name));
94
if (name_cache.TryGetValue (new
Slot
(@namespace, name), out type))
Mono.Cecil\TypeSystem.cs (1)
41
return module.Read (new
Row
<string, string> (@namespace, name), (row, reader) => {
95 references to Row
Mono.Cecil (95)
Mono.Cecil.Cil\PortablePdb.cs (1)
410
mdi.rows = new
Row
<uint, uint> [module_metadata.method_rid - 1];
Mono.Cecil.Cil\Symbols.cs (1)
692
var
row = debug_reader.ReadEmbeddedSourceDebugInformation (index);
Mono.Cecil.Metadata\Row.cs (8)
115
sealed class RowEqualityComparer : IEqualityComparer<
Row
<string, string>>, IEqualityComparer<
Row
<uint, uint>>, IEqualityComparer<Row<uint, uint, uint>> {
117
public bool Equals (
Row
<string, string> x,
Row
<string, string> y)
123
public int GetHashCode (
Row
<string, string> obj)
129
public bool Equals (
Row
<uint, uint> x,
Row
<uint, uint> y)
135
public int GetHashCode (
Row
<uint, uint> obj)
Mono.Cecil\AssemblyReader.cs (16)
1006
public
Row
<short, int> ReadTypeLayout (TypeDefinition type)
1009
Row
<ushort, uint> class_layout;
1029
var class_layouts = metadata.ClassLayouts = new Dictionary<uint,
Row
<ushort, uint>> (length);
1219
Collection<
Row
<uint, MetadataToken>> mapping;
1227
Collection<
Row
<uint, MetadataToken>> mapping;
1253
metadata.Interfaces = new Dictionary<uint, Collection<
Row
<uint, MetadataToken>>> (length);
1263
void AddInterfaceMapping (uint type,
Row
<uint, MetadataToken> @interface)
1598
Row
<MethodSemanticsAttributes, MetadataToken> row;
1686
var semantics = metadata.Semantics = new Dictionary<uint,
Row
<MethodSemanticsAttributes, MetadataToken>> (0);
1996
Collection<
Row
<uint, MetadataToken>> mapping;
2007
Collection<
Row
<uint, MetadataToken>> mapping;
2032
metadata.GenericConstraints = new Dictionary<uint, Collection<
Row
<uint, MetadataToken>>> (length);
2041
void AddGenericConstraintMapping (uint generic_parameter,
Row
<uint, MetadataToken> constraint)
2400
var constants = metadata.Constants = new Dictionary<MetadataToken,
Row
<ElementType, uint>> (length);
2429
Row
<ElementType, uint> row;
3247
public
Row
<byte [], bool> ReadEmbeddedSourceDebugInformation (uint index)
Mono.Cecil\AssemblyWriter.cs (45)
33
using ModuleRow =
Row
<StringIndex, GuidIndex>;
39
using InterfaceImplRow =
Row
<uint, CodedRID>;
43
using FieldMarshalRow =
Row
<CodedRID, BlobIndex>;
46
using FieldLayoutRow =
Row
<uint, RID>;
47
using EventMapRow =
Row
<RID, RID>;
49
using PropertyMapRow =
Row
<RID, RID>;
54
using FieldRVARow =
Row
<RVA, RID>;
60
using NestedClassRow =
Row
<RID, RID>;
62
using MethodSpecRow =
Row
<CodedRID, BlobIndex>;
63
using GenericParamConstraintRow =
Row
<RID, CodedRID>;
65
using MethodDebugInformationRow =
Row
<RID, BlobIndex>;
68
using LocalConstantRow =
Row
<StringIndex, BlobIndex>;
69
using ImportScopeRow =
Row
<RID, BlobIndex>;
70
using StateMachineMethodRow =
Row
<RID, RID>;
254
sealed class ModuleTable : OneRowTable<
ModuleRow
> {
334
sealed class InterfaceImplTable : MetadataTable<
InterfaceImplRow
> {
396
sealed class FieldMarshalTable : SortedTable<
FieldMarshalRow
> {
406
public override int Compare (
FieldMarshalRow
x,
FieldMarshalRow
y)
446
sealed class FieldLayoutTable : SortedTable<
FieldLayoutRow
> {
456
public override int Compare (
FieldLayoutRow
x,
FieldLayoutRow
y)
471
sealed class EventMapTable : MetadataTable<
EventMapRow
> {
494
sealed class PropertyMapTable : MetadataTable<
PropertyMapRow
> {
582
sealed class FieldRVATable : SortedTable<
FieldRVARow
> {
595
public override int Compare (
FieldRVARow
x,
FieldRVARow
y)
674
sealed class NestedClassTable : SortedTable<
NestedClassRow
> {
684
public override int Compare (
NestedClassRow
x,
NestedClassRow
y)
703
sealed class MethodSpecTable : MetadataTable<
MethodSpecRow
> {
714
sealed class GenericParamConstraintTable : MetadataTable<
GenericParamConstraintRow
> {
738
sealed class MethodDebugInformationTable : MetadataTable<
MethodDebugInformationRow
> {
776
sealed class LocalConstantTable : MetadataTable<
LocalConstantRow
> {
787
sealed class ImportScopeTable : MetadataTable<
ImportScopeRow
> {
798
sealed class StateMachineMethodTable : MetadataTable<
StateMachineMethodRow
> {
838
readonly Dictionary<
MethodSpecRow
, MetadataToken> method_spec_map;
891
readonly Dictionary<
ImportScopeRow
, MetadataToken> import_scope_map;
933
method_spec_map = new Dictionary<
MethodSpecRow
, MetadataToken> (row_equality_comparer);
946
this.import_scope_map = new Dictionary<
ImportScopeRow
, MetadataToken> (row_equality_comparer);
974
this.import_scope_map = new Dictionary<
ImportScopeRow
, MetadataToken> (row_equality_comparer);
2063
var
row = CreateMethodSpecRow (method_spec);
2074
void AddMethodSpecification (MethodSpecification method_spec,
MethodSpecRow
row)
2080
MethodSpecRow
CreateMethodSpecRow (MethodSpecification method_spec)
2552
var
row = new ImportScopeRow (parent, targets_index);
Mono.Cecil\MetadataSystem.cs (19)
46
internal Dictionary<uint, Collection<
Row
<uint, MetadataToken>>> Interfaces;
47
internal Dictionary<uint,
Row
<ushort, uint>> ClassLayouts;
51
internal Dictionary<MetadataToken,
Row
<ElementType, uint>> Constants;
57
internal Dictionary<uint,
Row
<MethodSemanticsAttributes, MetadataToken>> Semantics;
60
internal Dictionary<uint, Collection<
Row
<uint, MetadataToken>>> GenericConstraints;
68
static Dictionary<string,
Row
<ElementType, bool>> primitive_value_types;
72
var types = new Dictionary<string,
Row
<ElementType, bool>> (18, StringComparer.Ordinal) {
105
Row
<ElementType, bool> primitive_data;
120
Row
<ElementType, bool> primitive_data;
129
static bool TryGetPrimitiveData (TypeReference type, out
Row
<ElementType, bool> primitive_data)
141
if (Interfaces != null) Interfaces = new Dictionary<uint, Collection<
Row
<uint, MetadataToken>>> (capacity: 0);
142
if (ClassLayouts != null) ClassLayouts = new Dictionary<uint,
Row
<ushort, uint>> (capacity: 0);
146
if (Constants != null) Constants = new Dictionary<MetadataToken,
Row
<ElementType, uint>> (capacity: 0);
152
if (Semantics != null) Semantics = new Dictionary<uint,
Row
<MethodSemanticsAttributes, MetadataToken>> (capacity: 0);
155
if (GenericConstraints != null) GenericConstraints = new Dictionary<uint, Collection<
Row
<uint, MetadataToken>>> (capacity: 0);
256
public bool TryGetInterfaceMapping (TypeDefinition type, out Collection<
Row
<uint, MetadataToken>> mapping)
261
public void SetInterfaceMapping (uint type_rid, Collection<
Row
<uint, MetadataToken>> mapping)
301
public bool TryGetGenericConstraintMapping (GenericParameter generic_parameter, out Collection<
Row
<uint, MetadataToken>> mapping)
306
public void SetGenericConstraintMapping (uint gp_rid, Collection<
Row
<uint, MetadataToken>> mapping)
Mono.Cecil\TypeDefinition.cs (1)
77
var
row = Module.Read (this, (type, reader) => reader.ReadTypeLayout (type));
Mono.Cecil\TypeDefinitionCollection.cs (4)
20
using Slot =
Row
<string, string>;
25
readonly Dictionary<
Slot
, TypeDefinition> name_cache;
30
this.name_cache = new Dictionary<
Slot
, TypeDefinition> (new RowEqualityComparer ());
37
this.name_cache = new Dictionary<
Slot
, TypeDefinition> (capacity, new RowEqualityComparer ());