oh dear
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000005 RID: 5
|
||||
internal class AddressAttribute : Attribute
|
||||
{
|
||||
// Token: 0x04000007 RID: 7
|
||||
public string RVA;
|
||||
|
||||
// Token: 0x04000008 RID: 8
|
||||
public string Offset;
|
||||
|
||||
// Token: 0x04000009 RID: 9
|
||||
public string VA;
|
||||
|
||||
// Token: 0x0400000A RID: 10
|
||||
public string Slot;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x0200000A RID: 10
|
||||
internal class AnalysisFailedException : Exception
|
||||
{
|
||||
// Token: 0x0600000C RID: 12 RVA: 0x000020BA File Offset: 0x000002BA
|
||||
public AnalysisFailedException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000007 RID: 7
|
||||
internal class AttributeAttribute : Attribute
|
||||
{
|
||||
// Token: 0x0400000C RID: 12
|
||||
public string Name;
|
||||
|
||||
// Token: 0x0400000D RID: 13
|
||||
public string RVA;
|
||||
|
||||
// Token: 0x0400000E RID: 14
|
||||
public string Offset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000006 RID: 6
|
||||
internal class FieldOffsetAttribute : Attribute
|
||||
{
|
||||
// Token: 0x0400000B RID: 11
|
||||
public string Offset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000008 RID: 8
|
||||
internal class MetadataOffsetAttribute : Attribute
|
||||
{
|
||||
// Token: 0x0400000F RID: 15
|
||||
public string Offset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Cpp2IlInjected
|
||||
{
|
||||
// Token: 0x02000009 RID: 9
|
||||
internal class TokenAttribute : Attribute
|
||||
{
|
||||
// Token: 0x04000010 RID: 16
|
||||
public string Token;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Runtime.Serialization
|
||||
{
|
||||
/// <summary>Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the <see cref="T:System.Runtime.Serialization.DataContractSerializer" />. To make their type serializable, type authors must define a data contract for their type.</summary>
|
||||
// Token: 0x02000002 RID: 2
|
||||
[Token(Token = "0x2000002")]
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum)]
|
||||
public sealed class DataContractAttribute : Attribute
|
||||
{
|
||||
/// <summary>Gets or sets a value that indicates whether to preserve object reference data.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> to keep object reference data using standard XML; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
|
||||
// Token: 0x17000001 RID: 1
|
||||
// (get) Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000001")]
|
||||
public bool IsReference
|
||||
{
|
||||
[Token(Token = "0x6000001")]
|
||||
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000001 RID: 1
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000001")]
|
||||
private bool isReference;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Runtime.Serialization
|
||||
{
|
||||
/// <summary>When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the <see cref="T:System.Runtime.Serialization.DataContractSerializer" />.</summary>
|
||||
// Token: 0x02000003 RID: 3
|
||||
[Token(Token = "0x2000003")]
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
|
||||
public sealed class DataMemberAttribute : Attribute
|
||||
{
|
||||
/// <summary>Gets or sets a data member name.</summary>
|
||||
/// <returns>The name of the data member. The default is the name of the target that the attribute is applied to.</returns>
|
||||
// Token: 0x17000002 RID: 2
|
||||
// (get) Token: 0x06000002 RID: 2 RVA: 0x00002066 File Offset: 0x00000266
|
||||
[Token(Token = "0x17000002")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x6000002")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the order of serialization and deserialization of a member.</summary>
|
||||
/// <returns>The numeric order of serialization or deserialization.</returns>
|
||||
// Token: 0x17000003 RID: 3
|
||||
// (get) Token: 0x06000003 RID: 3 RVA: 0x0000206C File Offset: 0x0000026C
|
||||
[Token(Token = "0x17000003")]
|
||||
public int Order
|
||||
{
|
||||
[Token(Token = "0x6000003")]
|
||||
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value that instructs the serialization engine that the member must be present when reading or deserializing.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" />, if the member is required; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">the member is not present.</exception>
|
||||
// Token: 0x17000004 RID: 4
|
||||
// (get) Token: 0x06000004 RID: 4 RVA: 0x00002084 File Offset: 0x00000284
|
||||
[Token(Token = "0x17000004")]
|
||||
public bool IsRequired
|
||||
{
|
||||
[Token(Token = "0x6000004")]
|
||||
[Address(RVA = "0x751340", Offset = "0x750140", VA = "0x180751340")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value that specifies whether to serialize the default value for a field or property being serialized.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the default value for a member should be generated in the serialization stream; otherwise, <see langword="false" />. The default is <see langword="true" />.</returns>
|
||||
// Token: 0x17000005 RID: 5
|
||||
// (get) Token: 0x06000005 RID: 5 RVA: 0x0000209C File Offset: 0x0000029C
|
||||
[Token(Token = "0x17000005")]
|
||||
public bool EmitDefaultValue
|
||||
{
|
||||
[Token(Token = "0x6000005")]
|
||||
[Address(RVA = "0x751330", Offset = "0x750130", VA = "0x180751330")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000002 RID: 2
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000002")]
|
||||
private string name;
|
||||
|
||||
// Token: 0x04000003 RID: 3
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000003")]
|
||||
private int order;
|
||||
|
||||
// Token: 0x04000004 RID: 4
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4000004")]
|
||||
private bool isRequired;
|
||||
|
||||
// Token: 0x04000005 RID: 5
|
||||
[FieldOffset(Offset = "0x1D")]
|
||||
[Token(Token = "0x4000005")]
|
||||
private bool emitDefaultValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Runtime.Serialization
|
||||
{
|
||||
/// <summary>Specifies that the field is an enumeration member and should be serialized.</summary>
|
||||
// Token: 0x02000004 RID: 4
|
||||
[Token(Token = "0x2000004")]
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class EnumMemberAttribute : Attribute
|
||||
{
|
||||
/// <summary>Gets or sets the value associated with the enumeration member the attribute is applied to.</summary>
|
||||
/// <returns>The value associated with the enumeration member.</returns>
|
||||
// Token: 0x17000006 RID: 6
|
||||
// (get) Token: 0x06000006 RID: 6 RVA: 0x00002066 File Offset: 0x00000266
|
||||
[Token(Token = "0x17000006")]
|
||||
public string Value
|
||||
{
|
||||
[Token(Token = "0x6000006")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000006 RID: 6
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000006")]
|
||||
private string value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("4.0.0.0")]
|
||||
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{6964D65D-0CBB-4C42-A997-2E6589744D63}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>System.Runtime.Serialization</RootNamespace>
|
||||
<AssemblyName>System.Runtime.Serialization</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<AppDesigner Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Cpp2IlInjected\AddressAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\AnalysisFailedException.cs" />
|
||||
<Compile Include="Cpp2IlInjected\AttributeAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\FieldOffsetAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\MetadataOffsetAttribute.cs" />
|
||||
<Compile Include="Cpp2IlInjected\TokenAttribute.cs" />
|
||||
<Compile Include="DataContractAttribute.cs" />
|
||||
<Compile Include="DataMemberAttribute.cs" />
|
||||
<Compile Include="EnumMemberAttribute.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\mscorlib\mscorlib.csproj">
|
||||
<Project>{6964d65d-0cbb-4c42-a997-2e6589744d25}</Project>
|
||||
<Name>mscorlib</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user