Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
//
// AssemblyTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using Mono.Cecil;
internal sealed class AssemblyTable : IMetadataTable {
public const int RId = 0x20;
RowCollection m_rows;
public AssemblyRow this [int index] {
get { return m_rows [index] as AssemblyRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal AssemblyTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitAssemblyTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class AssemblyRow : IMetadataRow {
public AssemblyHashAlgorithm HashAlgId;
public ushort MajorVersion;
public ushort MinorVersion;
public ushort BuildNumber;
public ushort RevisionNumber;
public AssemblyFlags Flags;
public uint PublicKey;
public uint Name;
public uint Culture;
internal AssemblyRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitAssemblyRow (this);
}
}
}

View File

@@ -0,0 +1,80 @@
//
// AssemblyOSTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class AssemblyOSTable : IMetadataTable {
public const int RId = 0x22;
RowCollection m_rows;
public AssemblyOSRow this [int index] {
get { return m_rows [index] as AssemblyOSRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal AssemblyOSTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitAssemblyOSTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class AssemblyOSRow : IMetadataRow {
public uint OSPlatformID;
public uint OSMajorVersion;
public uint OSMinorVersion;
internal AssemblyOSRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitAssemblyOSRow (this);
}
}
}

View File

@@ -0,0 +1,78 @@
//
// AssemblyProcessorTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class AssemblyProcessorTable : IMetadataTable {
public const int RId = 0x21;
RowCollection m_rows;
public AssemblyProcessorRow this [int index] {
get { return m_rows [index] as AssemblyProcessorRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal AssemblyProcessorTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitAssemblyProcessorTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class AssemblyProcessorRow : IMetadataRow {
public uint Processor;
internal AssemblyProcessorRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitAssemblyProcessorRow (this);
}
}
}

View File

@@ -0,0 +1,88 @@
//
// AssemblyRefTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using Mono.Cecil;
internal sealed class AssemblyRefTable : IMetadataTable {
public const int RId = 0x23;
RowCollection m_rows;
public AssemblyRefRow this [int index] {
get { return m_rows [index] as AssemblyRefRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal AssemblyRefTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitAssemblyRefTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class AssemblyRefRow : IMetadataRow {
public ushort MajorVersion;
public ushort MinorVersion;
public ushort BuildNumber;
public ushort RevisionNumber;
public AssemblyFlags Flags;
public uint PublicKeyOrToken;
public uint Name;
public uint Culture;
public uint HashValue;
internal AssemblyRefRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitAssemblyRefRow (this);
}
}
}

View File

@@ -0,0 +1,81 @@
//
// AssemblyRefOSTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class AssemblyRefOSTable : IMetadataTable {
public const int RId = 0x25;
RowCollection m_rows;
public AssemblyRefOSRow this [int index] {
get { return m_rows [index] as AssemblyRefOSRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal AssemblyRefOSTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitAssemblyRefOSTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class AssemblyRefOSRow : IMetadataRow {
public uint OSPlatformID;
public uint OSMajorVersion;
public uint OSMinorVersion;
public uint AssemblyRef;
internal AssemblyRefOSRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitAssemblyRefOSRow (this);
}
}
}

View File

@@ -0,0 +1,79 @@
//
// AssemblyRefProcessorTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class AssemblyRefProcessorTable : IMetadataTable {
public const int RId = 0x24;
RowCollection m_rows;
public AssemblyRefProcessorRow this [int index] {
get { return m_rows [index] as AssemblyRefProcessorRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal AssemblyRefProcessorTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitAssemblyRefProcessorTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class AssemblyRefProcessorRow : IMetadataRow {
public uint Processor;
public uint AssemblyRef;
internal AssemblyRefProcessorRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitAssemblyRefProcessorRow (this);
}
}
}

View File

@@ -0,0 +1,448 @@
//
// BaseMetadataVisitor.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Thu Feb 22 14:39:38 CET 2007
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal abstract class BaseMetadataVisitor : IMetadataVisitor {
public virtual void VisitMetadataRoot (MetadataRoot root)
{
}
public virtual void VisitMetadataRootHeader (MetadataRoot.MetadataRootHeader header)
{
}
public virtual void VisitMetadataStreamCollection (MetadataStreamCollection streams)
{
}
public virtual void VisitMetadataStream (MetadataStream stream)
{
}
public virtual void VisitMetadataStreamHeader (MetadataStream.MetadataStreamHeader header)
{
}
public virtual void VisitGuidHeap (GuidHeap heap)
{
}
public virtual void VisitStringsHeap (StringsHeap heap)
{
}
public virtual void VisitTablesHeap (TablesHeap heap)
{
}
public virtual void VisitBlobHeap (BlobHeap heap)
{
}
public virtual void VisitUserStringsHeap (UserStringsHeap heap)
{
}
public virtual void TerminateMetadataRoot (MetadataRoot root)
{
}
}
internal abstract class BaseMetadataTableVisitor : IMetadataTableVisitor {
public virtual void VisitTableCollection (TableCollection coll)
{
}
public virtual void VisitAssemblyTable (AssemblyTable table)
{
}
public virtual void VisitAssemblyOSTable (AssemblyOSTable table)
{
}
public virtual void VisitAssemblyProcessorTable (AssemblyProcessorTable table)
{
}
public virtual void VisitAssemblyRefTable (AssemblyRefTable table)
{
}
public virtual void VisitAssemblyRefOSTable (AssemblyRefOSTable table)
{
}
public virtual void VisitAssemblyRefProcessorTable (AssemblyRefProcessorTable table)
{
}
public virtual void VisitClassLayoutTable (ClassLayoutTable table)
{
}
public virtual void VisitConstantTable (ConstantTable table)
{
}
public virtual void VisitCustomAttributeTable (CustomAttributeTable table)
{
}
public virtual void VisitDeclSecurityTable (DeclSecurityTable table)
{
}
public virtual void VisitEventTable (EventTable table)
{
}
public virtual void VisitEventMapTable (EventMapTable table)
{
}
public virtual void VisitEventPtrTable (EventPtrTable table)
{
}
public virtual void VisitExportedTypeTable (ExportedTypeTable table)
{
}
public virtual void VisitFieldTable (FieldTable table)
{
}
public virtual void VisitFieldLayoutTable (FieldLayoutTable table)
{
}
public virtual void VisitFieldMarshalTable (FieldMarshalTable table)
{
}
public virtual void VisitFieldPtrTable (FieldPtrTable table)
{
}
public virtual void VisitFieldRVATable (FieldRVATable table)
{
}
public virtual void VisitFileTable (FileTable table)
{
}
public virtual void VisitGenericParamTable (GenericParamTable table)
{
}
public virtual void VisitGenericParamConstraintTable (GenericParamConstraintTable table)
{
}
public virtual void VisitImplMapTable (ImplMapTable table)
{
}
public virtual void VisitInterfaceImplTable (InterfaceImplTable table)
{
}
public virtual void VisitManifestResourceTable (ManifestResourceTable table)
{
}
public virtual void VisitMemberRefTable (MemberRefTable table)
{
}
public virtual void VisitMethodTable (MethodTable table)
{
}
public virtual void VisitMethodImplTable (MethodImplTable table)
{
}
public virtual void VisitMethodPtrTable (MethodPtrTable table)
{
}
public virtual void VisitMethodSemanticsTable (MethodSemanticsTable table)
{
}
public virtual void VisitMethodSpecTable (MethodSpecTable table)
{
}
public virtual void VisitModuleTable (ModuleTable table)
{
}
public virtual void VisitModuleRefTable (ModuleRefTable table)
{
}
public virtual void VisitNestedClassTable (NestedClassTable table)
{
}
public virtual void VisitParamTable (ParamTable table)
{
}
public virtual void VisitParamPtrTable (ParamPtrTable table)
{
}
public virtual void VisitPropertyTable (PropertyTable table)
{
}
public virtual void VisitPropertyMapTable (PropertyMapTable table)
{
}
public virtual void VisitPropertyPtrTable (PropertyPtrTable table)
{
}
public virtual void VisitStandAloneSigTable (StandAloneSigTable table)
{
}
public virtual void VisitTypeDefTable (TypeDefTable table)
{
}
public virtual void VisitTypeRefTable (TypeRefTable table)
{
}
public virtual void VisitTypeSpecTable (TypeSpecTable table)
{
}
public virtual void TerminateTableCollection (TableCollection coll)
{
}
public abstract IMetadataRowVisitor GetRowVisitor();
}
internal abstract class BaseMetadataRowVisitor : IMetadataRowVisitor {
public virtual void VisitRowCollection (RowCollection coll)
{
}
public virtual void VisitAssemblyRow (AssemblyRow row)
{
}
public virtual void VisitAssemblyOSRow (AssemblyOSRow row)
{
}
public virtual void VisitAssemblyProcessorRow (AssemblyProcessorRow row)
{
}
public virtual void VisitAssemblyRefRow (AssemblyRefRow row)
{
}
public virtual void VisitAssemblyRefOSRow (AssemblyRefOSRow row)
{
}
public virtual void VisitAssemblyRefProcessorRow (AssemblyRefProcessorRow row)
{
}
public virtual void VisitClassLayoutRow (ClassLayoutRow row)
{
}
public virtual void VisitConstantRow (ConstantRow row)
{
}
public virtual void VisitCustomAttributeRow (CustomAttributeRow row)
{
}
public virtual void VisitDeclSecurityRow (DeclSecurityRow row)
{
}
public virtual void VisitEventRow (EventRow row)
{
}
public virtual void VisitEventMapRow (EventMapRow row)
{
}
public virtual void VisitEventPtrRow (EventPtrRow row)
{
}
public virtual void VisitExportedTypeRow (ExportedTypeRow row)
{
}
public virtual void VisitFieldRow (FieldRow row)
{
}
public virtual void VisitFieldLayoutRow (FieldLayoutRow row)
{
}
public virtual void VisitFieldMarshalRow (FieldMarshalRow row)
{
}
public virtual void VisitFieldPtrRow (FieldPtrRow row)
{
}
public virtual void VisitFieldRVARow (FieldRVARow row)
{
}
public virtual void VisitFileRow (FileRow row)
{
}
public virtual void VisitGenericParamRow (GenericParamRow row)
{
}
public virtual void VisitGenericParamConstraintRow (GenericParamConstraintRow row)
{
}
public virtual void VisitImplMapRow (ImplMapRow row)
{
}
public virtual void VisitInterfaceImplRow (InterfaceImplRow row)
{
}
public virtual void VisitManifestResourceRow (ManifestResourceRow row)
{
}
public virtual void VisitMemberRefRow (MemberRefRow row)
{
}
public virtual void VisitMethodRow (MethodRow row)
{
}
public virtual void VisitMethodImplRow (MethodImplRow row)
{
}
public virtual void VisitMethodPtrRow (MethodPtrRow row)
{
}
public virtual void VisitMethodSemanticsRow (MethodSemanticsRow row)
{
}
public virtual void VisitMethodSpecRow (MethodSpecRow row)
{
}
public virtual void VisitModuleRow (ModuleRow row)
{
}
public virtual void VisitModuleRefRow (ModuleRefRow row)
{
}
public virtual void VisitNestedClassRow (NestedClassRow row)
{
}
public virtual void VisitParamRow (ParamRow row)
{
}
public virtual void VisitParamPtrRow (ParamPtrRow row)
{
}
public virtual void VisitPropertyRow (PropertyRow row)
{
}
public virtual void VisitPropertyMapRow (PropertyMapRow row)
{
}
public virtual void VisitPropertyPtrRow (PropertyPtrRow row)
{
}
public virtual void VisitStandAloneSigRow (StandAloneSigRow row)
{
}
public virtual void VisitTypeDefRow (TypeDefRow row)
{
}
public virtual void VisitTypeRefRow (TypeRefRow row)
{
}
public virtual void VisitTypeSpecRow (TypeSpecRow row)
{
}
public virtual void TerminateRowCollection (RowCollection coll)
{
}
}
}

View File

@@ -0,0 +1,90 @@
//
// BlobHeap.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using System;
using System.Collections;
using System.IO;
internal class BlobHeap : MetadataHeap {
internal BlobHeap (MetadataStream stream) : base (stream, MetadataStream.Blob)
{
}
public byte [] Read (uint index)
{
return ReadBytesFromStream (index);
}
public BinaryReader GetReader (uint index)
{
return new BinaryReader (new MemoryStream (Read (index)));
}
public override void Accept (IMetadataVisitor visitor)
{
visitor.VisitBlobHeap (this);
}
}
class ByteArrayEqualityComparer : IHashCodeProvider, IComparer {
public static readonly ByteArrayEqualityComparer Instance = new ByteArrayEqualityComparer ();
public int GetHashCode (object obj)
{
byte [] array = (byte []) obj;
int hash = 0;
for (int i = 0; i < array.Length; i++)
hash = (hash * 37) ^ array [i];
return hash;
}
public int Compare (object a, object b)
{
byte [] x = (byte []) a;
byte [] y = (byte []) b;
if (x == null || y == null)
return x == y ? 0 : 1;
if (x.Length != y.Length)
return 1;
for (int i = 0; i < x.Length; i++)
if (x [i] != y [i])
return 1;
return 0;
}
}
}

View File

@@ -0,0 +1,80 @@
//
// ClassLayoutTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class ClassLayoutTable : IMetadataTable {
public const int RId = 0x0f;
RowCollection m_rows;
public ClassLayoutRow this [int index] {
get { return m_rows [index] as ClassLayoutRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal ClassLayoutTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitClassLayoutTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class ClassLayoutRow : IMetadataRow {
public ushort PackingSize;
public uint ClassSize;
public uint Parent;
internal ClassLayoutRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitClassLayoutRow (this);
}
}
}

View File

@@ -0,0 +1,49 @@
//
// CodedIndex.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Mar 20 16:02:16 +0100 2007
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal enum CodedIndex {
TypeDefOrRef,
HasConstant,
HasCustomAttribute,
HasFieldMarshal,
HasDeclSecurity,
MemberRefParent,
HasSemantics,
MethodDefOrRef,
MemberForwarded,
Implementation,
CustomAttributeType,
ResolutionScope,
TypeOrMethodDef
}
}

View File

@@ -0,0 +1,80 @@
//
// ConstantTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class ConstantTable : IMetadataTable {
public const int RId = 0x0b;
RowCollection m_rows;
public ConstantRow this [int index] {
get { return m_rows [index] as ConstantRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal ConstantTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitConstantTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class ConstantRow : IMetadataRow {
public ElementType Type;
public MetadataToken Parent;
public uint Value;
internal ConstantRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitConstantRow (this);
}
}
}

View File

@@ -0,0 +1,83 @@
//
// CultureUtils.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using System;
using System.Collections;
using System.Globalization;
sealed class CultureUtils {
static IDictionary m_cultures;
CultureUtils ()
{
}
static void LoadCultures ()
{
if (m_cultures != null)
return;
#if CF_1_0 || CF_2_0
CultureInfo [] cultures = new CultureInfo [0];
#else
CultureInfo [] cultures = CultureInfo.GetCultures (CultureTypes.AllCultures);
#endif
m_cultures = new Hashtable (cultures.Length + 2);
foreach (CultureInfo ci in cultures)
if (!m_cultures.Contains (ci.Name))
m_cultures.Add (ci.Name, ci);
if (!m_cultures.Contains (string.Empty))
m_cultures.Add (string.Empty, CultureInfo.InvariantCulture);
m_cultures.Add ("neutral", CultureInfo.InvariantCulture);
}
public static bool IsValid (string culture)
{
if (culture == null)
throw new ArgumentNullException ("culture");
LoadCultures ();
return m_cultures.Contains (culture);
}
public static CultureInfo GetCultureInfo (string culture)
{
if (IsValid (culture))
return m_cultures [culture] as CultureInfo;
return CultureInfo.InvariantCulture;
}
}
}

View File

@@ -0,0 +1,80 @@
//
// CustomAttributeTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:25 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class CustomAttributeTable : IMetadataTable {
public const int RId = 0x0c;
RowCollection m_rows;
public CustomAttributeRow this [int index] {
get { return m_rows [index] as CustomAttributeRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal CustomAttributeTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitCustomAttributeTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class CustomAttributeRow : IMetadataRow {
public MetadataToken Parent;
public MetadataToken Type;
public uint Value;
internal CustomAttributeRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitCustomAttributeRow (this);
}
}
}

View File

@@ -0,0 +1,82 @@
//
// DeclSecurityTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:26 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using Mono.Cecil;
internal sealed class DeclSecurityTable : IMetadataTable {
public const int RId = 0x0e;
RowCollection m_rows;
public DeclSecurityRow this [int index] {
get { return m_rows [index] as DeclSecurityRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal DeclSecurityTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitDeclSecurityTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class DeclSecurityRow : IMetadataRow {
public SecurityAction Action;
public MetadataToken Parent;
public uint PermissionSet;
internal DeclSecurityRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitDeclSecurityRow (this);
}
}
}

View File

@@ -0,0 +1,73 @@
//
// ElementType.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal enum ElementType {
End = 0x00, // Marks end of a list
Void = 0x01,
Boolean = 0x02,
Char = 0x03,
I1 = 0x04,
U1 = 0x05,
I2 = 0x06,
U2 = 0x07,
I4 = 0x08,
U4 = 0x09,
I8 = 0x0a,
U8 = 0x0b,
R4 = 0x0c,
R8 = 0x0d,
String = 0x0e,
Ptr = 0x0f, // Followed by <type> token
ByRef = 0x10, // Followed by <type> token
ValueType = 0x11, // Followed by <type> token
Class = 0x12, // Followed by <type> token
Var = 0x13, // Followed by generic parameter number
Array = 0x14, // <type> <rank> <boundsCount> <bound1> <loCount> <lo1>
GenericInst = 0x15, // <type> <type-arg-count> <type-1> ... <type-n> */
TypedByRef = 0x16,
I = 0x18, // System.IntPtr
U = 0x19, // System.UIntPtr
FnPtr = 0x1b, // Followed by full method signature
Object = 0x1c, // System.Object
SzArray = 0x1d, // Single-dim array with 0 lower bound
MVar = 0x1e, // Followed by generic parameter number
CModReqD = 0x1f, // Required modifier : followed by a TypeDef or TypeRef token
CModOpt = 0x20, // Optional modifier : followed by a TypeDef or TypeRef token
Internal = 0x21, // Implemented within the CLI
Modifier = 0x40, // Or'd with following element types
Sentinel = 0x41, // Sentinel for varargs method signature
Pinned = 0x45, // Denotes a local variable that points at a pinned object
// special undocumented constants
Type = 0x50,
Boxed = 0x51,
Enum = 0x55
}
}

View File

@@ -0,0 +1,82 @@
//
// EventTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:26 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using Mono.Cecil;
internal sealed class EventTable : IMetadataTable {
public const int RId = 0x14;
RowCollection m_rows;
public EventRow this [int index] {
get { return m_rows [index] as EventRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal EventTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitEventTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class EventRow : IMetadataRow {
public EventAttributes EventFlags;
public uint Name;
public MetadataToken EventType;
internal EventRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitEventRow (this);
}
}
}

View File

@@ -0,0 +1,79 @@
//
// EventMapTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:26 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class EventMapTable : IMetadataTable {
public const int RId = 0x12;
RowCollection m_rows;
public EventMapRow this [int index] {
get { return m_rows [index] as EventMapRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal EventMapTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitEventMapTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class EventMapRow : IMetadataRow {
public uint Parent;
public uint EventList;
internal EventMapRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitEventMapRow (this);
}
}
}

View File

@@ -0,0 +1,78 @@
//
// EventPtrTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Thu Feb 22 14:39:38 CET 2007
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
internal sealed class EventPtrTable : IMetadataTable {
public const int RId = 0x13;
RowCollection m_rows;
public EventPtrRow this [int index] {
get { return m_rows [index] as EventPtrRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal EventPtrTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitEventPtrTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class EventPtrRow : IMetadataRow {
public uint Event;
internal EventPtrRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitEventPtrRow (this);
}
}
}

View File

@@ -0,0 +1,84 @@
//
// ExportedTypeTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:26 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using Mono.Cecil;
internal sealed class ExportedTypeTable : IMetadataTable {
public const int RId = 0x27;
RowCollection m_rows;
public ExportedTypeRow this [int index] {
get { return m_rows [index] as ExportedTypeRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal ExportedTypeTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitExportedTypeTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class ExportedTypeRow : IMetadataRow {
public TypeAttributes Flags;
public uint TypeDefId;
public uint TypeName;
public uint TypeNamespace;
public MetadataToken Implementation;
internal ExportedTypeRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitExportedTypeRow (this);
}
}
}

View File

@@ -0,0 +1,82 @@
//
// FieldTable.cs
//
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Generated by /CodeGen/cecil-gen.rb do not edit
// Tue Oct 10 23:08:26 CEST 2006
//
// (C) 2005 Jb Evain
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Mono.Cecil.Metadata {
using Mono.Cecil;
internal sealed class FieldTable : IMetadataTable {
public const int RId = 0x04;
RowCollection m_rows;
public FieldRow this [int index] {
get { return m_rows [index] as FieldRow; }
set { m_rows [index] = value; }
}
public RowCollection Rows {
get { return m_rows; }
set { m_rows = value; }
}
public int Id {
get { return RId; }
}
internal FieldTable ()
{
}
public void Accept (IMetadataTableVisitor visitor)
{
visitor.VisitFieldTable (this);
this.Rows.Accept (visitor.GetRowVisitor ());
}
}
internal sealed class FieldRow : IMetadataRow {
public FieldAttributes Flags;
public uint Name;
public uint Signature;
internal FieldRow ()
{
}
public void Accept (IMetadataRowVisitor visitor)
{
visitor.VisitFieldRow (this);
}
}
}

Some files were not shown because too many files have changed in this diff Show More