repo_name
stringclasses 6
values | pr_number
int64 512
78.9k
| pr_title
stringlengths 3
144
| pr_description
stringlengths 0
30.3k
| author
stringlengths 2
21
| date_created
timestamp[ns, tz=UTC] | date_merged
timestamp[ns, tz=UTC] | previous_commit
stringlengths 40
40
| pr_commit
stringlengths 40
40
| query
stringlengths 17
30.4k
| filepath
stringlengths 9
210
| before_content
stringlengths 0
112M
| after_content
stringlengths 0
112M
| label
int64 -1
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b43121/b43121.il | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'b43121' {}
.assembly extern xunit.core {}
.class ILGEN_0x1495dac4 {
.field static float64 field_0x0
.field static unsigned int64[] field_0x1
.field static int8 field_0x2
.field static unsigned int32 field_0x3
.field static unsigned int32[] field_0x4
.field static unsigned int8[] field_0x5
.method static int32 Method_0xb72b8337(int32 Arg_0x0) {
.maxstack 15
.locals (unsigned int32[] local_0x0,unsigned int8[] local_0x1,float32[] local_0x2,int64 local_0x3)
ldc.i4 255
newarr [mscorlib]System.UInt32
stloc local_0x0
ldc.i4 255
newarr [mscorlib]System.Byte
stloc local_0x1
ldc.i4 255
newarr [mscorlib]System.Single
stloc local_0x2
ldc.i8 0x66ae57873565340c
stloc local_0x3
//BEGIN INIT OF STATIC FIELDS
ldc.r8 float64(0xc1ff5dd7fae1e7a7)
stsfld float64 ILGEN_0x1495dac4::field_0x0
ldc.i4 255
newarr [mscorlib]System.UInt64
stsfld unsigned int64[] ILGEN_0x1495dac4::field_0x1
ldc.i4 0x4b37527d
stsfld int8 ILGEN_0x1495dac4::field_0x2
ldc.i4 0x4e999ceb
stsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
ldc.i4 255
newarr [mscorlib]System.UInt32
stsfld unsigned int32[] ILGEN_0x1495dac4::field_0x4
ldc.i4 255
newarr [mscorlib]System.Byte
stsfld unsigned int8[] ILGEN_0x1495dac4::field_0x5
//END INIT OF STATIC FIELDS
BLOCK_1:
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
Start_Orphan_0:
Start_Orphan_1:
ldc.i4.5
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
bgt.un Branch_0x2
ldc.i4.4
starg Arg_0x0
br Branch_0x3
Branch_0x2:
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
ldc.i4 0x6cb5d927
bgt.un Branch_0x4
nop
br Branch_0x5
Branch_0x4:
nop
Branch_0x5:
Branch_0x3:
End_Orphan_1:
ldloc local_0x1
pop
End_Orphan_0:
ldc.i4.6
conv.r8
ckfinite
ldc.i4.3
ldc.i4 0xf18833d1
shr.un
conv.r.un
bgt.un Branch_0x8
ldc.i4.7
conv.ovf.i2.un
conv.u4
br Branch_0x9
Branch_0x8:
ldc.i4.8
Branch_0x9:
ldloc local_0x3
ldc.i8 0x95761a65bda18b6
sub.ovf
conv.u
Start_Orphan_8:
ldsfld unsigned int64[] ILGEN_0x1495dac4::field_0x1
ldc.i4.5
ldelema [mscorlib]System.UInt64
ldloc local_0x3
stind.i8
End_Orphan_8:
ldc.i4.1
conv.u1
newarr [mscorlib]System.Single
ldlen
mul
cgt
Start_Orphan_9:
ldsfld unsigned int32[] ILGEN_0x1495dac4::field_0x4
ldarg Arg_0x0
ldc.i4.s 84
clt.un
ldelema [mscorlib]System.UInt32
Start_Orphan_b:
ldloc local_0x2
ldc.i4.6
ldc.r8 float64(0xbaeef0145159f883)
stelem.r4
End_Orphan_b:
ldc.i4.5
ldc.i4.0
div
ldc.i4.s -35
conv.u2
rem
stind.i4
End_Orphan_9:
ldloc local_0x2
ldc.i4.8
ldelem.r4
conv.ovf.u2
conv.ovf.i
ldc.i4.5
conv.r8
ckfinite
ldc.i4.3
conv.u1
newarr [mscorlib]System.Single
ldc.i4.2
conv.u4
ldelem.r4
clt.un
mul.ovf.un
bge.un Branch_0x6
ldc.i4 0x137da1c5
conv.ovf.u
ldloc local_0x3
conv.ovf.i4
add.ovf
conv.i4
conv.ovf.u
br Branch_0x7
Branch_0x6:
ldloca local_0x3
ldind.i8
conv.r4
conv.ovf.i1
Start_Orphan_1a:
ldc.i4.5
conv.u1
newarr [mscorlib]System.UInt64
ldc.i4.6
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
clt.un
ldloca local_0x3
ldind.i8
stelem.i8
End_Orphan_1a:
Start_Orphan_1c:
ldsflda unsigned int32 ILGEN_0x1495dac4::field_0x3
ldarg Arg_0x0
stind.i4
End_Orphan_1c:
ldc.i4.0
conv.ovf.i8.un
conv.ovf.i2.un
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
conv.ovf.i4.un
mul.ovf
mul.ovf
Branch_0x7:
bgt.un Branch_0x0
Start_Orphan_20:
Start_Orphan_21:
ldloc local_0x2
ldc.i4.0
ldelema [mscorlib]System.Single
ldc.r4 float32(0x51b5a2f7)
stind.r4
End_Orphan_21:
ldloc local_0x1
stsfld unsigned int8[] ILGEN_0x1495dac4::field_0x5
End_Orphan_20:
ldc.i4.7
conv.r8
br Branch_0x1
Branch_0x0:
ldloc local_0x3
conv.r.un
Branch_0x1:
conv.i2
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 20
.try {
ldc.i4 0x622e3099
call int32 ILGEN_0x1495dac4::Method_0xb72b8337(int32 Arg_0x0)
pop
leave out_of_here
} catch [mscorlib]System.DivideByZeroException {
pop
leave out_of_here
}
out_of_here: ldc.i4 100 ret
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'b43121' {}
.assembly extern xunit.core {}
.class ILGEN_0x1495dac4 {
.field static float64 field_0x0
.field static unsigned int64[] field_0x1
.field static int8 field_0x2
.field static unsigned int32 field_0x3
.field static unsigned int32[] field_0x4
.field static unsigned int8[] field_0x5
.method static int32 Method_0xb72b8337(int32 Arg_0x0) {
.maxstack 15
.locals (unsigned int32[] local_0x0,unsigned int8[] local_0x1,float32[] local_0x2,int64 local_0x3)
ldc.i4 255
newarr [mscorlib]System.UInt32
stloc local_0x0
ldc.i4 255
newarr [mscorlib]System.Byte
stloc local_0x1
ldc.i4 255
newarr [mscorlib]System.Single
stloc local_0x2
ldc.i8 0x66ae57873565340c
stloc local_0x3
//BEGIN INIT OF STATIC FIELDS
ldc.r8 float64(0xc1ff5dd7fae1e7a7)
stsfld float64 ILGEN_0x1495dac4::field_0x0
ldc.i4 255
newarr [mscorlib]System.UInt64
stsfld unsigned int64[] ILGEN_0x1495dac4::field_0x1
ldc.i4 0x4b37527d
stsfld int8 ILGEN_0x1495dac4::field_0x2
ldc.i4 0x4e999ceb
stsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
ldc.i4 255
newarr [mscorlib]System.UInt32
stsfld unsigned int32[] ILGEN_0x1495dac4::field_0x4
ldc.i4 255
newarr [mscorlib]System.Byte
stsfld unsigned int8[] ILGEN_0x1495dac4::field_0x5
//END INIT OF STATIC FIELDS
BLOCK_1:
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
Start_Orphan_0:
Start_Orphan_1:
ldc.i4.5
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
bgt.un Branch_0x2
ldc.i4.4
starg Arg_0x0
br Branch_0x3
Branch_0x2:
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
ldc.i4 0x6cb5d927
bgt.un Branch_0x4
nop
br Branch_0x5
Branch_0x4:
nop
Branch_0x5:
Branch_0x3:
End_Orphan_1:
ldloc local_0x1
pop
End_Orphan_0:
ldc.i4.6
conv.r8
ckfinite
ldc.i4.3
ldc.i4 0xf18833d1
shr.un
conv.r.un
bgt.un Branch_0x8
ldc.i4.7
conv.ovf.i2.un
conv.u4
br Branch_0x9
Branch_0x8:
ldc.i4.8
Branch_0x9:
ldloc local_0x3
ldc.i8 0x95761a65bda18b6
sub.ovf
conv.u
Start_Orphan_8:
ldsfld unsigned int64[] ILGEN_0x1495dac4::field_0x1
ldc.i4.5
ldelema [mscorlib]System.UInt64
ldloc local_0x3
stind.i8
End_Orphan_8:
ldc.i4.1
conv.u1
newarr [mscorlib]System.Single
ldlen
mul
cgt
Start_Orphan_9:
ldsfld unsigned int32[] ILGEN_0x1495dac4::field_0x4
ldarg Arg_0x0
ldc.i4.s 84
clt.un
ldelema [mscorlib]System.UInt32
Start_Orphan_b:
ldloc local_0x2
ldc.i4.6
ldc.r8 float64(0xbaeef0145159f883)
stelem.r4
End_Orphan_b:
ldc.i4.5
ldc.i4.0
div
ldc.i4.s -35
conv.u2
rem
stind.i4
End_Orphan_9:
ldloc local_0x2
ldc.i4.8
ldelem.r4
conv.ovf.u2
conv.ovf.i
ldc.i4.5
conv.r8
ckfinite
ldc.i4.3
conv.u1
newarr [mscorlib]System.Single
ldc.i4.2
conv.u4
ldelem.r4
clt.un
mul.ovf.un
bge.un Branch_0x6
ldc.i4 0x137da1c5
conv.ovf.u
ldloc local_0x3
conv.ovf.i4
add.ovf
conv.i4
conv.ovf.u
br Branch_0x7
Branch_0x6:
ldloca local_0x3
ldind.i8
conv.r4
conv.ovf.i1
Start_Orphan_1a:
ldc.i4.5
conv.u1
newarr [mscorlib]System.UInt64
ldc.i4.6
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
clt.un
ldloca local_0x3
ldind.i8
stelem.i8
End_Orphan_1a:
Start_Orphan_1c:
ldsflda unsigned int32 ILGEN_0x1495dac4::field_0x3
ldarg Arg_0x0
stind.i4
End_Orphan_1c:
ldc.i4.0
conv.ovf.i8.un
conv.ovf.i2.un
ldsfld unsigned int32 ILGEN_0x1495dac4::field_0x3
conv.ovf.i4.un
mul.ovf
mul.ovf
Branch_0x7:
bgt.un Branch_0x0
Start_Orphan_20:
Start_Orphan_21:
ldloc local_0x2
ldc.i4.0
ldelema [mscorlib]System.Single
ldc.r4 float32(0x51b5a2f7)
stind.r4
End_Orphan_21:
ldloc local_0x1
stsfld unsigned int8[] ILGEN_0x1495dac4::field_0x5
End_Orphan_20:
ldc.i4.7
conv.r8
br Branch_0x1
Branch_0x0:
ldloc local_0x3
conv.r.un
Branch_0x1:
conv.i2
ret
}
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 20
.try {
ldc.i4 0x622e3099
call int32 ILGEN_0x1495dac4::Method_0xb72b8337(int32 Arg_0x0)
pop
leave out_of_here
} catch [mscorlib]System.DivideByZeroException {
pop
leave out_of_here
}
out_of_here: ldc.i4 100 ret
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/opt/Inline/tests/Inline_SideAffects.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>None</DebugType>
<NoStandardLib>True</NoStandardLib>
<Noconfig>True</Noconfig>
</PropertyGroup>
<ItemGroup>
<Compile Include="Inline_SideAffects.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>None</DebugType>
<NoStandardLib>True</NoStandardLib>
<Noconfig>True</Noconfig>
</PropertyGroup>
<ItemGroup>
<Compile Include="Inline_SideAffects.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/installer/tests/Assets/TestProjects/StandaloneApp/StandaloneApp.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<OutputType>Exe</OutputType>
<RuntimeIdentifier>$(TestTargetRid)</RuntimeIdentifier>
<RuntimeFrameworkVersion>$(MNAVersion)</RuntimeFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<OutputType>Exe</OutputType>
<RuntimeIdentifier>$(TestTargetRid)</RuntimeIdentifier>
<RuntimeFrameworkVersion>$(MNAVersion)</RuntimeFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest589/Generated589.il | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated589 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public sequential sealed MyStruct639`2<T0, T1>
extends [mscorlib]System.ValueType
implements class IBase2`2<!T1,!T0>, class IBase2`2<class BaseClass1,!T1>
{
.pack 0
.size 1
.method public hidebysig virtual instance string Method7<M0>() cil managed noinlining {
ldstr "MyStruct639::Method7.4659<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<T1,T0>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<!T1,!T0>::Method7<[1]>()
ldstr "MyStruct639::Method7.MI.4660<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot instance string ClassMethod1272<M0>() cil managed noinlining {
ldstr "MyStruct639::ClassMethod1272.4662<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret }
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated589 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.T.T<T0,T1,(valuetype MyStruct639`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.T.T<T0,T1,(valuetype MyStruct639`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<!!T0,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<!!T0,!!T1>
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.A.T<T1,(valuetype MyStruct639`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.A.T<T1,(valuetype MyStruct639`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<!!T1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.A.A<(valuetype MyStruct639`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.A.A<(valuetype MyStruct639`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.A.B<(valuetype MyStruct639`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.A.B<(valuetype MyStruct639`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.B.T<T1,(valuetype MyStruct639`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.B.T<T1,(valuetype MyStruct639`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<!!T1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.B.A<(valuetype MyStruct639`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.B.A<(valuetype MyStruct639`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_1)
ldloca V_1
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloca V_1
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ClassMethod1272<object>()
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ToString() pop
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_2)
ldloca V_2
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloca V_2
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ClassMethod1272<object>()
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ToString() pop
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_3)
ldloca V_3
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloca V_3
dup
call instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ClassMethod1272<object>()
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ToString() pop
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_5)
ldloca V_5
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_6)
ldloca V_6
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV12
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV13
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.B.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV14
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14:
.try { ldloc V_6
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV15
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15:
.try { ldloc V_6
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV16
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16:
.try { ldloc V_6
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV17
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV18
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV19
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV20
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV21
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV22
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV23
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23:
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_7)
ldloca V_7
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
.try { ldloc V_7
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV24
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV24} LV24:
.try { ldloc V_7
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV25
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV25} LV25:
.try { ldloc V_7
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.B<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV26
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV26} LV26:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV27
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV27} LV27:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV28
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV28} LV28:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.A<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV29
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV29} LV29:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV30
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV30} LV30:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV31
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV31} LV31:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.A.A<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV32
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV32} LV32:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV33
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV33} LV33:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV34
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV34} LV34:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.B<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV35
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV35} LV35:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_9)
ldloca V_9
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
.try { ldloc V_9
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_9
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_9
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_10)
ldloca V_10
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
.try { ldloc V_10
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_10
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_10
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_11)
ldloca V_11
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
.try { ldloc V_11
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_11
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_11
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.B.A<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_13)
ldloca V_13
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ClassMethod1272<object>()
calli default string(object)
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0> ldnull
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_14)
ldloca V_14
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ClassMethod1272<object>()
calli default string(object)
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1> ldnull
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_15)
ldloca V_15
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ClassMethod1272<object>()
calli default string(object)
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0> ldnull
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated589::MethodCallingTest()
call void Generated589::ConstrainedCallsTest()
call void Generated589::StructConstrainedInterfaceCallsTest()
call void Generated589::CalliTest()
ldc.i4 100
ret
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated589 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public sequential sealed MyStruct639`2<T0, T1>
extends [mscorlib]System.ValueType
implements class IBase2`2<!T1,!T0>, class IBase2`2<class BaseClass1,!T1>
{
.pack 0
.size 1
.method public hidebysig virtual instance string Method7<M0>() cil managed noinlining {
ldstr "MyStruct639::Method7.4659<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase2<T1,T0>.Method7'<M0>() cil managed noinlining {
.override method instance string class IBase2`2<!T1,!T0>::Method7<[1]>()
ldstr "MyStruct639::Method7.MI.4660<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot instance string ClassMethod1272<M0>() cil managed noinlining {
ldstr "MyStruct639::ClassMethod1272.4662<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret }
.method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret }
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated589 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.T.T<T0,T1,(valuetype MyStruct639`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.T.T<T0,T1,(valuetype MyStruct639`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<!!T0,!!T1>
callvirt instance string class IBase2`2<!!T1,!!T0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<!!T0,!!T1>
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.A.T<T1,(valuetype MyStruct639`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.A.T<T1,(valuetype MyStruct639`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<!!T1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,!!T1>
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.A.A<(valuetype MyStruct639`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.A.A<(valuetype MyStruct639`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.A.B<(valuetype MyStruct639`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.A.B<(valuetype MyStruct639`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.B.T<T1,(valuetype MyStruct639`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.B.T<T1,(valuetype MyStruct639`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<!!T1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,!!T1>
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.MyStruct639.B.A<(valuetype MyStruct639`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 7
.locals init (string[] actualResults)
ldc.i4.s 2
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.MyStruct639.B.A<(valuetype MyStruct639`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 2
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_1)
ldloca V_1
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloca V_1
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ClassMethod1272<object>()
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ToString() pop
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_1
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_2)
ldloca V_2
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloca V_2
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ClassMethod1272<object>()
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Equals(object) pop
dup call instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::GetHashCode() pop
dup call instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ToString() pop
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_2
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_3)
ldloca V_3
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloca V_3
dup
call instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
call instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ClassMethod1272<object>()
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type MyStruct639"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup ldnull call instance bool valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Equals(object) pop
dup call instance int32 valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::GetHashCode() pop
dup call instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ToString() pop
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc V_3
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_5)
ldloca V_5
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_5
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV9
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV10
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10:
.try { ldloc V_5
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV11
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11:
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_6)
ldloca V_6
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV12
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV13
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.B.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV14
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14:
.try { ldloc V_6
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV15
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15:
.try { ldloc V_6
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV16
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16:
.try { ldloc V_6
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV17
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV18
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV19
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV20
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV21
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV22
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22:
.try { ldloc V_6
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV23
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23:
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_7)
ldloca V_7
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
.try { ldloc V_7
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV24
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV24} LV24:
.try { ldloc V_7
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV25
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV25} LV25:
.try { ldloc V_7
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#"
call void Generated589::M.IBase2.A.B<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV26
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV26} LV26:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV27
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV27} LV27:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV28
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV28} LV28:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.A<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV29
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV29} LV29:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV30
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV30} LV30:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV31
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV31} LV31:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.A.A<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV32
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV32} LV32:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV33
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV33} LV33:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV34
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV34} LV34:
.try { ldloc V_7
ldstr "MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.IBase2.B.B<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV35
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV35} LV35:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_9)
ldloca V_9
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
.try { ldloc V_9
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0:
.try { ldloc V_9
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1:
.try { ldloc V_9
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.A<valuetype MyStruct639`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2:
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_10)
ldloca V_10
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
.try { ldloc V_10
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3:
.try { ldloc V_10
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.T<class BaseClass1,valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4:
.try { ldloc V_10
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.A.B<valuetype MyStruct639`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5:
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_11)
ldloca V_11
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
.try { ldloc V_11
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6:
.try { ldloc V_11
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.B.T<class BaseClass0,valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7:
.try { ldloc V_11
ldstr "MyStruct639::Method7.MI.4660<System.Object>()#" +
"MyStruct639::Method7.4659<System.Object>()#"
call void Generated589::M.MyStruct639.B.A<valuetype MyStruct639`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8
} catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8:
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass0> V_13)
ldloca V_13
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ClassMethod1272<object>()
calli default string(object)
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0> ldnull
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13 box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldloc V_13
box valuetype MyStruct639`2<class BaseClass0,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct639`2<class BaseClass0,class BaseClass1> V_14)
ldloca V_14
initobj valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ClassMethod1272<object>()
calli default string(object)
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1> ldnull
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance bool valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance int32 valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14 box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldloc V_14
box valuetype MyStruct639`2<class BaseClass0,class BaseClass1>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
.locals init (valuetype MyStruct639`2<class BaseClass1,class BaseClass0> V_15)
ldloca V_15
initobj valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ClassMethod1272<object>()
calli default string(object)
ldstr "MyStruct639::ClassMethod1272.4662<System.Object>()"
ldstr "valuetype MyStruct639`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0> ldnull
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance bool valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance int32 valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15 box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string valuetype MyStruct639`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.MI.4660<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldloc V_15
box valuetype MyStruct639`2<class BaseClass1,class BaseClass0>
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(object)
ldstr "MyStruct639::Method7.4659<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct639`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated589::MethodCallingTest()
call void Generated589::ConstrainedCallsTest()
call void Generated589::StructConstrainedInterfaceCallsTest()
call void Generated589::CalliTest()
ldc.i4 100
ret
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/HardwareIntrinsics/General/Vector256/Multiply.Double.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace JIT.HardwareIntrinsics.General
{
public static partial class Program
{
private static void MultiplyDouble()
{
var test = new VectorBinaryOpTest__MultiplyDouble();
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class VectorBinaryOpTest__MultiplyDouble
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Double[] inArray1, Double[] inArray2, Double[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Double>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Double>();
if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Double, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<Double> _fld1;
public Vector256<Double> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
return testStruct;
}
public void RunStructFldScenario(VectorBinaryOpTest__MultiplyDouble testClass)
{
var result = Vector256.Multiply(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double);
private static Double[] _data1 = new Double[Op1ElementCount];
private static Double[] _data2 = new Double[Op2ElementCount];
private static Vector256<Double> _clsVar1;
private static Vector256<Double> _clsVar2;
private Vector256<Double> _fld1;
private Vector256<Double> _fld2;
private DataTable _dataTable;
static VectorBinaryOpTest__MultiplyDouble()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
}
public VectorBinaryOpTest__MultiplyDouble()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
_dataTable = new DataTable(_data1, _data2, new Double[RetElementCount], LargestVectorSize);
}
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Vector256.Multiply(
Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var method = typeof(Vector256).GetMethod(nameof(Vector256.Multiply), new Type[] {
typeof(Vector256<Double>),
typeof(Vector256<Double>)
});
if (method is null)
{
method = typeof(Vector256).GetMethod(nameof(Vector256.Multiply), 1, new Type[] {
typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)),
typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0))
});
}
if (method.IsGenericMethodDefinition)
{
method = method.MakeGenericMethod(typeof(Double));
}
var result = method.Invoke(null, new object[] {
Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Vector256.Multiply(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr);
var result = Vector256.Multiply(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new VectorBinaryOpTest__MultiplyDouble();
var result = Vector256.Multiply(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Vector256.Multiply(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Vector256.Multiply(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
private void ValidateResult(Vector256<Double> op1, Vector256<Double> op2, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
Double[] inArray2 = new Double[Op2ElementCount];
Double[] outArray = new Double[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
Double[] inArray2 = new Double[Op2ElementCount];
Double[] outArray = new Double[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Double>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Double>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(Double[] left, Double[] right, Double[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (double)(left[0] * right[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (double)(left[i] * right[i]))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.{nameof(Vector256.Multiply)}<Double>(Vector256<Double>, Vector256<Double>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
namespace JIT.HardwareIntrinsics.General
{
public static partial class Program
{
private static void MultiplyDouble()
{
var test = new VectorBinaryOpTest__MultiplyDouble();
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class VectorBinaryOpTest__MultiplyDouble
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Double[] inArray1, Double[] inArray2, Double[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Double>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Double>();
if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Double, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<Double> _fld1;
public Vector256<Double> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
return testStruct;
}
public void RunStructFldScenario(VectorBinaryOpTest__MultiplyDouble testClass)
{
var result = Vector256.Multiply(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double);
private static Double[] _data1 = new Double[Op1ElementCount];
private static Double[] _data2 = new Double[Op2ElementCount];
private static Vector256<Double> _clsVar1;
private static Vector256<Double> _clsVar2;
private Vector256<Double> _fld1;
private Vector256<Double> _fld2;
private DataTable _dataTable;
static VectorBinaryOpTest__MultiplyDouble()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
}
public VectorBinaryOpTest__MultiplyDouble()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<Double>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); }
_dataTable = new DataTable(_data1, _data2, new Double[RetElementCount], LargestVectorSize);
}
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Vector256.Multiply(
Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var method = typeof(Vector256).GetMethod(nameof(Vector256.Multiply), new Type[] {
typeof(Vector256<Double>),
typeof(Vector256<Double>)
});
if (method is null)
{
method = typeof(Vector256).GetMethod(nameof(Vector256.Multiply), 1, new Type[] {
typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)),
typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0))
});
}
if (method.IsGenericMethodDefinition)
{
method = method.MakeGenericMethod(typeof(Double));
}
var result = method.Invoke(null, new object[] {
Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Vector256.Multiply(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray2Ptr);
var result = Vector256.Multiply(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new VectorBinaryOpTest__MultiplyDouble();
var result = Vector256.Multiply(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Vector256.Multiply(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Vector256.Multiply(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
private void ValidateResult(Vector256<Double> op1, Vector256<Double> op2, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
Double[] inArray2 = new Double[Op2ElementCount];
Double[] outArray = new Double[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
Double[] inArray1 = new Double[Op1ElementCount];
Double[] inArray2 = new Double[Op2ElementCount];
Double[] outArray = new Double[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Double>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<Double>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(Double[] left, Double[] right, Double[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (double)(left[0] * right[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (double)(left[i] * right[i]))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.{nameof(Vector256.Multiply)}<Double>(Vector256<Double>, Vector256<Double>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b39224/b39224.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/jit64/valuetypes/nullable/box-unbox/null/box-unbox-null042.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.InteropServices;
using System;
internal class NullableTest
{
private static bool BoxUnboxToNQGen<T>(T o)
{
return ((object)o) == null;
}
private static bool BoxUnboxToQGen<T>(T? o) where T : struct
{
return ((T?)o) == null;
}
private static bool BoxUnboxToNQ(object o)
{
return o == null;
}
private static bool BoxUnboxToQ(object o)
{
return ((ImplementAllInterface<int>?)o) == null;
}
private static int Main()
{
ImplementAllInterface<int>? s = null;
if (BoxUnboxToNQ(s) && BoxUnboxToQ(s) && BoxUnboxToNQGen(s) && BoxUnboxToQGen(s))
return ExitCode.Passed;
else
return ExitCode.Failed;
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.InteropServices;
using System;
internal class NullableTest
{
private static bool BoxUnboxToNQGen<T>(T o)
{
return ((object)o) == null;
}
private static bool BoxUnboxToQGen<T>(T? o) where T : struct
{
return ((T?)o) == null;
}
private static bool BoxUnboxToNQ(object o)
{
return o == null;
}
private static bool BoxUnboxToQ(object o)
{
return ((ImplementAllInterface<int>?)o) == null;
}
private static int Main()
{
ImplementAllInterface<int>? s = null;
if (BoxUnboxToNQ(s) && BoxUnboxToQ(s) && BoxUnboxToNQGen(s) && BoxUnboxToQGen(s))
return ExitCode.Passed;
else
return ExitCode.Failed;
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/HardwareIntrinsics/X86/Avx2/ShiftLeftLogical.UInt64.1.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void ShiftLeftLogicalUInt641()
{
var test = new ImmUnaryOpTest__ShiftLeftLogicalUInt641();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class ImmUnaryOpTest__ShiftLeftLogicalUInt641
{
private struct TestStruct
{
public Vector256<UInt64> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref testStruct._fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
return testStruct;
}
public void RunStructFldScenario(ImmUnaryOpTest__ShiftLeftLogicalUInt641 testClass)
{
var result = Avx2.ShiftLeftLogical(_fld, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64);
private static UInt64[] _data = new UInt64[Op1ElementCount];
private static Vector256<UInt64> _clsVar;
private Vector256<UInt64> _fld;
private SimpleUnaryOpTest__DataTable<UInt64, UInt64> _dataTable;
static ImmUnaryOpTest__ShiftLeftLogicalUInt641()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _clsVar), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
}
public ImmUnaryOpTest__ShiftLeftLogicalUInt641()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
_dataTable = new SimpleUnaryOpTest__DataTable<UInt64, UInt64>(_data, new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.ShiftLeftLogical(
Unsafe.Read<Vector256<UInt64>>(_dataTable.inArrayPtr),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.ShiftLeftLogical(
Avx.LoadVector256((UInt64*)(_dataTable.inArrayPtr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.ShiftLeftLogical(
Avx.LoadAlignedVector256((UInt64*)(_dataTable.inArrayPtr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.ShiftLeftLogical), new Type[] { typeof(Vector256<UInt64>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<UInt64>>(_dataTable.inArrayPtr),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.ShiftLeftLogical), new Type[] { typeof(Vector256<UInt64>), typeof(byte) })
.Invoke(null, new object[] {
Avx.LoadVector256((UInt64*)(_dataTable.inArrayPtr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.ShiftLeftLogical), new Type[] { typeof(Vector256<UInt64>), typeof(byte) })
.Invoke(null, new object[] {
Avx.LoadAlignedVector256((UInt64*)(_dataTable.inArrayPtr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.ShiftLeftLogical(
_clsVar,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var firstOp = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArrayPtr);
var result = Avx2.ShiftLeftLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var firstOp = Avx.LoadVector256((UInt64*)(_dataTable.inArrayPtr));
var result = Avx2.ShiftLeftLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var firstOp = Avx.LoadAlignedVector256((UInt64*)(_dataTable.inArrayPtr));
var result = Avx2.ShiftLeftLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new ImmUnaryOpTest__ShiftLeftLogicalUInt641();
var result = Avx2.ShiftLeftLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.ShiftLeftLogical(_fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.ShiftLeftLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector256<UInt64> firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(UInt64[] firstOp, UInt64[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if ((ulong)(firstOp[0] << 1) != result[0])
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if ((ulong)(firstOp[i] << 1) != result[i])
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.ShiftLeftLogical)}<UInt64>(Vector256<UInt64><9>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void ShiftLeftLogicalUInt641()
{
var test = new ImmUnaryOpTest__ShiftLeftLogicalUInt641();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class ImmUnaryOpTest__ShiftLeftLogicalUInt641
{
private struct TestStruct
{
public Vector256<UInt64> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref testStruct._fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
return testStruct;
}
public void RunStructFldScenario(ImmUnaryOpTest__ShiftLeftLogicalUInt641 testClass)
{
var result = Avx2.ShiftLeftLogical(_fld, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64);
private static UInt64[] _data = new UInt64[Op1ElementCount];
private static Vector256<UInt64> _clsVar;
private Vector256<UInt64> _fld;
private SimpleUnaryOpTest__DataTable<UInt64, UInt64> _dataTable;
static ImmUnaryOpTest__ShiftLeftLogicalUInt641()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _clsVar), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
}
public ImmUnaryOpTest__ShiftLeftLogicalUInt641()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _fld), ref Unsafe.As<UInt64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt64(); }
_dataTable = new SimpleUnaryOpTest__DataTable<UInt64, UInt64>(_data, new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.ShiftLeftLogical(
Unsafe.Read<Vector256<UInt64>>(_dataTable.inArrayPtr),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.ShiftLeftLogical(
Avx.LoadVector256((UInt64*)(_dataTable.inArrayPtr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.ShiftLeftLogical(
Avx.LoadAlignedVector256((UInt64*)(_dataTable.inArrayPtr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.ShiftLeftLogical), new Type[] { typeof(Vector256<UInt64>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<UInt64>>(_dataTable.inArrayPtr),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.ShiftLeftLogical), new Type[] { typeof(Vector256<UInt64>), typeof(byte) })
.Invoke(null, new object[] {
Avx.LoadVector256((UInt64*)(_dataTable.inArrayPtr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.ShiftLeftLogical), new Type[] { typeof(Vector256<UInt64>), typeof(byte) })
.Invoke(null, new object[] {
Avx.LoadAlignedVector256((UInt64*)(_dataTable.inArrayPtr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt64>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.ShiftLeftLogical(
_clsVar,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var firstOp = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArrayPtr);
var result = Avx2.ShiftLeftLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var firstOp = Avx.LoadVector256((UInt64*)(_dataTable.inArrayPtr));
var result = Avx2.ShiftLeftLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var firstOp = Avx.LoadAlignedVector256((UInt64*)(_dataTable.inArrayPtr));
var result = Avx2.ShiftLeftLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new ImmUnaryOpTest__ShiftLeftLogicalUInt641();
var result = Avx2.ShiftLeftLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.ShiftLeftLogical(_fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.ShiftLeftLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector256<UInt64> firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray = new UInt64[Op1ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt64>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(UInt64[] firstOp, UInt64[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if ((ulong)(firstOp[0] << 1) != result[0])
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if ((ulong)(firstOp[i] << 1) != result[i])
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.ShiftLeftLogical)}<UInt64>(Vector256<UInt64><9>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Regression/VS-ia64-JIT/V1.2-M02/b102763/gcparamonstack.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
using System;
class test
{
public static int Main()
{
int i = 0;
i += ParamOnStack();
return i + 97;
}
public static int ParamOnStack()
{
String strLoc = "ParamOnStack";
return ParamOnStackHelper(1, 2, 3, 4, 5, 6, 7, 8, 9, strLoc);
}
public static int ParamOnStackHelper(int i1, int i2, int i3,
int i4, int i5, int i6, int i7, int i8, int i9, String strParam)
{
return Func1(strParam);
}
public static int Func1(String strParam)
{
return 3;
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
using System;
class test
{
public static int Main()
{
int i = 0;
i += ParamOnStack();
return i + 97;
}
public static int ParamOnStack()
{
String strLoc = "ParamOnStack";
return ParamOnStackHelper(1, 2, 3, 4, 5, 6, 7, 8, 9, strLoc);
}
public static int ParamOnStackHelper(int i1, int i2, int i3,
int i4, int i5, int i6, int i7, int i8, int i9, String strParam)
{
return Func1(strParam);
}
public static int Func1(String strParam)
{
return 3;
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Data.Odbc/tests/ConnectionStrings.Windows.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Data.Odbc.Tests
{
public static class ConnectionStrings
{
// Requires http://www.ch-werner.de/sqliteodbc/
public const string WorkingConnection =
"Driver=SQLite3 ODBC Driver;" +
"Database=smoketests.sqlite;";
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Data.Odbc.Tests
{
public static class ConnectionStrings
{
// Requires http://www.ch-werner.de/sqliteodbc/
public const string WorkingConnection =
"Driver=SQLite3 ODBC Driver;" +
"Database=smoketests.sqlite;";
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/native/corehost/ijwhost/i386/bootstrap_thunk.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal.h"
#include "corhdr.h"
#include "bootstrap_thunk_chunk.h"
//=================================================================================
// Get thunk from the return address that the call instruction would have pushed
bootstrap_thunk *bootstrap_thunk::get_thunk_from_cookie(std::uintptr_t cookie)
{
return (bootstrap_thunk *)(cookie - (offsetof(bootstrap_thunk, m_code) + sizeof(bootstrap_thunk::m_code)));
}
//=================================================================================
//
bootstrap_thunk *bootstrap_thunk::get_thunk_from_entrypoint(std::uintptr_t entryAddr)
{
return (bootstrap_thunk *)(entryAddr - offsetof(bootstrap_thunk, m_code));
}
//=================================================================================
// Returns the slot address of the vtable entry for this thunk
std::uintptr_t *bootstrap_thunk::get_slot_address()
{
return (std::uintptr_t *)((std::uintptr_t)m_slot & ~1);
}
//=================================================================================
// Returns the pal::dll_t for this thunk's module
pal::dll_t bootstrap_thunk::get_dll_handle()
{
return m_dll;
}
//=================================================================================
// Returns the token of this thunk
std::uint32_t bootstrap_thunk::get_token()
{
return m_token;
}
//=================================================================================
std::uintptr_t bootstrap_thunk::get_entrypoint()
{
return (std::uintptr_t)this + offsetof(bootstrap_thunk, m_code);
}
//=================================================================================
// Initializes the thunk to point to the bootstrap helper that will load the
// runtime and perform the real thunk initialization.
//
void bootstrap_thunk::initialize(std::uintptr_t pThunkInitFcn,
pal::dll_t dll,
std::uint32_t token,
std::uintptr_t *pSlot)
{
m_token = token;
// Now set up the thunk code
std::uintptr_t pFrom;
std::uintptr_t pTo;
// This is the call to the thunk bootstrapper function
pFrom = (std::uintptr_t)&m_code.m_thunkFcn + sizeof(m_code.m_thunkFcn);
pTo = pThunkInitFcn;
m_code.m_call = 0xe8; // 0xe8 is the hex encoding of the x86 call instruction opcode
m_code.m_thunkFcn = (UINT32)(pTo - pFrom);
// Fill out the rest of the info
m_dll = dll;
m_slot = pSlot;
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal.h"
#include "corhdr.h"
#include "bootstrap_thunk_chunk.h"
//=================================================================================
// Get thunk from the return address that the call instruction would have pushed
bootstrap_thunk *bootstrap_thunk::get_thunk_from_cookie(std::uintptr_t cookie)
{
return (bootstrap_thunk *)(cookie - (offsetof(bootstrap_thunk, m_code) + sizeof(bootstrap_thunk::m_code)));
}
//=================================================================================
//
bootstrap_thunk *bootstrap_thunk::get_thunk_from_entrypoint(std::uintptr_t entryAddr)
{
return (bootstrap_thunk *)(entryAddr - offsetof(bootstrap_thunk, m_code));
}
//=================================================================================
// Returns the slot address of the vtable entry for this thunk
std::uintptr_t *bootstrap_thunk::get_slot_address()
{
return (std::uintptr_t *)((std::uintptr_t)m_slot & ~1);
}
//=================================================================================
// Returns the pal::dll_t for this thunk's module
pal::dll_t bootstrap_thunk::get_dll_handle()
{
return m_dll;
}
//=================================================================================
// Returns the token of this thunk
std::uint32_t bootstrap_thunk::get_token()
{
return m_token;
}
//=================================================================================
std::uintptr_t bootstrap_thunk::get_entrypoint()
{
return (std::uintptr_t)this + offsetof(bootstrap_thunk, m_code);
}
//=================================================================================
// Initializes the thunk to point to the bootstrap helper that will load the
// runtime and perform the real thunk initialization.
//
void bootstrap_thunk::initialize(std::uintptr_t pThunkInitFcn,
pal::dll_t dll,
std::uint32_t token,
std::uintptr_t *pSlot)
{
m_token = token;
// Now set up the thunk code
std::uintptr_t pFrom;
std::uintptr_t pTo;
// This is the call to the thunk bootstrapper function
pFrom = (std::uintptr_t)&m_code.m_thunkFcn + sizeof(m_code.m_thunkFcn);
pTo = pThunkInitFcn;
m_code.m_call = 0xe8; // 0xe8 is the hex encoding of the x86 call instruction opcode
m_code.m_thunkFcn = (UINT32)(pTo - pFrom);
// Fill out the rest of the info
m_dll = dll;
m_slot = pSlot;
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b91203/b91203.ilproj | <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).il" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).il" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Memory/tests/ReadOnlyBuffer/ReadOnlySequenceTests.Default.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
using Xunit;
namespace System.Memory.Tests
{
public class ReadOnlySequenceTestsDefault
{
#region Constructor
[Fact]
public void Default_Constructor()
{
ReadOnlySequence<byte> buffer = default;
Assert.Equal(default, buffer.Start);
Assert.Equal(default, buffer.End);
Assert.True(buffer.IsEmpty);
Assert.True(buffer.IsSingleSegment);
Assert.Equal(0, buffer.Length);
Assert.True(buffer.First.IsEmpty);
Assert.True(buffer.FirstSpan.IsEmpty);
Assert.Equal($"System.Buffers.ReadOnlySequence<{typeof(byte).Name}>[0]", buffer.ToString());
}
#endregion
#region GetPosition
[Fact]
public void Default_GetPosition()
{
ReadOnlySequence<byte> buffer = default;
SequencePosition position = default;
Assert.Equal(position, buffer.GetPosition(0));
Assert.Equal(position, buffer.GetPosition(0, buffer.Start));
Assert.Equal(position, buffer.GetPosition(0, buffer.End));
}
[Fact]
public void Default_GetPositionPositive()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(1));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(1, buffer.Start));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(1, buffer.End));
}
[Fact]
public void Default_GetPositionNegative()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(-1));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(-1, buffer.Start));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(-1, buffer.End));
}
#endregion
#region Slice
[Fact]
public void Default_Slice()
{
ReadOnlySequence<byte> buffer = default;
Assert.Equal(buffer, buffer.Slice(0, 0));
Assert.Equal(buffer, buffer.Slice(0, buffer.End));
Assert.Equal(buffer, buffer.Slice(0));
Assert.Equal(buffer, buffer.Slice(0L, 0L));
Assert.Equal(buffer, buffer.Slice(0L, buffer.End));
Assert.Equal(buffer, buffer.Slice(buffer.Start));
Assert.Equal(buffer, buffer.Slice(buffer.Start, 0));
Assert.Equal(buffer, buffer.Slice(buffer.Start, 0L));
Assert.Equal(buffer, buffer.Slice(buffer.Start, buffer.End));
}
[Fact]
public void Default_SlicePositiveStart()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1, 0));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1, 0));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1, buffer.End));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1L, 0L));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1L, buffer.End));
}
[Fact]
public void Default_SliceNegativeStart()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1, 0));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1, -1));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1, buffer.End));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1L, 0L));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1L, -1L));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1L, buffer.End));
}
[Fact]
public void Default_SlicePositiveLength()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0, 1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0L, 1L));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, 1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, 1L));
}
[Fact]
public void Default_SliceNegativeLength()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0, -1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0L, -1L));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, -1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, -1L));
}
[Fact]
public void Slice_DefaultSequencePosition()
{
var firstSegment = new BufferSegment<byte>(new byte[4]);
BufferSegment<byte> secondSegment = firstSegment.Append(new byte[4]);
var sequence = new ReadOnlySequence<byte>(firstSegment, 0, secondSegment, firstSegment.Memory.Length);
ReadOnlySequence<byte> slicedSequence = sequence.Slice(default(SequencePosition));
Assert.Equal(sequence, slicedSequence);
// Slice(default, default) should return an empty sequence
slicedSequence = sequence.Slice(default(SequencePosition), default(SequencePosition));
Assert.Equal(0, slicedSequence.Length);
// Slice(x, default) returns empty if x = 0. Otherwise throws
sequence = sequence.Slice(2);
slicedSequence = sequence.Slice(0, default(SequencePosition));
Assert.Equal(0, slicedSequence.Length);
Assert.Throws<ArgumentOutOfRangeException>(() => sequence.Slice(1, default(SequencePosition)));
// Slice(default, x) returns sequence from the beginning to x
slicedSequence = sequence.Slice(default(SequencePosition), 1);
Assert.Equal(1, slicedSequence.Length);
Assert.Equal(sequence.Start, slicedSequence.Start);
}
#endregion
#region Enumerator
[Fact]
public void Default_Enumerator()
{
ReadOnlySequence<byte> buffer = default;
ReadOnlySequence<byte>.Enumerator enumerator = buffer.GetEnumerator();
{
Assert.Equal(default, enumerator.Current);
Assert.False(enumerator.MoveNext());
}
enumerator = new ReadOnlySequence<byte>.Enumerator(default);
{
Assert.Equal(default, enumerator.Current);
Assert.False(enumerator.MoveNext());
}
}
#endregion
#region TryGet
[Fact]
public void Default_TryGet()
{
ReadOnlySequence<byte> buffer = default;
ReadOnlyMemory<byte> memory;
SequencePosition c1 = buffer.Start;
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
c1 = buffer.End;
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
}
#endregion
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
using Xunit;
namespace System.Memory.Tests
{
public class ReadOnlySequenceTestsDefault
{
#region Constructor
[Fact]
public void Default_Constructor()
{
ReadOnlySequence<byte> buffer = default;
Assert.Equal(default, buffer.Start);
Assert.Equal(default, buffer.End);
Assert.True(buffer.IsEmpty);
Assert.True(buffer.IsSingleSegment);
Assert.Equal(0, buffer.Length);
Assert.True(buffer.First.IsEmpty);
Assert.True(buffer.FirstSpan.IsEmpty);
Assert.Equal($"System.Buffers.ReadOnlySequence<{typeof(byte).Name}>[0]", buffer.ToString());
}
#endregion
#region GetPosition
[Fact]
public void Default_GetPosition()
{
ReadOnlySequence<byte> buffer = default;
SequencePosition position = default;
Assert.Equal(position, buffer.GetPosition(0));
Assert.Equal(position, buffer.GetPosition(0, buffer.Start));
Assert.Equal(position, buffer.GetPosition(0, buffer.End));
}
[Fact]
public void Default_GetPositionPositive()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(1));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(1, buffer.Start));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(1, buffer.End));
}
[Fact]
public void Default_GetPositionNegative()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(-1));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(-1, buffer.Start));
Assert.Throws<ArgumentOutOfRangeException>("offset", () => buffer.GetPosition(-1, buffer.End));
}
#endregion
#region Slice
[Fact]
public void Default_Slice()
{
ReadOnlySequence<byte> buffer = default;
Assert.Equal(buffer, buffer.Slice(0, 0));
Assert.Equal(buffer, buffer.Slice(0, buffer.End));
Assert.Equal(buffer, buffer.Slice(0));
Assert.Equal(buffer, buffer.Slice(0L, 0L));
Assert.Equal(buffer, buffer.Slice(0L, buffer.End));
Assert.Equal(buffer, buffer.Slice(buffer.Start));
Assert.Equal(buffer, buffer.Slice(buffer.Start, 0));
Assert.Equal(buffer, buffer.Slice(buffer.Start, 0L));
Assert.Equal(buffer, buffer.Slice(buffer.Start, buffer.End));
}
[Fact]
public void Default_SlicePositiveStart()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1, 0));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1, 0));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1, buffer.End));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1L, 0L));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(1L, buffer.End));
}
[Fact]
public void Default_SliceNegativeStart()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1, 0));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1, -1));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1, buffer.End));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1L, 0L));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1L, -1L));
Assert.Throws<ArgumentOutOfRangeException>("start", () => buffer.Slice(-1L, buffer.End));
}
[Fact]
public void Default_SlicePositiveLength()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0, 1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0L, 1L));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, 1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, 1L));
}
[Fact]
public void Default_SliceNegativeLength()
{
ReadOnlySequence<byte> buffer = default;
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0, -1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(0L, -1L));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, -1));
Assert.Throws<ArgumentOutOfRangeException>("length", () => buffer.Slice(buffer.Start, -1L));
}
[Fact]
public void Slice_DefaultSequencePosition()
{
var firstSegment = new BufferSegment<byte>(new byte[4]);
BufferSegment<byte> secondSegment = firstSegment.Append(new byte[4]);
var sequence = new ReadOnlySequence<byte>(firstSegment, 0, secondSegment, firstSegment.Memory.Length);
ReadOnlySequence<byte> slicedSequence = sequence.Slice(default(SequencePosition));
Assert.Equal(sequence, slicedSequence);
// Slice(default, default) should return an empty sequence
slicedSequence = sequence.Slice(default(SequencePosition), default(SequencePosition));
Assert.Equal(0, slicedSequence.Length);
// Slice(x, default) returns empty if x = 0. Otherwise throws
sequence = sequence.Slice(2);
slicedSequence = sequence.Slice(0, default(SequencePosition));
Assert.Equal(0, slicedSequence.Length);
Assert.Throws<ArgumentOutOfRangeException>(() => sequence.Slice(1, default(SequencePosition)));
// Slice(default, x) returns sequence from the beginning to x
slicedSequence = sequence.Slice(default(SequencePosition), 1);
Assert.Equal(1, slicedSequence.Length);
Assert.Equal(sequence.Start, slicedSequence.Start);
}
#endregion
#region Enumerator
[Fact]
public void Default_Enumerator()
{
ReadOnlySequence<byte> buffer = default;
ReadOnlySequence<byte>.Enumerator enumerator = buffer.GetEnumerator();
{
Assert.Equal(default, enumerator.Current);
Assert.False(enumerator.MoveNext());
}
enumerator = new ReadOnlySequence<byte>.Enumerator(default);
{
Assert.Equal(default, enumerator.Current);
Assert.False(enumerator.MoveNext());
}
}
#endregion
#region TryGet
[Fact]
public void Default_TryGet()
{
ReadOnlySequence<byte> buffer = default;
ReadOnlyMemory<byte> memory;
SequencePosition c1 = buffer.Start;
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
c1 = buffer.End;
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, false));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
Assert.False(buffer.TryGet(ref c1, out memory, true));
Assert.Null(c1.GetObject());
Assert.True(memory.IsEmpty);
}
#endregion
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Private.CoreLib/src/System/Collections/IEqualityComparer.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Collections
{
// An IEqualityComparer is a mechanism to consume custom performant comparison infrastructure
// that can be consumed by some of the common collections.
public interface IEqualityComparer
{
bool Equals(object? x, object? y);
int GetHashCode(object obj);
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Collections
{
// An IEqualityComparer is a mechanism to consume custom performant comparison infrastructure
// that can be consumed by some of the common collections.
public interface IEqualityComparer
{
bool Equals(object? x, object? y);
int GetHashCode(object obj);
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/coreclr/tools/Common/TypeSystem/Ecma/PrimitiveTypeProvider.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Reflection.Metadata;
namespace Internal.TypeSystem.Ecma
{
public static class PrimitiveTypeProvider
{
public static TypeDesc GetPrimitiveType(TypeSystemContext context, PrimitiveTypeCode typeCode)
{
WellKnownType wkt;
switch (typeCode)
{
case PrimitiveTypeCode.Boolean:
wkt = WellKnownType.Boolean;
break;
case PrimitiveTypeCode.Byte:
wkt = WellKnownType.Byte;
break;
case PrimitiveTypeCode.Char:
wkt = WellKnownType.Char;
break;
case PrimitiveTypeCode.Double:
wkt = WellKnownType.Double;
break;
case PrimitiveTypeCode.Int16:
wkt = WellKnownType.Int16;
break;
case PrimitiveTypeCode.Int32:
wkt = WellKnownType.Int32;
break;
case PrimitiveTypeCode.Int64:
wkt = WellKnownType.Int64;
break;
case PrimitiveTypeCode.IntPtr:
wkt = WellKnownType.IntPtr;
break;
case PrimitiveTypeCode.Object:
wkt = WellKnownType.Object;
break;
case PrimitiveTypeCode.SByte:
wkt = WellKnownType.SByte;
break;
case PrimitiveTypeCode.Single:
wkt = WellKnownType.Single;
break;
case PrimitiveTypeCode.String:
wkt = WellKnownType.String;
break;
case PrimitiveTypeCode.UInt16:
wkt = WellKnownType.UInt16;
break;
case PrimitiveTypeCode.UInt32:
wkt = WellKnownType.UInt32;
break;
case PrimitiveTypeCode.UInt64:
wkt = WellKnownType.UInt64;
break;
case PrimitiveTypeCode.UIntPtr:
wkt = WellKnownType.UIntPtr;
break;
case PrimitiveTypeCode.Void:
wkt = WellKnownType.Void;
break;
case PrimitiveTypeCode.TypedReference:
wkt = WellKnownType.TypedReference;
break;
default:
throw new BadImageFormatException();
}
return context.GetWellKnownType(wkt);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Reflection.Metadata;
namespace Internal.TypeSystem.Ecma
{
public static class PrimitiveTypeProvider
{
public static TypeDesc GetPrimitiveType(TypeSystemContext context, PrimitiveTypeCode typeCode)
{
WellKnownType wkt;
switch (typeCode)
{
case PrimitiveTypeCode.Boolean:
wkt = WellKnownType.Boolean;
break;
case PrimitiveTypeCode.Byte:
wkt = WellKnownType.Byte;
break;
case PrimitiveTypeCode.Char:
wkt = WellKnownType.Char;
break;
case PrimitiveTypeCode.Double:
wkt = WellKnownType.Double;
break;
case PrimitiveTypeCode.Int16:
wkt = WellKnownType.Int16;
break;
case PrimitiveTypeCode.Int32:
wkt = WellKnownType.Int32;
break;
case PrimitiveTypeCode.Int64:
wkt = WellKnownType.Int64;
break;
case PrimitiveTypeCode.IntPtr:
wkt = WellKnownType.IntPtr;
break;
case PrimitiveTypeCode.Object:
wkt = WellKnownType.Object;
break;
case PrimitiveTypeCode.SByte:
wkt = WellKnownType.SByte;
break;
case PrimitiveTypeCode.Single:
wkt = WellKnownType.Single;
break;
case PrimitiveTypeCode.String:
wkt = WellKnownType.String;
break;
case PrimitiveTypeCode.UInt16:
wkt = WellKnownType.UInt16;
break;
case PrimitiveTypeCode.UInt32:
wkt = WellKnownType.UInt32;
break;
case PrimitiveTypeCode.UInt64:
wkt = WellKnownType.UInt64;
break;
case PrimitiveTypeCode.UIntPtr:
wkt = WellKnownType.UIntPtr;
break;
case PrimitiveTypeCode.Void:
wkt = WellKnownType.Void;
break;
case PrimitiveTypeCode.TypedReference:
wkt = WellKnownType.TypedReference;
break;
default:
throw new BadImageFormatException();
}
return context.GetWellKnownType(wkt);
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/Common/src/Extensions/ParameterDefaultValue/ParameterDefaultValue.netstandard.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.Serialization;
namespace Microsoft.Extensions.Internal
{
internal static partial class ParameterDefaultValue
{
public static bool CheckHasDefaultValue(ParameterInfo parameter, out bool tryToGetDefaultValue)
{
tryToGetDefaultValue = true;
try
{
return parameter.HasDefaultValue;
}
catch (FormatException) when (parameter.ParameterType == typeof(DateTime))
{
// Workaround for https://github.com/dotnet/runtime/issues/18844
// If HasDefaultValue throws FormatException for DateTime
// we expect it to have default value
tryToGetDefaultValue = false;
return true;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable enable
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.Serialization;
namespace Microsoft.Extensions.Internal
{
internal static partial class ParameterDefaultValue
{
public static bool CheckHasDefaultValue(ParameterInfo parameter, out bool tryToGetDefaultValue)
{
tryToGetDefaultValue = true;
try
{
return parameter.HasDefaultValue;
}
catch (FormatException) when (parameter.ParameterType == typeof(DateTime))
{
// Workaround for https://github.com/dotnet/runtime/issues/18844
// If HasDefaultValue throws FormatException for DateTime
// we expect it to have default value
tryToGetDefaultValue = false;
return true;
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/coreclr/vm/stackwalk.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/* This is a poor man's implementation of virtual methods. */
/* The purpose of pCrawlFrame is to abstract (at least for the most common cases
from the fact that not all methods are "framed" (basically all methods in
"native" code are "unframed"). That way the job for the enumerator callbacks
becomes much simpler (i.e. more transparent and hopefully less error prone).
Two call-backs still need to distinguish between the two types: GC and exception.
Both of these call-backs need to do really different things; for frameless methods
they need to go through the codemanager and use the resp. apis.
The reason for not implementing virtual methods on crawlFrame is solely because of
the way exception handling is implemented (it does a "long jump" and bypasses
the enumerator (stackWalker) when it finds a matching frame. By doing so couldn't
properly destruct the dynamically created instance of CrawlFrame.
*/
#ifndef __stackwalk_h__
#define __stackwalk_h__
#include "eetwain.h"
#include "stackwalktypes.h"
class Frame;
class CrawlFrame;
class ICodeManager;
class IJitManager;
struct EE_ILEXCEPTION;
class AppDomain;
// This define controls handling of faults in managed code. If it is defined,
// the exception is handled (retried, actually), with a FaultingExceptionFrame
// on the stack. The FEF is used for unwinding. If not defined, the unwinding
// uses the exception context.
#define USE_FEF // to mark where code needs to be changed to eliminate the FEF
#if defined(TARGET_X86) && !defined(TARGET_UNIX)
#undef USE_FEF // Turn off the FEF use on x86.
#define ELIMINATE_FEF
#else
#if defined(ELIMINATE_FEF)
#undef ELIMINATE_FEF
#endif
#endif // TARGET_X86 && !TARGET_UNIX
#if defined(FEATURE_EH_FUNCLETS)
#define RECORD_RESUMABLE_FRAME_SP
#endif
//************************************************************************
// Enumerate all functions.
//************************************************************************
/* This enumerator is meant to be used for the most common cases, i.e. to
enumerate just all the functions of the requested thread. It is just a
cover for the "real" enumerator.
*/
StackWalkAction StackWalkFunctions(Thread * thread, PSTACKWALKFRAMESCALLBACK pCallback, VOID * pData);
/*<TODO>@ISSUE: Maybe use a define instead?</TODO>
#define StackWalkFunctions(thread, callBack, userdata) thread->StackWalkFrames(METHODSONLY, (callBack),(userData))
*/
class CrawlFrame
{
public:
#ifdef TARGET_X86
friend StackWalkAction TAStackCrawlCallBack(CrawlFrame* pCf, void* data);
#endif // TARGET_X86
//************************************************************************
// Functions available for the callbacks (using the current pCrawlFrame)
//************************************************************************
/* Widely used/benign functions */
/* Is this a function? */
/* Returns either a MethodDesc* or NULL for "non-function" frames */
//<TODO>@TODO: what will it return for transition frames?</TODO>
#ifdef FEATURE_INTERPRETER
MethodDesc *GetFunction();
#else // FEATURE_INTERPRETER
inline MethodDesc *GetFunction()
{
LIMITED_METHOD_DAC_CONTRACT;
return pFunc;
}
#endif
Assembly *GetAssembly();
/* Returns either a Frame * (for "framed items) or
Returns NULL for frameless functions
*/
inline Frame* GetFrame() // will return NULL for "frameless methods"
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
if (isFrameless)
return NULL;
else
return pFrame;
}
BOOL IsInCalleesFrames(LPVOID stackPointer);
// Fetch the extra type argument passed in some cases
PTR_VOID GetParamTypeArg();
/* Returns the "this" pointer of the method of the current frame -- at least in some cases.
Returns NULL if the current frame does not have a method, or that method is not an instance method of a class type.
Otherwise, the semantics currently depend, unfortunately, on the architecture. On non-x86 architectures,
should only be called for methods where the generic instantiation context is found via the this pointer (so that
this information will be encoded in the GC Info). On x86, can be called for this case, or if the method
is synchronized.
*/
OBJECTREF GetThisPointer();
/*
Returns ambient Stack pointer for this crawlframe.
Must be a frameless method.
Returns NULL if not available (includes prolog + epilog).
This is safe to call on all methods, but it may return
garbage if the method does not have an ambient SP (eg, ebp-based methods).
x86 is the only platform using ambient SP.
*/
TADDR GetAmbientSPFromCrawlFrame();
void GetExactGenericInstantiations(Instantiation *pClassInst,
Instantiation *pMethodInst);
/* Returns extra information required to reconstruct exact generic parameters,
if any.
Returns NULL if
- no extra information is required (i.e. the code is non-shared, which
you can tell from the MethodDesc)
- the extra information is not available (i.e. optimized away or codegen problem)
Returns a MethodTable if the pMD returned by GetFunction satisfies RequiresInstMethodTableArg,
and returns a MethodDesc if the pMD returned by GetFunction satisfies RequiresInstMethodDescArg.
These together carry the exact instantiation information.
*/
PTR_VOID GetExactGenericArgsToken();
inline CodeManState * GetCodeManState() { LIMITED_METHOD_DAC_CONTRACT; return & codeManState; }
/*
IF YOU USE ANY OF THE SUBSEQUENT FUNCTIONS, YOU NEED TO REALLY UNDERSTAND THE
STACK-WALKER (INCLUDING UNWINDING OF METHODS IN MANAGED NATIVE CODE)!
YOU ALSO NEED TO UNDERSTAND THAT THESE FUNCTIONS MIGHT CHANGE ON AN AS-NEED BASIS.
*/
/* The rest are meant to be used only by the exception catcher and the GC call-back */
/* Is currently a frame available? */
/* conceptually returns (GetFrame(pCrawlFrame) == NULL)
*/
inline bool IsFrameless()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
return isFrameless;
}
/* Is it the current active (top-most) frame
*/
inline bool IsActiveFrame()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFirst != 0xcc);
return isFirst;
}
/* Is it the current active function (top-most frame)
asserts for non-functions, should be used for managed native code only
*/
inline bool IsActiveFunc()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFirst != 0xcc);
return (pFunc && isFirst);
}
/* Is it the current active function (top-most frame)
which faulted or threw an exception ?
asserts for non-functions, should be used for managed native code only
*/
bool IsInterrupted()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isInterrupted != 0xcc);
return (pFunc && isInterrupted /* && isFrameless?? */);
}
/* Is it the current active function (top-most frame) which faulted ?
asserts for non-functions, should be used for managed native code only
*/
bool HasFaulted()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)hasFaulted != 0xcc);
return (pFunc && hasFaulted /* && isFrameless?? */);
}
/* Is this CrawlFrame just marking that we're in native code?
Such frames are only provided when the stackwalk is inited w/ NOTIFY_ON_U2M_TRANSITIONS.
The only use of these crawlframes is to get the Regdisplay.
*/
bool IsNativeMarker()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isNativeMarker != 0xcc);
return isNativeMarker;
}
/* x86 does not always push a FaultingExceptionFrame on the stack when there is a native exception
(e.g. a breakpoint). In this case, it relies on the CONTEXT stored on the ExInfo to resume
the stackwalk at the managed stack frame which has faulted.
This flag is set when the stackwalker is stopped at such a no-explicit-frame transition. Conceptually
this is just like stopping at a transition frame. Note that the stackwalker only stops at no-frame
transition if NOTIFY_ON_NO_FRAME_TRANSITIONS is set.
*/
bool IsNoFrameTransition()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isNoFrameTransition != 0xcc);
return isNoFrameTransition;
}
// A no-frame transition is one protected by an ExInfo. It's an optimization on x86 to avoid pushing a
// FaultingExceptionFrame (FEF). Thus, for all intents and purposes, we should treat a no-frame
// transition as a FEF. This function returns a stack address for the no-frame transition to substitute
// as the frame address of a FEF. It's currently only used by the debugger stackwalker.
TADDR GetNoFrameTransitionMarker()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isNoFrameTransition != 0xcc);
return (isNoFrameTransition ? taNoFrameTransitionMarker : NULL);
}
/* Has the IP been adjusted to a point where it is safe to do GC ?
(for OutOfLineThrownExceptionFrame)
asserts for non-functions, should be used for managed native code only
*/
bool IsIPadjusted()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isIPadjusted != 0xcc);
return (pFunc && isIPadjusted /* && isFrameless?? */);
}
/* Gets the ICodeMangerFlags for the current frame */
unsigned GetCodeManagerFlags()
{
CONTRACTL {
NOTHROW;
GC_NOTRIGGER;
SUPPORTS_DAC;
} CONTRACTL_END;
unsigned flags = 0;
if (IsActiveFunc())
flags |= ActiveStackFrame;
if (IsInterrupted())
{
flags |= ExecutionAborted;
if (!HasFaulted() && !IsIPadjusted())
{
_ASSERTE(!(flags & ActiveStackFrame));
flags |= AbortingCall;
}
}
#if defined(FEATURE_EH_FUNCLETS)
if (ShouldParentToFuncletSkipReportingGCReferences())
{
flags |= ParentOfFuncletStackFrame;
}
#endif // defined(FEATURE_EH_FUNCLETS)
return flags;
}
/* Is this frame at a safe spot for GC?
*/
bool IsGcSafe();
#if defined(TARGET_ARM) || defined(TARGET_ARM64)
bool HasTailCalls();
#endif // TARGET_ARM || TARGET_ARM64
PREGDISPLAY GetRegisterSet()
{
LIMITED_METHOD_DAC_CONTRACT;
// We would like to make the following assertion, but it is legitimately
// violated when we perform a crawl to find the return address for a hijack.
// _ASSERTE(isFrameless);
return pRD;
}
EECodeInfo * GetCodeInfo()
{
LIMITED_METHOD_DAC_CONTRACT;
// This assumes that CrawlFrame is host-only structure with DACCESS_COMPILE
// and thus it always returns the host address.
return &codeInfo;
}
GCInfoToken GetGCInfoToken()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetGCInfoToken();
}
PTR_VOID GetGCInfo()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetGCInfo();
}
const METHODTOKEN& GetMethodToken()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetMethodToken();
}
unsigned GetRelOffset()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetRelOffset();
}
IJitManager* GetJitManager()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetJitManager();
}
ICodeManager* GetCodeManager()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetCodeManager();
}
inline StackwalkCacheEntry* GetStackwalkCacheEntry()
{
LIMITED_METHOD_CONTRACT;
_ASSERTE (isCachedMethod != stackWalkCache.IsEmpty());
if (isCachedMethod && stackWalkCache.m_CacheEntry.IsSafeToUseCache())
{
return &(stackWalkCache.m_CacheEntry);
}
else
{
return NULL;
}
}
void CheckGSCookies();
inline Thread* GetThread()
{
LIMITED_METHOD_CONTRACT;
return pThread;
}
#if defined(FEATURE_EH_FUNCLETS)
bool IsFunclet()
{
WRAPPER_NO_CONTRACT;
if (!IsFrameless())
return false;
return !!codeInfo.IsFunclet();
}
bool IsFilterFunclet();
// Indicates if the funclet has already reported GC
// references (or not). This will return true if
// we come across the parent frame of a funclet
// that is active on the stack.
bool ShouldParentToFuncletSkipReportingGCReferences()
{
LIMITED_METHOD_CONTRACT;
return fShouldParentToFuncletSkipReportingGCReferences;
}
bool ShouldCrawlframeReportGCReferences()
{
LIMITED_METHOD_CONTRACT;
return fShouldCrawlframeReportGCReferences;
}
bool ShouldParentToFuncletUseUnwindTargetLocationForGCReporting()
{
LIMITED_METHOD_CONTRACT;
return fShouldParentFrameUseUnwindTargetPCforGCReporting;
}
const EE_ILEXCEPTION_CLAUSE& GetEHClauseForCatch()
{
return ehClauseForCatch;
}
#endif // FEATURE_EH_FUNCLETS
protected:
// CrawlFrames are temporarily created by the enumerator.
// Do not create one from C++. This protected constructor polices this rule.
CrawlFrame();
void SetCurGSCookie(GSCookie * pGSCookie);
private:
friend class Thread;
friend class EECodeManager;
friend class StackFrameIterator;
#ifdef FEATURE_EH_FUNCLETS
friend class ExceptionTracker;
#endif // FEATURE_EH_FUNCLETS
CodeManState codeManState;
bool isFrameless;
bool isFirst;
// The next three fields are only valid for managed stack frames. They are set using attributes
// on explicit frames, and they are reset after processing each managed stack frame.
bool isInterrupted;
bool hasFaulted;
bool isIPadjusted;
bool isNativeMarker;
bool isProfilerDoStackSnapshot;
bool isNoFrameTransition;
TADDR taNoFrameTransitionMarker; // see code:CrawlFrame.GetNoFrameTransitionMarker
PTR_Frame pFrame;
MethodDesc *pFunc;
// the rest is only used for "frameless methods"
PREGDISPLAY pRD; // "thread context"/"virtual register set"
EECodeInfo codeInfo;
#if defined(FEATURE_EH_FUNCLETS)
bool isFilterFunclet;
bool isFilterFuncletCached;
bool fShouldParentToFuncletSkipReportingGCReferences;
bool fShouldCrawlframeReportGCReferences;
bool fShouldParentFrameUseUnwindTargetPCforGCReporting;
EE_ILEXCEPTION_CLAUSE ehClauseForCatch;
#endif //FEATURE_EH_FUNCLETS
Thread* pThread;
// fields used for stackwalk cache
BOOL isCachedMethod;
StackwalkCache stackWalkCache;
GSCookie *pCurGSCookie;
GSCookie *pFirstGSCookie;
friend class Frame; // added to allow 'friend void CrawlFrame::GotoNextFrame();' declaration in class Frame, frames.h
void GotoNextFrame();
};
void GcEnumObject(LPVOID pData, OBJECTREF *pObj);
StackWalkAction GcStackCrawlCallBack(CrawlFrame* pCF, VOID* pData);
#if defined(ELIMINATE_FEF)
//******************************************************************************
// This class is used to help use exception context records to resync a
// stackwalk, when managed code has generated an exception (eg, AV, zerodiv.,,)
// Such an exception causes a transition from the managed code into unmanaged
// OS and runtime code, but without the benefit of any Frame. This code helps
// the stackwalker simulate the effect that such a frame would have.
// In particular, this class has methods to walk the chain of ExInfos, looking
// for records with pContext pointers with certain characteristics. The
// characteristics that are important are the location in the stack (ie, is a
// given pContext relevant at a particular point in the stack walk), and
// whether the pContext was generated in managed code.
//******************************************************************************
class ExInfoWalker
{
public:
ExInfoWalker() : m_pExInfo(0) { SUPPORTS_DAC; }
void Init (ExInfo *pExInfo) { SUPPORTS_DAC; m_pExInfo = pExInfo; }
// Skip one ExInfo.
void WalkOne();
// Attempt to find an ExInfo with a pContext that is higher (older) than
// a given minimum location.
void WalkToPosition(TADDR taMinimum, BOOL bPopFrames);
// Attempt to find an ExInfo with a pContext that has an IP in managed code.
void WalkToManaged();
// Return current ExInfo's m_pContext, or NULL if no m_pExInfo.
PTR_CONTEXT GetContext() { SUPPORTS_DAC; return m_pExInfo ? m_pExInfo->m_pContext : NULL; }
// Useful to see if there is more on the ExInfo chain.
ExInfo* GetExInfo() { SUPPORTS_DAC; return m_pExInfo; }
// helper functions for retrieving information from the exception CONTEXT
TADDR GetSPFromContext()
{
LIMITED_METHOD_CONTRACT;
SUPPORTS_DAC;
return dac_cast<TADDR>((m_pExInfo && m_pExInfo->m_pContext) ? GetSP(m_pExInfo->m_pContext) : PTR_NULL);
}
TADDR GetEBPFromContext()
{
LIMITED_METHOD_CONTRACT;
SUPPORTS_DAC;
return dac_cast<TADDR>((m_pExInfo && m_pExInfo->m_pContext) ? GetFP(m_pExInfo->m_pContext) : PTR_NULL);
}
DWORD GetFault() { SUPPORTS_DAC; return m_pExInfo ? m_pExInfo->m_pExceptionRecord->ExceptionCode : 0; }
private:
ExInfo *m_pExInfo;
}; // class ExInfoWalker
#endif // ELIMINATE_FEF
//---------------------------------------------------------------------------------------
//
// This iterator class walks the stack of a managed thread. Where the iterator stops depends on the
// stackwalk flags.
//
// Notes:
// This class works both in-process and out-of-process (e.g. DAC).
//
class StackFrameIterator
{
public:
// This constructor is for the usage pattern of creating an uninitialized StackFrameIterator and then
// calling Init() on it.
StackFrameIterator(void);
// This constructor is for the usage pattern of creating an initialized StackFrameIterator and then
// calling ResetRegDisp() on it.
StackFrameIterator(Thread * pThread, PTR_Frame pFrame, ULONG32 flags);
//
// We should consider merging Init() and ResetRegDisp().
//
// Initialize the iterator. Note that the iterator has thread-affinity,
// and the stackwalk flags cannot be changed once the iterator is created.
BOOL Init(Thread * pThread,
PTR_Frame pFrame,
PREGDISPLAY pRegDisp,
ULONG32 flags);
// Reset the iterator to the specified REGDISPLAY. The caller must ensure that the REGDISPLAY is valid.
BOOL ResetRegDisp(PREGDISPLAY pRegDisp,
bool fIsFirst);
// @dbgtodo inspection - This function should be removed once the Windows debuggers stop using the old DAC API.
void SetIsFirstFrame(bool isFirst)
{
LIMITED_METHOD_CONTRACT;
m_crawl.isFirst = isFirst;
}
// whether the iterator has reached the root of the stack or not
BOOL IsValid(void);
// advance to the next frame according to the stackwalk flags
StackWalkAction Next(void);
enum FrameState
{
SFITER_UNINITIALIZED, // uninitialized
SFITER_FRAMELESS_METHOD, // managed stack frame
SFITER_FRAME_FUNCTION, // explicit frame
SFITER_SKIPPED_FRAME_FUNCTION, // skipped explicit frame
SFITER_NO_FRAME_TRANSITION, // no-frame transition (currently used for ExInfo only)
SFITER_NATIVE_MARKER_FRAME, // the native stack frame immediately below (stack grows up)
// a managed stack region
SFITER_INITIAL_NATIVE_CONTEXT, // initial native seed CONTEXT
SFITER_DONE, // the iterator has reached the end of the stack
};
FrameState GetFrameState() {LIMITED_METHOD_DAC_CONTRACT; return m_frameState;}
CrawlFrame m_crawl;
#if defined(_DEBUG)
// used in logging
UINT32 m_uFramesProcessed;
#endif // _DEBUG
private:
// This is a helper for the two constructors.
void CommonCtor(Thread * pThread, PTR_Frame pFrame, ULONG32 flags);
// Reset the CrawlFrame owned by the iterator. Used by both Init() and ResetRegDisp().
void ResetCrawlFrame(void);
// Check whether we should stop at the current frame given the stackwalk flags.
// If not, continue advancing to the next frame.
StackWalkAction Filter(void);
// Advance to the next frame regardless of the stackwalk flags. This is used by Next() and Filter().
StackWalkAction NextRaw(void);
// sync the REGDISPLAY to the current CONTEXT
void UpdateRegDisp(void);
// Check whether the IP is managed code. This function updates the following fields on CrawlFrame:
// JitManagerInstance and isFrameless.
void ProcessIp(PCODE Ip);
// Update the CrawlFrame to represent where we have stopped.
// This is called after advancing to a new frame.
void ProcessCurrentFrame(void);
// If an explicit frame is allocated in a managed stack frame (e.g. an inlined pinvoke call),
// we may have skipped an explicit frame. This function checks for them.
BOOL CheckForSkippedFrames(void);
// Perform the necessary tasks before stopping at a managed stack frame. This is mostly validation work.
void PreProcessingForManagedFrames(void);
// Perform the necessary tasks after stopping at a managed stack frame and unwinding to its caller.
// This includes advancing the ExInfo and checking whether the new IP is managed.
void PostProcessingForManagedFrames(void);
// Perform the necessary tasks after stopping at a no-frame transition. This includes loading
// the CONTEXT stored in the ExInfo and updating the REGDISPLAY to the faulting managed stack frame.
void PostProcessingForNoFrameTransition(void);
#if defined(FEATURE_EH_FUNCLETS)
void ResetGCRefReportingState(bool ResetOnlyIntermediaryState = false)
{
LIMITED_METHOD_CONTRACT;
if (!ResetOnlyIntermediaryState)
{
m_sfFuncletParent = StackFrame();
m_fProcessNonFilterFunclet = false;
}
m_sfIntermediaryFuncletParent = StackFrame();
m_fProcessIntermediaryNonFilterFunclet = false;
}
#endif // defined(FEATURE_EH_FUNCLETS)
// Iteration state.
FrameState m_frameState;
// Initial state. Must be preserved for restarting.
Thread * m_pThread; // Thread on which to walk.
PTR_Frame m_pStartFrame; // Frame* passed to Init
// This is the real starting explicit frame. If m_pStartFrame is NULL,
// then this is equal to m_pThread->GetFrame(). Otherwise this is equal to m_pStartFrame.
INDEBUG(PTR_Frame m_pRealStartFrame);
ULONG32 m_flags; // StackWalkFrames flags.
ICodeManagerFlags m_codeManFlags;
ExecutionManager::ScanFlag m_scanFlag;
// the following fields are used to cache information about a managed stack frame
// when we need to stop for skipped explicit frames
EECodeInfo m_cachedCodeInfo;
GSCookie * m_pCachedGSCookie;
#if defined(ELIMINATE_FEF)
ExInfoWalker m_exInfoWalk;
#endif // ELIMINATE_FEF
#if defined(FEATURE_EH_FUNCLETS)
// used in funclet-skipping
StackFrame m_sfParent;
// Used in GC reference enumeration mode
StackFrame m_sfFuncletParent;
bool m_fProcessNonFilterFunclet;
StackFrame m_sfIntermediaryFuncletParent;
bool m_fProcessIntermediaryNonFilterFunclet;
bool m_fDidFuncletReportGCReferences;
#endif // FEATURE_EH_FUNCLETS
#if defined(RECORD_RESUMABLE_FRAME_SP)
LPVOID m_pvResumableFrameTargetSP;
#endif // RECORD_RESUMABLE_FRAME_SP
};
void SetUpRegdisplayForStackWalk(Thread * pThread, T_CONTEXT * pContext, REGDISPLAY * pRegdisplay);
#endif
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/* This is a poor man's implementation of virtual methods. */
/* The purpose of pCrawlFrame is to abstract (at least for the most common cases
from the fact that not all methods are "framed" (basically all methods in
"native" code are "unframed"). That way the job for the enumerator callbacks
becomes much simpler (i.e. more transparent and hopefully less error prone).
Two call-backs still need to distinguish between the two types: GC and exception.
Both of these call-backs need to do really different things; for frameless methods
they need to go through the codemanager and use the resp. apis.
The reason for not implementing virtual methods on crawlFrame is solely because of
the way exception handling is implemented (it does a "long jump" and bypasses
the enumerator (stackWalker) when it finds a matching frame. By doing so couldn't
properly destruct the dynamically created instance of CrawlFrame.
*/
#ifndef __stackwalk_h__
#define __stackwalk_h__
#include "eetwain.h"
#include "stackwalktypes.h"
class Frame;
class CrawlFrame;
class ICodeManager;
class IJitManager;
struct EE_ILEXCEPTION;
class AppDomain;
// This define controls handling of faults in managed code. If it is defined,
// the exception is handled (retried, actually), with a FaultingExceptionFrame
// on the stack. The FEF is used for unwinding. If not defined, the unwinding
// uses the exception context.
#define USE_FEF // to mark where code needs to be changed to eliminate the FEF
#if defined(TARGET_X86) && !defined(TARGET_UNIX)
#undef USE_FEF // Turn off the FEF use on x86.
#define ELIMINATE_FEF
#else
#if defined(ELIMINATE_FEF)
#undef ELIMINATE_FEF
#endif
#endif // TARGET_X86 && !TARGET_UNIX
#if defined(FEATURE_EH_FUNCLETS)
#define RECORD_RESUMABLE_FRAME_SP
#endif
//************************************************************************
// Enumerate all functions.
//************************************************************************
/* This enumerator is meant to be used for the most common cases, i.e. to
enumerate just all the functions of the requested thread. It is just a
cover for the "real" enumerator.
*/
StackWalkAction StackWalkFunctions(Thread * thread, PSTACKWALKFRAMESCALLBACK pCallback, VOID * pData);
/*<TODO>@ISSUE: Maybe use a define instead?</TODO>
#define StackWalkFunctions(thread, callBack, userdata) thread->StackWalkFrames(METHODSONLY, (callBack),(userData))
*/
class CrawlFrame
{
public:
#ifdef TARGET_X86
friend StackWalkAction TAStackCrawlCallBack(CrawlFrame* pCf, void* data);
#endif // TARGET_X86
//************************************************************************
// Functions available for the callbacks (using the current pCrawlFrame)
//************************************************************************
/* Widely used/benign functions */
/* Is this a function? */
/* Returns either a MethodDesc* or NULL for "non-function" frames */
//<TODO>@TODO: what will it return for transition frames?</TODO>
#ifdef FEATURE_INTERPRETER
MethodDesc *GetFunction();
#else // FEATURE_INTERPRETER
inline MethodDesc *GetFunction()
{
LIMITED_METHOD_DAC_CONTRACT;
return pFunc;
}
#endif
Assembly *GetAssembly();
/* Returns either a Frame * (for "framed items) or
Returns NULL for frameless functions
*/
inline Frame* GetFrame() // will return NULL for "frameless methods"
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
if (isFrameless)
return NULL;
else
return pFrame;
}
BOOL IsInCalleesFrames(LPVOID stackPointer);
// Fetch the extra type argument passed in some cases
PTR_VOID GetParamTypeArg();
/* Returns the "this" pointer of the method of the current frame -- at least in some cases.
Returns NULL if the current frame does not have a method, or that method is not an instance method of a class type.
Otherwise, the semantics currently depend, unfortunately, on the architecture. On non-x86 architectures,
should only be called for methods where the generic instantiation context is found via the this pointer (so that
this information will be encoded in the GC Info). On x86, can be called for this case, or if the method
is synchronized.
*/
OBJECTREF GetThisPointer();
/*
Returns ambient Stack pointer for this crawlframe.
Must be a frameless method.
Returns NULL if not available (includes prolog + epilog).
This is safe to call on all methods, but it may return
garbage if the method does not have an ambient SP (eg, ebp-based methods).
x86 is the only platform using ambient SP.
*/
TADDR GetAmbientSPFromCrawlFrame();
void GetExactGenericInstantiations(Instantiation *pClassInst,
Instantiation *pMethodInst);
/* Returns extra information required to reconstruct exact generic parameters,
if any.
Returns NULL if
- no extra information is required (i.e. the code is non-shared, which
you can tell from the MethodDesc)
- the extra information is not available (i.e. optimized away or codegen problem)
Returns a MethodTable if the pMD returned by GetFunction satisfies RequiresInstMethodTableArg,
and returns a MethodDesc if the pMD returned by GetFunction satisfies RequiresInstMethodDescArg.
These together carry the exact instantiation information.
*/
PTR_VOID GetExactGenericArgsToken();
inline CodeManState * GetCodeManState() { LIMITED_METHOD_DAC_CONTRACT; return & codeManState; }
/*
IF YOU USE ANY OF THE SUBSEQUENT FUNCTIONS, YOU NEED TO REALLY UNDERSTAND THE
STACK-WALKER (INCLUDING UNWINDING OF METHODS IN MANAGED NATIVE CODE)!
YOU ALSO NEED TO UNDERSTAND THAT THESE FUNCTIONS MIGHT CHANGE ON AN AS-NEED BASIS.
*/
/* The rest are meant to be used only by the exception catcher and the GC call-back */
/* Is currently a frame available? */
/* conceptually returns (GetFrame(pCrawlFrame) == NULL)
*/
inline bool IsFrameless()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
return isFrameless;
}
/* Is it the current active (top-most) frame
*/
inline bool IsActiveFrame()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFirst != 0xcc);
return isFirst;
}
/* Is it the current active function (top-most frame)
asserts for non-functions, should be used for managed native code only
*/
inline bool IsActiveFunc()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFirst != 0xcc);
return (pFunc && isFirst);
}
/* Is it the current active function (top-most frame)
which faulted or threw an exception ?
asserts for non-functions, should be used for managed native code only
*/
bool IsInterrupted()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isInterrupted != 0xcc);
return (pFunc && isInterrupted /* && isFrameless?? */);
}
/* Is it the current active function (top-most frame) which faulted ?
asserts for non-functions, should be used for managed native code only
*/
bool HasFaulted()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)hasFaulted != 0xcc);
return (pFunc && hasFaulted /* && isFrameless?? */);
}
/* Is this CrawlFrame just marking that we're in native code?
Such frames are only provided when the stackwalk is inited w/ NOTIFY_ON_U2M_TRANSITIONS.
The only use of these crawlframes is to get the Regdisplay.
*/
bool IsNativeMarker()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isNativeMarker != 0xcc);
return isNativeMarker;
}
/* x86 does not always push a FaultingExceptionFrame on the stack when there is a native exception
(e.g. a breakpoint). In this case, it relies on the CONTEXT stored on the ExInfo to resume
the stackwalk at the managed stack frame which has faulted.
This flag is set when the stackwalker is stopped at such a no-explicit-frame transition. Conceptually
this is just like stopping at a transition frame. Note that the stackwalker only stops at no-frame
transition if NOTIFY_ON_NO_FRAME_TRANSITIONS is set.
*/
bool IsNoFrameTransition()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isNoFrameTransition != 0xcc);
return isNoFrameTransition;
}
// A no-frame transition is one protected by an ExInfo. It's an optimization on x86 to avoid pushing a
// FaultingExceptionFrame (FEF). Thus, for all intents and purposes, we should treat a no-frame
// transition as a FEF. This function returns a stack address for the no-frame transition to substitute
// as the frame address of a FEF. It's currently only used by the debugger stackwalker.
TADDR GetNoFrameTransitionMarker()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isNoFrameTransition != 0xcc);
return (isNoFrameTransition ? taNoFrameTransitionMarker : NULL);
}
/* Has the IP been adjusted to a point where it is safe to do GC ?
(for OutOfLineThrownExceptionFrame)
asserts for non-functions, should be used for managed native code only
*/
bool IsIPadjusted()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isIPadjusted != 0xcc);
return (pFunc && isIPadjusted /* && isFrameless?? */);
}
/* Gets the ICodeMangerFlags for the current frame */
unsigned GetCodeManagerFlags()
{
CONTRACTL {
NOTHROW;
GC_NOTRIGGER;
SUPPORTS_DAC;
} CONTRACTL_END;
unsigned flags = 0;
if (IsActiveFunc())
flags |= ActiveStackFrame;
if (IsInterrupted())
{
flags |= ExecutionAborted;
if (!HasFaulted() && !IsIPadjusted())
{
_ASSERTE(!(flags & ActiveStackFrame));
flags |= AbortingCall;
}
}
#if defined(FEATURE_EH_FUNCLETS)
if (ShouldParentToFuncletSkipReportingGCReferences())
{
flags |= ParentOfFuncletStackFrame;
}
#endif // defined(FEATURE_EH_FUNCLETS)
return flags;
}
/* Is this frame at a safe spot for GC?
*/
bool IsGcSafe();
#if defined(TARGET_ARM) || defined(TARGET_ARM64)
bool HasTailCalls();
#endif // TARGET_ARM || TARGET_ARM64
PREGDISPLAY GetRegisterSet()
{
LIMITED_METHOD_DAC_CONTRACT;
// We would like to make the following assertion, but it is legitimately
// violated when we perform a crawl to find the return address for a hijack.
// _ASSERTE(isFrameless);
return pRD;
}
EECodeInfo * GetCodeInfo()
{
LIMITED_METHOD_DAC_CONTRACT;
// This assumes that CrawlFrame is host-only structure with DACCESS_COMPILE
// and thus it always returns the host address.
return &codeInfo;
}
GCInfoToken GetGCInfoToken()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetGCInfoToken();
}
PTR_VOID GetGCInfo()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetGCInfo();
}
const METHODTOKEN& GetMethodToken()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetMethodToken();
}
unsigned GetRelOffset()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetRelOffset();
}
IJitManager* GetJitManager()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetJitManager();
}
ICodeManager* GetCodeManager()
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE((int)isFrameless != 0xcc);
_ASSERTE(isFrameless);
return codeInfo.GetCodeManager();
}
inline StackwalkCacheEntry* GetStackwalkCacheEntry()
{
LIMITED_METHOD_CONTRACT;
_ASSERTE (isCachedMethod != stackWalkCache.IsEmpty());
if (isCachedMethod && stackWalkCache.m_CacheEntry.IsSafeToUseCache())
{
return &(stackWalkCache.m_CacheEntry);
}
else
{
return NULL;
}
}
void CheckGSCookies();
inline Thread* GetThread()
{
LIMITED_METHOD_CONTRACT;
return pThread;
}
#if defined(FEATURE_EH_FUNCLETS)
bool IsFunclet()
{
WRAPPER_NO_CONTRACT;
if (!IsFrameless())
return false;
return !!codeInfo.IsFunclet();
}
bool IsFilterFunclet();
// Indicates if the funclet has already reported GC
// references (or not). This will return true if
// we come across the parent frame of a funclet
// that is active on the stack.
bool ShouldParentToFuncletSkipReportingGCReferences()
{
LIMITED_METHOD_CONTRACT;
return fShouldParentToFuncletSkipReportingGCReferences;
}
bool ShouldCrawlframeReportGCReferences()
{
LIMITED_METHOD_CONTRACT;
return fShouldCrawlframeReportGCReferences;
}
bool ShouldParentToFuncletUseUnwindTargetLocationForGCReporting()
{
LIMITED_METHOD_CONTRACT;
return fShouldParentFrameUseUnwindTargetPCforGCReporting;
}
const EE_ILEXCEPTION_CLAUSE& GetEHClauseForCatch()
{
return ehClauseForCatch;
}
#endif // FEATURE_EH_FUNCLETS
protected:
// CrawlFrames are temporarily created by the enumerator.
// Do not create one from C++. This protected constructor polices this rule.
CrawlFrame();
void SetCurGSCookie(GSCookie * pGSCookie);
private:
friend class Thread;
friend class EECodeManager;
friend class StackFrameIterator;
#ifdef FEATURE_EH_FUNCLETS
friend class ExceptionTracker;
#endif // FEATURE_EH_FUNCLETS
CodeManState codeManState;
bool isFrameless;
bool isFirst;
// The next three fields are only valid for managed stack frames. They are set using attributes
// on explicit frames, and they are reset after processing each managed stack frame.
bool isInterrupted;
bool hasFaulted;
bool isIPadjusted;
bool isNativeMarker;
bool isProfilerDoStackSnapshot;
bool isNoFrameTransition;
TADDR taNoFrameTransitionMarker; // see code:CrawlFrame.GetNoFrameTransitionMarker
PTR_Frame pFrame;
MethodDesc *pFunc;
// the rest is only used for "frameless methods"
PREGDISPLAY pRD; // "thread context"/"virtual register set"
EECodeInfo codeInfo;
#if defined(FEATURE_EH_FUNCLETS)
bool isFilterFunclet;
bool isFilterFuncletCached;
bool fShouldParentToFuncletSkipReportingGCReferences;
bool fShouldCrawlframeReportGCReferences;
bool fShouldParentFrameUseUnwindTargetPCforGCReporting;
EE_ILEXCEPTION_CLAUSE ehClauseForCatch;
#endif //FEATURE_EH_FUNCLETS
Thread* pThread;
// fields used for stackwalk cache
BOOL isCachedMethod;
StackwalkCache stackWalkCache;
GSCookie *pCurGSCookie;
GSCookie *pFirstGSCookie;
friend class Frame; // added to allow 'friend void CrawlFrame::GotoNextFrame();' declaration in class Frame, frames.h
void GotoNextFrame();
};
void GcEnumObject(LPVOID pData, OBJECTREF *pObj);
StackWalkAction GcStackCrawlCallBack(CrawlFrame* pCF, VOID* pData);
#if defined(ELIMINATE_FEF)
//******************************************************************************
// This class is used to help use exception context records to resync a
// stackwalk, when managed code has generated an exception (eg, AV, zerodiv.,,)
// Such an exception causes a transition from the managed code into unmanaged
// OS and runtime code, but without the benefit of any Frame. This code helps
// the stackwalker simulate the effect that such a frame would have.
// In particular, this class has methods to walk the chain of ExInfos, looking
// for records with pContext pointers with certain characteristics. The
// characteristics that are important are the location in the stack (ie, is a
// given pContext relevant at a particular point in the stack walk), and
// whether the pContext was generated in managed code.
//******************************************************************************
class ExInfoWalker
{
public:
ExInfoWalker() : m_pExInfo(0) { SUPPORTS_DAC; }
void Init (ExInfo *pExInfo) { SUPPORTS_DAC; m_pExInfo = pExInfo; }
// Skip one ExInfo.
void WalkOne();
// Attempt to find an ExInfo with a pContext that is higher (older) than
// a given minimum location.
void WalkToPosition(TADDR taMinimum, BOOL bPopFrames);
// Attempt to find an ExInfo with a pContext that has an IP in managed code.
void WalkToManaged();
// Return current ExInfo's m_pContext, or NULL if no m_pExInfo.
PTR_CONTEXT GetContext() { SUPPORTS_DAC; return m_pExInfo ? m_pExInfo->m_pContext : NULL; }
// Useful to see if there is more on the ExInfo chain.
ExInfo* GetExInfo() { SUPPORTS_DAC; return m_pExInfo; }
// helper functions for retrieving information from the exception CONTEXT
TADDR GetSPFromContext()
{
LIMITED_METHOD_CONTRACT;
SUPPORTS_DAC;
return dac_cast<TADDR>((m_pExInfo && m_pExInfo->m_pContext) ? GetSP(m_pExInfo->m_pContext) : PTR_NULL);
}
TADDR GetEBPFromContext()
{
LIMITED_METHOD_CONTRACT;
SUPPORTS_DAC;
return dac_cast<TADDR>((m_pExInfo && m_pExInfo->m_pContext) ? GetFP(m_pExInfo->m_pContext) : PTR_NULL);
}
DWORD GetFault() { SUPPORTS_DAC; return m_pExInfo ? m_pExInfo->m_pExceptionRecord->ExceptionCode : 0; }
private:
ExInfo *m_pExInfo;
}; // class ExInfoWalker
#endif // ELIMINATE_FEF
//---------------------------------------------------------------------------------------
//
// This iterator class walks the stack of a managed thread. Where the iterator stops depends on the
// stackwalk flags.
//
// Notes:
// This class works both in-process and out-of-process (e.g. DAC).
//
class StackFrameIterator
{
public:
// This constructor is for the usage pattern of creating an uninitialized StackFrameIterator and then
// calling Init() on it.
StackFrameIterator(void);
// This constructor is for the usage pattern of creating an initialized StackFrameIterator and then
// calling ResetRegDisp() on it.
StackFrameIterator(Thread * pThread, PTR_Frame pFrame, ULONG32 flags);
//
// We should consider merging Init() and ResetRegDisp().
//
// Initialize the iterator. Note that the iterator has thread-affinity,
// and the stackwalk flags cannot be changed once the iterator is created.
BOOL Init(Thread * pThread,
PTR_Frame pFrame,
PREGDISPLAY pRegDisp,
ULONG32 flags);
// Reset the iterator to the specified REGDISPLAY. The caller must ensure that the REGDISPLAY is valid.
BOOL ResetRegDisp(PREGDISPLAY pRegDisp,
bool fIsFirst);
// @dbgtodo inspection - This function should be removed once the Windows debuggers stop using the old DAC API.
void SetIsFirstFrame(bool isFirst)
{
LIMITED_METHOD_CONTRACT;
m_crawl.isFirst = isFirst;
}
// whether the iterator has reached the root of the stack or not
BOOL IsValid(void);
// advance to the next frame according to the stackwalk flags
StackWalkAction Next(void);
enum FrameState
{
SFITER_UNINITIALIZED, // uninitialized
SFITER_FRAMELESS_METHOD, // managed stack frame
SFITER_FRAME_FUNCTION, // explicit frame
SFITER_SKIPPED_FRAME_FUNCTION, // skipped explicit frame
SFITER_NO_FRAME_TRANSITION, // no-frame transition (currently used for ExInfo only)
SFITER_NATIVE_MARKER_FRAME, // the native stack frame immediately below (stack grows up)
// a managed stack region
SFITER_INITIAL_NATIVE_CONTEXT, // initial native seed CONTEXT
SFITER_DONE, // the iterator has reached the end of the stack
};
FrameState GetFrameState() {LIMITED_METHOD_DAC_CONTRACT; return m_frameState;}
CrawlFrame m_crawl;
#if defined(_DEBUG)
// used in logging
UINT32 m_uFramesProcessed;
#endif // _DEBUG
private:
// This is a helper for the two constructors.
void CommonCtor(Thread * pThread, PTR_Frame pFrame, ULONG32 flags);
// Reset the CrawlFrame owned by the iterator. Used by both Init() and ResetRegDisp().
void ResetCrawlFrame(void);
// Check whether we should stop at the current frame given the stackwalk flags.
// If not, continue advancing to the next frame.
StackWalkAction Filter(void);
// Advance to the next frame regardless of the stackwalk flags. This is used by Next() and Filter().
StackWalkAction NextRaw(void);
// sync the REGDISPLAY to the current CONTEXT
void UpdateRegDisp(void);
// Check whether the IP is managed code. This function updates the following fields on CrawlFrame:
// JitManagerInstance and isFrameless.
void ProcessIp(PCODE Ip);
// Update the CrawlFrame to represent where we have stopped.
// This is called after advancing to a new frame.
void ProcessCurrentFrame(void);
// If an explicit frame is allocated in a managed stack frame (e.g. an inlined pinvoke call),
// we may have skipped an explicit frame. This function checks for them.
BOOL CheckForSkippedFrames(void);
// Perform the necessary tasks before stopping at a managed stack frame. This is mostly validation work.
void PreProcessingForManagedFrames(void);
// Perform the necessary tasks after stopping at a managed stack frame and unwinding to its caller.
// This includes advancing the ExInfo and checking whether the new IP is managed.
void PostProcessingForManagedFrames(void);
// Perform the necessary tasks after stopping at a no-frame transition. This includes loading
// the CONTEXT stored in the ExInfo and updating the REGDISPLAY to the faulting managed stack frame.
void PostProcessingForNoFrameTransition(void);
#if defined(FEATURE_EH_FUNCLETS)
void ResetGCRefReportingState(bool ResetOnlyIntermediaryState = false)
{
LIMITED_METHOD_CONTRACT;
if (!ResetOnlyIntermediaryState)
{
m_sfFuncletParent = StackFrame();
m_fProcessNonFilterFunclet = false;
}
m_sfIntermediaryFuncletParent = StackFrame();
m_fProcessIntermediaryNonFilterFunclet = false;
}
#endif // defined(FEATURE_EH_FUNCLETS)
// Iteration state.
FrameState m_frameState;
// Initial state. Must be preserved for restarting.
Thread * m_pThread; // Thread on which to walk.
PTR_Frame m_pStartFrame; // Frame* passed to Init
// This is the real starting explicit frame. If m_pStartFrame is NULL,
// then this is equal to m_pThread->GetFrame(). Otherwise this is equal to m_pStartFrame.
INDEBUG(PTR_Frame m_pRealStartFrame);
ULONG32 m_flags; // StackWalkFrames flags.
ICodeManagerFlags m_codeManFlags;
ExecutionManager::ScanFlag m_scanFlag;
// the following fields are used to cache information about a managed stack frame
// when we need to stop for skipped explicit frames
EECodeInfo m_cachedCodeInfo;
GSCookie * m_pCachedGSCookie;
#if defined(ELIMINATE_FEF)
ExInfoWalker m_exInfoWalk;
#endif // ELIMINATE_FEF
#if defined(FEATURE_EH_FUNCLETS)
// used in funclet-skipping
StackFrame m_sfParent;
// Used in GC reference enumeration mode
StackFrame m_sfFuncletParent;
bool m_fProcessNonFilterFunclet;
StackFrame m_sfIntermediaryFuncletParent;
bool m_fProcessIntermediaryNonFilterFunclet;
bool m_fDidFuncletReportGCReferences;
#endif // FEATURE_EH_FUNCLETS
#if defined(RECORD_RESUMABLE_FRAME_SP)
LPVOID m_pvResumableFrameTargetSP;
#endif // RECORD_RESUMABLE_FRAME_SP
};
void SetUpRegdisplayForStackWalk(Thread * pThread, T_CONTEXT * pContext, REGDISPLAY * pRegdisplay);
#endif
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Methodical/eh/deadcode/badcodeinsidefinally.il | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern mscorlib{
.ver 0:0:0:0
}
.assembly extern eh_common{}
.assembly 'badcodeinsidefinally'
{
.ver 0:0:0:0
}
.assembly extern xunit.core {}
.class public auto ansi beforefieldinit Test_badcodeinsidefinally
extends [mscorlib]System.Object
{
.method static object GetObj() cil managed
{
.locals init (string str)
try_l0_begin:
try_l1_begin:
ldstr "pass"
stloc.0
leave done
try_l1_end:
finally_l1_begin:
try_l2_begin:
ldnull
throw
try_l2_end:
catch_l2_begin:
throw
catch_l2_end:
pop
endfinally
finally_l1_end:
try_l0_end:
catch_l0_begin:
pop
leave catch_l0_end
catch_l0_end:
done:
ldloc.0
ret
.try try_l2_begin to try_l2_end
catch [mscorlib]System.Exception handler catch_l2_begin to catch_l2_end
.try try_l1_begin to try_l1_end
finally handler finally_l1_begin to finally_l1_end
.try try_l0_begin to try_l0_end
catch [mscorlib]System.Exception handler catch_l0_begin to catch_l0_end
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.locals init (object V_0,
class [mscorlib]System.IO.StringWriter expectedOut,
class [eh_common]TestUtil.TestLog testLog
)
newobj instance void [mscorlib]System.IO.StringWriter::.ctor()
stloc.s expectedOut
ldloc.s expectedOut
ldstr "pass"
callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(string)
ldloc.s expectedOut
newobj instance void [eh_common]TestUtil.TestLog::.ctor(object)
stloc.s testLog
ldloc.s testLog
callvirt instance void [eh_common]TestUtil.TestLog::StartRecording()
call object Test_badcodeinsidefinally::GetObj()
call void [System.Console]System.Console::WriteLine(object)
ldloc.s testLog
callvirt instance void [eh_common]TestUtil.TestLog::StopRecording()
ldloc.s testLog
callvirt instance int32 [eh_common]TestUtil.TestLog::VerifyOutput()
ret
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern mscorlib{
.ver 0:0:0:0
}
.assembly extern eh_common{}
.assembly 'badcodeinsidefinally'
{
.ver 0:0:0:0
}
.assembly extern xunit.core {}
.class public auto ansi beforefieldinit Test_badcodeinsidefinally
extends [mscorlib]System.Object
{
.method static object GetObj() cil managed
{
.locals init (string str)
try_l0_begin:
try_l1_begin:
ldstr "pass"
stloc.0
leave done
try_l1_end:
finally_l1_begin:
try_l2_begin:
ldnull
throw
try_l2_end:
catch_l2_begin:
throw
catch_l2_end:
pop
endfinally
finally_l1_end:
try_l0_end:
catch_l0_begin:
pop
leave catch_l0_end
catch_l0_end:
done:
ldloc.0
ret
.try try_l2_begin to try_l2_end
catch [mscorlib]System.Exception handler catch_l2_begin to catch_l2_end
.try try_l1_begin to try_l1_end
finally handler finally_l1_begin to finally_l1_end
.try try_l0_begin to try_l0_end
catch [mscorlib]System.Exception handler catch_l0_begin to catch_l0_end
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.locals init (object V_0,
class [mscorlib]System.IO.StringWriter expectedOut,
class [eh_common]TestUtil.TestLog testLog
)
newobj instance void [mscorlib]System.IO.StringWriter::.ctor()
stloc.s expectedOut
ldloc.s expectedOut
ldstr "pass"
callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(string)
ldloc.s expectedOut
newobj instance void [eh_common]TestUtil.TestLog::.ctor(object)
stloc.s testLog
ldloc.s testLog
callvirt instance void [eh_common]TestUtil.TestLog::StartRecording()
call object Test_badcodeinsidefinally::GetObj()
call void [System.Console]System.Console::WriteLine(object)
ldloc.s testLog
callvirt instance void [eh_common]TestUtil.TestLog::StopRecording()
ldloc.s testLog
callvirt instance int32 [eh_common]TestUtil.TestLog::VerifyOutput()
ret
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Private.CoreLib/src/System/DateTime.Win32.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System
{
public readonly partial struct DateTime
{
private static unsafe bool SystemSupportsLeapSeconds()
{
Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION slsi;
return Interop.NtDll.NtQuerySystemInformation(
Interop.NtDll.SystemLeapSecondInformation,
&slsi,
(uint)sizeof(Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION),
null) == 0 && slsi.Enabled != Interop.BOOLEAN.FALSE;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System
{
public readonly partial struct DateTime
{
private static unsafe bool SystemSupportsLeapSeconds()
{
Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION slsi;
return Interop.NtDll.NtQuerySystemInformation(
Interop.NtDll.SystemLeapSecondInformation,
&slsi,
(uint)sizeof(Interop.NtDll.SYSTEM_LEAP_SECOND_INFORMATION),
null) == 0 && slsi.Enabled != Interop.BOOLEAN.FALSE;
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Net.Sockets/src/System/Net/Sockets/TCPListener.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Threading;
using System.Threading.Tasks;
using System.Runtime.Versioning;
using System.Diagnostics;
namespace System.Net.Sockets
{
// The System.Net.Sockets.TcpListener class provide TCP services at a higher level of abstraction
// than the System.Net.Sockets.Socket class. System.Net.Sockets.TcpListener is used to create a
// host process that listens for connections from TCP clients.
public class TcpListener
{
private readonly IPEndPoint _serverSocketEP;
private Socket? _serverSocket;
private bool _active;
private bool _exclusiveAddressUse;
private bool? _allowNatTraversal;
// Initializes a new instance of the TcpListener class with the specified local end point.
public TcpListener(IPEndPoint localEP)
{
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP);
ArgumentNullException.ThrowIfNull(localEP);
_serverSocketEP = localEP;
_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
}
// Initializes a new instance of the TcpListener class that listens to the specified IP address
// and port.
public TcpListener(IPAddress localaddr, int port)
{
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localaddr);
ArgumentNullException.ThrowIfNull(localaddr);
if (!TcpValidationHelpers.ValidatePortNumber(port))
{
throw new ArgumentOutOfRangeException(nameof(port));
}
_serverSocketEP = new IPEndPoint(localaddr, port);
_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
}
// Initiailizes a new instance of the TcpListener class that listens on the specified port.
[Obsolete("This constructor has been deprecated. Use TcpListener(IPAddress localaddr, int port) instead.")]
public TcpListener(int port)
{
if (!TcpValidationHelpers.ValidatePortNumber(port))
{
throw new ArgumentOutOfRangeException(nameof(port));
}
_serverSocketEP = new IPEndPoint(IPAddress.Any, port);
_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
}
// Used by the class to provide the underlying network socket.
public Socket Server
{
get
{
CreateNewSocketIfNeeded();
return _serverSocket!;
}
}
// Used by the class to indicate that the listener's socket has been bound to a port
// and started listening.
protected bool Active
{
get
{
return _active;
}
}
// Gets the m_Active EndPoint for the local listener socket.
public EndPoint LocalEndpoint
{
get
{
return _active ? _serverSocket!.LocalEndPoint! : _serverSocketEP;
}
}
public bool ExclusiveAddressUse
{
get
{
return _serverSocket != null ? _serverSocket.ExclusiveAddressUse : _exclusiveAddressUse;
}
set
{
if (_active)
{
throw new InvalidOperationException(SR.net_tcplistener_mustbestopped);
}
if (_serverSocket != null)
{
_serverSocket.ExclusiveAddressUse = value;
}
_exclusiveAddressUse = value;
}
}
[SupportedOSPlatform("windows")]
public void AllowNatTraversal(bool allowed)
{
if (_active)
{
throw new InvalidOperationException(SR.net_tcplistener_mustbestopped);
}
if (_serverSocket != null)
{
SetIPProtectionLevel(allowed); // Set it only for the current socket to preserve existing behavior
}
else
{
_allowNatTraversal = allowed;
}
}
// Starts listening to network requests.
public void Start()
{
Start((int)SocketOptionName.MaxConnections);
}
public void Start(int backlog)
{
if (backlog > (int)SocketOptionName.MaxConnections || backlog < 0)
{
throw new ArgumentOutOfRangeException(nameof(backlog));
}
// Already listening.
if (_active)
{
return;
}
CreateNewSocketIfNeeded();
_serverSocket!.Bind(_serverSocketEP);
try
{
_serverSocket.Listen(backlog);
}
catch (SocketException)
{
// When there is an exception, unwind previous actions (bind, etc).
Stop();
throw;
}
_active = true;
}
// Closes the network connection.
public void Stop()
{
_serverSocket?.Dispose();
_active = false;
_serverSocket = null;
}
// Determine if there are pending connection requests.
public bool Pending()
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
return _serverSocket!.Poll(0, SelectMode.SelectRead);
}
// Accept the first pending connection
public Socket AcceptSocket()
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
return _serverSocket!.Accept();
}
public TcpClient AcceptTcpClient()
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
Socket acceptedSocket = _serverSocket!.Accept();
return new TcpClient(acceptedSocket);
}
public IAsyncResult BeginAcceptSocket(AsyncCallback? callback, object? state) =>
TaskToApm.Begin(AcceptSocketAsync(), callback, state);
public Socket EndAcceptSocket(IAsyncResult asyncResult) =>
EndAcceptCore<Socket>(asyncResult);
public IAsyncResult BeginAcceptTcpClient(AsyncCallback? callback, object? state) =>
TaskToApm.Begin(AcceptTcpClientAsync(), callback, state);
public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) =>
EndAcceptCore<TcpClient>(asyncResult);
public Task<Socket> AcceptSocketAsync() => AcceptSocketAsync(CancellationToken.None).AsTask();
public ValueTask<Socket> AcceptSocketAsync(CancellationToken cancellationToken)
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
return _serverSocket!.AcceptAsync(cancellationToken);
}
public Task<TcpClient> AcceptTcpClientAsync() => AcceptTcpClientAsync(CancellationToken.None).AsTask();
public ValueTask<TcpClient> AcceptTcpClientAsync(CancellationToken cancellationToken)
{
return WaitAndWrap(AcceptSocketAsync(cancellationToken));
static async ValueTask<TcpClient> WaitAndWrap(ValueTask<Socket> task) =>
new TcpClient(await task.ConfigureAwait(false));
}
// This creates a TcpListener that listens on both IPv4 and IPv6 on the given port.
public static TcpListener Create(int port)
{
if (!TcpValidationHelpers.ValidatePortNumber(port))
{
throw new ArgumentOutOfRangeException(nameof(port));
}
TcpListener listener;
if (Socket.OSSupportsIPv6)
{
// If OS supports IPv6 use dual mode so both address families work.
listener = new TcpListener(IPAddress.IPv6Any, port);
listener.Server.DualMode = true;
}
else
{
// If not, fall-back to old IPv4.
listener = new TcpListener(IPAddress.Any, port);
}
return listener;
}
[SupportedOSPlatform("windows")]
private void SetIPProtectionLevel(bool allowed)
=> _serverSocket!.SetIPProtectionLevel(allowed ? IPProtectionLevel.Unrestricted : IPProtectionLevel.EdgeRestricted);
private void CreateNewSocketIfNeeded()
{
_serverSocket ??= new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
if (_exclusiveAddressUse)
{
_serverSocket.ExclusiveAddressUse = true;
}
if (_allowNatTraversal != null)
{
Debug.Assert(OperatingSystem.IsWindows());
SetIPProtectionLevel(_allowNatTraversal.GetValueOrDefault());
_allowNatTraversal = null; // Reset value to avoid affecting more sockets
}
}
private TResult EndAcceptCore<TResult>(IAsyncResult asyncResult)
{
try
{
return TaskToApm.End<TResult>(asyncResult);
}
catch (SocketException) when (!_active)
{
// Socket.EndAccept(iar) throws ObjectDisposedException when the underlying socket gets closed.
// TcpClient's documented behavior was to propagate that exception, we need to emulate it for compatibility:
throw new ObjectDisposedException(typeof(Socket).FullName);
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Threading;
using System.Threading.Tasks;
using System.Runtime.Versioning;
using System.Diagnostics;
namespace System.Net.Sockets
{
// The System.Net.Sockets.TcpListener class provide TCP services at a higher level of abstraction
// than the System.Net.Sockets.Socket class. System.Net.Sockets.TcpListener is used to create a
// host process that listens for connections from TCP clients.
public class TcpListener
{
private readonly IPEndPoint _serverSocketEP;
private Socket? _serverSocket;
private bool _active;
private bool _exclusiveAddressUse;
private bool? _allowNatTraversal;
// Initializes a new instance of the TcpListener class with the specified local end point.
public TcpListener(IPEndPoint localEP)
{
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localEP);
ArgumentNullException.ThrowIfNull(localEP);
_serverSocketEP = localEP;
_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
}
// Initializes a new instance of the TcpListener class that listens to the specified IP address
// and port.
public TcpListener(IPAddress localaddr, int port)
{
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, localaddr);
ArgumentNullException.ThrowIfNull(localaddr);
if (!TcpValidationHelpers.ValidatePortNumber(port))
{
throw new ArgumentOutOfRangeException(nameof(port));
}
_serverSocketEP = new IPEndPoint(localaddr, port);
_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
}
// Initiailizes a new instance of the TcpListener class that listens on the specified port.
[Obsolete("This constructor has been deprecated. Use TcpListener(IPAddress localaddr, int port) instead.")]
public TcpListener(int port)
{
if (!TcpValidationHelpers.ValidatePortNumber(port))
{
throw new ArgumentOutOfRangeException(nameof(port));
}
_serverSocketEP = new IPEndPoint(IPAddress.Any, port);
_serverSocket = new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
}
// Used by the class to provide the underlying network socket.
public Socket Server
{
get
{
CreateNewSocketIfNeeded();
return _serverSocket!;
}
}
// Used by the class to indicate that the listener's socket has been bound to a port
// and started listening.
protected bool Active
{
get
{
return _active;
}
}
// Gets the m_Active EndPoint for the local listener socket.
public EndPoint LocalEndpoint
{
get
{
return _active ? _serverSocket!.LocalEndPoint! : _serverSocketEP;
}
}
public bool ExclusiveAddressUse
{
get
{
return _serverSocket != null ? _serverSocket.ExclusiveAddressUse : _exclusiveAddressUse;
}
set
{
if (_active)
{
throw new InvalidOperationException(SR.net_tcplistener_mustbestopped);
}
if (_serverSocket != null)
{
_serverSocket.ExclusiveAddressUse = value;
}
_exclusiveAddressUse = value;
}
}
[SupportedOSPlatform("windows")]
public void AllowNatTraversal(bool allowed)
{
if (_active)
{
throw new InvalidOperationException(SR.net_tcplistener_mustbestopped);
}
if (_serverSocket != null)
{
SetIPProtectionLevel(allowed); // Set it only for the current socket to preserve existing behavior
}
else
{
_allowNatTraversal = allowed;
}
}
// Starts listening to network requests.
public void Start()
{
Start((int)SocketOptionName.MaxConnections);
}
public void Start(int backlog)
{
if (backlog > (int)SocketOptionName.MaxConnections || backlog < 0)
{
throw new ArgumentOutOfRangeException(nameof(backlog));
}
// Already listening.
if (_active)
{
return;
}
CreateNewSocketIfNeeded();
_serverSocket!.Bind(_serverSocketEP);
try
{
_serverSocket.Listen(backlog);
}
catch (SocketException)
{
// When there is an exception, unwind previous actions (bind, etc).
Stop();
throw;
}
_active = true;
}
// Closes the network connection.
public void Stop()
{
_serverSocket?.Dispose();
_active = false;
_serverSocket = null;
}
// Determine if there are pending connection requests.
public bool Pending()
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
return _serverSocket!.Poll(0, SelectMode.SelectRead);
}
// Accept the first pending connection
public Socket AcceptSocket()
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
return _serverSocket!.Accept();
}
public TcpClient AcceptTcpClient()
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
Socket acceptedSocket = _serverSocket!.Accept();
return new TcpClient(acceptedSocket);
}
public IAsyncResult BeginAcceptSocket(AsyncCallback? callback, object? state) =>
TaskToApm.Begin(AcceptSocketAsync(), callback, state);
public Socket EndAcceptSocket(IAsyncResult asyncResult) =>
EndAcceptCore<Socket>(asyncResult);
public IAsyncResult BeginAcceptTcpClient(AsyncCallback? callback, object? state) =>
TaskToApm.Begin(AcceptTcpClientAsync(), callback, state);
public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult) =>
EndAcceptCore<TcpClient>(asyncResult);
public Task<Socket> AcceptSocketAsync() => AcceptSocketAsync(CancellationToken.None).AsTask();
public ValueTask<Socket> AcceptSocketAsync(CancellationToken cancellationToken)
{
if (!_active)
{
throw new InvalidOperationException(SR.net_stopped);
}
return _serverSocket!.AcceptAsync(cancellationToken);
}
public Task<TcpClient> AcceptTcpClientAsync() => AcceptTcpClientAsync(CancellationToken.None).AsTask();
public ValueTask<TcpClient> AcceptTcpClientAsync(CancellationToken cancellationToken)
{
return WaitAndWrap(AcceptSocketAsync(cancellationToken));
static async ValueTask<TcpClient> WaitAndWrap(ValueTask<Socket> task) =>
new TcpClient(await task.ConfigureAwait(false));
}
// This creates a TcpListener that listens on both IPv4 and IPv6 on the given port.
public static TcpListener Create(int port)
{
if (!TcpValidationHelpers.ValidatePortNumber(port))
{
throw new ArgumentOutOfRangeException(nameof(port));
}
TcpListener listener;
if (Socket.OSSupportsIPv6)
{
// If OS supports IPv6 use dual mode so both address families work.
listener = new TcpListener(IPAddress.IPv6Any, port);
listener.Server.DualMode = true;
}
else
{
// If not, fall-back to old IPv4.
listener = new TcpListener(IPAddress.Any, port);
}
return listener;
}
[SupportedOSPlatform("windows")]
private void SetIPProtectionLevel(bool allowed)
=> _serverSocket!.SetIPProtectionLevel(allowed ? IPProtectionLevel.Unrestricted : IPProtectionLevel.EdgeRestricted);
private void CreateNewSocketIfNeeded()
{
_serverSocket ??= new Socket(_serverSocketEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
if (_exclusiveAddressUse)
{
_serverSocket.ExclusiveAddressUse = true;
}
if (_allowNatTraversal != null)
{
Debug.Assert(OperatingSystem.IsWindows());
SetIPProtectionLevel(_allowNatTraversal.GetValueOrDefault());
_allowNatTraversal = null; // Reset value to avoid affecting more sockets
}
}
private TResult EndAcceptCore<TResult>(IAsyncResult asyncResult)
{
try
{
return TaskToApm.End<TResult>(asyncResult);
}
catch (SocketException) when (!_active)
{
// Socket.EndAccept(iar) throws ObjectDisposedException when the underlying socket gets closed.
// TcpClient's documented behavior was to propagate that exception, we need to emulate it for compatibility:
throw new ObjectDisposedException(typeof(Socket).FullName);
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Private.CoreLib/src/System/Globalization/IcuLocaleData.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
#pragma warning disable SA1001
// This file contains the handling of Windows OS specific culture features.
namespace System.Globalization
{
internal enum IcuLocaleDataParts
{
Lcid = 0,
AnsiCodePage = 1,
OemCodePage = 2,
MacCodePage = 3,
EbcdicCodePage = 4,
GeoId = 5,
DigitSubstitutionOrListSeparator = 6,
SpecificLocaleIndex = 7,
ConsoleLocaleIndex = 8
}
internal static partial class IcuLocaleData
{
private static ReadOnlySpan<byte> CultureNames => new byte[]
{
(byte)'a', (byte)'a', (byte)'-', (byte)'d', (byte)'j', // aa, aa-dj
(byte)'a', (byte)'a', (byte)'-', (byte)'e', (byte)'r', // aa-er
(byte)'a', (byte)'a', (byte)'-', (byte)'e', (byte)'t', // aa-et
(byte)'a', (byte)'f', (byte)'-', (byte)'n', (byte)'a', // af, af-na
(byte)'a', (byte)'f', (byte)'-', (byte)'z', (byte)'a', // af-za
(byte)'a', (byte)'g', (byte)'q', (byte)'-', (byte)'c', (byte)'m', // agq, agq-cm
(byte)'a', (byte)'k', (byte)'-', (byte)'g', (byte)'h', // ak, ak-gh
(byte)'a', (byte)'m', (byte)'-', (byte)'e', (byte)'t', // am, am-et
(byte)'a', (byte)'r', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // ar, ar-001
(byte)'a', (byte)'r', (byte)'-', (byte)'a', (byte)'e', // ar-ae
(byte)'a', (byte)'r', (byte)'-', (byte)'b', (byte)'h', // ar-bh
(byte)'a', (byte)'r', (byte)'-', (byte)'d', (byte)'j', // ar-dj
(byte)'a', (byte)'r', (byte)'-', (byte)'d', (byte)'z', // ar-dz
(byte)'a', (byte)'r', (byte)'-', (byte)'e', (byte)'g', // ar-eg
(byte)'a', (byte)'r', (byte)'-', (byte)'e', (byte)'r', // ar-er
(byte)'a', (byte)'r', (byte)'-', (byte)'i', (byte)'l', // ar-il
(byte)'a', (byte)'r', (byte)'-', (byte)'i', (byte)'q', // ar-iq
(byte)'a', (byte)'r', (byte)'-', (byte)'j', (byte)'o', // ar-jo
(byte)'a', (byte)'r', (byte)'-', (byte)'k', (byte)'m', // ar-km
(byte)'a', (byte)'r', (byte)'-', (byte)'k', (byte)'w', // ar-kw
(byte)'a', (byte)'r', (byte)'-', (byte)'l', (byte)'b', // ar-lb
(byte)'a', (byte)'r', (byte)'-', (byte)'l', (byte)'y', // ar-ly
(byte)'a', (byte)'r', (byte)'-', (byte)'m', (byte)'a', // ar-ma
(byte)'a', (byte)'r', (byte)'-', (byte)'m', (byte)'r', // ar-mr
(byte)'a', (byte)'r', (byte)'-', (byte)'o', (byte)'m', // ar-om
(byte)'a', (byte)'r', (byte)'-', (byte)'p', (byte)'s', // ar-ps
(byte)'a', (byte)'r', (byte)'-', (byte)'q', (byte)'a', // ar-qa
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'a', // ar-sa
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'d', // ar-sd
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'o', // ar-so
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'s', // ar-ss
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'y', // ar-sy
(byte)'a', (byte)'r', (byte)'-', (byte)'t', (byte)'d', // ar-td
(byte)'a', (byte)'r', (byte)'-', (byte)'t', (byte)'n', // ar-tn
(byte)'a', (byte)'r', (byte)'-', (byte)'y', (byte)'e', // ar-ye
(byte)'a', (byte)'r', (byte)'n', (byte)'-', (byte)'c', (byte)'l', // arn, arn-cl
(byte)'a', (byte)'s', (byte)'-', (byte)'i', (byte)'n', // as, as-in
(byte)'a', (byte)'s', (byte)'a', (byte)'-', (byte)'t', (byte)'z', // asa, asa-tz
(byte)'a', (byte)'s', (byte)'t', (byte)'-', (byte)'e', (byte)'s', // ast, ast-es
(byte)'a', (byte)'z', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'a', (byte)'z', // az, az-cyrl, az-cyrl-az
(byte)'a', (byte)'z', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'a', (byte)'z', // az-latn, az-latn-az
(byte)'b', (byte)'a', (byte)'-', (byte)'r', (byte)'u', // ba, ba-ru
(byte)'b', (byte)'a', (byte)'s', (byte)'-', (byte)'c', (byte)'m', // bas, bas-cm
(byte)'b', (byte)'e', (byte)'-', (byte)'b', (byte)'y', // be, be-by
(byte)'b', (byte)'e', (byte)'m', (byte)'-', (byte)'z', (byte)'m', // bem, bem-zm
(byte)'b', (byte)'e', (byte)'z', (byte)'-', (byte)'t', (byte)'z', // bez, bez-tz
(byte)'b', (byte)'g', (byte)'-', (byte)'b', (byte)'g', // bg, bg-bg
(byte)'b', (byte)'i', (byte)'n', (byte)'-', (byte)'n', (byte)'g', // bin, bin-ng
(byte)'b', (byte)'m', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'l', // bm, bm-latn, bm-latn-ml
(byte)'b', (byte)'n', (byte)'-', (byte)'b', (byte)'d', // bn, bn-bd
(byte)'b', (byte)'n', (byte)'-', (byte)'i', (byte)'n', // bn-in
(byte)'b', (byte)'o', (byte)'-', (byte)'c', (byte)'n', // bo, bo-cn
(byte)'b', (byte)'o', (byte)'-', (byte)'i', (byte)'n', // bo-in
(byte)'b', (byte)'r', (byte)'-', (byte)'f', (byte)'r', // br, br-fr
(byte)'b', (byte)'r', (byte)'x', (byte)'-', (byte)'i', (byte)'n', // brx, brx-in
(byte)'b', (byte)'s', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'b', (byte)'a', // bs, bs-cyrl, bs-cyrl-ba
(byte)'b', (byte)'s', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'b', (byte)'a', // bs-latn, bs-latn-ba
(byte)'b', (byte)'y', (byte)'n', (byte)'-', (byte)'e', (byte)'r', // byn, byn-er
(byte)'c', (byte)'a', (byte)'-', (byte)'a', (byte)'d', // ca, ca-ad
(byte)'c', (byte)'a', (byte)'-', (byte)'e', (byte)'s', (byte)'-', (byte)'v', (byte)'a', (byte)'l', (byte)'e', (byte)'n', (byte)'c', (byte)'i', (byte)'a', // ca-es, ca-es-valencia
(byte)'c', (byte)'a', (byte)'-', (byte)'f', (byte)'r', // ca-fr
(byte)'c', (byte)'a', (byte)'-', (byte)'i', (byte)'t', // ca-it
(byte)'c', (byte)'e', (byte)'-', (byte)'r', (byte)'u', // ce, ce-ru
(byte)'c', (byte)'g', (byte)'g', (byte)'-', (byte)'u', (byte)'g', // cgg, cgg-ug
(byte)'c', (byte)'h', (byte)'r', (byte)'-', (byte)'c', (byte)'h', (byte)'e', (byte)'r', (byte)'-', (byte)'u', (byte)'s', // chr, chr-cher, chr-cher-us
(byte)'c', (byte)'o', (byte)'-', (byte)'f', (byte)'r', // co, co-fr
(byte)'c', (byte)'s', (byte)'-', (byte)'c', (byte)'z', // cs, cs-cz
(byte)'c', (byte)'u', (byte)'-', (byte)'r', (byte)'u', // cu, cu-ru
(byte)'c', (byte)'y', (byte)'-', (byte)'g', (byte)'b', // cy, cy-gb
(byte)'d', (byte)'a', (byte)'-', (byte)'d', (byte)'k', // da, da-dk
(byte)'d', (byte)'a', (byte)'-', (byte)'g', (byte)'l', // da-gl
(byte)'d', (byte)'a', (byte)'v', (byte)'-', (byte)'k', (byte)'e', // dav, dav-ke
(byte)'d', (byte)'e', (byte)'-', (byte)'a', (byte)'t', // de, de-at
(byte)'d', (byte)'e', (byte)'-', (byte)'b', (byte)'e', // de-be
(byte)'d', (byte)'e', (byte)'-', (byte)'c', (byte)'h', // de-ch
(byte)'d', (byte)'e', (byte)'-', (byte)'d', (byte)'e', (byte)'_', (byte)'p', (byte)'h', (byte)'o', (byte)'n', (byte)'e', (byte)'b', // de-de, de-de_phoneb
(byte)'d', (byte)'e', (byte)'-', (byte)'i', (byte)'t', // de-it
(byte)'d', (byte)'e', (byte)'-', (byte)'l', (byte)'i', // de-li
(byte)'d', (byte)'e', (byte)'-', (byte)'l', (byte)'u', // de-lu
(byte)'d', (byte)'j', (byte)'e', (byte)'-', (byte)'n', (byte)'e', // dje, dje-ne
(byte)'d', (byte)'s', (byte)'b', (byte)'-', (byte)'d', (byte)'e', // dsb, dsb-de
(byte)'d', (byte)'u', (byte)'a', (byte)'-', (byte)'c', (byte)'m', // dua, dua-cm
(byte)'d', (byte)'v', (byte)'-', (byte)'m', (byte)'v', // dv, dv-mv
(byte)'d', (byte)'y', (byte)'o', (byte)'-', (byte)'s', (byte)'n', // dyo, dyo-sn
(byte)'d', (byte)'z', (byte)'-', (byte)'b', (byte)'t', // dz, dz-bt
(byte)'e', (byte)'b', (byte)'u', (byte)'-', (byte)'k', (byte)'e', // ebu, ebu-ke
(byte)'e', (byte)'e', (byte)'-', (byte)'g', (byte)'h', // ee, ee-gh
(byte)'e', (byte)'e', (byte)'-', (byte)'t', (byte)'g', // ee-tg
(byte)'e', (byte)'l', (byte)'-', (byte)'c', (byte)'y', // el, el-cy
(byte)'e', (byte)'l', (byte)'-', (byte)'g', (byte)'r', // el-gr
(byte)'e', (byte)'n', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // en, en-001
(byte)'e', (byte)'n', (byte)'-', (byte)'0', (byte)'2', (byte)'9', // en-029
(byte)'e', (byte)'n', (byte)'-', (byte)'1', (byte)'5', (byte)'0', // en-150
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'g', // en-ag
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'i', // en-ai
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'s', // en-as
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'t', // en-at
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'u', // en-au
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'b', // en-bb
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'e', // en-be
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'i', // en-bi
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'m', // en-bm
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'s', // en-bs
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'w', // en-bw
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'z', // en-bz
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'a', // en-ca
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'c', // en-cc
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'h', // en-ch
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'k', // en-ck
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'m', // en-cm
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'x', // en-cx
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'y', // en-cy
(byte)'e', (byte)'n', (byte)'-', (byte)'d', (byte)'e', // en-de
(byte)'e', (byte)'n', (byte)'-', (byte)'d', (byte)'k', // en-dk
(byte)'e', (byte)'n', (byte)'-', (byte)'d', (byte)'m', // en-dm
(byte)'e', (byte)'n', (byte)'-', (byte)'e', (byte)'r', // en-er
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'i', // en-fi
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'j', // en-fj
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'k', // en-fk
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'m', // en-fm
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'b', // en-gb
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'d', // en-gd
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'g', // en-gg
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'h', // en-gh
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'i', // en-gi
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'m', // en-gm
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'u', // en-gu
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'y', // en-gy
(byte)'e', (byte)'n', (byte)'-', (byte)'h', (byte)'k', // en-hk
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'d', // en-id
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'e', // en-ie
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'l', // en-il
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'m', // en-im
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'n', // en-in
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'o', // en-io
(byte)'e', (byte)'n', (byte)'-', (byte)'j', (byte)'e', // en-je
(byte)'e', (byte)'n', (byte)'-', (byte)'j', (byte)'m', // en-jm
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'e', // en-ke
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'i', // en-ki
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'n', // en-kn
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'y', // en-ky
(byte)'e', (byte)'n', (byte)'-', (byte)'l', (byte)'c', // en-lc
(byte)'e', (byte)'n', (byte)'-', (byte)'l', (byte)'r', // en-lr
(byte)'e', (byte)'n', (byte)'-', (byte)'l', (byte)'s', // en-ls
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'g', // en-mg
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'h', // en-mh
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'o', // en-mo
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'p', // en-mp
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'s', // en-ms
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'t', // en-mt
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'u', // en-mu
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'w', // en-mw
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'y', // en-my
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'a', // en-na
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'f', // en-nf
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'g', // en-ng
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'l', // en-nl
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'r', // en-nr
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'u', // en-nu
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'z', // en-nz
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'g', // en-pg
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'h', // en-ph
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'k', // en-pk
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'n', // en-pn
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'r', // en-pr
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'w', // en-pw
(byte)'e', (byte)'n', (byte)'-', (byte)'r', (byte)'w', // en-rw
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'b', // en-sb
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'c', // en-sc
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'d', // en-sd
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'e', // en-se
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'g', // en-sg
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'h', // en-sh
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'i', // en-si
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'l', // en-sl
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'s', // en-ss
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'x', // en-sx
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'z', // en-sz
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'c', // en-tc
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'k', // en-tk
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'o', // en-to
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'t', // en-tt
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'v', // en-tv
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'z', // en-tz
(byte)'e', (byte)'n', (byte)'-', (byte)'u', (byte)'g', // en-ug
(byte)'e', (byte)'n', (byte)'-', (byte)'u', (byte)'m', // en-um
(byte)'e', (byte)'n', (byte)'-', (byte)'u', (byte)'s', // en-us
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'c', // en-vc
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'g', // en-vg
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'i', // en-vi
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'u', // en-vu
(byte)'e', (byte)'n', (byte)'-', (byte)'w', (byte)'s', // en-ws
(byte)'e', (byte)'n', (byte)'-', (byte)'z', (byte)'a', // en-za
(byte)'e', (byte)'n', (byte)'-', (byte)'z', (byte)'m', // en-zm
(byte)'e', (byte)'n', (byte)'-', (byte)'z', (byte)'w', // en-zw
(byte)'e', (byte)'o', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // eo, eo-001
(byte)'e', (byte)'s', (byte)'-', (byte)'4', (byte)'1', (byte)'9', // es, es-419
(byte)'e', (byte)'s', (byte)'-', (byte)'a', (byte)'r', // es-ar
(byte)'e', (byte)'s', (byte)'-', (byte)'b', (byte)'o', // es-bo
(byte)'e', (byte)'s', (byte)'-', (byte)'b', (byte)'r', // es-br
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'l', // es-cl
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'o', // es-co
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'r', // es-cr
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'u', // es-cu
(byte)'e', (byte)'s', (byte)'-', (byte)'d', (byte)'o', // es-do
(byte)'e', (byte)'s', (byte)'-', (byte)'e', (byte)'c', // es-ec
(byte)'e', (byte)'s', (byte)'-', (byte)'e', (byte)'s', (byte)'_', (byte)'t', (byte)'r', (byte)'a', (byte)'d', (byte)'n', (byte)'l', // es-es, es-es_tradnl
(byte)'e', (byte)'s', (byte)'-', (byte)'g', (byte)'q', // es-gq
(byte)'e', (byte)'s', (byte)'-', (byte)'g', (byte)'t', // es-gt
(byte)'e', (byte)'s', (byte)'-', (byte)'h', (byte)'n', // es-hn
(byte)'e', (byte)'s', (byte)'-', (byte)'m', (byte)'x', // es-mx
(byte)'e', (byte)'s', (byte)'-', (byte)'n', (byte)'i', // es-ni
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'a', // es-pa
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'e', // es-pe
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'h', // es-ph
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'r', // es-pr
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'y', // es-py
(byte)'e', (byte)'s', (byte)'-', (byte)'s', (byte)'v', // es-sv
(byte)'e', (byte)'s', (byte)'-', (byte)'u', (byte)'s', // es-us
(byte)'e', (byte)'s', (byte)'-', (byte)'u', (byte)'y', // es-uy
(byte)'e', (byte)'s', (byte)'-', (byte)'v', (byte)'e', // es-ve
(byte)'e', (byte)'t', (byte)'-', (byte)'e', (byte)'e', // et, et-ee
(byte)'e', (byte)'u', (byte)'-', (byte)'e', (byte)'s', // eu, eu-es
(byte)'e', (byte)'w', (byte)'o', (byte)'-', (byte)'c', (byte)'m', // ewo, ewo-cm
(byte)'f', (byte)'a', (byte)'-', (byte)'i', (byte)'r', // fa, fa-ir
(byte)'f', (byte)'f', (byte)'-', (byte)'c', (byte)'m', // ff, ff-cm
(byte)'f', (byte)'f', (byte)'-', (byte)'g', (byte)'n', // ff-gn
(byte)'f', (byte)'f', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'s', (byte)'n', // ff-latn, ff-latn-sn
(byte)'f', (byte)'f', (byte)'-', (byte)'m', (byte)'r', // ff-mr
(byte)'f', (byte)'f', (byte)'-', (byte)'n', (byte)'g', // ff-ng
(byte)'f', (byte)'i', (byte)'-', (byte)'f', (byte)'i', // fi, fi-fi
(byte)'f', (byte)'i', (byte)'l', (byte)'-', (byte)'p', (byte)'h', // fil, fil-ph
(byte)'f', (byte)'o', (byte)'-', (byte)'d', (byte)'k', // fo, fo-dk
(byte)'f', (byte)'o', (byte)'-', (byte)'f', (byte)'o', // fo-fo
(byte)'f', (byte)'r', (byte)'-', (byte)'0', (byte)'2', (byte)'9', // fr, fr-029
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'e', // fr-be
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'f', // fr-bf
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'i', // fr-bi
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'j', // fr-bj
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'l', // fr-bl
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'a', // fr-ca
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'d', // fr-cd
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'f', // fr-cf
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'g', // fr-cg
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'h', // fr-ch
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'i', // fr-ci
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'m', // fr-cm
(byte)'f', (byte)'r', (byte)'-', (byte)'d', (byte)'j', // fr-dj
(byte)'f', (byte)'r', (byte)'-', (byte)'d', (byte)'z', // fr-dz
(byte)'f', (byte)'r', (byte)'-', (byte)'f', (byte)'r', // fr-fr
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'a', // fr-ga
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'f', // fr-gf
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'n', // fr-gn
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'p', // fr-gp
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'q', // fr-gq
(byte)'f', (byte)'r', (byte)'-', (byte)'h', (byte)'t', // fr-ht
(byte)'f', (byte)'r', (byte)'-', (byte)'k', (byte)'m', // fr-km
(byte)'f', (byte)'r', (byte)'-', (byte)'l', (byte)'u', // fr-lu
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'a', // fr-ma
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'c', // fr-mc
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'f', // fr-mf
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'g', // fr-mg
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'l', // fr-ml
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'q', // fr-mq
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'r', // fr-mr
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'u', // fr-mu
(byte)'f', (byte)'r', (byte)'-', (byte)'n', (byte)'c', // fr-nc
(byte)'f', (byte)'r', (byte)'-', (byte)'n', (byte)'e', // fr-ne
(byte)'f', (byte)'r', (byte)'-', (byte)'p', (byte)'f', // fr-pf
(byte)'f', (byte)'r', (byte)'-', (byte)'p', (byte)'m', // fr-pm
(byte)'f', (byte)'r', (byte)'-', (byte)'r', (byte)'e', // fr-re
(byte)'f', (byte)'r', (byte)'-', (byte)'r', (byte)'w', // fr-rw
(byte)'f', (byte)'r', (byte)'-', (byte)'s', (byte)'c', // fr-sc
(byte)'f', (byte)'r', (byte)'-', (byte)'s', (byte)'n', // fr-sn
(byte)'f', (byte)'r', (byte)'-', (byte)'s', (byte)'y', // fr-sy
(byte)'f', (byte)'r', (byte)'-', (byte)'t', (byte)'d', // fr-td
(byte)'f', (byte)'r', (byte)'-', (byte)'t', (byte)'g', // fr-tg
(byte)'f', (byte)'r', (byte)'-', (byte)'t', (byte)'n', // fr-tn
(byte)'f', (byte)'r', (byte)'-', (byte)'v', (byte)'u', // fr-vu
(byte)'f', (byte)'r', (byte)'-', (byte)'w', (byte)'f', // fr-wf
(byte)'f', (byte)'r', (byte)'-', (byte)'y', (byte)'t', // fr-yt
(byte)'f', (byte)'u', (byte)'r', (byte)'-', (byte)'i', (byte)'t', // fur, fur-it
(byte)'f', (byte)'y', (byte)'-', (byte)'n', (byte)'l', // fy, fy-nl
(byte)'g', (byte)'a', (byte)'-', (byte)'i', (byte)'e', // ga, ga-ie
(byte)'g', (byte)'d', (byte)'-', (byte)'g', (byte)'b', // gd, gd-gb
(byte)'g', (byte)'l', (byte)'-', (byte)'e', (byte)'s', // gl, gl-es
(byte)'g', (byte)'n', (byte)'-', (byte)'p', (byte)'y', // gn, gn-py
(byte)'g', (byte)'s', (byte)'w', (byte)'-', (byte)'c', (byte)'h', // gsw, gsw-ch
(byte)'g', (byte)'s', (byte)'w', (byte)'-', (byte)'f', (byte)'r', // gsw-fr
(byte)'g', (byte)'s', (byte)'w', (byte)'-', (byte)'l', (byte)'i', // gsw-li
(byte)'g', (byte)'u', (byte)'-', (byte)'i', (byte)'n', // gu, gu-in
(byte)'g', (byte)'u', (byte)'z', (byte)'-', (byte)'k', (byte)'e', // guz, guz-ke
(byte)'g', (byte)'v', (byte)'-', (byte)'i', (byte)'m', // gv, gv-im
(byte)'h', (byte)'a', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'g', (byte)'h', // ha, ha-latn, ha-latn-gh
(byte)'h', (byte)'a', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'n', (byte)'e', // ha-latn-ne
(byte)'h', (byte)'a', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'n', (byte)'g', // ha-latn-ng
(byte)'h', (byte)'a', (byte)'w', (byte)'-', (byte)'u', (byte)'s', // haw, haw-us
(byte)'h', (byte)'e', (byte)'-', (byte)'i', (byte)'l', // he, he-il
(byte)'h', (byte)'i', (byte)'-', (byte)'i', (byte)'n', // hi, hi-in
(byte)'h', (byte)'r', (byte)'-', (byte)'b', (byte)'a', // hr, hr-ba
(byte)'h', (byte)'r', (byte)'-', (byte)'h', (byte)'r', // hr-hr
(byte)'h', (byte)'s', (byte)'b', (byte)'-', (byte)'d', (byte)'e', // hsb, hsb-de
(byte)'h', (byte)'u', (byte)'-', (byte)'h', (byte)'u', (byte)'_', (byte)'t', (byte)'e', (byte)'c', (byte)'h', (byte)'n', (byte)'l', // hu, hu-hu, hu-hu_technl
(byte)'h', (byte)'y', (byte)'-', (byte)'a', (byte)'m', // hy, hy-am
(byte)'i', (byte)'a', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // ia, ia-001
(byte)'i', (byte)'a', (byte)'-', (byte)'f', (byte)'r', // ia-fr
(byte)'i', (byte)'b', (byte)'b', (byte)'-', (byte)'n', (byte)'g', // ibb, ibb-ng
(byte)'i', (byte)'d', (byte)'-', (byte)'i', (byte)'d', // id, id-id
(byte)'i', (byte)'g', (byte)'-', (byte)'n', (byte)'g', // ig, ig-ng
(byte)'i', (byte)'i', (byte)'-', (byte)'c', (byte)'n', // ii, ii-cn
(byte)'i', (byte)'s', (byte)'-', (byte)'i', (byte)'s', // is, is-is
(byte)'i', (byte)'t', (byte)'-', (byte)'c', (byte)'h', // it, it-ch
(byte)'i', (byte)'t', (byte)'-', (byte)'i', (byte)'t', // it-it
(byte)'i', (byte)'t', (byte)'-', (byte)'s', (byte)'m', // it-sm
(byte)'i', (byte)'u', (byte)'-', (byte)'c', (byte)'a', (byte)'n', (byte)'s', (byte)'-', (byte)'c', (byte)'a', // iu, iu-cans, iu-cans-ca
(byte)'i', (byte)'u', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'c', (byte)'a', // iu-latn, iu-latn-ca
(byte)'j', (byte)'a', (byte)'-', (byte)'j', (byte)'p', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // ja, ja-jp, ja-jp_radstr
(byte)'j', (byte)'g', (byte)'o', (byte)'-', (byte)'c', (byte)'m', // jgo, jgo-cm
(byte)'j', (byte)'m', (byte)'c', (byte)'-', (byte)'t', (byte)'z', // jmc, jmc-tz
(byte)'j', (byte)'v', (byte)'-', (byte)'j', (byte)'a', (byte)'v', (byte)'a', (byte)'-', (byte)'i', (byte)'d', // jv, jv-java, jv-java-id
(byte)'j', (byte)'v', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'i', (byte)'d', // jv-latn, jv-latn-id
(byte)'k', (byte)'a', (byte)'-', (byte)'g', (byte)'e', (byte)'_', (byte)'m', (byte)'o', (byte)'d', (byte)'e', (byte)'r', (byte)'n', // ka, ka-ge, ka-ge_modern
(byte)'k', (byte)'a', (byte)'b', (byte)'-', (byte)'d', (byte)'z', // kab, kab-dz
(byte)'k', (byte)'a', (byte)'m', (byte)'-', (byte)'k', (byte)'e', // kam, kam-ke
(byte)'k', (byte)'d', (byte)'e', (byte)'-', (byte)'t', (byte)'z', // kde, kde-tz
(byte)'k', (byte)'e', (byte)'a', (byte)'-', (byte)'c', (byte)'v', // kea, kea-cv
(byte)'k', (byte)'h', (byte)'q', (byte)'-', (byte)'m', (byte)'l', // khq, khq-ml
(byte)'k', (byte)'i', (byte)'-', (byte)'k', (byte)'e', // ki, ki-ke
(byte)'k', (byte)'k', (byte)'-', (byte)'k', (byte)'z', // kk, kk-kz
(byte)'k', (byte)'k', (byte)'j', (byte)'-', (byte)'c', (byte)'m', // kkj, kkj-cm
(byte)'k', (byte)'l', (byte)'-', (byte)'g', (byte)'l', // kl, kl-gl
(byte)'k', (byte)'l', (byte)'n', (byte)'-', (byte)'k', (byte)'e', // kln, kln-ke
(byte)'k', (byte)'m', (byte)'-', (byte)'k', (byte)'h', // km, km-kh
(byte)'k', (byte)'n', (byte)'-', (byte)'i', (byte)'n', // kn, kn-in
(byte)'k', (byte)'o', (byte)'-', (byte)'k', (byte)'p', // ko, ko-kp
(byte)'k', (byte)'o', (byte)'-', (byte)'k', (byte)'r', // ko-kr
(byte)'k', (byte)'o', (byte)'k', (byte)'-', (byte)'i', (byte)'n', // kok, kok-in
(byte)'k', (byte)'r', (byte)'-', (byte)'n', (byte)'g', // kr, kr-ng
(byte)'k', (byte)'s', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'i', (byte)'n', // ks, ks-arab, ks-arab-in
(byte)'k', (byte)'s', (byte)'-', (byte)'d', (byte)'e', (byte)'v', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // ks-deva, ks-deva-in
(byte)'k', (byte)'s', (byte)'b', (byte)'-', (byte)'t', (byte)'z', // ksb, ksb-tz
(byte)'k', (byte)'s', (byte)'f', (byte)'-', (byte)'c', (byte)'m', // ksf, ksf-cm
(byte)'k', (byte)'s', (byte)'h', (byte)'-', (byte)'d', (byte)'e', // ksh, ksh-de
(byte)'k', (byte)'u', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'i', (byte)'q', // ku, ku-arab, ku-arab-iq
(byte)'k', (byte)'u', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'i', (byte)'r', // ku-arab-ir
(byte)'k', (byte)'w', (byte)'-', (byte)'g', (byte)'b', // kw, kw-gb
(byte)'k', (byte)'y', (byte)'-', (byte)'k', (byte)'g', // ky, ky-kg
(byte)'l', (byte)'a', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // la, la-001
(byte)'l', (byte)'a', (byte)'g', (byte)'-', (byte)'t', (byte)'z', // lag, lag-tz
(byte)'l', (byte)'b', (byte)'-', (byte)'l', (byte)'u', // lb, lb-lu
(byte)'l', (byte)'g', (byte)'-', (byte)'u', (byte)'g', // lg, lg-ug
(byte)'l', (byte)'k', (byte)'t', (byte)'-', (byte)'u', (byte)'s', // lkt, lkt-us
(byte)'l', (byte)'n', (byte)'-', (byte)'a', (byte)'o', // ln, ln-ao
(byte)'l', (byte)'n', (byte)'-', (byte)'c', (byte)'d', // ln-cd
(byte)'l', (byte)'n', (byte)'-', (byte)'c', (byte)'f', // ln-cf
(byte)'l', (byte)'n', (byte)'-', (byte)'c', (byte)'g', // ln-cg
(byte)'l', (byte)'o', (byte)'-', (byte)'l', (byte)'a', // lo, lo-la
(byte)'l', (byte)'r', (byte)'c', (byte)'-', (byte)'i', (byte)'q', // lrc, lrc-iq
(byte)'l', (byte)'r', (byte)'c', (byte)'-', (byte)'i', (byte)'r', // lrc-ir
(byte)'l', (byte)'t', (byte)'-', (byte)'l', (byte)'t', // lt, lt-lt
(byte)'l', (byte)'u', (byte)'-', (byte)'c', (byte)'d', // lu, lu-cd
(byte)'l', (byte)'u', (byte)'o', (byte)'-', (byte)'k', (byte)'e', // luo, luo-ke
(byte)'l', (byte)'u', (byte)'y', (byte)'-', (byte)'k', (byte)'e', // luy, luy-ke
(byte)'l', (byte)'v', (byte)'-', (byte)'l', (byte)'v', // lv, lv-lv
(byte)'m', (byte)'a', (byte)'s', (byte)'-', (byte)'k', (byte)'e', // mas, mas-ke
(byte)'m', (byte)'a', (byte)'s', (byte)'-', (byte)'t', (byte)'z', // mas-tz
(byte)'m', (byte)'e', (byte)'r', (byte)'-', (byte)'k', (byte)'e', // mer, mer-ke
(byte)'m', (byte)'f', (byte)'e', (byte)'-', (byte)'m', (byte)'u', // mfe, mfe-mu
(byte)'m', (byte)'g', (byte)'-', (byte)'m', (byte)'g', // mg, mg-mg
(byte)'m', (byte)'g', (byte)'h', (byte)'-', (byte)'m', (byte)'z', // mgh, mgh-mz
(byte)'m', (byte)'g', (byte)'o', (byte)'-', (byte)'c', (byte)'m', // mgo, mgo-cm
(byte)'m', (byte)'i', (byte)'-', (byte)'n', (byte)'z', // mi, mi-nz
(byte)'m', (byte)'k', (byte)'-', (byte)'m', (byte)'k', // mk, mk-mk
(byte)'m', (byte)'l', (byte)'-', (byte)'i', (byte)'n', // ml, ml-in
(byte)'m', (byte)'n', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', // mn, mn-cyrl
(byte)'m', (byte)'n', (byte)'-', (byte)'m', (byte)'n', // mn-mn
(byte)'m', (byte)'n', (byte)'-', (byte)'m', (byte)'o', (byte)'n', (byte)'g', (byte)'-', (byte)'c', (byte)'n', // mn-mong, mn-mong-cn
(byte)'m', (byte)'n', (byte)'-', (byte)'m', (byte)'o', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'n', // mn-mong-mn
(byte)'m', (byte)'n', (byte)'i', (byte)'-', (byte)'i', (byte)'n', // mni, mni-in
(byte)'m', (byte)'o', (byte)'h', (byte)'-', (byte)'c', (byte)'a', // moh, moh-ca
(byte)'m', (byte)'r', (byte)'-', (byte)'i', (byte)'n', // mr, mr-in
(byte)'m', (byte)'s', (byte)'-', (byte)'b', (byte)'n', // ms, ms-bn
(byte)'m', (byte)'s', (byte)'-', (byte)'m', (byte)'y', // ms-my
(byte)'m', (byte)'s', (byte)'-', (byte)'s', (byte)'g', // ms-sg
(byte)'m', (byte)'t', (byte)'-', (byte)'m', (byte)'t', // mt, mt-mt
(byte)'m', (byte)'u', (byte)'a', (byte)'-', (byte)'c', (byte)'m', // mua, mua-cm
(byte)'m', (byte)'y', (byte)'-', (byte)'m', (byte)'m', // my, my-mm
(byte)'m', (byte)'z', (byte)'n', (byte)'-', (byte)'i', (byte)'r', // mzn, mzn-ir
(byte)'n', (byte)'a', (byte)'q', (byte)'-', (byte)'n', (byte)'a', // naq, naq-na
(byte)'n', (byte)'b', (byte)'-', (byte)'n', (byte)'o', // nb, nb-no
(byte)'n', (byte)'b', (byte)'-', (byte)'s', (byte)'j', // nb-sj
(byte)'n', (byte)'d', (byte)'-', (byte)'z', (byte)'w', // nd, nd-zw
(byte)'n', (byte)'d', (byte)'s', (byte)'-', (byte)'d', (byte)'e', // nds, nds-de
(byte)'n', (byte)'d', (byte)'s', (byte)'-', (byte)'n', (byte)'l', // nds-nl
(byte)'n', (byte)'e', (byte)'-', (byte)'i', (byte)'n', // ne, ne-in
(byte)'n', (byte)'e', (byte)'-', (byte)'n', (byte)'p', // ne-np
(byte)'n', (byte)'l', (byte)'-', (byte)'a', (byte)'w', // nl, nl-aw
(byte)'n', (byte)'l', (byte)'-', (byte)'b', (byte)'e', // nl-be
(byte)'n', (byte)'l', (byte)'-', (byte)'b', (byte)'q', // nl-bq
(byte)'n', (byte)'l', (byte)'-', (byte)'c', (byte)'w', // nl-cw
(byte)'n', (byte)'l', (byte)'-', (byte)'n', (byte)'l', // nl-nl
(byte)'n', (byte)'l', (byte)'-', (byte)'s', (byte)'r', // nl-sr
(byte)'n', (byte)'l', (byte)'-', (byte)'s', (byte)'x', // nl-sx
(byte)'n', (byte)'m', (byte)'g', (byte)'-', (byte)'c', (byte)'m', // nmg, nmg-cm
(byte)'n', (byte)'n', (byte)'-', (byte)'n', (byte)'o', // nn, nn-no
(byte)'n', (byte)'n', (byte)'h', (byte)'-', (byte)'c', (byte)'m', // nnh, nnh-cm
(byte)'n', (byte)'o', // no
(byte)'n', (byte)'q', (byte)'o', (byte)'-', (byte)'g', (byte)'n', // nqo, nqo-gn
(byte)'n', (byte)'r', (byte)'-', (byte)'z', (byte)'a', // nr, nr-za
(byte)'n', (byte)'s', (byte)'o', (byte)'-', (byte)'z', (byte)'a', // nso, nso-za
(byte)'n', (byte)'u', (byte)'s', (byte)'-', (byte)'s', (byte)'s', // nus, nus-ss
(byte)'n', (byte)'y', (byte)'n', (byte)'-', (byte)'u', (byte)'g', // nyn, nyn-ug
(byte)'o', (byte)'c', (byte)'-', (byte)'f', (byte)'r', // oc, oc-fr
(byte)'o', (byte)'m', (byte)'-', (byte)'e', (byte)'t', // om, om-et
(byte)'o', (byte)'m', (byte)'-', (byte)'k', (byte)'e', // om-ke
(byte)'o', (byte)'r', (byte)'-', (byte)'i', (byte)'n', // or, or-in
(byte)'o', (byte)'s', (byte)'-', (byte)'g', (byte)'e', // os, os-ge
(byte)'o', (byte)'s', (byte)'-', (byte)'r', (byte)'u', // os-ru
(byte)'p', (byte)'a', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'p', (byte)'k', // pa, pa-arab, pa-arab-pk
(byte)'p', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // pa-in
(byte)'p', (byte)'a', (byte)'p', (byte)'-', (byte)'0', (byte)'2', (byte)'9', // pap, pap-029
(byte)'p', (byte)'l', (byte)'-', (byte)'p', (byte)'l', // pl, pl-pl
(byte)'p', (byte)'r', (byte)'g', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // prg, prg-001
(byte)'p', (byte)'r', (byte)'s', (byte)'-', (byte)'a', (byte)'f', // prs, prs-af
(byte)'p', (byte)'s', (byte)'-', (byte)'a', (byte)'f', // ps, ps-af
(byte)'p', (byte)'t', (byte)'-', (byte)'a', (byte)'o', // pt, pt-ao
(byte)'p', (byte)'t', (byte)'-', (byte)'b', (byte)'r', // pt-br
(byte)'p', (byte)'t', (byte)'-', (byte)'c', (byte)'h', // pt-ch
(byte)'p', (byte)'t', (byte)'-', (byte)'c', (byte)'v', // pt-cv
(byte)'p', (byte)'t', (byte)'-', (byte)'g', (byte)'q', // pt-gq
(byte)'p', (byte)'t', (byte)'-', (byte)'g', (byte)'w', // pt-gw
(byte)'p', (byte)'t', (byte)'-', (byte)'l', (byte)'u', // pt-lu
(byte)'p', (byte)'t', (byte)'-', (byte)'m', (byte)'o', // pt-mo
(byte)'p', (byte)'t', (byte)'-', (byte)'m', (byte)'z', // pt-mz
(byte)'p', (byte)'t', (byte)'-', (byte)'p', (byte)'t', // pt-pt
(byte)'p', (byte)'t', (byte)'-', (byte)'s', (byte)'t', // pt-st
(byte)'p', (byte)'t', (byte)'-', (byte)'t', (byte)'l', // pt-tl
(byte)'q', (byte)'p', (byte)'s', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'x', (byte)'-', (byte)'s', (byte)'h', // qps-latn-x-sh
(byte)'q', (byte)'p', (byte)'s', (byte)'-', (byte)'p', (byte)'l', (byte)'o', (byte)'c', (byte)'a', // qps-ploc, qps-ploca
(byte)'q', (byte)'p', (byte)'s', (byte)'-', (byte)'p', (byte)'l', (byte)'o', (byte)'c', (byte)'m', // qps-plocm
(byte)'q', (byte)'u', (byte)'c', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'g', (byte)'t', // quc, quc-latn, quc-latn-gt
(byte)'q', (byte)'u', (byte)'z', (byte)'-', (byte)'b', (byte)'o', // quz, quz-bo
(byte)'q', (byte)'u', (byte)'z', (byte)'-', (byte)'e', (byte)'c', // quz-ec
(byte)'q', (byte)'u', (byte)'z', (byte)'-', (byte)'p', (byte)'e', // quz-pe
(byte)'r', (byte)'m', (byte)'-', (byte)'c', (byte)'h', // rm, rm-ch
(byte)'r', (byte)'n', (byte)'-', (byte)'b', (byte)'i', // rn, rn-bi
(byte)'r', (byte)'o', (byte)'-', (byte)'m', (byte)'d', // ro, ro-md
(byte)'r', (byte)'o', (byte)'-', (byte)'r', (byte)'o', // ro-ro
(byte)'r', (byte)'o', (byte)'f', (byte)'-', (byte)'t', (byte)'z', // rof, rof-tz
(byte)'r', (byte)'u', (byte)'-', (byte)'b', (byte)'y', // ru, ru-by
(byte)'r', (byte)'u', (byte)'-', (byte)'k', (byte)'g', // ru-kg
(byte)'r', (byte)'u', (byte)'-', (byte)'k', (byte)'z', // ru-kz
(byte)'r', (byte)'u', (byte)'-', (byte)'m', (byte)'d', // ru-md
(byte)'r', (byte)'u', (byte)'-', (byte)'r', (byte)'u', // ru-ru
(byte)'r', (byte)'u', (byte)'-', (byte)'u', (byte)'a', // ru-ua
(byte)'r', (byte)'w', (byte)'-', (byte)'r', (byte)'w', // rw, rw-rw
(byte)'r', (byte)'w', (byte)'k', (byte)'-', (byte)'t', (byte)'z', // rwk, rwk-tz
(byte)'s', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // sa, sa-in
(byte)'s', (byte)'a', (byte)'h', (byte)'-', (byte)'r', (byte)'u', // sah, sah-ru
(byte)'s', (byte)'a', (byte)'q', (byte)'-', (byte)'k', (byte)'e', // saq, saq-ke
(byte)'s', (byte)'b', (byte)'p', (byte)'-', (byte)'t', (byte)'z', // sbp, sbp-tz
(byte)'s', (byte)'d', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'p', (byte)'k', // sd, sd-arab, sd-arab-pk
(byte)'s', (byte)'d', (byte)'-', (byte)'d', (byte)'e', (byte)'v', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // sd-deva, sd-deva-in
(byte)'s', (byte)'e', (byte)'-', (byte)'f', (byte)'i', // se, se-fi
(byte)'s', (byte)'e', (byte)'-', (byte)'n', (byte)'o', // se-no
(byte)'s', (byte)'e', (byte)'-', (byte)'s', (byte)'e', // se-se
(byte)'s', (byte)'e', (byte)'h', (byte)'-', (byte)'m', (byte)'z', // seh, seh-mz
(byte)'s', (byte)'e', (byte)'s', (byte)'-', (byte)'m', (byte)'l', // ses, ses-ml
(byte)'s', (byte)'g', (byte)'-', (byte)'c', (byte)'f', // sg, sg-cf
(byte)'s', (byte)'h', (byte)'i', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'a', // shi, shi-latn, shi-latn-ma
(byte)'s', (byte)'h', (byte)'i', (byte)'-', (byte)'t', (byte)'f', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'a', // shi-tfng, shi-tfng-ma
(byte)'s', (byte)'i', (byte)'-', (byte)'l', (byte)'k', // si, si-lk
(byte)'s', (byte)'k', (byte)'-', (byte)'s', (byte)'k', // sk, sk-sk
(byte)'s', (byte)'l', (byte)'-', (byte)'s', (byte)'i', // sl, sl-si
(byte)'s', (byte)'m', (byte)'a', (byte)'-', (byte)'n', (byte)'o', // sma, sma-no
(byte)'s', (byte)'m', (byte)'a', (byte)'-', (byte)'s', (byte)'e', // sma-se
(byte)'s', (byte)'m', (byte)'j', (byte)'-', (byte)'n', (byte)'o', // smj, smj-no
(byte)'s', (byte)'m', (byte)'j', (byte)'-', (byte)'s', (byte)'e', // smj-se
(byte)'s', (byte)'m', (byte)'n', (byte)'-', (byte)'f', (byte)'i', // smn, smn-fi
(byte)'s', (byte)'m', (byte)'s', (byte)'-', (byte)'f', (byte)'i', // sms, sms-fi
(byte)'s', (byte)'n', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'z', (byte)'w', // sn, sn-latn, sn-latn-zw
(byte)'s', (byte)'o', (byte)'-', (byte)'d', (byte)'j', // so, so-dj
(byte)'s', (byte)'o', (byte)'-', (byte)'e', (byte)'t', // so-et
(byte)'s', (byte)'o', (byte)'-', (byte)'k', (byte)'e', // so-ke
(byte)'s', (byte)'o', (byte)'-', (byte)'s', (byte)'o', // so-so
(byte)'s', (byte)'q', (byte)'-', (byte)'a', (byte)'l', // sq, sq-al
(byte)'s', (byte)'q', (byte)'-', (byte)'m', (byte)'k', // sq-mk
(byte)'s', (byte)'q', (byte)'-', (byte)'x', (byte)'k', // sq-xk
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'b', (byte)'a', // sr, sr-cyrl, sr-cyrl-ba
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'c', (byte)'s', // sr-cyrl-cs
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'m', (byte)'e', // sr-cyrl-me
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'r', (byte)'s', // sr-cyrl-rs
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'x', (byte)'k', // sr-cyrl-xk
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'b', (byte)'a', // sr-latn, sr-latn-ba
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'c', (byte)'s', // sr-latn-cs
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'e', // sr-latn-me
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'r', (byte)'s', // sr-latn-rs
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'x', (byte)'k', // sr-latn-xk
(byte)'s', (byte)'s', (byte)'-', (byte)'s', (byte)'z', // ss, ss-sz
(byte)'s', (byte)'s', (byte)'-', (byte)'z', (byte)'a', // ss-za
(byte)'s', (byte)'s', (byte)'y', (byte)'-', (byte)'e', (byte)'r', // ssy, ssy-er
(byte)'s', (byte)'t', (byte)'-', (byte)'l', (byte)'s', // st, st-ls
(byte)'s', (byte)'t', (byte)'-', (byte)'z', (byte)'a', // st-za
(byte)'s', (byte)'v', (byte)'-', (byte)'a', (byte)'x', // sv, sv-ax
(byte)'s', (byte)'v', (byte)'-', (byte)'f', (byte)'i', // sv-fi
(byte)'s', (byte)'v', (byte)'-', (byte)'s', (byte)'e', // sv-se
(byte)'s', (byte)'w', (byte)'-', (byte)'c', (byte)'d', // sw, sw-cd
(byte)'s', (byte)'w', (byte)'-', (byte)'k', (byte)'e', // sw-ke
(byte)'s', (byte)'w', (byte)'-', (byte)'t', (byte)'z', // sw-tz
(byte)'s', (byte)'w', (byte)'-', (byte)'u', (byte)'g', // sw-ug
(byte)'s', (byte)'w', (byte)'c', (byte)'-', (byte)'c', (byte)'d', // swc, swc-cd
(byte)'s', (byte)'y', (byte)'r', (byte)'-', (byte)'s', (byte)'y', // syr, syr-sy
(byte)'t', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // ta, ta-in
(byte)'t', (byte)'a', (byte)'-', (byte)'l', (byte)'k', // ta-lk
(byte)'t', (byte)'a', (byte)'-', (byte)'m', (byte)'y', // ta-my
(byte)'t', (byte)'a', (byte)'-', (byte)'s', (byte)'g', // ta-sg
(byte)'t', (byte)'e', (byte)'-', (byte)'i', (byte)'n', // te, te-in
(byte)'t', (byte)'e', (byte)'o', (byte)'-', (byte)'k', (byte)'e', // teo, teo-ke
(byte)'t', (byte)'e', (byte)'o', (byte)'-', (byte)'u', (byte)'g', // teo-ug
(byte)'t', (byte)'g', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'t', (byte)'j', // tg, tg-cyrl, tg-cyrl-tj
(byte)'t', (byte)'h', (byte)'-', (byte)'t', (byte)'h', // th, th-th
(byte)'t', (byte)'i', (byte)'-', (byte)'e', (byte)'r', // ti, ti-er
(byte)'t', (byte)'i', (byte)'-', (byte)'e', (byte)'t', // ti-et
(byte)'t', (byte)'i', (byte)'g', (byte)'-', (byte)'e', (byte)'r', // tig, tig-er
(byte)'t', (byte)'k', (byte)'-', (byte)'t', (byte)'m', // tk, tk-tm
(byte)'t', (byte)'n', (byte)'-', (byte)'b', (byte)'w', // tn, tn-bw
(byte)'t', (byte)'n', (byte)'-', (byte)'z', (byte)'a', // tn-za
(byte)'t', (byte)'o', (byte)'-', (byte)'t', (byte)'o', // to, to-to
(byte)'t', (byte)'r', (byte)'-', (byte)'c', (byte)'y', // tr, tr-cy
(byte)'t', (byte)'r', (byte)'-', (byte)'t', (byte)'r', // tr-tr
(byte)'t', (byte)'s', (byte)'-', (byte)'z', (byte)'a', // ts, ts-za
(byte)'t', (byte)'t', (byte)'-', (byte)'r', (byte)'u', // tt, tt-ru
(byte)'t', (byte)'w', (byte)'q', (byte)'-', (byte)'n', (byte)'e', // twq, twq-ne
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'m', (byte)'a', // tzm, tzm-arab, tzm-arab-ma
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'d', (byte)'z', // tzm-latn, tzm-latn-dz
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'a', // tzm-latn-ma
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'t', (byte)'f', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'a', // tzm-tfng, tzm-tfng-ma
(byte)'u', (byte)'g', (byte)'-', (byte)'c', (byte)'n', // ug, ug-cn
(byte)'u', (byte)'k', (byte)'-', (byte)'u', (byte)'a', // uk, uk-ua
(byte)'u', (byte)'r', (byte)'-', (byte)'i', (byte)'n', // ur, ur-in
(byte)'u', (byte)'r', (byte)'-', (byte)'p', (byte)'k', // ur-pk
(byte)'u', (byte)'z', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'a', (byte)'f', // uz, uz-arab, uz-arab-af
(byte)'u', (byte)'z', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'u', (byte)'z', // uz-cyrl, uz-cyrl-uz
(byte)'u', (byte)'z', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'u', (byte)'z', // uz-latn, uz-latn-uz
(byte)'v', (byte)'a', (byte)'i', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'l', (byte)'r', // vai, vai-latn, vai-latn-lr
(byte)'v', (byte)'a', (byte)'i', (byte)'-', (byte)'v', (byte)'a', (byte)'i', (byte)'i', (byte)'-', (byte)'l', (byte)'r', // vai-vaii, vai-vaii-lr
(byte)'v', (byte)'e', (byte)'-', (byte)'z', (byte)'a', // ve, ve-za
(byte)'v', (byte)'i', (byte)'-', (byte)'v', (byte)'n', // vi, vi-vn
(byte)'v', (byte)'o', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // vo, vo-001
(byte)'v', (byte)'u', (byte)'n', (byte)'-', (byte)'t', (byte)'z', // vun, vun-tz
(byte)'w', (byte)'a', (byte)'e', (byte)'-', (byte)'c', (byte)'h', // wae, wae-ch
(byte)'w', (byte)'a', (byte)'l', (byte)'-', (byte)'e', (byte)'t', // wal, wal-et
(byte)'w', (byte)'o', (byte)'-', (byte)'s', (byte)'n', // wo, wo-sn
(byte)'x', (byte)'-', (byte)'i', (byte)'v', (byte)'_', (byte)'m', (byte)'a', (byte)'t', (byte)'h', (byte)'a', (byte)'n', // x-iv_mathan
(byte)'x', (byte)'h', (byte)'-', (byte)'z', (byte)'a', // xh, xh-za
(byte)'x', (byte)'o', (byte)'g', (byte)'-', (byte)'u', (byte)'g', // xog, xog-ug
(byte)'y', (byte)'a', (byte)'v', (byte)'-', (byte)'c', (byte)'m', // yav, yav-cm
(byte)'y', (byte)'i', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // yi, yi-001
(byte)'y', (byte)'o', (byte)'-', (byte)'b', (byte)'j', // yo, yo-bj
(byte)'y', (byte)'o', (byte)'-', (byte)'n', (byte)'g', // yo-ng
(byte)'y', (byte)'u', (byte)'e', (byte)'-', (byte)'h', (byte)'k', // yue, yue-hk
(byte)'z', (byte)'g', (byte)'h', (byte)'-', (byte)'t', (byte)'f', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'a', // zgh, zgh-tfng, zgh-tfng-ma
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'h', (byte)'s', // zh, zh-chs
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'h', (byte)'t', // zh-cht
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'n', (byte)'_', (byte)'p', (byte)'h', (byte)'o', (byte)'n', (byte)'e', (byte)'b', // zh-cn, zh-cn_phoneb
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'n', (byte)'_', (byte)'s', (byte)'t', (byte)'r', (byte)'o', (byte)'k', (byte)'e', // zh-cn_stroke
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'a', (byte)'n', (byte)'s', (byte)'-', (byte)'h', (byte)'k', // zh-hans, zh-hans-hk
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'a', (byte)'n', (byte)'s', (byte)'-', (byte)'m', (byte)'o', // zh-hans-mo
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'a', (byte)'n', (byte)'t', // zh-hant
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'k', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // zh-hk, zh-hk_radstr
(byte)'z', (byte)'h', (byte)'-', (byte)'m', (byte)'o', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // zh-mo, zh-mo_radstr
(byte)'z', (byte)'h', (byte)'-', (byte)'m', (byte)'o', (byte)'_', (byte)'s', (byte)'t', (byte)'r', (byte)'o', (byte)'k', (byte)'e', // zh-mo_stroke
(byte)'z', (byte)'h', (byte)'-', (byte)'s', (byte)'g', (byte)'_', (byte)'p', (byte)'h', (byte)'o', (byte)'n', (byte)'e', (byte)'b', // zh-sg, zh-sg_phoneb
(byte)'z', (byte)'h', (byte)'-', (byte)'s', (byte)'g', (byte)'_', (byte)'s', (byte)'t', (byte)'r', (byte)'o', (byte)'k', (byte)'e', // zh-sg_stroke
(byte)'z', (byte)'h', (byte)'-', (byte)'t', (byte)'w', (byte)'_', (byte)'p', (byte)'r', (byte)'o', (byte)'n', (byte)'u', (byte)'n', // zh-tw, zh-tw_pronun
(byte)'z', (byte)'h', (byte)'-', (byte)'t', (byte)'w', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // zh-tw_radstr
(byte)'z', (byte)'u', (byte)'-', (byte)'z', (byte)'a', // zu, zu-za
};
private const int CulturesCount = 864;
// Table which holds index into LocalesNames data and length of the string for each locale
// Values are binary searched and need to be sorted alphabetically
//
// value = index << 4 | length
// byte0 = value >> 8; byte1 = value & 0xff
private static ReadOnlySpan<byte> LocalesNamesIndexes => new byte[CulturesCount * 2]
{
0, 2, // aa
0, 5, // aa-dj
0, 85, // aa-er
0, 165, // aa-et
0, 242, // af
0, 245, // af-na
1, 69, // af-za
1, 147, // agq
1, 150, // agq-cm
1, 242, // ak
1, 245, // ak-gh
2, 66, // am
2, 69, // am-et
2, 146, // ar
2, 150, // ar-001
2, 245, // ar-ae
3, 69, // ar-bh
3, 149, // ar-dj
3, 229, // ar-dz
4, 53, // ar-eg
4, 133, // ar-er
4, 213, // ar-il
5, 37, // ar-iq
5, 117, // ar-jo
5, 197, // ar-km
6, 21, // ar-kw
6, 101, // ar-lb
6, 181, // ar-ly
7, 5, // ar-ma
7, 85, // ar-mr
7, 165, // ar-om
7, 245, // ar-ps
8, 69, // ar-qa
8, 149, // ar-sa
8, 229, // ar-sd
9, 53, // ar-so
9, 133, // ar-ss
9, 213, // ar-sy
10, 37, // ar-td
10, 117, // ar-tn
10, 197, // ar-ye
11, 19, // arn
11, 22, // arn-cl
11, 114, // as
11, 117, // as-in
11, 195, // asa
11, 198, // asa-tz
12, 35, // ast
12, 38, // ast-es
12, 130, // az
12, 135, // az-cyrl
12, 138, // az-cyrl-az
13, 39, // az-latn
13, 42, // az-latn-az
13, 194, // ba
13, 197, // ba-ru
14, 19, // bas
14, 22, // bas-cm
14, 114, // be
14, 117, // be-by
14, 195, // bem
14, 198, // bem-zm
15, 35, // bez
15, 38, // bez-tz
15, 130, // bg
15, 133, // bg-bg
15, 211, // bin
15, 214, // bin-ng
16, 50, // bm
16, 55, // bm-latn
16, 58, // bm-latn-ml
16, 210, // bn
16, 213, // bn-bd
17, 37, // bn-in
17, 114, // bo
17, 117, // bo-cn
17, 197, // bo-in
18, 18, // br
18, 21, // br-fr
18, 99, // brx
18, 102, // brx-in
18, 194, // bs
18, 199, // bs-cyrl
18, 202, // bs-cyrl-ba
19, 103, // bs-latn
19, 106, // bs-latn-ba
20, 3, // byn
20, 6, // byn-er
20, 98, // ca
20, 101, // ca-ad
20, 181, // ca-es
20, 190, // ca-es-valencia
21, 149, // ca-fr
21, 229, // ca-it
22, 50, // ce
22, 53, // ce-ru
22, 131, // cgg
22, 134, // cgg-ug
22, 227, // chr
22, 232, // chr-cher
22, 235, // chr-cher-us
23, 146, // co
23, 149, // co-fr
23, 226, // cs
23, 229, // cs-cz
24, 50, // cu
24, 53, // cu-ru
24, 130, // cy
24, 133, // cy-gb
24, 210, // da
24, 213, // da-dk
25, 37, // da-gl
25, 115, // dav
25, 118, // dav-ke
25, 210, // de
25, 213, // de-at
26, 37, // de-be
26, 117, // de-ch
26, 197, // de-de
26, 204, // de-de_phoneb
27, 133, // de-it
27, 213, // de-li
28, 37, // de-lu
28, 115, // dje
28, 118, // dje-ne
28, 211, // dsb
28, 214, // dsb-de
29, 51, // dua
29, 54, // dua-cm
29, 146, // dv
29, 149, // dv-mv
29, 227, // dyo
29, 230, // dyo-sn
30, 66, // dz
30, 69, // dz-bt
30, 147, // ebu
30, 150, // ebu-ke
30, 242, // ee
30, 245, // ee-gh
31, 69, // ee-tg
31, 146, // el
31, 149, // el-cy
31, 229, // el-gr
32, 50, // en
32, 54, // en-001
32, 150, // en-029
32, 246, // en-150
33, 85, // en-ag
33, 165, // en-ai
33, 245, // en-as
34, 69, // en-at
34, 149, // en-au
34, 229, // en-bb
35, 53, // en-be
35, 133, // en-bi
35, 213, // en-bm
36, 37, // en-bs
36, 117, // en-bw
36, 197, // en-bz
37, 21, // en-ca
37, 101, // en-cc
37, 181, // en-ch
38, 5, // en-ck
38, 85, // en-cm
38, 165, // en-cx
38, 245, // en-cy
39, 69, // en-de
39, 149, // en-dk
39, 229, // en-dm
40, 53, // en-er
40, 133, // en-fi
40, 213, // en-fj
41, 37, // en-fk
41, 117, // en-fm
41, 197, // en-gb
42, 21, // en-gd
42, 101, // en-gg
42, 181, // en-gh
43, 5, // en-gi
43, 85, // en-gm
43, 165, // en-gu
43, 245, // en-gy
44, 69, // en-hk
44, 149, // en-id
44, 229, // en-ie
45, 53, // en-il
45, 133, // en-im
45, 213, // en-in
46, 37, // en-io
46, 117, // en-je
46, 197, // en-jm
47, 21, // en-ke
47, 101, // en-ki
47, 181, // en-kn
48, 5, // en-ky
48, 85, // en-lc
48, 165, // en-lr
48, 245, // en-ls
49, 69, // en-mg
49, 149, // en-mh
49, 229, // en-mo
50, 53, // en-mp
50, 133, // en-ms
50, 213, // en-mt
51, 37, // en-mu
51, 117, // en-mw
51, 197, // en-my
52, 21, // en-na
52, 101, // en-nf
52, 181, // en-ng
53, 5, // en-nl
53, 85, // en-nr
53, 165, // en-nu
53, 245, // en-nz
54, 69, // en-pg
54, 149, // en-ph
54, 229, // en-pk
55, 53, // en-pn
55, 133, // en-pr
55, 213, // en-pw
56, 37, // en-rw
56, 117, // en-sb
56, 197, // en-sc
57, 21, // en-sd
57, 101, // en-se
57, 181, // en-sg
58, 5, // en-sh
58, 85, // en-si
58, 165, // en-sl
58, 245, // en-ss
59, 69, // en-sx
59, 149, // en-sz
59, 229, // en-tc
60, 53, // en-tk
60, 133, // en-to
60, 213, // en-tt
61, 37, // en-tv
61, 117, // en-tz
61, 197, // en-ug
62, 21, // en-um
62, 101, // en-us
62, 181, // en-vc
63, 5, // en-vg
63, 85, // en-vi
63, 165, // en-vu
63, 245, // en-ws
64, 69, // en-za
64, 149, // en-zm
64, 229, // en-zw
65, 50, // eo
65, 54, // eo-001
65, 146, // es
65, 150, // es-419
65, 245, // es-ar
66, 69, // es-bo
66, 149, // es-br
66, 229, // es-cl
67, 53, // es-co
67, 133, // es-cr
67, 213, // es-cu
68, 37, // es-do
68, 117, // es-ec
68, 197, // es-es
68, 204, // es-es_tradnl
69, 133, // es-gq
69, 213, // es-gt
70, 37, // es-hn
70, 117, // es-mx
70, 197, // es-ni
71, 21, // es-pa
71, 101, // es-pe
71, 181, // es-ph
72, 5, // es-pr
72, 85, // es-py
72, 165, // es-sv
72, 245, // es-us
73, 69, // es-uy
73, 149, // es-ve
73, 226, // et
73, 229, // et-ee
74, 50, // eu
74, 53, // eu-es
74, 131, // ewo
74, 134, // ewo-cm
74, 226, // fa
74, 229, // fa-ir
75, 50, // ff
75, 53, // ff-cm
75, 133, // ff-gn
75, 215, // ff-latn
75, 218, // ff-latn-sn
76, 117, // ff-mr
76, 197, // ff-ng
77, 18, // fi
77, 21, // fi-fi
77, 99, // fil
77, 102, // fil-ph
77, 194, // fo
77, 197, // fo-dk
78, 21, // fo-fo
78, 98, // fr
78, 102, // fr-029
78, 197, // fr-be
79, 21, // fr-bf
79, 101, // fr-bi
79, 181, // fr-bj
80, 5, // fr-bl
80, 85, // fr-ca
80, 165, // fr-cd
80, 245, // fr-cf
81, 69, // fr-cg
81, 149, // fr-ch
81, 229, // fr-ci
82, 53, // fr-cm
82, 133, // fr-dj
82, 213, // fr-dz
83, 37, // fr-fr
83, 117, // fr-ga
83, 197, // fr-gf
84, 21, // fr-gn
84, 101, // fr-gp
84, 181, // fr-gq
85, 5, // fr-ht
85, 85, // fr-km
85, 165, // fr-lu
85, 245, // fr-ma
86, 69, // fr-mc
86, 149, // fr-mf
86, 229, // fr-mg
87, 53, // fr-ml
87, 133, // fr-mq
87, 213, // fr-mr
88, 37, // fr-mu
88, 117, // fr-nc
88, 197, // fr-ne
89, 21, // fr-pf
89, 101, // fr-pm
89, 181, // fr-re
90, 5, // fr-rw
90, 85, // fr-sc
90, 165, // fr-sn
90, 245, // fr-sy
91, 69, // fr-td
91, 149, // fr-tg
91, 229, // fr-tn
92, 53, // fr-vu
92, 133, // fr-wf
92, 213, // fr-yt
93, 35, // fur
93, 38, // fur-it
93, 130, // fy
93, 133, // fy-nl
93, 210, // ga
93, 213, // ga-ie
94, 34, // gd
94, 37, // gd-gb
94, 114, // gl
94, 117, // gl-es
94, 194, // gn
94, 197, // gn-py
95, 19, // gsw
95, 22, // gsw-ch
95, 118, // gsw-fr
95, 214, // gsw-li
96, 50, // gu
96, 53, // gu-in
96, 131, // guz
96, 134, // guz-ke
96, 226, // gv
96, 229, // gv-im
97, 50, // ha
97, 55, // ha-latn
97, 58, // ha-latn-gh
97, 218, // ha-latn-ne
98, 122, // ha-latn-ng
99, 19, // haw
99, 22, // haw-us
99, 114, // he
99, 117, // he-il
99, 194, // hi
99, 197, // hi-in
100, 18, // hr
100, 21, // hr-ba
100, 101, // hr-hr
100, 179, // hsb
100, 182, // hsb-de
101, 18, // hu
101, 21, // hu-hu
101, 28, // hu-hu_technl
101, 210, // hy
101, 213, // hy-am
102, 34, // ia
102, 38, // ia-001
102, 133, // ia-fr
102, 211, // ibb
102, 214, // ibb-ng
103, 50, // id
103, 53, // id-id
103, 130, // ig
103, 133, // ig-ng
103, 210, // ii
103, 213, // ii-cn
104, 34, // is
104, 37, // is-is
104, 114, // it
104, 117, // it-ch
104, 197, // it-it
105, 21, // it-sm
105, 98, // iu
105, 103, // iu-cans
105, 106, // iu-cans-ca
106, 7, // iu-latn
106, 10, // iu-latn-ca
106, 162, // ja
106, 165, // ja-jp
106, 172, // ja-jp_radstr
107, 99, // jgo
107, 102, // jgo-cm
107, 195, // jmc
107, 198, // jmc-tz
108, 34, // jv
108, 39, // jv-java
108, 42, // jv-java-id
108, 199, // jv-latn
108, 202, // jv-latn-id
109, 98, // ka
109, 101, // ka-ge
109, 108, // ka-ge_modern
110, 35, // kab
110, 38, // kab-dz
110, 131, // kam
110, 134, // kam-ke
110, 227, // kde
110, 230, // kde-tz
111, 67, // kea
111, 70, // kea-cv
111, 163, // khq
111, 166, // khq-ml
112, 2, // ki
112, 5, // ki-ke
112, 82, // kk
112, 85, // kk-kz
112, 163, // kkj
112, 166, // kkj-cm
113, 2, // kl
113, 5, // kl-gl
113, 83, // kln
113, 86, // kln-ke
113, 178, // km
113, 181, // km-kh
114, 2, // kn
114, 5, // kn-in
114, 82, // ko
114, 85, // ko-kp
114, 165, // ko-kr
114, 243, // kok
114, 246, // kok-in
115, 82, // kr
115, 85, // kr-ng
115, 162, // ks
115, 167, // ks-arab
115, 170, // ks-arab-in
116, 71, // ks-deva
116, 74, // ks-deva-in
116, 227, // ksb
116, 230, // ksb-tz
117, 67, // ksf
117, 70, // ksf-cm
117, 163, // ksh
117, 166, // ksh-de
118, 2, // ku
118, 7, // ku-arab
118, 10, // ku-arab-iq
118, 170, // ku-arab-ir
119, 66, // kw
119, 69, // kw-gb
119, 146, // ky
119, 149, // ky-kg
119, 226, // la
119, 230, // la-001
120, 67, // lag
120, 70, // lag-tz
120, 162, // lb
120, 165, // lb-lu
120, 242, // lg
120, 245, // lg-ug
121, 67, // lkt
121, 70, // lkt-us
121, 162, // ln
121, 165, // ln-ao
121, 245, // ln-cd
122, 69, // ln-cf
122, 149, // ln-cg
122, 226, // lo
122, 229, // lo-la
123, 51, // lrc
123, 54, // lrc-iq
123, 150, // lrc-ir
123, 242, // lt
123, 245, // lt-lt
124, 66, // lu
124, 69, // lu-cd
124, 147, // luo
124, 150, // luo-ke
124, 243, // luy
124, 246, // luy-ke
125, 82, // lv
125, 85, // lv-lv
125, 163, // mas
125, 166, // mas-ke
126, 6, // mas-tz
126, 99, // mer
126, 102, // mer-ke
126, 195, // mfe
126, 198, // mfe-mu
127, 34, // mg
127, 37, // mg-mg
127, 115, // mgh
127, 118, // mgh-mz
127, 211, // mgo
127, 214, // mgo-cm
128, 50, // mi
128, 53, // mi-nz
128, 130, // mk
128, 133, // mk-mk
128, 210, // ml
128, 213, // ml-in
129, 34, // mn
129, 39, // mn-cyrl
129, 149, // mn-mn
129, 231, // mn-mong
129, 234, // mn-mong-cn
130, 138, // mn-mong-mn
131, 35, // mni
131, 38, // mni-in
131, 131, // moh
131, 134, // moh-ca
131, 226, // mr
131, 229, // mr-in
132, 50, // ms
132, 53, // ms-bn
132, 133, // ms-my
132, 213, // ms-sg
133, 34, // mt
133, 37, // mt-mt
133, 115, // mua
133, 118, // mua-cm
133, 210, // my
133, 213, // my-mm
134, 35, // mzn
134, 38, // mzn-ir
134, 131, // naq
134, 134, // naq-na
134, 226, // nb
134, 229, // nb-no
135, 53, // nb-sj
135, 130, // nd
135, 133, // nd-zw
135, 211, // nds
135, 214, // nds-de
136, 54, // nds-nl
136, 146, // ne
136, 149, // ne-in
136, 229, // ne-np
137, 50, // nl
137, 53, // nl-aw
137, 133, // nl-be
137, 213, // nl-bq
138, 37, // nl-cw
138, 117, // nl-nl
138, 197, // nl-sr
139, 21, // nl-sx
139, 99, // nmg
139, 102, // nmg-cm
139, 194, // nn
139, 197, // nn-no
140, 19, // nnh
140, 22, // nnh-cm
140, 114, // no
140, 147, // nqo
140, 150, // nqo-gn
140, 242, // nr
140, 245, // nr-za
141, 67, // nso
141, 70, // nso-za
141, 163, // nus
141, 166, // nus-ss
142, 3, // nyn
142, 6, // nyn-ug
142, 98, // oc
142, 101, // oc-fr
142, 178, // om
142, 181, // om-et
143, 5, // om-ke
143, 82, // or
143, 85, // or-in
143, 162, // os
143, 165, // os-ge
143, 245, // os-ru
144, 66, // pa
144, 71, // pa-arab
144, 74, // pa-arab-pk
144, 229, // pa-in
145, 51, // pap
145, 55, // pap-029
145, 162, // pl
145, 165, // pl-pl
145, 243, // prg
145, 247, // prg-001
146, 99, // prs
146, 102, // prs-af
146, 194, // ps
146, 197, // ps-af
147, 18, // pt
147, 21, // pt-ao
147, 101, // pt-br
147, 181, // pt-ch
148, 5, // pt-cv
148, 85, // pt-gq
148, 165, // pt-gw
148, 245, // pt-lu
149, 69, // pt-mo
149, 149, // pt-mz
149, 229, // pt-pt
150, 53, // pt-st
150, 133, // pt-tl
150, 221, // qps-latn-x-sh
151, 168, // qps-ploc
151, 169, // qps-ploca
152, 57, // qps-plocm
152, 195, // quc
152, 200, // quc-latn
152, 203, // quc-latn-gt
153, 115, // quz
153, 118, // quz-bo
153, 214, // quz-ec
154, 54, // quz-pe
154, 146, // rm
154, 149, // rm-ch
154, 226, // rn
154, 229, // rn-bi
155, 50, // ro
155, 53, // ro-md
155, 133, // ro-ro
155, 211, // rof
155, 214, // rof-tz
156, 50, // ru
156, 53, // ru-by
156, 133, // ru-kg
156, 213, // ru-kz
157, 37, // ru-md
157, 117, // ru-ru
157, 197, // ru-ua
158, 18, // rw
158, 21, // rw-rw
158, 99, // rwk
158, 102, // rwk-tz
158, 194, // sa
158, 197, // sa-in
159, 19, // sah
159, 22, // sah-ru
159, 115, // saq
159, 118, // saq-ke
159, 211, // sbp
159, 214, // sbp-tz
160, 50, // sd
160, 55, // sd-arab
160, 58, // sd-arab-pk
160, 215, // sd-deva
160, 218, // sd-deva-in
161, 114, // se
161, 117, // se-fi
161, 197, // se-no
162, 21, // se-se
162, 99, // seh
162, 102, // seh-mz
162, 195, // ses
162, 198, // ses-ml
163, 34, // sg
163, 37, // sg-cf
163, 115, // shi
163, 120, // shi-latn
163, 123, // shi-latn-ma
164, 40, // shi-tfng
164, 43, // shi-tfng-ma
164, 210, // si
164, 213, // si-lk
165, 34, // sk
165, 37, // sk-sk
165, 114, // sl
165, 117, // sl-si
165, 195, // sma
165, 198, // sma-no
166, 38, // sma-se
166, 131, // smj
166, 134, // smj-no
166, 230, // smj-se
167, 67, // smn
167, 70, // smn-fi
167, 163, // sms
167, 166, // sms-fi
168, 2, // sn
168, 7, // sn-latn
168, 10, // sn-latn-zw
168, 162, // so
168, 165, // so-dj
168, 245, // so-et
169, 69, // so-ke
169, 149, // so-so
169, 226, // sq
169, 229, // sq-al
170, 53, // sq-mk
170, 133, // sq-xk
170, 210, // sr
170, 215, // sr-cyrl
170, 218, // sr-cyrl-ba
171, 122, // sr-cyrl-cs
172, 26, // sr-cyrl-me
172, 186, // sr-cyrl-rs
173, 90, // sr-cyrl-xk
173, 247, // sr-latn
173, 250, // sr-latn-ba
174, 154, // sr-latn-cs
175, 58, // sr-latn-me
175, 218, // sr-latn-rs
176, 122, // sr-latn-xk
177, 18, // ss
177, 21, // ss-sz
177, 101, // ss-za
177, 179, // ssy
177, 182, // ssy-er
178, 18, // st
178, 21, // st-ls
178, 101, // st-za
178, 178, // sv
178, 181, // sv-ax
179, 5, // sv-fi
179, 85, // sv-se
179, 162, // sw
179, 165, // sw-cd
179, 245, // sw-ke
180, 69, // sw-tz
180, 149, // sw-ug
180, 227, // swc
180, 230, // swc-cd
181, 67, // syr
181, 70, // syr-sy
181, 162, // ta
181, 165, // ta-in
181, 245, // ta-lk
182, 69, // ta-my
182, 149, // ta-sg
182, 226, // te
182, 229, // te-in
183, 51, // teo
183, 54, // teo-ke
183, 150, // teo-ug
183, 242, // tg
183, 247, // tg-cyrl
183, 250, // tg-cyrl-tj
184, 146, // th
184, 149, // th-th
184, 226, // ti
184, 229, // ti-er
185, 53, // ti-et
185, 131, // tig
185, 134, // tig-er
185, 226, // tk
185, 229, // tk-tm
186, 50, // tn
186, 53, // tn-bw
186, 133, // tn-za
186, 210, // to
186, 213, // to-to
187, 34, // tr
187, 37, // tr-cy
187, 117, // tr-tr
187, 194, // ts
187, 197, // ts-za
188, 18, // tt
188, 21, // tt-ru
188, 99, // twq
188, 102, // twq-ne
188, 195, // tzm
188, 200, // tzm-arab
188, 203, // tzm-arab-ma
189, 120, // tzm-latn
189, 123, // tzm-latn-dz
190, 43, // tzm-latn-ma
190, 216, // tzm-tfng
190, 219, // tzm-tfng-ma
191, 130, // ug
191, 133, // ug-cn
191, 210, // uk
191, 213, // uk-ua
192, 34, // ur
192, 37, // ur-in
192, 117, // ur-pk
192, 194, // uz
192, 199, // uz-arab
192, 202, // uz-arab-af
193, 103, // uz-cyrl
193, 106, // uz-cyrl-uz
194, 7, // uz-latn
194, 10, // uz-latn-uz
194, 163, // vai
194, 168, // vai-latn
194, 171, // vai-latn-lr
195, 88, // vai-vaii
195, 91, // vai-vaii-lr
196, 2, // ve
196, 5, // ve-za
196, 82, // vi
196, 85, // vi-vn
196, 162, // vo
196, 166, // vo-001
197, 3, // vun
197, 6, // vun-tz
197, 99, // wae
197, 102, // wae-ch
197, 195, // wal
197, 198, // wal-et
198, 34, // wo
198, 37, // wo-sn
198, 123, // x-iv_mathan
199, 34, // xh
199, 37, // xh-za
199, 115, // xog
199, 118, // xog-ug
199, 211, // yav
199, 214, // yav-cm
200, 50, // yi
200, 54, // yi-001
200, 146, // yo
200, 149, // yo-bj
200, 229, // yo-ng
201, 51, // yue
201, 54, // yue-hk
201, 147, // zgh
201, 152, // zgh-tfng
201, 155, // zgh-tfng-ma
202, 66, // zh
202, 70, // zh-chs
202, 166, // zh-cht
203, 5, // zh-cn
203, 12, // zh-cn_phoneb
203, 204, // zh-cn_stroke
204, 135, // zh-hans
204, 138, // zh-hans-hk
205, 42, // zh-hans-mo
205, 199, // zh-hant
206, 53, // zh-hk
206, 60, // zh-hk_radstr
206, 245, // zh-mo
206, 252, // zh-mo_radstr
207, 188, // zh-mo_stroke
208, 117, // zh-sg
208, 124, // zh-sg_phoneb
209, 60, // zh-sg_stroke
209, 245, // zh-tw
209, 252, // zh-tw_pronun
210, 188, // zh-tw_radstr
211, 114, // zu
211, 117, // zu-za
};
private const int LocaleLongestName = 14;
private const int LcidCount = 448;
private static ReadOnlySpan<byte> LcidToCultureNameIndices => new byte[LcidCount * 4]
{
0x00, 0x01, 0x02, 0x92, // ar
0x00, 0x02, 0x0f, 0x82, // bg
0x00, 0x03, 0x14, 0x62, // ca
0x00, 0x04, 0xca, 0x46, // zh-chs
0x00, 0x05, 0x17, 0xe2, // cs
0x00, 0x06, 0x18, 0xd2, // da
0x00, 0x07, 0x19, 0xd2, // de
0x00, 0x08, 0x1f, 0x92, // el
0x00, 0x09, 0x20, 0x32, // en
0x00, 0x0a, 0x41, 0x92, // es
0x00, 0x0b, 0x4d, 0x12, // fi
0x00, 0x0c, 0x4e, 0x62, // fr
0x00, 0x0d, 0x63, 0x72, // he
0x00, 0x0e, 0x65, 0x12, // hu
0x00, 0x0f, 0x68, 0x22, // is
0x00, 0x10, 0x68, 0x72, // it
0x00, 0x11, 0x6a, 0xa2, // ja
0x00, 0x12, 0x72, 0x52, // ko
0x00, 0x13, 0x89, 0x32, // nl
0x00, 0x14, 0x8c, 0x72, // no
0x00, 0x15, 0x91, 0xa2, // pl
0x00, 0x16, 0x93, 0x12, // pt
0x00, 0x17, 0x9a, 0x92, // rm
0x00, 0x18, 0x9b, 0x32, // ro
0x00, 0x19, 0x9c, 0x32, // ru
0x00, 0x1a, 0x64, 0x12, // hr
0x00, 0x1b, 0xa5, 0x22, // sk
0x00, 0x1c, 0xa9, 0xe2, // sq
0x00, 0x1d, 0xb2, 0xb2, // sv
0x00, 0x1e, 0xb8, 0x92, // th
0x00, 0x1f, 0xbb, 0x22, // tr
0x00, 0x20, 0xc0, 0x22, // ur
0x00, 0x21, 0x67, 0x32, // id
0x00, 0x22, 0xbf, 0xd2, // uk
0x00, 0x23, 0x0e, 0x72, // be
0x00, 0x24, 0xa5, 0x72, // sl
0x00, 0x25, 0x49, 0xe2, // et
0x00, 0x26, 0x7d, 0x52, // lv
0x00, 0x27, 0x7b, 0xf2, // lt
0x00, 0x28, 0xb7, 0xf2, // tg
0x00, 0x29, 0x4a, 0xe2, // fa
0x00, 0x2a, 0xc4, 0x52, // vi
0x00, 0x2b, 0x65, 0xd2, // hy
0x00, 0x2c, 0x0c, 0x82, // az
0x00, 0x2d, 0x4a, 0x32, // eu
0x00, 0x2e, 0x64, 0xb3, // hsb
0x00, 0x2f, 0x80, 0x82, // mk
0x00, 0x30, 0xb2, 0x12, // st
0x00, 0x31, 0xbb, 0xc2, // ts
0x00, 0x32, 0xba, 0x32, // tn
0x00, 0x33, 0xc4, 0x02, // ve
0x00, 0x34, 0xc7, 0x22, // xh
0x00, 0x35, 0xd3, 0x72, // zu
0x00, 0x36, 0x00, 0xf2, // af
0x00, 0x37, 0x6d, 0x62, // ka
0x00, 0x38, 0x4d, 0xc2, // fo
0x00, 0x39, 0x63, 0xc2, // hi
0x00, 0x3a, 0x85, 0x22, // mt
0x00, 0x3b, 0xa1, 0x72, // se
0x00, 0x3c, 0x5d, 0xd2, // ga
0x00, 0x3d, 0xc8, 0x32, // yi
0x00, 0x3e, 0x84, 0x32, // ms
0x00, 0x3f, 0x70, 0x52, // kk
0x00, 0x40, 0x77, 0x92, // ky
0x00, 0x41, 0xb3, 0xa2, // sw
0x00, 0x42, 0xb9, 0xe2, // tk
0x00, 0x43, 0xc0, 0xc2, // uz
0x00, 0x44, 0xbc, 0x12, // tt
0x00, 0x45, 0x10, 0xd2, // bn
0x00, 0x46, 0x90, 0x42, // pa
0x00, 0x47, 0x60, 0x32, // gu
0x00, 0x48, 0x8f, 0x52, // or
0x00, 0x49, 0xb5, 0xa2, // ta
0x00, 0x4a, 0xb6, 0xe2, // te
0x00, 0x4b, 0x72, 0x02, // kn
0x00, 0x4c, 0x80, 0xd2, // ml
0x00, 0x4d, 0x0b, 0x72, // as
0x00, 0x4e, 0x83, 0xe2, // mr
0x00, 0x4f, 0x9e, 0xc2, // sa
0x00, 0x50, 0x81, 0x22, // mn
0x00, 0x51, 0x11, 0x72, // bo
0x00, 0x52, 0x18, 0x82, // cy
0x00, 0x53, 0x71, 0xb2, // km
0x00, 0x54, 0x7a, 0xe2, // lo
0x00, 0x55, 0x85, 0xd2, // my
0x00, 0x56, 0x5e, 0x72, // gl
0x00, 0x57, 0x72, 0xf3, // kok
0x00, 0x58, 0x83, 0x23, // mni
0x00, 0x59, 0xa0, 0x32, // sd
0x00, 0x5a, 0xb5, 0x43, // syr
0x00, 0x5b, 0xa4, 0xd2, // si
0x00, 0x5c, 0x16, 0xe3, // chr
0x00, 0x5d, 0x69, 0x62, // iu
0x00, 0x5e, 0x02, 0x42, // am
0x00, 0x5f, 0xbc, 0xc3, // tzm
0x00, 0x60, 0x73, 0xa2, // ks
0x00, 0x61, 0x88, 0x92, // ne
0x00, 0x62, 0x5d, 0x82, // fy
0x00, 0x63, 0x92, 0xc2, // ps
0x00, 0x64, 0x4d, 0x63, // fil
0x00, 0x65, 0x1d, 0x92, // dv
0x00, 0x66, 0x0f, 0xd3, // bin
0x00, 0x67, 0x4b, 0x32, // ff
0x00, 0x68, 0x61, 0x32, // ha
0x00, 0x69, 0x66, 0xd3, // ibb
0x00, 0x6a, 0xc8, 0x92, // yo
0x00, 0x6b, 0x99, 0x73, // quz
0x00, 0x6c, 0x8d, 0x43, // nso
0x00, 0x6d, 0x0d, 0xc2, // ba
0x00, 0x6e, 0x78, 0xa2, // lb
0x00, 0x6f, 0x71, 0x02, // kl
0x00, 0x70, 0x67, 0x82, // ig
0x00, 0x71, 0x73, 0x52, // kr
0x00, 0x72, 0x8e, 0xb2, // om
0x00, 0x73, 0xb8, 0xe2, // ti
0x00, 0x74, 0x5e, 0xc2, // gn
0x00, 0x75, 0x63, 0x13, // haw
0x00, 0x76, 0x77, 0xe2, // la
0x00, 0x77, 0xa8, 0xa2, // so
0x00, 0x78, 0x67, 0xd2, // ii
0x00, 0x79, 0x91, 0x33, // pap
0x00, 0x7a, 0x0b, 0x13, // arn
0x00, 0x7c, 0x83, 0x83, // moh
0x00, 0x7e, 0x12, 0x12, // br
0x00, 0x80, 0xbf, 0x82, // ug
0x00, 0x81, 0x80, 0x32, // mi
0x00, 0x82, 0x8e, 0x62, // oc
0x00, 0x83, 0x17, 0x92, // co
0x00, 0x84, 0x5f, 0x13, // gsw
0x00, 0x85, 0x9f, 0x13, // sah
0x00, 0x86, 0x98, 0xc3, // quc
0x00, 0x87, 0x9e, 0x12, // rw
0x00, 0x88, 0xc6, 0x22, // wo
0x00, 0x8c, 0x92, 0x63, // prs
0x00, 0x91, 0x5e, 0x22, // gd
0x00, 0x92, 0x76, 0x02, // ku
0x04, 0x01, 0x08, 0x95, // ar-sa
0x04, 0x02, 0x0f, 0x85, // bg-bg
0x04, 0x03, 0x14, 0xb5, // ca-es
0x04, 0x04, 0xd1, 0xf5, // zh-tw
0x04, 0x05, 0x17, 0xe5, // cs-cz
0x04, 0x06, 0x18, 0xd5, // da-dk
0x04, 0x07, 0x1a, 0xc5, // de-de
0x04, 0x08, 0x1f, 0xe5, // el-gr
0x04, 0x09, 0x3e, 0x65, // en-us
0x04, 0x0a, 0x44, 0xcc, // es-es_tradnl
0x04, 0x0b, 0x4d, 0x15, // fi-fi
0x04, 0x0c, 0x53, 0x25, // fr-fr
0x04, 0x0d, 0x63, 0x75, // he-il
0x04, 0x0e, 0x65, 0x15, // hu-hu
0x04, 0x0f, 0x68, 0x25, // is-is
0x04, 0x10, 0x68, 0xc5, // it-it
0x04, 0x11, 0x6a, 0xa5, // ja-jp
0x04, 0x12, 0x72, 0xa5, // ko-kr
0x04, 0x13, 0x8a, 0x75, // nl-nl
0x04, 0x14, 0x86, 0xe5, // nb-no
0x04, 0x15, 0x91, 0xa5, // pl-pl
0x04, 0x16, 0x93, 0x65, // pt-br
0x04, 0x17, 0x9a, 0x95, // rm-ch
0x04, 0x18, 0x9b, 0x85, // ro-ro
0x04, 0x19, 0x9d, 0x75, // ru-ru
0x04, 0x1a, 0x64, 0x65, // hr-hr
0x04, 0x1b, 0xa5, 0x25, // sk-sk
0x04, 0x1c, 0xa9, 0xe5, // sq-al
0x04, 0x1d, 0xb3, 0x55, // sv-se
0x04, 0x1e, 0xb8, 0x95, // th-th
0x04, 0x1f, 0xbb, 0x75, // tr-tr
0x04, 0x20, 0xc0, 0x75, // ur-pk
0x04, 0x21, 0x67, 0x35, // id-id
0x04, 0x22, 0xbf, 0xd5, // uk-ua
0x04, 0x23, 0x0e, 0x75, // be-by
0x04, 0x24, 0xa5, 0x75, // sl-si
0x04, 0x25, 0x49, 0xe5, // et-ee
0x04, 0x26, 0x7d, 0x55, // lv-lv
0x04, 0x27, 0x7b, 0xf5, // lt-lt
0x04, 0x28, 0xb7, 0xfa, // tg-cyrl-tj
0x04, 0x29, 0x4a, 0xe5, // fa-ir
0x04, 0x2a, 0xc4, 0x55, // vi-vn
0x04, 0x2b, 0x65, 0xd5, // hy-am
0x04, 0x2c, 0x0d, 0x2a, // az-latn-az
0x04, 0x2d, 0x4a, 0x35, // eu-es
0x04, 0x2e, 0x64, 0xb6, // hsb-de
0x04, 0x2f, 0x80, 0x85, // mk-mk
0x04, 0x30, 0xb2, 0x65, // st-za
0x04, 0x31, 0xbb, 0xc5, // ts-za
0x04, 0x32, 0xba, 0x85, // tn-za
0x04, 0x33, 0xc4, 0x05, // ve-za
0x04, 0x34, 0xc7, 0x25, // xh-za
0x04, 0x35, 0xd3, 0x75, // zu-za
0x04, 0x36, 0x01, 0x45, // af-za
0x04, 0x37, 0x6d, 0x65, // ka-ge
0x04, 0x38, 0x4e, 0x15, // fo-fo
0x04, 0x39, 0x63, 0xc5, // hi-in
0x04, 0x3a, 0x85, 0x25, // mt-mt
0x04, 0x3b, 0xa1, 0xc5, // se-no
0x04, 0x3d, 0xc8, 0x36, // yi-001
0x04, 0x3e, 0x84, 0x85, // ms-my
0x04, 0x3f, 0x70, 0x55, // kk-kz
0x04, 0x40, 0x77, 0x95, // ky-kg
0x04, 0x41, 0xb3, 0xf5, // sw-ke
0x04, 0x42, 0xb9, 0xe5, // tk-tm
0x04, 0x43, 0xc2, 0x0a, // uz-latn-uz
0x04, 0x44, 0xbc, 0x15, // tt-ru
0x04, 0x45, 0x11, 0x25, // bn-in
0x04, 0x46, 0x90, 0xe5, // pa-in
0x04, 0x47, 0x60, 0x35, // gu-in
0x04, 0x48, 0x8f, 0x55, // or-in
0x04, 0x49, 0xb5, 0xa5, // ta-in
0x04, 0x4a, 0xb6, 0xe5, // te-in
0x04, 0x4b, 0x72, 0x05, // kn-in
0x04, 0x4c, 0x80, 0xd5, // ml-in
0x04, 0x4d, 0x0b, 0x75, // as-in
0x04, 0x4e, 0x83, 0xe5, // mr-in
0x04, 0x4f, 0x9e, 0xc5, // sa-in
0x04, 0x50, 0x81, 0x95, // mn-mn
0x04, 0x51, 0x11, 0x75, // bo-cn
0x04, 0x52, 0x18, 0x85, // cy-gb
0x04, 0x53, 0x71, 0xb5, // km-kh
0x04, 0x54, 0x7a, 0xe5, // lo-la
0x04, 0x55, 0x85, 0xd5, // my-mm
0x04, 0x56, 0x5e, 0x75, // gl-es
0x04, 0x57, 0x72, 0xf6, // kok-in
0x04, 0x58, 0x83, 0x26, // mni-in
0x04, 0x59, 0xa0, 0xda, // sd-deva-in
0x04, 0x5a, 0xb5, 0x46, // syr-sy
0x04, 0x5b, 0xa4, 0xd5, // si-lk
0x04, 0x5c, 0x16, 0xeb, // chr-cher-us
0x04, 0x5d, 0x69, 0x6a, // iu-cans-ca
0x04, 0x5e, 0x02, 0x45, // am-et
0x04, 0x5f, 0xbc, 0xcb, // tzm-arab-ma
0x04, 0x60, 0x73, 0xa7, // ks-arab
0x04, 0x61, 0x88, 0xe5, // ne-np
0x04, 0x62, 0x5d, 0x85, // fy-nl
0x04, 0x63, 0x92, 0xc5, // ps-af
0x04, 0x64, 0x4d, 0x66, // fil-ph
0x04, 0x65, 0x1d, 0x95, // dv-mv
0x04, 0x66, 0x0f, 0xd6, // bin-ng
0x04, 0x67, 0x4c, 0xc5, // ff-ng
0x04, 0x68, 0x62, 0x7a, // ha-latn-ng
0x04, 0x69, 0x66, 0xd6, // ibb-ng
0x04, 0x6a, 0xc8, 0xe5, // yo-ng
0x04, 0x6b, 0x99, 0x76, // quz-bo
0x04, 0x6c, 0x8d, 0x46, // nso-za
0x04, 0x6d, 0x0d, 0xc5, // ba-ru
0x04, 0x6e, 0x78, 0xa5, // lb-lu
0x04, 0x6f, 0x71, 0x05, // kl-gl
0x04, 0x70, 0x67, 0x85, // ig-ng
0x04, 0x71, 0x73, 0x55, // kr-ng
0x04, 0x72, 0x8e, 0xb5, // om-et
0x04, 0x73, 0xb9, 0x35, // ti-et
0x04, 0x74, 0x5e, 0xc5, // gn-py
0x04, 0x75, 0x63, 0x16, // haw-us
0x04, 0x76, 0x77, 0xe6, // la-001
0x04, 0x77, 0xa9, 0x95, // so-so
0x04, 0x78, 0x67, 0xd5, // ii-cn
0x04, 0x79, 0x91, 0x37, // pap-029
0x04, 0x7a, 0x0b, 0x16, // arn-cl
0x04, 0x7c, 0x83, 0x86, // moh-ca
0x04, 0x7e, 0x12, 0x15, // br-fr
0x04, 0x80, 0xbf, 0x85, // ug-cn
0x04, 0x81, 0x80, 0x35, // mi-nz
0x04, 0x82, 0x8e, 0x65, // oc-fr
0x04, 0x83, 0x17, 0x95, // co-fr
0x04, 0x84, 0x5f, 0x76, // gsw-fr
0x04, 0x85, 0x9f, 0x16, // sah-ru
0x04, 0x86, 0x98, 0xcb, // quc-latn-gt
0x04, 0x87, 0x9e, 0x15, // rw-rw
0x04, 0x88, 0xc6, 0x25, // wo-sn
0x04, 0x8c, 0x92, 0x66, // prs-af
0x04, 0x91, 0x5e, 0x25, // gd-gb
0x04, 0x92, 0x76, 0x0a, // ku-arab-iq
0x05, 0x01, 0x97, 0xa8, // qps-ploc
0x05, 0xfe, 0x97, 0xa9, // qps-ploca
0x08, 0x01, 0x05, 0x25, // ar-iq
0x08, 0x03, 0x14, 0xbe, // ca-es-valencia
0x08, 0x04, 0xcb, 0x05, // zh-cn
0x08, 0x07, 0x1a, 0x75, // de-ch
0x08, 0x09, 0x29, 0xc5, // en-gb
0x08, 0x0a, 0x46, 0x75, // es-mx
0x08, 0x0c, 0x4e, 0xc5, // fr-be
0x08, 0x10, 0x68, 0x75, // it-ch
0x08, 0x13, 0x89, 0x85, // nl-be
0x08, 0x14, 0x8b, 0xc5, // nn-no
0x08, 0x16, 0x95, 0xe5, // pt-pt
0x08, 0x18, 0x9b, 0x35, // ro-md
0x08, 0x19, 0x9d, 0x25, // ru-md
0x08, 0x1a, 0xae, 0x9a, // sr-latn-cs
0x08, 0x1d, 0xb3, 0x05, // sv-fi
0x08, 0x20, 0xc0, 0x25, // ur-in
0x08, 0x2c, 0x0c, 0x8a, // az-cyrl-az
0x08, 0x2e, 0x1c, 0xd6, // dsb-de
0x08, 0x32, 0xba, 0x35, // tn-bw
0x08, 0x3b, 0xa2, 0x15, // se-se
0x08, 0x3c, 0x5d, 0xd5, // ga-ie
0x08, 0x3e, 0x84, 0x35, // ms-bn
0x08, 0x43, 0xc1, 0x6a, // uz-cyrl-uz
0x08, 0x45, 0x10, 0xd5, // bn-bd
0x08, 0x46, 0x90, 0x4a, // pa-arab-pk
0x08, 0x49, 0xb5, 0xf5, // ta-lk
0x08, 0x50, 0x81, 0xea, // mn-mong-cn
0x08, 0x59, 0xa0, 0x3a, // sd-arab-pk
0x08, 0x5d, 0x6a, 0x0a, // iu-latn-ca
0x08, 0x5f, 0xbd, 0x7b, // tzm-latn-dz
0x08, 0x60, 0x74, 0x4a, // ks-deva-in
0x08, 0x61, 0x88, 0x95, // ne-in
0x08, 0x67, 0x4b, 0xda, // ff-latn-sn
0x08, 0x6b, 0x99, 0xd6, // quz-ec
0x08, 0x73, 0xb8, 0xe5, // ti-er
0x09, 0x01, 0x96, 0xdd, // qps-latn-x-sh
0x09, 0xff, 0x98, 0x39, // qps-plocm
0x0c, 0x01, 0x04, 0x35, // ar-eg
0x0c, 0x04, 0xce, 0x35, // zh-hk
0x0c, 0x07, 0x19, 0xd5, // de-at
0x0c, 0x09, 0x22, 0x95, // en-au
0x0c, 0x0a, 0x44, 0xc5, // es-es
0x0c, 0x0c, 0x50, 0x55, // fr-ca
0x0c, 0x1a, 0xab, 0x7a, // sr-cyrl-cs
0x0c, 0x3b, 0xa1, 0x75, // se-fi
0x0c, 0x50, 0x82, 0x8a, // mn-mong-mn
0x0c, 0x51, 0x1e, 0x45, // dz-bt
0x0c, 0x6b, 0x9a, 0x36, // quz-pe
0x10, 0x01, 0x06, 0xb5, // ar-ly
0x10, 0x04, 0xd0, 0x75, // zh-sg
0x10, 0x07, 0x1c, 0x25, // de-lu
0x10, 0x09, 0x25, 0x15, // en-ca
0x10, 0x0a, 0x45, 0xd5, // es-gt
0x10, 0x0c, 0x51, 0x95, // fr-ch
0x10, 0x1a, 0x64, 0x15, // hr-ba
0x10, 0x3b, 0xa6, 0x86, // smj-no
0x10, 0x5f, 0xbe, 0xdb, // tzm-tfng-ma
0x14, 0x01, 0x03, 0xe5, // ar-dz
0x14, 0x04, 0xce, 0xf5, // zh-mo
0x14, 0x07, 0x1b, 0xd5, // de-li
0x14, 0x09, 0x35, 0xf5, // en-nz
0x14, 0x0a, 0x43, 0x85, // es-cr
0x14, 0x0c, 0x55, 0xa5, // fr-lu
0x14, 0x1a, 0x13, 0x6a, // bs-latn-ba
0x14, 0x3b, 0xa6, 0xe6, // smj-se
0x18, 0x01, 0x07, 0x05, // ar-ma
0x18, 0x09, 0x2c, 0xe5, // en-ie
0x18, 0x0a, 0x47, 0x15, // es-pa
0x18, 0x0c, 0x56, 0x45, // fr-mc
0x18, 0x1a, 0xad, 0xfa, // sr-latn-ba
0x18, 0x3b, 0xa5, 0xc6, // sma-no
0x1c, 0x01, 0x0a, 0x75, // ar-tn
0x1c, 0x09, 0x40, 0x45, // en-za
0x1c, 0x0a, 0x44, 0x25, // es-do
0x1c, 0x0c, 0x4e, 0x66, // fr-029
0x1c, 0x1a, 0xaa, 0xda, // sr-cyrl-ba
0x1c, 0x3b, 0xa6, 0x26, // sma-se
0x20, 0x01, 0x07, 0xa5, // ar-om
0x20, 0x09, 0x2e, 0xc5, // en-jm
0x20, 0x0a, 0x49, 0x95, // es-ve
0x20, 0x0c, 0x59, 0xb5, // fr-re
0x20, 0x1a, 0x12, 0xca, // bs-cyrl-ba
0x20, 0x3b, 0xa7, 0xa6, // sms-fi
0x24, 0x01, 0x0a, 0xc5, // ar-ye
0x24, 0x09, 0x20, 0x96, // en-029
0x24, 0x0a, 0x43, 0x35, // es-co
0x24, 0x0c, 0x50, 0xa5, // fr-cd
0x24, 0x1a, 0xaf, 0xda, // sr-latn-rs
0x24, 0x3b, 0xa7, 0x46, // smn-fi
0x28, 0x01, 0x09, 0xd5, // ar-sy
0x28, 0x09, 0x24, 0xc5, // en-bz
0x28, 0x0a, 0x47, 0x65, // es-pe
0x28, 0x0c, 0x5a, 0xa5, // fr-sn
0x28, 0x1a, 0xac, 0xba, // sr-cyrl-rs
0x2c, 0x01, 0x05, 0x75, // ar-jo
0x2c, 0x09, 0x3c, 0xd5, // en-tt
0x2c, 0x0a, 0x41, 0xf5, // es-ar
0x2c, 0x0c, 0x52, 0x35, // fr-cm
0x2c, 0x1a, 0xaf, 0x3a, // sr-latn-me
0x30, 0x01, 0x06, 0x65, // ar-lb
0x30, 0x09, 0x40, 0xe5, // en-zw
0x30, 0x0a, 0x44, 0x75, // es-ec
0x30, 0x0c, 0x51, 0xe5, // fr-ci
0x30, 0x1a, 0xac, 0x1a, // sr-cyrl-me
0x34, 0x01, 0x06, 0x15, // ar-kw
0x34, 0x09, 0x36, 0x95, // en-ph
0x34, 0x0a, 0x42, 0xe5, // es-cl
0x34, 0x0c, 0x57, 0x35, // fr-ml
0x38, 0x01, 0x02, 0xf5, // ar-ae
0x38, 0x09, 0x2c, 0x95, // en-id
0x38, 0x0a, 0x49, 0x45, // es-uy
0x38, 0x0c, 0x55, 0xf5, // fr-ma
0x3c, 0x01, 0x03, 0x45, // ar-bh
0x3c, 0x09, 0x2c, 0x45, // en-hk
0x3c, 0x0a, 0x48, 0x55, // es-py
0x3c, 0x0c, 0x55, 0x05, // fr-ht
0x40, 0x01, 0x08, 0x45, // ar-qa
0x40, 0x09, 0x2d, 0xd5, // en-in
0x40, 0x0a, 0x42, 0x45, // es-bo
0x44, 0x09, 0x33, 0xc5, // en-my
0x44, 0x0a, 0x48, 0xa5, // es-sv
0x48, 0x09, 0x39, 0xb5, // en-sg
0x48, 0x0a, 0x46, 0x25, // es-hn
0x4c, 0x0a, 0x46, 0xc5, // es-ni
0x50, 0x0a, 0x48, 0x05, // es-pr
0x54, 0x0a, 0x48, 0xf5, // es-us
0x58, 0x0a, 0x41, 0x96, // es-419
0x5c, 0x0a, 0x43, 0xd5, // es-cu
0x64, 0x1a, 0x12, 0xc7, // bs-cyrl
0x68, 0x1a, 0x13, 0x67, // bs-latn
0x6c, 0x1a, 0xaa, 0xd7, // sr-cyrl
0x70, 0x1a, 0xad, 0xf7, // sr-latn
0x70, 0x3b, 0xa7, 0x43, // smn
0x74, 0x2c, 0x0c, 0x87, // az-cyrl
0x74, 0x3b, 0xa7, 0xa3, // sms
0x78, 0x04, 0xca, 0x42, // zh
0x78, 0x14, 0x8b, 0xc2, // nn
0x78, 0x1a, 0x12, 0xc2, // bs
0x78, 0x2c, 0x0d, 0x27, // az-latn
0x78, 0x3b, 0xa5, 0xc3, // sma
0x78, 0x43, 0xc1, 0x67, // uz-cyrl
0x78, 0x50, 0x81, 0x27, // mn-cyrl
0x78, 0x5d, 0x69, 0x67, // iu-cans
0x78, 0x5f, 0xbe, 0xd8, // tzm-tfng
0x7c, 0x04, 0xca, 0xa6, // zh-cht
0x7c, 0x14, 0x86, 0xe2, // nb
0x7c, 0x1a, 0xaa, 0xd2, // sr
0x7c, 0x28, 0xb7, 0xf7, // tg-cyrl
0x7c, 0x2e, 0x1c, 0xd3, // dsb
0x7c, 0x3b, 0xa6, 0x83, // smj
0x7c, 0x43, 0xc2, 0x07, // uz-latn
0x7c, 0x46, 0x90, 0x47, // pa-arab
0x7c, 0x50, 0x81, 0xe7, // mn-mong
0x7c, 0x59, 0xa0, 0x37, // sd-arab
0x7c, 0x5c, 0x16, 0xe8, // chr-cher
0x7c, 0x5d, 0x6a, 0x07, // iu-latn
0x7c, 0x5f, 0xbd, 0x78, // tzm-latn
0x7c, 0x67, 0x4b, 0xd7, // ff-latn
0x7c, 0x68, 0x61, 0x37, // ha-latn
0x7c, 0x86, 0x98, 0xc8, // quc-latn
0x7c, 0x92, 0x76, 0x07, // ku-arab
// Sort 0x1
0x00, 0x7f, 0xc6, 0x7b, // x-iv_mathan
0x04, 0x07, 0x1a, 0xcc, // de-de_phoneb
0x04, 0x0e, 0x65, 0x1c, // hu-hu_technl
0x04, 0x37, 0x6d, 0x6c, // ka-ge_modern
// Sort 0x2
0x08, 0x04, 0xcb, 0xcc, // zh-cn_stroke
0x10, 0x04, 0xd1, 0x3c, // zh-sg_stroke
0x14, 0x04, 0xcf, 0xbc, // zh-mo_stroke
// Sort 0x3
0x04, 0x04, 0xd1, 0xfc, // zh-tw_pronun
// Sort 0x4
0x04, 0x04, 0xd2, 0xbc, // zh-tw_radstr
0x04, 0x11, 0x6a, 0xac, // ja-jp_radstr
0x0c, 0x04, 0xce, 0x3c, // zh-hk_radstr
0x14, 0x04, 0xce, 0xfc, // zh-mo_radstr
// Sort 0x5
0x08, 0x04, 0xcb, 0x0c, // zh-cn_phoneb
0x10, 0x04, 0xd0, 0x7c, // zh-sg_phoneb
};
private const int LcidSortPrefix1Index = 1736;
private const int LcidSortPrefix2Index = 1752;
private const int LcidSortPrefix3Index = 1764;
private const int LcidSortPrefix4Index = 1768;
private const int LcidSortPrefix5Index = 1784;
private const int NumericLocaleDataBytesPerRow = 18;
// ThreeLetterWindowsLanguageName is string containing 3-letter Windows language names
// every 3-characters entry is matching locale name entry in CultureNames
private static ReadOnlySpan<byte> ThreeLetterWindowsLanguageName => new byte[CulturesCount * 3]
{
(byte)'Z', (byte)'Z', (byte)'Z', // aa
(byte)'Z', (byte)'Z', (byte)'Z', // aa-dj
(byte)'Z', (byte)'Z', (byte)'Z', // aa-er
(byte)'Z', (byte)'Z', (byte)'Z', // aa-et
(byte)'A', (byte)'F', (byte)'K', // af
(byte)'Z', (byte)'Z', (byte)'Z', // af-na
(byte)'A', (byte)'F', (byte)'K', // af-za
(byte)'Z', (byte)'Z', (byte)'Z', // agq
(byte)'Z', (byte)'Z', (byte)'Z', // agq-cm
(byte)'Z', (byte)'Z', (byte)'Z', // ak
(byte)'Z', (byte)'Z', (byte)'Z', // ak-gh
(byte)'A', (byte)'M', (byte)'H', // am
(byte)'A', (byte)'M', (byte)'H', // am-et
(byte)'A', (byte)'R', (byte)'A', // ar
(byte)'Z', (byte)'Z', (byte)'Z', // ar-001
(byte)'A', (byte)'R', (byte)'U', // ar-ae
(byte)'A', (byte)'R', (byte)'H', // ar-bh
(byte)'Z', (byte)'Z', (byte)'Z', // ar-dj
(byte)'A', (byte)'R', (byte)'G', // ar-dz
(byte)'A', (byte)'R', (byte)'E', // ar-eg
(byte)'Z', (byte)'Z', (byte)'Z', // ar-er
(byte)'Z', (byte)'Z', (byte)'Z', // ar-il
(byte)'A', (byte)'R', (byte)'I', // ar-iq
(byte)'A', (byte)'R', (byte)'J', // ar-jo
(byte)'Z', (byte)'Z', (byte)'Z', // ar-km
(byte)'A', (byte)'R', (byte)'K', // ar-kw
(byte)'A', (byte)'R', (byte)'B', // ar-lb
(byte)'A', (byte)'R', (byte)'L', // ar-ly
(byte)'A', (byte)'R', (byte)'M', // ar-ma
(byte)'Z', (byte)'Z', (byte)'Z', // ar-mr
(byte)'A', (byte)'R', (byte)'O', // ar-om
(byte)'Z', (byte)'Z', (byte)'Z', // ar-ps
(byte)'A', (byte)'R', (byte)'Q', // ar-qa
(byte)'A', (byte)'R', (byte)'A', // ar-sa
(byte)'Z', (byte)'Z', (byte)'Z', // ar-sd
(byte)'Z', (byte)'Z', (byte)'Z', // ar-so
(byte)'Z', (byte)'Z', (byte)'Z', // ar-ss
(byte)'A', (byte)'R', (byte)'S', // ar-sy
(byte)'Z', (byte)'Z', (byte)'Z', // ar-td
(byte)'A', (byte)'R', (byte)'T', // ar-tn
(byte)'A', (byte)'R', (byte)'Y', // ar-ye
(byte)'M', (byte)'P', (byte)'D', // arn
(byte)'M', (byte)'P', (byte)'D', // arn-cl
(byte)'A', (byte)'S', (byte)'M', // as
(byte)'A', (byte)'S', (byte)'M', // as-in
(byte)'Z', (byte)'Z', (byte)'Z', // asa
(byte)'Z', (byte)'Z', (byte)'Z', // asa-tz
(byte)'Z', (byte)'Z', (byte)'Z', // ast
(byte)'Z', (byte)'Z', (byte)'Z', // ast-es
(byte)'A', (byte)'Z', (byte)'E', // az
(byte)'A', (byte)'Z', (byte)'C', // az-cyrl
(byte)'A', (byte)'Z', (byte)'C', // az-cyrl-az
(byte)'A', (byte)'Z', (byte)'E', // az-latn
(byte)'A', (byte)'Z', (byte)'E', // az-latn-az
(byte)'B', (byte)'A', (byte)'S', // ba
(byte)'B', (byte)'A', (byte)'S', // ba-ru
(byte)'Z', (byte)'Z', (byte)'Z', // bas
(byte)'Z', (byte)'Z', (byte)'Z', // bas-cm
(byte)'B', (byte)'E', (byte)'L', // be
(byte)'B', (byte)'E', (byte)'L', // be-by
(byte)'Z', (byte)'Z', (byte)'Z', // bem
(byte)'Z', (byte)'Z', (byte)'Z', // bem-zm
(byte)'Z', (byte)'Z', (byte)'Z', // bez
(byte)'Z', (byte)'Z', (byte)'Z', // bez-tz
(byte)'B', (byte)'G', (byte)'R', // bg
(byte)'B', (byte)'G', (byte)'R', // bg-bg
(byte)'Z', (byte)'Z', (byte)'Z', // bin
(byte)'Z', (byte)'Z', (byte)'Z', // bin-ng
(byte)'Z', (byte)'Z', (byte)'Z', // bm
(byte)'Z', (byte)'Z', (byte)'Z', // bm-latn
(byte)'Z', (byte)'Z', (byte)'Z', // bm-latn-ml
(byte)'B', (byte)'N', (byte)'B', // bn
(byte)'B', (byte)'N', (byte)'B', // bn-bd
(byte)'B', (byte)'N', (byte)'G', // bn-in
(byte)'B', (byte)'O', (byte)'B', // bo
(byte)'B', (byte)'O', (byte)'B', // bo-cn
(byte)'Z', (byte)'Z', (byte)'Z', // bo-in
(byte)'B', (byte)'R', (byte)'E', // br
(byte)'B', (byte)'R', (byte)'E', // br-fr
(byte)'Z', (byte)'Z', (byte)'Z', // brx
(byte)'Z', (byte)'Z', (byte)'Z', // brx-in
(byte)'B', (byte)'S', (byte)'B', // bs
(byte)'B', (byte)'S', (byte)'C', // bs-cyrl
(byte)'B', (byte)'S', (byte)'C', // bs-cyrl-ba
(byte)'B', (byte)'S', (byte)'B', // bs-latn
(byte)'B', (byte)'S', (byte)'B', // bs-latn-ba
(byte)'Z', (byte)'Z', (byte)'Z', // byn
(byte)'Z', (byte)'Z', (byte)'Z', // byn-er
(byte)'C', (byte)'A', (byte)'T', // ca
(byte)'Z', (byte)'Z', (byte)'Z', // ca-ad
(byte)'C', (byte)'A', (byte)'T', // ca-es
(byte)'V', (byte)'A', (byte)'L', // ca-es-valencia
(byte)'Z', (byte)'Z', (byte)'Z', // ca-fr
(byte)'Z', (byte)'Z', (byte)'Z', // ca-it
(byte)'Z', (byte)'Z', (byte)'Z', // ce
(byte)'Z', (byte)'Z', (byte)'Z', // ce-ru
(byte)'Z', (byte)'Z', (byte)'Z', // cgg
(byte)'Z', (byte)'Z', (byte)'Z', // cgg-ug
(byte)'C', (byte)'R', (byte)'E', // chr
(byte)'C', (byte)'R', (byte)'E', // chr-cher
(byte)'C', (byte)'R', (byte)'E', // chr-cher-us
(byte)'C', (byte)'O', (byte)'S', // co
(byte)'C', (byte)'O', (byte)'S', // co-fr
(byte)'C', (byte)'S', (byte)'Y', // cs
(byte)'C', (byte)'S', (byte)'Y', // cs-cz
(byte)'Z', (byte)'Z', (byte)'Z', // cu
(byte)'Z', (byte)'Z', (byte)'Z', // cu-ru
(byte)'C', (byte)'Y', (byte)'M', // cy
(byte)'C', (byte)'Y', (byte)'M', // cy-gb
(byte)'D', (byte)'A', (byte)'N', // da
(byte)'D', (byte)'A', (byte)'N', // da-dk
(byte)'Z', (byte)'Z', (byte)'Z', // da-gl
(byte)'Z', (byte)'Z', (byte)'Z', // dav
(byte)'Z', (byte)'Z', (byte)'Z', // dav-ke
(byte)'D', (byte)'E', (byte)'U', // de
(byte)'D', (byte)'E', (byte)'A', // de-at
(byte)'Z', (byte)'Z', (byte)'Z', // de-be
(byte)'D', (byte)'E', (byte)'S', // de-ch
(byte)'D', (byte)'E', (byte)'U', // de-de
(byte)'D', (byte)'E', (byte)'U', // de-de_phoneb
(byte)'Z', (byte)'Z', (byte)'Z', // de-it
(byte)'D', (byte)'E', (byte)'C', // de-li
(byte)'D', (byte)'E', (byte)'L', // de-lu
(byte)'Z', (byte)'Z', (byte)'Z', // dje
(byte)'Z', (byte)'Z', (byte)'Z', // dje-ne
(byte)'D', (byte)'S', (byte)'B', // dsb
(byte)'D', (byte)'S', (byte)'B', // dsb-de
(byte)'Z', (byte)'Z', (byte)'Z', // dua
(byte)'Z', (byte)'Z', (byte)'Z', // dua-cm
(byte)'D', (byte)'I', (byte)'V', // dv
(byte)'D', (byte)'I', (byte)'V', // dv-mv
(byte)'Z', (byte)'Z', (byte)'Z', // dyo
(byte)'Z', (byte)'Z', (byte)'Z', // dyo-sn
(byte)'Z', (byte)'Z', (byte)'Z', // dz
(byte)'Z', (byte)'Z', (byte)'Z', // dz-bt
(byte)'Z', (byte)'Z', (byte)'Z', // ebu
(byte)'Z', (byte)'Z', (byte)'Z', // ebu-ke
(byte)'Z', (byte)'Z', (byte)'Z', // ee
(byte)'Z', (byte)'Z', (byte)'Z', // ee-gh
(byte)'Z', (byte)'Z', (byte)'Z', // ee-tg
(byte)'E', (byte)'L', (byte)'L', // el
(byte)'Z', (byte)'Z', (byte)'Z', // el-cy
(byte)'E', (byte)'L', (byte)'L', // el-gr
(byte)'E', (byte)'N', (byte)'U', // en
(byte)'Z', (byte)'Z', (byte)'Z', // en-001
(byte)'E', (byte)'N', (byte)'B', // en-029
(byte)'Z', (byte)'Z', (byte)'Z', // en-150
(byte)'Z', (byte)'Z', (byte)'Z', // en-ag
(byte)'Z', (byte)'Z', (byte)'Z', // en-ai
(byte)'Z', (byte)'Z', (byte)'Z', // en-as
(byte)'Z', (byte)'Z', (byte)'Z', // en-at
(byte)'E', (byte)'N', (byte)'A', // en-au
(byte)'Z', (byte)'Z', (byte)'Z', // en-bb
(byte)'Z', (byte)'Z', (byte)'Z', // en-be
(byte)'Z', (byte)'Z', (byte)'Z', // en-bi
(byte)'Z', (byte)'Z', (byte)'Z', // en-bm
(byte)'Z', (byte)'Z', (byte)'Z', // en-bs
(byte)'Z', (byte)'Z', (byte)'Z', // en-bw
(byte)'E', (byte)'N', (byte)'L', // en-bz
(byte)'E', (byte)'N', (byte)'C', // en-ca
(byte)'Z', (byte)'Z', (byte)'Z', // en-cc
(byte)'Z', (byte)'Z', (byte)'Z', // en-ch
(byte)'Z', (byte)'Z', (byte)'Z', // en-ck
(byte)'Z', (byte)'Z', (byte)'Z', // en-cm
(byte)'Z', (byte)'Z', (byte)'Z', // en-cx
(byte)'Z', (byte)'Z', (byte)'Z', // en-cy
(byte)'Z', (byte)'Z', (byte)'Z', // en-de
(byte)'Z', (byte)'Z', (byte)'Z', // en-dk
(byte)'Z', (byte)'Z', (byte)'Z', // en-dm
(byte)'Z', (byte)'Z', (byte)'Z', // en-er
(byte)'Z', (byte)'Z', (byte)'Z', // en-fi
(byte)'Z', (byte)'Z', (byte)'Z', // en-fj
(byte)'Z', (byte)'Z', (byte)'Z', // en-fk
(byte)'Z', (byte)'Z', (byte)'Z', // en-fm
(byte)'E', (byte)'N', (byte)'G', // en-gb
(byte)'Z', (byte)'Z', (byte)'Z', // en-gd
(byte)'Z', (byte)'Z', (byte)'Z', // en-gg
(byte)'Z', (byte)'Z', (byte)'Z', // en-gh
(byte)'Z', (byte)'Z', (byte)'Z', // en-gi
(byte)'Z', (byte)'Z', (byte)'Z', // en-gm
(byte)'Z', (byte)'Z', (byte)'Z', // en-gu
(byte)'Z', (byte)'Z', (byte)'Z', // en-gy
(byte)'E', (byte)'N', (byte)'H', // en-hk
(byte)'Z', (byte)'Z', (byte)'Z', // en-id
(byte)'E', (byte)'N', (byte)'I', // en-ie
(byte)'Z', (byte)'Z', (byte)'Z', // en-il
(byte)'Z', (byte)'Z', (byte)'Z', // en-im
(byte)'E', (byte)'N', (byte)'N', // en-in
(byte)'Z', (byte)'Z', (byte)'Z', // en-io
(byte)'Z', (byte)'Z', (byte)'Z', // en-je
(byte)'E', (byte)'N', (byte)'J', // en-jm
(byte)'Z', (byte)'Z', (byte)'Z', // en-ke
(byte)'Z', (byte)'Z', (byte)'Z', // en-ki
(byte)'Z', (byte)'Z', (byte)'Z', // en-kn
(byte)'Z', (byte)'Z', (byte)'Z', // en-ky
(byte)'Z', (byte)'Z', (byte)'Z', // en-lc
(byte)'Z', (byte)'Z', (byte)'Z', // en-lr
(byte)'Z', (byte)'Z', (byte)'Z', // en-ls
(byte)'Z', (byte)'Z', (byte)'Z', // en-mg
(byte)'Z', (byte)'Z', (byte)'Z', // en-mh
(byte)'Z', (byte)'Z', (byte)'Z', // en-mo
(byte)'Z', (byte)'Z', (byte)'Z', // en-mp
(byte)'Z', (byte)'Z', (byte)'Z', // en-ms
(byte)'Z', (byte)'Z', (byte)'Z', // en-mt
(byte)'Z', (byte)'Z', (byte)'Z', // en-mu
(byte)'Z', (byte)'Z', (byte)'Z', // en-mw
(byte)'E', (byte)'N', (byte)'M', // en-my
(byte)'Z', (byte)'Z', (byte)'Z', // en-na
(byte)'Z', (byte)'Z', (byte)'Z', // en-nf
(byte)'Z', (byte)'Z', (byte)'Z', // en-ng
(byte)'Z', (byte)'Z', (byte)'Z', // en-nl
(byte)'Z', (byte)'Z', (byte)'Z', // en-nr
(byte)'Z', (byte)'Z', (byte)'Z', // en-nu
(byte)'E', (byte)'N', (byte)'Z', // en-nz
(byte)'Z', (byte)'Z', (byte)'Z', // en-pg
(byte)'E', (byte)'N', (byte)'P', // en-ph
(byte)'Z', (byte)'Z', (byte)'Z', // en-pk
(byte)'Z', (byte)'Z', (byte)'Z', // en-pn
(byte)'Z', (byte)'Z', (byte)'Z', // en-pr
(byte)'Z', (byte)'Z', (byte)'Z', // en-pw
(byte)'Z', (byte)'Z', (byte)'Z', // en-rw
(byte)'Z', (byte)'Z', (byte)'Z', // en-sb
(byte)'Z', (byte)'Z', (byte)'Z', // en-sc
(byte)'Z', (byte)'Z', (byte)'Z', // en-sd
(byte)'Z', (byte)'Z', (byte)'Z', // en-se
(byte)'E', (byte)'N', (byte)'E', // en-sg
(byte)'Z', (byte)'Z', (byte)'Z', // en-sh
(byte)'Z', (byte)'Z', (byte)'Z', // en-si
(byte)'Z', (byte)'Z', (byte)'Z', // en-sl
(byte)'Z', (byte)'Z', (byte)'Z', // en-ss
(byte)'Z', (byte)'Z', (byte)'Z', // en-sx
(byte)'Z', (byte)'Z', (byte)'Z', // en-sz
(byte)'Z', (byte)'Z', (byte)'Z', // en-tc
(byte)'Z', (byte)'Z', (byte)'Z', // en-tk
(byte)'Z', (byte)'Z', (byte)'Z', // en-to
(byte)'E', (byte)'N', (byte)'T', // en-tt
(byte)'Z', (byte)'Z', (byte)'Z', // en-tv
(byte)'Z', (byte)'Z', (byte)'Z', // en-tz
(byte)'Z', (byte)'Z', (byte)'Z', // en-ug
(byte)'Z', (byte)'Z', (byte)'Z', // en-um
(byte)'E', (byte)'N', (byte)'U', // en-us
(byte)'Z', (byte)'Z', (byte)'Z', // en-vc
(byte)'Z', (byte)'Z', (byte)'Z', // en-vg
(byte)'Z', (byte)'Z', (byte)'Z', // en-vi
(byte)'Z', (byte)'Z', (byte)'Z', // en-vu
(byte)'Z', (byte)'Z', (byte)'Z', // en-ws
(byte)'E', (byte)'N', (byte)'S', // en-za
(byte)'Z', (byte)'Z', (byte)'Z', // en-zm
(byte)'E', (byte)'N', (byte)'W', // en-zw
(byte)'Z', (byte)'Z', (byte)'Z', // eo
(byte)'Z', (byte)'Z', (byte)'Z', // eo-001
(byte)'E', (byte)'S', (byte)'P', // es
(byte)'E', (byte)'S', (byte)'J', // es-419
(byte)'E', (byte)'S', (byte)'S', // es-ar
(byte)'E', (byte)'S', (byte)'B', // es-bo
(byte)'Z', (byte)'Z', (byte)'Z', // es-br
(byte)'E', (byte)'S', (byte)'L', // es-cl
(byte)'E', (byte)'S', (byte)'O', // es-co
(byte)'E', (byte)'S', (byte)'C', // es-cr
(byte)'E', (byte)'S', (byte)'K', // es-cu
(byte)'E', (byte)'S', (byte)'D', // es-do
(byte)'E', (byte)'S', (byte)'F', // es-ec
(byte)'E', (byte)'S', (byte)'N', // es-es
(byte)'E', (byte)'S', (byte)'P', // es-es_tradnl
(byte)'Z', (byte)'Z', (byte)'Z', // es-gq
(byte)'E', (byte)'S', (byte)'G', // es-gt
(byte)'E', (byte)'S', (byte)'H', // es-hn
(byte)'E', (byte)'S', (byte)'M', // es-mx
(byte)'E', (byte)'S', (byte)'I', // es-ni
(byte)'E', (byte)'S', (byte)'A', // es-pa
(byte)'E', (byte)'S', (byte)'R', // es-pe
(byte)'Z', (byte)'Z', (byte)'Z', // es-ph
(byte)'E', (byte)'S', (byte)'U', // es-pr
(byte)'E', (byte)'S', (byte)'Z', // es-py
(byte)'E', (byte)'S', (byte)'E', // es-sv
(byte)'E', (byte)'S', (byte)'T', // es-us
(byte)'E', (byte)'S', (byte)'Y', // es-uy
(byte)'E', (byte)'S', (byte)'V', // es-ve
(byte)'E', (byte)'T', (byte)'I', // et
(byte)'E', (byte)'T', (byte)'I', // et-ee
(byte)'E', (byte)'U', (byte)'Q', // eu
(byte)'E', (byte)'U', (byte)'Q', // eu-es
(byte)'Z', (byte)'Z', (byte)'Z', // ewo
(byte)'Z', (byte)'Z', (byte)'Z', // ewo-cm
(byte)'F', (byte)'A', (byte)'R', // fa
(byte)'F', (byte)'A', (byte)'R', // fa-ir
(byte)'F', (byte)'U', (byte)'L', // ff
(byte)'Z', (byte)'Z', (byte)'Z', // ff-cm
(byte)'Z', (byte)'Z', (byte)'Z', // ff-gn
(byte)'F', (byte)'U', (byte)'L', // ff-latn
(byte)'F', (byte)'U', (byte)'L', // ff-latn-sn
(byte)'Z', (byte)'Z', (byte)'Z', // ff-mr
(byte)'Z', (byte)'Z', (byte)'Z', // ff-ng
(byte)'F', (byte)'I', (byte)'N', // fi
(byte)'F', (byte)'I', (byte)'N', // fi-fi
(byte)'F', (byte)'P', (byte)'O', // fil
(byte)'F', (byte)'P', (byte)'O', // fil-ph
(byte)'F', (byte)'O', (byte)'S', // fo
(byte)'Z', (byte)'Z', (byte)'Z', // fo-dk
(byte)'F', (byte)'O', (byte)'S', // fo-fo
(byte)'F', (byte)'R', (byte)'A', // fr
(byte)'Z', (byte)'Z', (byte)'Z', // fr-029
(byte)'F', (byte)'R', (byte)'B', // fr-be
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bi
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bj
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bl
(byte)'F', (byte)'R', (byte)'C', // fr-ca
(byte)'F', (byte)'R', (byte)'D', // fr-cd
(byte)'Z', (byte)'Z', (byte)'Z', // fr-cf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-cg
(byte)'F', (byte)'R', (byte)'S', // fr-ch
(byte)'F', (byte)'R', (byte)'I', // fr-ci
(byte)'F', (byte)'R', (byte)'E', // fr-cm
(byte)'Z', (byte)'Z', (byte)'Z', // fr-dj
(byte)'Z', (byte)'Z', (byte)'Z', // fr-dz
(byte)'F', (byte)'R', (byte)'A', // fr-fr
(byte)'Z', (byte)'Z', (byte)'Z', // fr-ga
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gn
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gp
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gq
(byte)'F', (byte)'R', (byte)'H', // fr-ht
(byte)'Z', (byte)'Z', (byte)'Z', // fr-km
(byte)'F', (byte)'R', (byte)'L', // fr-lu
(byte)'F', (byte)'R', (byte)'O', // fr-ma
(byte)'F', (byte)'R', (byte)'M', // fr-mc
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mg
(byte)'F', (byte)'R', (byte)'F', // fr-ml
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mq
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mr
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mu
(byte)'Z', (byte)'Z', (byte)'Z', // fr-nc
(byte)'Z', (byte)'Z', (byte)'Z', // fr-ne
(byte)'Z', (byte)'Z', (byte)'Z', // fr-pf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-pm
(byte)'F', (byte)'R', (byte)'R', // fr-re
(byte)'Z', (byte)'Z', (byte)'Z', // fr-rw
(byte)'Z', (byte)'Z', (byte)'Z', // fr-sc
(byte)'F', (byte)'R', (byte)'N', // fr-sn
(byte)'Z', (byte)'Z', (byte)'Z', // fr-sy
(byte)'Z', (byte)'Z', (byte)'Z', // fr-td
(byte)'Z', (byte)'Z', (byte)'Z', // fr-tg
(byte)'Z', (byte)'Z', (byte)'Z', // fr-tn
(byte)'Z', (byte)'Z', (byte)'Z', // fr-vu
(byte)'Z', (byte)'Z', (byte)'Z', // fr-wf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-yt
(byte)'Z', (byte)'Z', (byte)'Z', // fur
(byte)'Z', (byte)'Z', (byte)'Z', // fur-it
(byte)'F', (byte)'Y', (byte)'N', // fy
(byte)'F', (byte)'Y', (byte)'N', // fy-nl
(byte)'I', (byte)'R', (byte)'E', // ga
(byte)'I', (byte)'R', (byte)'E', // ga-ie
(byte)'G', (byte)'L', (byte)'A', // gd
(byte)'G', (byte)'L', (byte)'A', // gd-gb
(byte)'G', (byte)'L', (byte)'C', // gl
(byte)'G', (byte)'L', (byte)'C', // gl-es
(byte)'G', (byte)'R', (byte)'N', // gn
(byte)'G', (byte)'R', (byte)'N', // gn-py
(byte)'Z', (byte)'Z', (byte)'Z', // gsw
(byte)'Z', (byte)'Z', (byte)'Z', // gsw-ch
(byte)'G', (byte)'S', (byte)'W', // gsw-fr
(byte)'Z', (byte)'Z', (byte)'Z', // gsw-li
(byte)'G', (byte)'U', (byte)'J', // gu
(byte)'G', (byte)'U', (byte)'J', // gu-in
(byte)'Z', (byte)'Z', (byte)'Z', // guz
(byte)'Z', (byte)'Z', (byte)'Z', // guz-ke
(byte)'Z', (byte)'Z', (byte)'Z', // gv
(byte)'Z', (byte)'Z', (byte)'Z', // gv-im
(byte)'H', (byte)'A', (byte)'U', // ha
(byte)'H', (byte)'A', (byte)'U', // ha-latn
(byte)'Z', (byte)'Z', (byte)'Z', // ha-latn-gh
(byte)'Z', (byte)'Z', (byte)'Z', // ha-latn-ne
(byte)'H', (byte)'A', (byte)'U', // ha-latn-ng
(byte)'H', (byte)'A', (byte)'W', // haw
(byte)'H', (byte)'A', (byte)'W', // haw-us
(byte)'H', (byte)'E', (byte)'B', // he
(byte)'H', (byte)'E', (byte)'B', // he-il
(byte)'H', (byte)'I', (byte)'N', // hi
(byte)'H', (byte)'I', (byte)'N', // hi-in
(byte)'H', (byte)'R', (byte)'V', // hr
(byte)'H', (byte)'R', (byte)'B', // hr-ba
(byte)'H', (byte)'R', (byte)'V', // hr-hr
(byte)'H', (byte)'S', (byte)'B', // hsb
(byte)'H', (byte)'S', (byte)'B', // hsb-de
(byte)'H', (byte)'U', (byte)'N', // hu
(byte)'H', (byte)'U', (byte)'N', // hu-hu
(byte)'H', (byte)'U', (byte)'N', // hu-hu_technl
(byte)'H', (byte)'Y', (byte)'E', // hy
(byte)'H', (byte)'Y', (byte)'E', // hy-am
(byte)'Z', (byte)'Z', (byte)'Z', // ia
(byte)'Z', (byte)'Z', (byte)'Z', // ia-001
(byte)'Z', (byte)'Z', (byte)'Z', // ia-fr
(byte)'Z', (byte)'Z', (byte)'Z', // ibb
(byte)'Z', (byte)'Z', (byte)'Z', // ibb-ng
(byte)'I', (byte)'N', (byte)'D', // id
(byte)'I', (byte)'N', (byte)'D', // id-id
(byte)'I', (byte)'B', (byte)'O', // ig
(byte)'I', (byte)'B', (byte)'O', // ig-ng
(byte)'I', (byte)'I', (byte)'I', // ii
(byte)'I', (byte)'I', (byte)'I', // ii-cn
(byte)'I', (byte)'S', (byte)'L', // is
(byte)'I', (byte)'S', (byte)'L', // is-is
(byte)'I', (byte)'T', (byte)'A', // it
(byte)'I', (byte)'T', (byte)'S', // it-ch
(byte)'I', (byte)'T', (byte)'A', // it-it
(byte)'Z', (byte)'Z', (byte)'Z', // it-sm
(byte)'I', (byte)'U', (byte)'K', // iu
(byte)'I', (byte)'U', (byte)'S', // iu-cans
(byte)'I', (byte)'U', (byte)'S', // iu-cans-ca
(byte)'I', (byte)'U', (byte)'K', // iu-latn
(byte)'I', (byte)'U', (byte)'K', // iu-latn-ca
(byte)'J', (byte)'P', (byte)'N', // ja
(byte)'J', (byte)'P', (byte)'N', // ja-jp
(byte)'J', (byte)'P', (byte)'N', // ja-jp_radstr
(byte)'Z', (byte)'Z', (byte)'Z', // jgo
(byte)'Z', (byte)'Z', (byte)'Z', // jgo-cm
(byte)'Z', (byte)'Z', (byte)'Z', // jmc
(byte)'Z', (byte)'Z', (byte)'Z', // jmc-tz
(byte)'J', (byte)'A', (byte)'V', // jv
(byte)'Z', (byte)'Z', (byte)'Z', // jv-java
(byte)'Z', (byte)'Z', (byte)'Z', // jv-java-id
(byte)'J', (byte)'A', (byte)'V', // jv-latn
(byte)'J', (byte)'A', (byte)'V', // jv-latn-id
(byte)'K', (byte)'A', (byte)'T', // ka
(byte)'K', (byte)'A', (byte)'T', // ka-ge
(byte)'K', (byte)'A', (byte)'T', // ka-ge_modern
(byte)'Z', (byte)'Z', (byte)'Z', // kab
(byte)'Z', (byte)'Z', (byte)'Z', // kab-dz
(byte)'Z', (byte)'Z', (byte)'Z', // kam
(byte)'Z', (byte)'Z', (byte)'Z', // kam-ke
(byte)'Z', (byte)'Z', (byte)'Z', // kde
(byte)'Z', (byte)'Z', (byte)'Z', // kde-tz
(byte)'Z', (byte)'Z', (byte)'Z', // kea
(byte)'Z', (byte)'Z', (byte)'Z', // kea-cv
(byte)'Z', (byte)'Z', (byte)'Z', // khq
(byte)'Z', (byte)'Z', (byte)'Z', // khq-ml
(byte)'Z', (byte)'Z', (byte)'Z', // ki
(byte)'Z', (byte)'Z', (byte)'Z', // ki-ke
(byte)'K', (byte)'K', (byte)'Z', // kk
(byte)'K', (byte)'K', (byte)'Z', // kk-kz
(byte)'Z', (byte)'Z', (byte)'Z', // kkj
(byte)'Z', (byte)'Z', (byte)'Z', // kkj-cm
(byte)'K', (byte)'A', (byte)'L', // kl
(byte)'K', (byte)'A', (byte)'L', // kl-gl
(byte)'Z', (byte)'Z', (byte)'Z', // kln
(byte)'Z', (byte)'Z', (byte)'Z', // kln-ke
(byte)'K', (byte)'H', (byte)'M', // km
(byte)'K', (byte)'H', (byte)'M', // km-kh
(byte)'K', (byte)'D', (byte)'I', // kn
(byte)'K', (byte)'D', (byte)'I', // kn-in
(byte)'K', (byte)'O', (byte)'R', // ko
(byte)'Z', (byte)'Z', (byte)'Z', // ko-kp
(byte)'K', (byte)'O', (byte)'R', // ko-kr
(byte)'K', (byte)'N', (byte)'K', // kok
(byte)'K', (byte)'N', (byte)'K', // kok-in
(byte)'Z', (byte)'Z', (byte)'Z', // kr
(byte)'Z', (byte)'Z', (byte)'Z', // kr-ng
(byte)'Z', (byte)'Z', (byte)'Z', // ks
(byte)'Z', (byte)'Z', (byte)'Z', // ks-arab
(byte)'Z', (byte)'Z', (byte)'Z', // ks-arab-in
(byte)'Z', (byte)'Z', (byte)'Z', // ks-deva
(byte)'Z', (byte)'Z', (byte)'Z', // ks-deva-in
(byte)'Z', (byte)'Z', (byte)'Z', // ksb
(byte)'Z', (byte)'Z', (byte)'Z', // ksb-tz
(byte)'Z', (byte)'Z', (byte)'Z', // ksf
(byte)'Z', (byte)'Z', (byte)'Z', // ksf-cm
(byte)'Z', (byte)'Z', (byte)'Z', // ksh
(byte)'Z', (byte)'Z', (byte)'Z', // ksh-de
(byte)'K', (byte)'U', (byte)'R', // ku
(byte)'K', (byte)'U', (byte)'R', // ku-arab
(byte)'K', (byte)'U', (byte)'R', // ku-arab-iq
(byte)'Z', (byte)'Z', (byte)'Z', // ku-arab-ir
(byte)'Z', (byte)'Z', (byte)'Z', // kw
(byte)'Z', (byte)'Z', (byte)'Z', // kw-gb
(byte)'K', (byte)'Y', (byte)'R', // ky
(byte)'K', (byte)'Y', (byte)'R', // ky-kg
(byte)'Z', (byte)'Z', (byte)'Z', // la
(byte)'Z', (byte)'Z', (byte)'Z', // la-001
(byte)'Z', (byte)'Z', (byte)'Z', // lag
(byte)'Z', (byte)'Z', (byte)'Z', // lag-tz
(byte)'L', (byte)'B', (byte)'X', // lb
(byte)'L', (byte)'B', (byte)'X', // lb-lu
(byte)'Z', (byte)'Z', (byte)'Z', // lg
(byte)'Z', (byte)'Z', (byte)'Z', // lg-ug
(byte)'Z', (byte)'Z', (byte)'Z', // lkt
(byte)'Z', (byte)'Z', (byte)'Z', // lkt-us
(byte)'Z', (byte)'Z', (byte)'Z', // ln
(byte)'Z', (byte)'Z', (byte)'Z', // ln-ao
(byte)'Z', (byte)'Z', (byte)'Z', // ln-cd
(byte)'Z', (byte)'Z', (byte)'Z', // ln-cf
(byte)'Z', (byte)'Z', (byte)'Z', // ln-cg
(byte)'L', (byte)'A', (byte)'O', // lo
(byte)'L', (byte)'A', (byte)'O', // lo-la
(byte)'Z', (byte)'Z', (byte)'Z', // lrc
(byte)'Z', (byte)'Z', (byte)'Z', // lrc-iq
(byte)'Z', (byte)'Z', (byte)'Z', // lrc-ir
(byte)'L', (byte)'T', (byte)'H', // lt
(byte)'L', (byte)'T', (byte)'H', // lt-lt
(byte)'Z', (byte)'Z', (byte)'Z', // lu
(byte)'Z', (byte)'Z', (byte)'Z', // lu-cd
(byte)'Z', (byte)'Z', (byte)'Z', // luo
(byte)'Z', (byte)'Z', (byte)'Z', // luo-ke
(byte)'Z', (byte)'Z', (byte)'Z', // luy
(byte)'Z', (byte)'Z', (byte)'Z', // luy-ke
(byte)'L', (byte)'V', (byte)'I', // lv
(byte)'L', (byte)'V', (byte)'I', // lv-lv
(byte)'Z', (byte)'Z', (byte)'Z', // mas
(byte)'Z', (byte)'Z', (byte)'Z', // mas-ke
(byte)'Z', (byte)'Z', (byte)'Z', // mas-tz
(byte)'Z', (byte)'Z', (byte)'Z', // mer
(byte)'Z', (byte)'Z', (byte)'Z', // mer-ke
(byte)'Z', (byte)'Z', (byte)'Z', // mfe
(byte)'Z', (byte)'Z', (byte)'Z', // mfe-mu
(byte)'M', (byte)'L', (byte)'G', // mg
(byte)'M', (byte)'L', (byte)'G', // mg-mg
(byte)'Z', (byte)'Z', (byte)'Z', // mgh
(byte)'Z', (byte)'Z', (byte)'Z', // mgh-mz
(byte)'Z', (byte)'Z', (byte)'Z', // mgo
(byte)'Z', (byte)'Z', (byte)'Z', // mgo-cm
(byte)'M', (byte)'R', (byte)'I', // mi
(byte)'M', (byte)'R', (byte)'I', // mi-nz
(byte)'M', (byte)'K', (byte)'I', // mk
(byte)'M', (byte)'K', (byte)'I', // mk-mk
(byte)'M', (byte)'Y', (byte)'M', // ml
(byte)'M', (byte)'Y', (byte)'M', // ml-in
(byte)'M', (byte)'O', (byte)'N', // mn
(byte)'M', (byte)'N', (byte)'N', // mn-cyrl
(byte)'M', (byte)'N', (byte)'N', // mn-mn
(byte)'M', (byte)'N', (byte)'G', // mn-mong
(byte)'M', (byte)'N', (byte)'G', // mn-mong-cn
(byte)'M', (byte)'N', (byte)'M', // mn-mong-mn
(byte)'Z', (byte)'Z', (byte)'Z', // mni
(byte)'Z', (byte)'Z', (byte)'Z', // mni-in
(byte)'M', (byte)'W', (byte)'K', // moh
(byte)'M', (byte)'W', (byte)'K', // moh-ca
(byte)'M', (byte)'A', (byte)'R', // mr
(byte)'M', (byte)'A', (byte)'R', // mr-in
(byte)'M', (byte)'S', (byte)'L', // ms
(byte)'M', (byte)'S', (byte)'B', // ms-bn
(byte)'M', (byte)'S', (byte)'L', // ms-my
(byte)'Z', (byte)'Z', (byte)'Z', // ms-sg
(byte)'M', (byte)'L', (byte)'T', // mt
(byte)'M', (byte)'L', (byte)'T', // mt-mt
(byte)'Z', (byte)'Z', (byte)'Z', // mua
(byte)'Z', (byte)'Z', (byte)'Z', // mua-cm
(byte)'M', (byte)'Y', (byte)'A', // my
(byte)'M', (byte)'Y', (byte)'A', // my-mm
(byte)'Z', (byte)'Z', (byte)'Z', // mzn
(byte)'Z', (byte)'Z', (byte)'Z', // mzn-ir
(byte)'Z', (byte)'Z', (byte)'Z', // naq
(byte)'Z', (byte)'Z', (byte)'Z', // naq-na
(byte)'N', (byte)'O', (byte)'R', // nb
(byte)'N', (byte)'O', (byte)'R', // nb-no
(byte)'Z', (byte)'Z', (byte)'Z', // nb-sj
(byte)'Z', (byte)'Z', (byte)'Z', // nd
(byte)'Z', (byte)'Z', (byte)'Z', // nd-zw
(byte)'Z', (byte)'Z', (byte)'Z', // nds
(byte)'Z', (byte)'Z', (byte)'Z', // nds-de
(byte)'Z', (byte)'Z', (byte)'Z', // nds-nl
(byte)'N', (byte)'E', (byte)'P', // ne
(byte)'N', (byte)'E', (byte)'I', // ne-in
(byte)'N', (byte)'E', (byte)'P', // ne-np
(byte)'N', (byte)'L', (byte)'D', // nl
(byte)'Z', (byte)'Z', (byte)'Z', // nl-aw
(byte)'N', (byte)'L', (byte)'B', // nl-be
(byte)'Z', (byte)'Z', (byte)'Z', // nl-bq
(byte)'Z', (byte)'Z', (byte)'Z', // nl-cw
(byte)'N', (byte)'L', (byte)'D', // nl-nl
(byte)'Z', (byte)'Z', (byte)'Z', // nl-sr
(byte)'Z', (byte)'Z', (byte)'Z', // nl-sx
(byte)'Z', (byte)'Z', (byte)'Z', // nmg
(byte)'Z', (byte)'Z', (byte)'Z', // nmg-cm
(byte)'N', (byte)'O', (byte)'N', // nn
(byte)'N', (byte)'O', (byte)'N', // nn-no
(byte)'Z', (byte)'Z', (byte)'Z', // nnh
(byte)'Z', (byte)'Z', (byte)'Z', // nnh-cm
(byte)'N', (byte)'O', (byte)'R', // no
(byte)'N', (byte)'Q', (byte)'O', // nqo
(byte)'N', (byte)'Q', (byte)'O', // nqo-gn
(byte)'Z', (byte)'Z', (byte)'Z', // nr
(byte)'Z', (byte)'Z', (byte)'Z', // nr-za
(byte)'N', (byte)'S', (byte)'O', // nso
(byte)'N', (byte)'S', (byte)'O', // nso-za
(byte)'Z', (byte)'Z', (byte)'Z', // nus
(byte)'Z', (byte)'Z', (byte)'Z', // nus-ss
(byte)'Z', (byte)'Z', (byte)'Z', // nyn
(byte)'Z', (byte)'Z', (byte)'Z', // nyn-ug
(byte)'O', (byte)'C', (byte)'I', // oc
(byte)'O', (byte)'C', (byte)'I', // oc-fr
(byte)'O', (byte)'R', (byte)'M', // om
(byte)'O', (byte)'R', (byte)'M', // om-et
(byte)'Z', (byte)'Z', (byte)'Z', // om-ke
(byte)'O', (byte)'R', (byte)'I', // or
(byte)'O', (byte)'R', (byte)'I', // or-in
(byte)'Z', (byte)'Z', (byte)'Z', // os
(byte)'Z', (byte)'Z', (byte)'Z', // os-ge
(byte)'Z', (byte)'Z', (byte)'Z', // os-ru
(byte)'P', (byte)'A', (byte)'N', // pa
(byte)'P', (byte)'A', (byte)'P', // pa-arab
(byte)'P', (byte)'A', (byte)'P', // pa-arab-pk
(byte)'P', (byte)'A', (byte)'N', // pa-in
(byte)'Z', (byte)'Z', (byte)'Z', // pap
(byte)'Z', (byte)'Z', (byte)'Z', // pap-029
(byte)'P', (byte)'L', (byte)'K', // pl
(byte)'P', (byte)'L', (byte)'K', // pl-pl
(byte)'Z', (byte)'Z', (byte)'Z', // prg
(byte)'Z', (byte)'Z', (byte)'Z', // prg-001
(byte)'P', (byte)'R', (byte)'S', // prs
(byte)'P', (byte)'R', (byte)'S', // prs-af
(byte)'P', (byte)'A', (byte)'S', // ps
(byte)'P', (byte)'A', (byte)'S', // ps-af
(byte)'P', (byte)'T', (byte)'B', // pt
(byte)'P', (byte)'T', (byte)'A', // pt-ao
(byte)'P', (byte)'T', (byte)'B', // pt-br
(byte)'Z', (byte)'Z', (byte)'Z', // pt-ch
(byte)'Z', (byte)'Z', (byte)'Z', // pt-cv
(byte)'Z', (byte)'Z', (byte)'Z', // pt-gq
(byte)'Z', (byte)'Z', (byte)'Z', // pt-gw
(byte)'Z', (byte)'Z', (byte)'Z', // pt-lu
(byte)'Z', (byte)'Z', (byte)'Z', // pt-mo
(byte)'Z', (byte)'Z', (byte)'Z', // pt-mz
(byte)'P', (byte)'T', (byte)'G', // pt-pt
(byte)'Z', (byte)'Z', (byte)'Z', // pt-st
(byte)'Z', (byte)'Z', (byte)'Z', // pt-tl
(byte)'E', (byte)'N', (byte)'J', // qps-latn-x-sh
(byte)'E', (byte)'N', (byte)'U', // qps-ploc
(byte)'J', (byte)'P', (byte)'N', // qps-ploca
(byte)'A', (byte)'R', (byte)'A', // qps-plocm
(byte)'Q', (byte)'U', (byte)'C', // quc
(byte)'Q', (byte)'U', (byte)'T', // quc-latn
(byte)'Q', (byte)'U', (byte)'T', // quc-latn-gt
(byte)'Q', (byte)'U', (byte)'B', // quz
(byte)'Q', (byte)'U', (byte)'B', // quz-bo
(byte)'Q', (byte)'U', (byte)'E', // quz-ec
(byte)'Q', (byte)'U', (byte)'P', // quz-pe
(byte)'R', (byte)'M', (byte)'C', // rm
(byte)'R', (byte)'M', (byte)'C', // rm-ch
(byte)'Z', (byte)'Z', (byte)'Z', // rn
(byte)'Z', (byte)'Z', (byte)'Z', // rn-bi
(byte)'R', (byte)'O', (byte)'M', // ro
(byte)'R', (byte)'O', (byte)'D', // ro-md
(byte)'R', (byte)'O', (byte)'M', // ro-ro
(byte)'Z', (byte)'Z', (byte)'Z', // rof
(byte)'Z', (byte)'Z', (byte)'Z', // rof-tz
(byte)'R', (byte)'U', (byte)'S', // ru
(byte)'Z', (byte)'Z', (byte)'Z', // ru-by
(byte)'Z', (byte)'Z', (byte)'Z', // ru-kg
(byte)'Z', (byte)'Z', (byte)'Z', // ru-kz
(byte)'R', (byte)'U', (byte)'M', // ru-md
(byte)'R', (byte)'U', (byte)'S', // ru-ru
(byte)'Z', (byte)'Z', (byte)'Z', // ru-ua
(byte)'K', (byte)'I', (byte)'N', // rw
(byte)'K', (byte)'I', (byte)'N', // rw-rw
(byte)'Z', (byte)'Z', (byte)'Z', // rwk
(byte)'Z', (byte)'Z', (byte)'Z', // rwk-tz
(byte)'S', (byte)'A', (byte)'N', // sa
(byte)'S', (byte)'A', (byte)'N', // sa-in
(byte)'S', (byte)'A', (byte)'H', // sah
(byte)'S', (byte)'A', (byte)'H', // sah-ru
(byte)'Z', (byte)'Z', (byte)'Z', // saq
(byte)'Z', (byte)'Z', (byte)'Z', // saq-ke
(byte)'Z', (byte)'Z', (byte)'Z', // sbp
(byte)'Z', (byte)'Z', (byte)'Z', // sbp-tz
(byte)'S', (byte)'I', (byte)'P', // sd
(byte)'S', (byte)'I', (byte)'P', // sd-arab
(byte)'S', (byte)'I', (byte)'P', // sd-arab-pk
(byte)'Z', (byte)'Z', (byte)'Z', // sd-deva
(byte)'Z', (byte)'Z', (byte)'Z', // sd-deva-in
(byte)'S', (byte)'M', (byte)'E', // se
(byte)'S', (byte)'M', (byte)'G', // se-fi
(byte)'S', (byte)'M', (byte)'E', // se-no
(byte)'S', (byte)'M', (byte)'F', // se-se
(byte)'Z', (byte)'Z', (byte)'Z', // seh
(byte)'Z', (byte)'Z', (byte)'Z', // seh-mz
(byte)'Z', (byte)'Z', (byte)'Z', // ses
(byte)'Z', (byte)'Z', (byte)'Z', // ses-ml
(byte)'Z', (byte)'Z', (byte)'Z', // sg
(byte)'Z', (byte)'Z', (byte)'Z', // sg-cf
(byte)'Z', (byte)'Z', (byte)'Z', // shi
(byte)'Z', (byte)'Z', (byte)'Z', // shi-latn
(byte)'Z', (byte)'Z', (byte)'Z', // shi-latn-ma
(byte)'Z', (byte)'Z', (byte)'Z', // shi-tfng
(byte)'Z', (byte)'Z', (byte)'Z', // shi-tfng-ma
(byte)'S', (byte)'I', (byte)'N', // si
(byte)'S', (byte)'I', (byte)'N', // si-lk
(byte)'S', (byte)'K', (byte)'Y', // sk
(byte)'S', (byte)'K', (byte)'Y', // sk-sk
(byte)'S', (byte)'L', (byte)'V', // sl
(byte)'S', (byte)'L', (byte)'V', // sl-si
(byte)'S', (byte)'M', (byte)'B', // sma
(byte)'S', (byte)'M', (byte)'A', // sma-no
(byte)'S', (byte)'M', (byte)'B', // sma-se
(byte)'S', (byte)'M', (byte)'K', // smj
(byte)'S', (byte)'M', (byte)'J', // smj-no
(byte)'S', (byte)'M', (byte)'K', // smj-se
(byte)'S', (byte)'M', (byte)'N', // smn
(byte)'S', (byte)'M', (byte)'N', // smn-fi
(byte)'S', (byte)'M', (byte)'S', // sms
(byte)'S', (byte)'M', (byte)'S', // sms-fi
(byte)'S', (byte)'N', (byte)'A', // sn
(byte)'S', (byte)'N', (byte)'A', // sn-latn
(byte)'S', (byte)'N', (byte)'A', // sn-latn-zw
(byte)'S', (byte)'O', (byte)'M', // so
(byte)'Z', (byte)'Z', (byte)'Z', // so-dj
(byte)'Z', (byte)'Z', (byte)'Z', // so-et
(byte)'Z', (byte)'Z', (byte)'Z', // so-ke
(byte)'S', (byte)'O', (byte)'M', // so-so
(byte)'S', (byte)'Q', (byte)'I', // sq
(byte)'S', (byte)'Q', (byte)'I', // sq-al
(byte)'Z', (byte)'Z', (byte)'Z', // sq-mk
(byte)'Z', (byte)'Z', (byte)'Z', // sq-xk
(byte)'S', (byte)'R', (byte)'B', // sr
(byte)'S', (byte)'R', (byte)'O', // sr-cyrl
(byte)'S', (byte)'R', (byte)'N', // sr-cyrl-ba
(byte)'S', (byte)'R', (byte)'B', // sr-cyrl-cs
(byte)'S', (byte)'R', (byte)'Q', // sr-cyrl-me
(byte)'S', (byte)'R', (byte)'O', // sr-cyrl-rs
(byte)'Z', (byte)'Z', (byte)'Z', // sr-cyrl-xk
(byte)'S', (byte)'R', (byte)'M', // sr-latn
(byte)'S', (byte)'R', (byte)'S', // sr-latn-ba
(byte)'S', (byte)'R', (byte)'L', // sr-latn-cs
(byte)'S', (byte)'R', (byte)'P', // sr-latn-me
(byte)'S', (byte)'R', (byte)'M', // sr-latn-rs
(byte)'Z', (byte)'Z', (byte)'Z', // sr-latn-xk
(byte)'Z', (byte)'Z', (byte)'Z', // ss
(byte)'Z', (byte)'Z', (byte)'Z', // ss-sz
(byte)'Z', (byte)'Z', (byte)'Z', // ss-za
(byte)'Z', (byte)'Z', (byte)'Z', // ssy
(byte)'Z', (byte)'Z', (byte)'Z', // ssy-er
(byte)'S', (byte)'O', (byte)'T', // st
(byte)'Z', (byte)'Z', (byte)'Z', // st-ls
(byte)'S', (byte)'O', (byte)'T', // st-za
(byte)'S', (byte)'V', (byte)'E', // sv
(byte)'Z', (byte)'Z', (byte)'Z', // sv-ax
(byte)'S', (byte)'V', (byte)'F', // sv-fi
(byte)'S', (byte)'V', (byte)'E', // sv-se
(byte)'S', (byte)'W', (byte)'K', // sw
(byte)'Z', (byte)'Z', (byte)'Z', // sw-cd
(byte)'S', (byte)'W', (byte)'K', // sw-ke
(byte)'Z', (byte)'Z', (byte)'Z', // sw-tz
(byte)'Z', (byte)'Z', (byte)'Z', // sw-ug
(byte)'Z', (byte)'Z', (byte)'Z', // swc
(byte)'Z', (byte)'Z', (byte)'Z', // swc-cd
(byte)'S', (byte)'Y', (byte)'R', // syr
(byte)'S', (byte)'Y', (byte)'R', // syr-sy
(byte)'T', (byte)'A', (byte)'I', // ta
(byte)'T', (byte)'A', (byte)'I', // ta-in
(byte)'T', (byte)'A', (byte)'M', // ta-lk
(byte)'Z', (byte)'Z', (byte)'Z', // ta-my
(byte)'Z', (byte)'Z', (byte)'Z', // ta-sg
(byte)'T', (byte)'E', (byte)'L', // te
(byte)'T', (byte)'E', (byte)'L', // te-in
(byte)'Z', (byte)'Z', (byte)'Z', // teo
(byte)'Z', (byte)'Z', (byte)'Z', // teo-ke
(byte)'Z', (byte)'Z', (byte)'Z', // teo-ug
(byte)'T', (byte)'A', (byte)'J', // tg
(byte)'T', (byte)'A', (byte)'J', // tg-cyrl
(byte)'T', (byte)'A', (byte)'J', // tg-cyrl-tj
(byte)'T', (byte)'H', (byte)'A', // th
(byte)'T', (byte)'H', (byte)'A', // th-th
(byte)'T', (byte)'I', (byte)'R', // ti
(byte)'T', (byte)'I', (byte)'R', // ti-er
(byte)'T', (byte)'I', (byte)'E', // ti-et
(byte)'Z', (byte)'Z', (byte)'Z', // tig
(byte)'Z', (byte)'Z', (byte)'Z', // tig-er
(byte)'T', (byte)'U', (byte)'K', // tk
(byte)'T', (byte)'U', (byte)'K', // tk-tm
(byte)'T', (byte)'S', (byte)'N', // tn
(byte)'T', (byte)'S', (byte)'B', // tn-bw
(byte)'T', (byte)'S', (byte)'N', // tn-za
(byte)'Z', (byte)'Z', (byte)'Z', // to
(byte)'Z', (byte)'Z', (byte)'Z', // to-to
(byte)'T', (byte)'R', (byte)'K', // tr
(byte)'Z', (byte)'Z', (byte)'Z', // tr-cy
(byte)'T', (byte)'R', (byte)'K', // tr-tr
(byte)'T', (byte)'S', (byte)'O', // ts
(byte)'T', (byte)'S', (byte)'O', // ts-za
(byte)'T', (byte)'T', (byte)'T', // tt
(byte)'T', (byte)'T', (byte)'T', // tt-ru
(byte)'Z', (byte)'Z', (byte)'Z', // twq
(byte)'Z', (byte)'Z', (byte)'Z', // twq-ne
(byte)'T', (byte)'Z', (byte)'A', // tzm
(byte)'Z', (byte)'Z', (byte)'Z', // tzm-arab
(byte)'Z', (byte)'Z', (byte)'Z', // tzm-arab-ma
(byte)'T', (byte)'Z', (byte)'A', // tzm-latn
(byte)'T', (byte)'Z', (byte)'A', // tzm-latn-dz
(byte)'Z', (byte)'Z', (byte)'Z', // tzm-latn-ma
(byte)'T', (byte)'Z', (byte)'M', // tzm-tfng
(byte)'T', (byte)'Z', (byte)'M', // tzm-tfng-ma
(byte)'U', (byte)'I', (byte)'G', // ug
(byte)'U', (byte)'I', (byte)'G', // ug-cn
(byte)'U', (byte)'K', (byte)'R', // uk
(byte)'U', (byte)'K', (byte)'R', // uk-ua
(byte)'U', (byte)'R', (byte)'D', // ur
(byte)'U', (byte)'R', (byte)'I', // ur-in
(byte)'U', (byte)'R', (byte)'D', // ur-pk
(byte)'U', (byte)'Z', (byte)'B', // uz
(byte)'Z', (byte)'Z', (byte)'Z', // uz-arab
(byte)'Z', (byte)'Z', (byte)'Z', // uz-arab-af
(byte)'U', (byte)'Z', (byte)'C', // uz-cyrl
(byte)'U', (byte)'Z', (byte)'C', // uz-cyrl-uz
(byte)'U', (byte)'Z', (byte)'B', // uz-latn
(byte)'U', (byte)'Z', (byte)'B', // uz-latn-uz
(byte)'Z', (byte)'Z', (byte)'Z', // vai
(byte)'Z', (byte)'Z', (byte)'Z', // vai-latn
(byte)'Z', (byte)'Z', (byte)'Z', // vai-latn-lr
(byte)'Z', (byte)'Z', (byte)'Z', // vai-vaii
(byte)'Z', (byte)'Z', (byte)'Z', // vai-vaii-lr
(byte)'Z', (byte)'Z', (byte)'Z', // ve
(byte)'Z', (byte)'Z', (byte)'Z', // ve-za
(byte)'V', (byte)'I', (byte)'T', // vi
(byte)'V', (byte)'I', (byte)'T', // vi-vn
(byte)'Z', (byte)'Z', (byte)'Z', // vo
(byte)'Z', (byte)'Z', (byte)'Z', // vo-001
(byte)'Z', (byte)'Z', (byte)'Z', // vun
(byte)'Z', (byte)'Z', (byte)'Z', // vun-tz
(byte)'Z', (byte)'Z', (byte)'Z', // wae
(byte)'Z', (byte)'Z', (byte)'Z', // wae-ch
(byte)'Z', (byte)'Z', (byte)'Z', // wal
(byte)'Z', (byte)'Z', (byte)'Z', // wal-et
(byte)'W', (byte)'O', (byte)'L', // wo
(byte)'W', (byte)'O', (byte)'L', // wo-sn
(byte)'I', (byte)'V', (byte)'L', // x-iv_mathan
(byte)'X', (byte)'H', (byte)'O', // xh
(byte)'X', (byte)'H', (byte)'O', // xh-za
(byte)'Z', (byte)'Z', (byte)'Z', // xog
(byte)'Z', (byte)'Z', (byte)'Z', // xog-ug
(byte)'Z', (byte)'Z', (byte)'Z', // yav
(byte)'Z', (byte)'Z', (byte)'Z', // yav-cm
(byte)'Z', (byte)'Z', (byte)'Z', // yi
(byte)'Z', (byte)'Z', (byte)'Z', // yi-001
(byte)'Y', (byte)'O', (byte)'R', // yo
(byte)'Z', (byte)'Z', (byte)'Z', // yo-bj
(byte)'Y', (byte)'O', (byte)'R', // yo-ng
(byte)'Z', (byte)'Z', (byte)'Z', // yue
(byte)'Z', (byte)'Z', (byte)'Z', // yue-hk
(byte)'Z', (byte)'H', (byte)'G', // zgh
(byte)'Z', (byte)'H', (byte)'G', // zgh-tfng
(byte)'Z', (byte)'H', (byte)'G', // zgh-tfng-ma
(byte)'C', (byte)'H', (byte)'S', // zh
(byte)'C', (byte)'H', (byte)'S', // zh-chs
(byte)'C', (byte)'H', (byte)'T', // zh-cht
(byte)'C', (byte)'H', (byte)'S', // zh-cn
(byte)'C', (byte)'H', (byte)'S', // zh-cn_phoneb
(byte)'C', (byte)'H', (byte)'S', // zh-cn_stroke
(byte)'C', (byte)'H', (byte)'S', // zh-hans
(byte)'Z', (byte)'Z', (byte)'Z', // zh-hans-hk
(byte)'Z', (byte)'Z', (byte)'Z', // zh-hans-mo
(byte)'Z', (byte)'H', (byte)'H', // zh-hant
(byte)'Z', (byte)'H', (byte)'H', // zh-hk
(byte)'Z', (byte)'H', (byte)'H', // zh-hk_radstr
(byte)'Z', (byte)'H', (byte)'M', // zh-mo
(byte)'Z', (byte)'H', (byte)'M', // zh-mo_radstr
(byte)'Z', (byte)'H', (byte)'M', // zh-mo_stroke
(byte)'Z', (byte)'H', (byte)'I', // zh-sg
(byte)'Z', (byte)'H', (byte)'I', // zh-sg_phoneb
(byte)'Z', (byte)'H', (byte)'I', // zh-sg_stroke
(byte)'C', (byte)'H', (byte)'T', // zh-tw
(byte)'C', (byte)'H', (byte)'T', // zh-tw_pronun
(byte)'C', (byte)'H', (byte)'T', // zh-tw_radstr
(byte)'Z', (byte)'U', (byte)'L', // zu
(byte)'Z', (byte)'U', (byte)'L', // zu-za
};
internal const int CommaSep = 0 << 16;
internal const int SemicolonSep = 1 << 16;
internal const int ArabicCommaSep = 2 << 16;
internal const int ArabicSemicolonSep = 3 << 16;
internal const int DoubleCommaSep = 4 << 16;
private static ReadOnlySpan<byte> NameIndexToNumericData => new byte[CulturesCount * NumericLocaleDataBytesPerRow]
{
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0x30, 0xf0, // 0 - aa
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3e, 0x11, 0x00, 0x10, 0xf0, // 1 - aa-dj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x00, 0x20, 0xf0, // 2 - aa-er
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0x30, 0xf0, // 3 - aa-et
0x00, 0x00, 0x36, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x00, 0x60, 0x06, // 4 - af
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x11, 0x00, 0x50, 0xf0, // 5 - af-na
0x00, 0x04, 0x36, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x00, 0x60, 0x06, // 6 - af-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x00, 0x80, 0xf0, // 7 - agq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x00, 0x80, 0xf0, // 8 - agq-cm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x00, 0xa0, 0xf0, // 9 - ak
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x00, 0xa0, 0xf0, // 10 - ak-gh
0x00, 0x00, 0x5e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0xc0, 0x8f, // 11 - am
0x00, 0x04, 0x5e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0xc0, 0x8f, // 12 - am-et
0x00, 0x00, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xcd, 0x10, 0x02, 0x10, 0x8f, // 13 - ar
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x98, 0x9e, 0x10, 0x00, 0xe0, 0xf0, // 14 - ar-001
0x00, 0x38, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xe0, 0x10, 0x00, 0xf0, 0x8f, // 15 - ar-ae
0x00, 0x3c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x11, 0x10, 0x01, 0x00, 0x8f, // 16 - ar-bh
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x01, 0x10, 0xf0, // 17 - ar-dj
0x00, 0x14, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x04, 0x11, 0x01, 0x21, 0x2c, // 18 - ar-dz
0x00, 0x0c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x43, 0x10, 0x01, 0x30, 0x8f, // 19 - ar-eg
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x47, 0x10, 0x01, 0x40, 0xf0, // 20 - ar-er
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x75, 0x10, 0x01, 0x50, 0xf0, // 21 - ar-il
0x00, 0x08, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x10, 0x01, 0x60, 0x8f, // 22 - ar-iq
0x00, 0x2c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x7e, 0x10, 0x01, 0x70, 0x8f, // 23 - ar-jo
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x32, 0x10, 0x01, 0x80, 0xf0, // 24 - ar-km
0x00, 0x34, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x88, 0x10, 0x01, 0x90, 0x8f, // 25 - ar-kw
0x00, 0x30, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x8b, 0x10, 0x01, 0xa0, 0x8f, // 26 - ar-lb
0x00, 0x10, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x94, 0x11, 0x01, 0xb0, 0x8f, // 27 - ar-ly
0x00, 0x18, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x01, 0xc1, 0x2c, // 28 - ar-ma
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xa2, 0x10, 0x01, 0xd0, 0xf0, // 29 - ar-mr
0x00, 0x20, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xa4, 0x10, 0x01, 0xe0, 0x8f, // 30 - ar-om
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xb8, 0x10, 0x01, 0xf0, 0xf0, // 31 - ar-ps
0x00, 0x40, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xc5, 0x10, 0x02, 0x00, 0x8f, // 32 - ar-qa
0x00, 0x04, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xcd, 0x10, 0x02, 0x10, 0x8f, // 33 - ar-sa
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xdb, 0x10, 0x02, 0x20, 0xf0, // 34 - ar-sd
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xd8, 0x10, 0x02, 0x30, 0xf0, // 35 - ar-so
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x01, 0x14, 0x10, 0x02, 0x40, 0xf0, // 36 - ar-ss
0x00, 0x28, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xde, 0x10, 0x02, 0x50, 0x8f, // 37 - ar-sy
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x29, 0x10, 0x02, 0x60, 0xf0, // 38 - ar-td
0x00, 0x1c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xea, 0x11, 0x02, 0x71, 0x2c, // 39 - ar-tn
0x00, 0x24, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x01, 0x05, 0x10, 0x02, 0x80, 0x8f, // 40 - ar-ye
0x00, 0x00, 0x7a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x2e, 0x01, 0x02, 0xa0, 0x2a, // 41 - arn
0x00, 0x04, 0x7a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x2e, 0x01, 0x02, 0xa0, 0x2a, // 42 - arn-cl
0x00, 0x00, 0x4d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x02, 0xc0, 0x8f, // 43 - as
0x00, 0x04, 0x4d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x02, 0xc0, 0x8f, // 44 - as-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x02, 0xe0, 0xf0, // 45 - asa
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x02, 0xe0, 0xf0, // 46 - asa-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x03, 0x00, 0xf0, // 47 - ast
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x03, 0x00, 0xf0, // 48 - ast-es
0x00, 0x00, 0x2c, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x50, 0x35, // 49 - az
0x00, 0x74, 0x2c, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x30, 0x33, // 50 - az-cyrl
0x00, 0x08, 0x2c, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x30, 0x33, // 51 - az-cyrl-az
0x00, 0x78, 0x2c, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x50, 0x35, // 52 - az-latn
0x00, 0x04, 0x2c, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x50, 0x35, // 53 - az-latn-az
0x00, 0x00, 0x6d, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x03, 0x70, 0x37, // 54 - ba
0x00, 0x04, 0x6d, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x03, 0x70, 0x37, // 55 - ba-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x03, 0x90, 0xf0, // 56 - bas
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x03, 0x90, 0xf0, // 57 - bas-cm
0x00, 0x00, 0x23, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1d, 0x11, 0x03, 0xb0, 0x3b, // 58 - be
0x00, 0x04, 0x23, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1d, 0x11, 0x03, 0xb0, 0x3b, // 59 - be-by
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x07, 0x11, 0x03, 0xd0, 0xf0, // 60 - bem
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x07, 0x11, 0x03, 0xd0, 0xf0, // 61 - bem-zm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x03, 0xf0, 0xf0, // 62 - bez
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x03, 0xf0, 0xf0, // 63 - bez-tz
0x00, 0x00, 0x02, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x00, 0x23, 0x11, 0x04, 0x10, 0x41, // 64 - bg
0x00, 0x04, 0x02, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x00, 0x23, 0x11, 0x04, 0x10, 0x41, // 65 - bg-bg
0x00, 0x00, 0x66, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x04, 0x30, 0xf0, // 66 - bin
0x00, 0x04, 0x66, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x04, 0x30, 0xf0, // 67 - bin-ng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x04, 0x60, 0xf0, // 68 - bm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x04, 0x60, 0xf0, // 69 - bm-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x04, 0x60, 0xf0, // 70 - bm-latn-ml
0x00, 0x00, 0x45, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x17, 0x01, 0x04, 0x80, 0x8f, // 71 - bn
0x00, 0x08, 0x45, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x17, 0x01, 0x04, 0x80, 0x8f, // 72 - bn-bd
0x00, 0x04, 0x45, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x04, 0x90, 0x8f, // 73 - bn-in
0x00, 0x00, 0x51, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x04, 0xb0, 0x8f, // 74 - bo
0x00, 0x04, 0x51, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x04, 0xb0, 0x8f, // 75 - bo-cn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x04, 0xc0, 0xf0, // 76 - bo-in
0x00, 0x00, 0x7e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x04, 0xe0, 0x4e, // 77 - br
0x00, 0x04, 0x7e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x04, 0xe0, 0x4e, // 78 - br-fr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x05, 0x00, 0xf0, // 79 - brx
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x05, 0x00, 0xf0, // 80 - brx-in
0x00, 0x78, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x50, 0x55, // 81 - bs
0x00, 0x64, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x30, 0x53, // 82 - bs-cyrl
0x00, 0x20, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x30, 0x53, // 83 - bs-cyrl-ba
0x00, 0x68, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x50, 0x55, // 84 - bs-latn
0x00, 0x14, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x50, 0x55, // 85 - bs-latn-ba
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x05, 0x70, 0xf0, // 86 - byn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x05, 0x70, 0xf0, // 87 - byn-er
0x00, 0x00, 0x03, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x05, 0xa0, 0x5a, // 88 - ca
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x08, 0x11, 0x05, 0x90, 0xf0, // 89 - ca-ad
0x00, 0x04, 0x03, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x05, 0xa0, 0x5a, // 90 - ca-es
0x00, 0x08, 0x03, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x05, 0xb0, 0x5a, // 91 - ca-es-valencia
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x54, 0x11, 0x05, 0xc0, 0xf0, // 92 - ca-fr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x05, 0xd0, 0xf0, // 93 - ca-it
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x05, 0xf0, 0xf0, // 94 - ce
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x05, 0xf0, 0xf0, // 95 - ce-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x06, 0x10, 0xf0, // 96 - cgg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x06, 0x10, 0xf0, // 97 - cgg-ug
0x00, 0x00, 0x5c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x06, 0x40, 0xf0, // 98 - chr
0x00, 0x7c, 0x5c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x06, 0x40, 0xf0, // 99 - chr-cher
0x00, 0x04, 0x5c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x06, 0x40, 0xf0, // 100 - chr-cher-us
0x00, 0x00, 0x83, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x06, 0x60, 0x66, // 101 - co
0x00, 0x04, 0x83, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x06, 0x60, 0x66, // 102 - co-fr
0x00, 0x00, 0x05, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4b, 0x11, 0x06, 0x80, 0x68, // 103 - cs
0x00, 0x04, 0x05, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4b, 0x11, 0x06, 0x80, 0x68, // 104 - cs-cz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x06, 0xa0, 0xf0, // 105 - cu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x06, 0xa0, 0xf0, // 106 - cu-ru
0x00, 0x00, 0x52, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x06, 0xc0, 0x6c, // 107 - cy
0x00, 0x04, 0x52, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x06, 0xc0, 0x6c, // 108 - cy-gb
0x00, 0x00, 0x06, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x3d, 0x11, 0x06, 0xe0, 0x6e, // 109 - da
0x00, 0x04, 0x06, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x3d, 0x11, 0x06, 0xe0, 0x6e, // 110 - da-dk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5d, 0x11, 0x06, 0xf0, 0xf0, // 111 - da-gl
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x07, 0x10, 0xf0, // 112 - dav
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x07, 0x10, 0xf0, // 113 - dav-ke
0x00, 0x00, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0x60, 0x76, // 114 - de
0x00, 0x0c, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x0e, 0x11, 0x07, 0x30, 0x73, // 115 - de-at
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x15, 0x11, 0x07, 0x40, 0xf0, // 116 - de-be
0x00, 0x08, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x07, 0x50, 0x75, // 117 - de-ch
0x00, 0x04, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0x60, 0x76, // 118 - de-de
0x01, 0x04, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0x60, 0x76, // 119 - de-de_phoneb
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x07, 0x80, 0xf0, // 120 - de-it
0x00, 0x14, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x91, 0x11, 0x07, 0x90, 0x79, // 121 - de-li
0x00, 0x10, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x93, 0x11, 0x07, 0xa0, 0x7a, // 122 - de-lu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x07, 0xc0, 0xf0, // 123 - dje
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x07, 0xc0, 0xf0, // 124 - dje-ne
0x00, 0x7c, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0xe0, 0x7e, // 125 - dsb
0x00, 0x08, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0xe0, 0x7e, // 126 - dsb-de
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x08, 0x00, 0xf0, // 127 - dua
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x08, 0x00, 0xf0, // 128 - dua-cm
0x00, 0x00, 0x65, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa5, 0x21, 0x08, 0x20, 0x8f, // 129 - dv
0x00, 0x04, 0x65, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa5, 0x21, 0x08, 0x20, 0x8f, // 130 - dv-mv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x08, 0x40, 0xf0, // 131 - dyo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x08, 0x40, 0xf0, // 132 - dyo-sn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x22, 0x12, 0x08, 0x60, 0xf0, // 133 - dz
0x00, 0x0c, 0x51, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x22, 0x12, 0x08, 0x60, 0xf0, // 134 - dz-bt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x08, 0x80, 0xf0, // 135 - ebu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x08, 0x80, 0xf0, // 136 - ebu-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x08, 0xa0, 0xf0, // 137 - ee
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x08, 0xa0, 0xf0, // 138 - ee-gh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe8, 0x11, 0x08, 0xb0, 0xf0, // 139 - ee-tg
0x00, 0x00, 0x08, 0x4e, 0x52, 0xe1, 0x27, 0x16, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x62, 0x11, 0x08, 0xe0, 0x8e, // 140 - el
0x00, 0x10, 0x00, 0x4e, 0x52, 0xe1, 0x27, 0x16, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x3b, 0x11, 0x08, 0xd0, 0xf0, // 141 - el-cy
0x00, 0x04, 0x08, 0x4e, 0x52, 0xe1, 0x27, 0x16, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x62, 0x11, 0x08, 0xe0, 0x8e, // 142 - el-gr
0x00, 0x00, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x0f, 0x00, 0xf0, // 143 - en
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x01, 0x09, 0x00, 0xf0, // 144 - en-001
0x00, 0x24, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x99, 0x32, 0x48, 0x01, 0x09, 0x10, 0x91, // 145 - en-029
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x29, 0x2d, 0x01, 0x09, 0x20, 0xf0, // 146 - en-150
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x02, 0x01, 0x09, 0x30, 0xf0, // 147 - en-ag
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x2c, 0x01, 0x09, 0x40, 0xf0, // 148 - en-ai
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x09, 0x50, 0xf0, // 149 - en-as
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x0e, 0x01, 0x09, 0x60, 0xf0, // 150 - en-at
0x00, 0x0c, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x09, 0x70, 0x97, // 151 - en-au
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x12, 0x01, 0x09, 0x80, 0xf0, // 152 - en-bb
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x15, 0x01, 0x09, 0x90, 0xf0, // 153 - en-be
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x26, 0x01, 0x09, 0xa0, 0xf0, // 154 - en-bi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x14, 0x01, 0x09, 0xb0, 0xf0, // 155 - en-bm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x16, 0x01, 0x09, 0xc0, 0xf0, // 156 - en-bs
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x13, 0x01, 0x09, 0xd0, 0xf0, // 157 - en-bw
0x00, 0x28, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x18, 0x01, 0x09, 0xe0, 0x9e, // 158 - en-bz
0x00, 0x10, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x09, 0xf0, 0x9f, // 159 - en-ca
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x37, 0x01, 0x0a, 0x00, 0xf0, // 160 - en-cc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x01, 0x0a, 0x10, 0xf0, // 161 - en-ch
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x38, 0x01, 0x0a, 0x20, 0xf0, // 162 - en-ck
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x01, 0x0a, 0x30, 0xf0, // 163 - en-cm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x35, 0x01, 0x0a, 0x40, 0xf0, // 164 - en-cx
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3b, 0x01, 0x0a, 0x50, 0xf0, // 165 - en-cy
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x01, 0x0a, 0x60, 0xf0, // 166 - en-de
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3d, 0x01, 0x0a, 0x70, 0xf0, // 167 - en-dk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3f, 0x01, 0x0a, 0x80, 0xf0, // 168 - en-dm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x01, 0x0a, 0x90, 0xf0, // 169 - en-er
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4d, 0x01, 0x0a, 0xa0, 0xf0, // 170 - en-fi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4e, 0x01, 0x0a, 0xb0, 0xf0, // 171 - en-fj
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x3b, 0x01, 0x0a, 0xc0, 0xf0, // 172 - en-fk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x50, 0x01, 0x0a, 0xd0, 0xf0, // 173 - en-fm
0x00, 0x08, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x01, 0x0a, 0xe0, 0xae, // 174 - en-gb
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5b, 0x01, 0x0a, 0xf0, 0xf0, // 175 - en-gd
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x44, 0x01, 0x0b, 0x00, 0xf0, // 176 - en-gg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x01, 0x0b, 0x10, 0xf0, // 177 - en-gh
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5a, 0x01, 0x0b, 0x20, 0xf0, // 178 - en-gi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x56, 0x01, 0x0b, 0x30, 0xf0, // 179 - en-gm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x42, 0x01, 0x0b, 0x40, 0xf0, // 180 - en-gu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x65, 0x01, 0x0b, 0x50, 0xf0, // 181 - en-gy
0x00, 0x3c, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x0b, 0x60, 0xf0, // 182 - en-hk
0x00, 0x38, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x0b, 0x70, 0xf0, // 183 - en-id
0x00, 0x18, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x44, 0x01, 0x0b, 0x80, 0xb8, // 184 - en-ie
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x75, 0x01, 0x0b, 0x90, 0xf0, // 185 - en-il
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x3b, 0x16, 0x01, 0x0b, 0xa0, 0xf0, // 186 - en-im
0x00, 0x40, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x71, 0x01, 0x0b, 0xb0, 0xbb, // 187 - en-in
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x72, 0x01, 0x0b, 0xc0, 0xf0, // 188 - en-io
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x48, 0x01, 0x0b, 0xd0, 0xf0, // 189 - en-je
0x00, 0x20, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x7c, 0x01, 0x0b, 0xe0, 0xbe, // 190 - en-jm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x01, 0x0b, 0xf0, 0xf0, // 191 - en-ke
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x85, 0x01, 0x0c, 0x00, 0xf0, // 192 - en-ki
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcf, 0x01, 0x0c, 0x10, 0xf0, // 193 - en-kn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x33, 0x01, 0x0c, 0x20, 0xf0, // 194 - en-ky
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xda, 0x01, 0x0c, 0x30, 0xf0, // 195 - en-lc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x01, 0x0c, 0x40, 0xf0, // 196 - en-lr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x92, 0x01, 0x0c, 0x50, 0xf0, // 197 - en-ls
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x95, 0x01, 0x0c, 0x60, 0xf0, // 198 - en-mg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc7, 0x01, 0x0c, 0x70, 0xf0, // 199 - en-mh
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x0c, 0x80, 0xf0, // 200 - en-mo
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x51, 0x01, 0x0c, 0x90, 0xf0, // 201 - en-mp
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x4c, 0x01, 0x0c, 0xa0, 0xf0, // 202 - en-ms
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa3, 0x01, 0x0c, 0xb0, 0xf0, // 203 - en-mt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa0, 0x01, 0x0c, 0xc0, 0xf0, // 204 - en-mu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9c, 0x01, 0x0c, 0xd0, 0xf0, // 205 - en-mw
0x00, 0x44, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xa7, 0x01, 0x0c, 0xe0, 0xce, // 206 - en-my
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x0c, 0xf0, 0xf0, // 207 - en-na
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x50, 0x01, 0x0d, 0x00, 0xf0, // 208 - en-nf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x01, 0x0d, 0x10, 0xf0, // 209 - en-ng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x01, 0x0d, 0x20, 0xf0, // 210 - en-nl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb4, 0x01, 0x0d, 0x30, 0xf0, // 211 - en-nr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x4f, 0x01, 0x0d, 0x40, 0xf0, // 212 - en-nu
0x00, 0x14, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x0d, 0x50, 0xd5, // 213 - en-nz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc2, 0x01, 0x0d, 0x60, 0xf0, // 214 - en-pg
0x00, 0x34, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc9, 0x01, 0x0d, 0x70, 0xd7, // 215 - en-ph
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xbe, 0x01, 0x0d, 0x80, 0xf0, // 216 - en-pk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x53, 0x01, 0x0d, 0x90, 0xf0, // 217 - en-pn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xca, 0x01, 0x0d, 0xa0, 0xf0, // 218 - en-pr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc3, 0x01, 0x0d, 0xb0, 0xf0, // 219 - en-pw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcc, 0x01, 0x0d, 0xc0, 0xf0, // 220 - en-rw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1e, 0x01, 0x0d, 0xd0, 0xf0, // 221 - en-sb
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x0d, 0xe0, 0xf0, // 222 - en-sc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdb, 0x01, 0x0d, 0xf0, 0xf0, // 223 - en-sd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdd, 0x01, 0x0e, 0x00, 0xf0, // 224 - en-se
0x00, 0x48, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x0e, 0x10, 0xe1, // 225 - en-sg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x57, 0x01, 0x0e, 0x20, 0xf0, // 226 - en-sh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd4, 0x01, 0x0e, 0x30, 0xf0, // 227 - en-si
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd5, 0x01, 0x0e, 0x40, 0xf0, // 228 - en-sl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x14, 0x01, 0x0e, 0x50, 0xf0, // 229 - en-ss
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x78, 0xf7, 0x01, 0x0e, 0x60, 0xf0, // 230 - en-sx
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x04, 0x01, 0x0e, 0x70, 0xf0, // 231 - en-sz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x5d, 0x01, 0x0e, 0x80, 0xf0, // 232 - en-tc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x5b, 0x01, 0x0e, 0x90, 0xf0, // 233 - en-tk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe7, 0x01, 0x0e, 0xa0, 0xf0, // 234 - en-to
0x00, 0x2c, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe1, 0x01, 0x0e, 0xb0, 0xeb, // 235 - en-tt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xec, 0x01, 0x0e, 0xc0, 0xf0, // 236 - en-tv
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x01, 0x0e, 0xd0, 0xf0, // 237 - en-tz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x01, 0x0e, 0xe0, 0xf0, // 238 - en-ug
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x09, 0xa5, 0x5d, 0x40, 0x01, 0x0e, 0xf0, 0xf0, // 239 - en-um
0x00, 0x04, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x0f, 0x00, 0xf0, // 240 - en-us
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x0f, 0x10, 0xf0, // 241 - en-vc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x5f, 0x01, 0x0f, 0x20, 0xf0, // 242 - en-vg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x0f, 0x30, 0xf0, // 243 - en-vi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xae, 0x01, 0x0f, 0x40, 0xf0, // 244 - en-vu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x03, 0x01, 0x0f, 0x50, 0xf0, // 245 - en-ws
0x00, 0x1c, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x01, 0x0f, 0x60, 0xf6, // 246 - en-za
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x07, 0x01, 0x0f, 0x70, 0xf0, // 247 - en-zm
0x00, 0x30, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x01, 0x0f, 0x80, 0xf8, // 248 - en-zw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x0f, 0xa0, 0xf0, // 249 - eo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x0f, 0xa0, 0xf0, // 250 - eo-001
0x00, 0x00, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x10, 0x61, 0x06, // 251 - es
0x00, 0x58, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x09, 0xa5, 0x5d, 0x41, 0x11, 0x0f, 0xc0, 0xf0, // 252 - es-419
0x00, 0x2c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x0b, 0x11, 0x0f, 0xd0, 0xfd, // 253 - es-ar
0x00, 0x40, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x1a, 0x11, 0x0f, 0xe0, 0xfe, // 254 - es-bo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x20, 0x11, 0x0f, 0xf0, 0xf0, // 255 - es-br
0x00, 0x34, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x2e, 0x11, 0x10, 0x01, 0x00, // 256 - es-cl
0x00, 0x24, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x33, 0x11, 0x10, 0x11, 0x01, // 257 - es-co
0x00, 0x14, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x36, 0x11, 0x10, 0x21, 0x02, // 258 - es-cr
0x00, 0x5c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x38, 0x11, 0x10, 0x30, 0xf0, // 259 - es-cu
0x00, 0x1c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x41, 0x11, 0x10, 0x41, 0x04, // 260 - es-do
0x00, 0x30, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x42, 0x11, 0x10, 0x51, 0x05, // 261 - es-ec
0x00, 0x0c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x10, 0x61, 0x06, // 262 - es-es
0x00, 0x04, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x10, 0x71, 0x07, // 263 - es-es_tradnl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x45, 0x11, 0x10, 0x80, 0xf0, // 264 - es-gq
0x00, 0x10, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x11, 0x10, 0x91, 0x09, // 265 - es-gt
0x00, 0x48, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x6a, 0x11, 0x10, 0xa1, 0x0a, // 266 - es-hn
0x00, 0x08, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xa6, 0x01, 0x10, 0xb1, 0x0b, // 267 - es-mx
0x00, 0x4c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb6, 0x11, 0x10, 0xc1, 0x0c, // 268 - es-ni
0x00, 0x18, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xc0, 0x11, 0x10, 0xd1, 0x0d, // 269 - es-pa
0x00, 0x28, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xbb, 0x11, 0x10, 0xe1, 0x0e, // 270 - es-pe
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xc9, 0x11, 0x10, 0xf0, 0xf0, // 271 - es-ph
0x00, 0x50, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xca, 0x11, 0x11, 0x01, 0x10, // 272 - es-pr
0x00, 0x3c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb9, 0x11, 0x11, 0x11, 0x11, // 273 - es-py
0x00, 0x44, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x48, 0x11, 0x11, 0x21, 0x12, // 274 - es-sv
0x00, 0x54, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x11, 0x31, 0x13, // 275 - es-us
0x00, 0x38, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xf6, 0x11, 0x11, 0x41, 0x14, // 276 - es-uy
0x00, 0x20, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xf9, 0x11, 0x11, 0x51, 0x15, // 277 - es-ve
0x00, 0x00, 0x25, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x46, 0x11, 0x11, 0x71, 0x17, // 278 - et
0x00, 0x04, 0x25, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x46, 0x11, 0x11, 0x71, 0x17, // 279 - et-ee
0x00, 0x00, 0x2d, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x11, 0x90, 0xf0, // 280 - eu
0x00, 0x04, 0x2d, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x11, 0x90, 0xf0, // 281 - eu-es
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x11, 0xb0, 0xf0, // 282 - ewo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x11, 0xb0, 0xf0, // 283 - ewo-cm
0x00, 0x00, 0x29, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x74, 0x30, 0x11, 0xd0, 0x8f, // 284 - fa
0x00, 0x04, 0x29, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x74, 0x30, 0x11, 0xd0, 0x8f, // 285 - fa-ir
0x00, 0x00, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x12, 0x21, 0x22, // 286 - ff
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x31, 0x11, 0x11, 0xf0, 0xf0, // 287 - ff-cm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x64, 0x11, 0x12, 0x00, 0xf0, // 288 - ff-gn
0x00, 0x7c, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x12, 0x21, 0x22, // 289 - ff-latn
0x00, 0x08, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x12, 0x21, 0x22, // 290 - ff-latn-sn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xa2, 0x11, 0x12, 0x30, 0xf0, // 291 - ff-mr
0x00, 0x04, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x12, 0x40, 0xf0, // 292 - ff-ng
0x00, 0x00, 0x0b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x12, 0x61, 0x26, // 293 - fi
0x00, 0x04, 0x0b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x12, 0x61, 0x26, // 294 - fi-fi
0x00, 0x00, 0x64, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc9, 0x11, 0x12, 0x81, 0x28, // 295 - fil
0x00, 0x04, 0x64, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc9, 0x11, 0x12, 0x81, 0x28, // 296 - fil-ph
0x00, 0x00, 0x38, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x51, 0x11, 0x12, 0xb1, 0x2b, // 297 - fo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3d, 0x11, 0x12, 0xa0, 0xf0, // 298 - fo-dk
0x00, 0x04, 0x38, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x51, 0x11, 0x12, 0xb1, 0x2b, // 299 - fo-fo
0x00, 0x00, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x13, 0xc1, 0x3c, // 300 - fr
0x00, 0x1c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x99, 0x32, 0x48, 0x11, 0x12, 0xd1, 0x3c, // 301 - fr-029
0x00, 0x08, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x15, 0x11, 0x12, 0xe1, 0x2e, // 302 - fr-be
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xf5, 0x11, 0x12, 0xf0, 0xf0, // 303 - fr-bf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x26, 0x11, 0x13, 0x00, 0xf0, // 304 - fr-bi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x1c, 0x11, 0x13, 0x10, 0xf0, // 305 - fr-bj
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x09, 0xa5, 0x5c, 0x4f, 0x11, 0x13, 0x20, 0xf0, // 306 - fr-bl
0x00, 0x0c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x27, 0x11, 0x13, 0x31, 0x33, // 307 - fr-ca
0x00, 0x24, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x13, 0x40, 0xf0, // 308 - fr-cd
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x37, 0x11, 0x13, 0x50, 0xf0, // 309 - fr-cf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x2b, 0x11, 0x13, 0x60, 0xf0, // 310 - fr-cg
0x00, 0x10, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x13, 0x71, 0x37, // 311 - fr-ch
0x00, 0x30, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x77, 0x11, 0x13, 0x80, 0xf0, // 312 - fr-ci
0x00, 0x2c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x31, 0x11, 0x13, 0x90, 0xf0, // 313 - fr-cm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x3e, 0x11, 0x13, 0xa0, 0xf0, // 314 - fr-dj
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x13, 0xb0, 0xf0, // 315 - fr-dz
0x00, 0x04, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x13, 0xc1, 0x3c, // 316 - fr-fr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x57, 0x11, 0x13, 0xd0, 0xf0, // 317 - fr-ga
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x3d, 0x11, 0x13, 0xe0, 0xf0, // 318 - fr-gf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x64, 0x11, 0x13, 0xf0, 0xf0, // 319 - fr-gn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x41, 0x11, 0x14, 0x00, 0xf0, // 320 - fr-gp
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x45, 0x11, 0x14, 0x10, 0xf0, // 321 - fr-gq
0x00, 0x3c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x67, 0x11, 0x14, 0x20, 0xf0, // 322 - fr-ht
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x32, 0x11, 0x14, 0x30, 0xf0, // 323 - fr-km
0x00, 0x14, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x93, 0x11, 0x14, 0x41, 0x44, // 324 - fr-lu
0x00, 0x38, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x14, 0x50, 0xf0, // 325 - fr-ma
0x00, 0x18, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x9e, 0x11, 0x14, 0x61, 0x46, // 326 - fr-mc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x7b, 0xda, 0x11, 0x14, 0x70, 0xf0, // 327 - fr-mf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x95, 0x11, 0x14, 0x80, 0xf0, // 328 - fr-mg
0x00, 0x34, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x14, 0x90, 0xf0, // 329 - fr-ml
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x4a, 0x11, 0x14, 0xa0, 0xf0, // 330 - fr-mq
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xa2, 0x11, 0x14, 0xb0, 0xf0, // 331 - fr-mr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xa0, 0x11, 0x14, 0xc0, 0xf0, // 332 - fr-mu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x4e, 0x11, 0x14, 0xd0, 0xf0, // 333 - fr-nc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xad, 0x11, 0x14, 0xe0, 0xf0, // 334 - fr-ne
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x3e, 0x11, 0x14, 0xf0, 0xf0, // 335 - fr-pf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xce, 0x11, 0x15, 0x00, 0xf0, // 336 - fr-pm
0x00, 0x20, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xc6, 0x11, 0x15, 0x10, 0xf0, // 337 - fr-re
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xcc, 0x11, 0x15, 0x20, 0xf0, // 338 - fr-rw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd0, 0x11, 0x15, 0x30, 0xf0, // 339 - fr-sc
0x00, 0x28, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x15, 0x40, 0xf0, // 340 - fr-sn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xde, 0x11, 0x15, 0x50, 0xf0, // 341 - fr-sy
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x29, 0x11, 0x15, 0x60, 0xf0, // 342 - fr-td
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xe8, 0x11, 0x15, 0x70, 0xf0, // 343 - fr-tg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xea, 0x11, 0x15, 0x80, 0xf0, // 344 - fr-tn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xae, 0x11, 0x15, 0x90, 0xf0, // 345 - fr-vu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x60, 0x11, 0x15, 0xa0, 0xf0, // 346 - fr-wf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x4b, 0x11, 0x15, 0xb0, 0xf0, // 347 - fr-yt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x15, 0xd0, 0xf0, // 348 - fur
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x15, 0xd0, 0xf0, // 349 - fur-it
0x00, 0x00, 0x62, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x15, 0xf1, 0x5f, // 350 - fy
0x00, 0x04, 0x62, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x15, 0xf1, 0x5f, // 351 - fy-nl
0x00, 0x00, 0x3c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x44, 0x11, 0x16, 0x11, 0x61, // 352 - ga
0x00, 0x08, 0x3c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x44, 0x11, 0x16, 0x11, 0x61, // 353 - ga-ie
0x00, 0x00, 0x91, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x16, 0x31, 0x63, // 354 - gd
0x00, 0x04, 0x91, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x16, 0x31, 0x63, // 355 - gd-gb
0x00, 0x00, 0x56, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x16, 0x51, 0x65, // 356 - gl
0x00, 0x04, 0x56, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x16, 0x51, 0x65, // 357 - gl-es
0x00, 0x00, 0x74, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb9, 0x01, 0x16, 0x71, 0x67, // 358 - gn
0x00, 0x04, 0x74, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb9, 0x01, 0x16, 0x71, 0x67, // 359 - gn-py
0x00, 0x00, 0x84, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x16, 0x90, 0xf0, // 360 - gsw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x16, 0x90, 0xf0, // 361 - gsw-ch
0x00, 0x04, 0x84, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x16, 0xa1, 0x6a, // 362 - gsw-fr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x91, 0x11, 0x16, 0xb0, 0xf0, // 363 - gsw-li
0x00, 0x00, 0x47, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x16, 0xd0, 0x8f, // 364 - gu
0x00, 0x04, 0x47, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x16, 0xd0, 0x8f, // 365 - gu-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x16, 0xf0, 0xf0, // 366 - guz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x16, 0xf0, 0xf0, // 367 - guz-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x3b, 0x16, 0x11, 0x17, 0x10, 0xf0, // 368 - gv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x3b, 0x16, 0x11, 0x17, 0x10, 0xf0, // 369 - gv-im
0x00, 0x00, 0x68, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x17, 0x61, 0x76, // 370 - ha
0x00, 0x7c, 0x68, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x17, 0x61, 0x76, // 371 - ha-latn
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x17, 0x40, 0xf0, // 372 - ha-latn-gh
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x17, 0x50, 0xf0, // 373 - ha-latn-ne
0x00, 0x04, 0x68, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x17, 0x61, 0x76, // 374 - ha-latn-ng
0x00, 0x00, 0x75, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x17, 0x81, 0x78, // 375 - haw
0x00, 0x04, 0x75, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x17, 0x81, 0x78, // 376 - haw-us
0x00, 0x00, 0x0d, 0x4e, 0x73, 0x5e, 0x27, 0x15, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x75, 0x01, 0x17, 0xa0, 0x8f, // 377 - he
0x00, 0x04, 0x0d, 0x4e, 0x73, 0x5e, 0x27, 0x15, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x75, 0x01, 0x17, 0xa0, 0x8f, // 378 - he-il
0x00, 0x00, 0x39, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x17, 0xc0, 0x8f, // 379 - hi
0x00, 0x04, 0x39, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x17, 0xc0, 0x8f, // 380 - hi-in
0x00, 0x00, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6c, 0x11, 0x17, 0xf1, 0x7f, // 381 - hr
0x00, 0x10, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x17, 0xe1, 0x7e, // 382 - hr-ba
0x00, 0x04, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6c, 0x11, 0x17, 0xf1, 0x7f, // 383 - hr-hr
0x00, 0x00, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x18, 0x11, 0x81, // 384 - hsb
0x00, 0x04, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x18, 0x11, 0x81, // 385 - hsb-de
0x00, 0x00, 0x0e, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6d, 0x11, 0x18, 0x31, 0x83, // 386 - hu
0x00, 0x04, 0x0e, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6d, 0x11, 0x18, 0x31, 0x83, // 387 - hu-hu
0x01, 0x04, 0x0e, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6d, 0x11, 0x18, 0x31, 0x83, // 388 - hu-hu_technl
0x00, 0x00, 0x2b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x07, 0x01, 0x18, 0x61, 0x86, // 389 - hy
0x00, 0x04, 0x2b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x07, 0x01, 0x18, 0x61, 0x86, // 390 - hy-am
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x54, 0x11, 0x18, 0x90, 0xf0, // 391 - ia
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x18, 0x80, 0xf0, // 392 - ia-001
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x54, 0x11, 0x18, 0x90, 0xf0, // 393 - ia-fr
0x00, 0x00, 0x69, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xb0, 0xf0, // 394 - ibb
0x00, 0x04, 0x69, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xb0, 0xf0, // 395 - ibb-ng
0x00, 0x00, 0x21, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x18, 0xd1, 0x8d, // 396 - id
0x00, 0x04, 0x21, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x18, 0xd1, 0x8d, // 397 - id-id
0x00, 0x00, 0x70, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xf1, 0x8f, // 398 - ig
0x00, 0x04, 0x70, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xf1, 0x8f, // 399 - ig-ng
0x00, 0x00, 0x78, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x11, 0x19, 0x10, 0x8f, // 400 - ii
0x00, 0x04, 0x78, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x11, 0x19, 0x10, 0x8f, // 401 - ii-cn
0x00, 0x00, 0x0f, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x51, 0x87, 0x00, 0x00, 0x00, 0x6e, 0x11, 0x19, 0x31, 0x93, // 402 - is
0x00, 0x04, 0x0f, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x51, 0x87, 0x00, 0x00, 0x00, 0x6e, 0x11, 0x19, 0x31, 0x93, // 403 - is-is
0x00, 0x00, 0x10, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x38, 0x00, 0x00, 0x00, 0x76, 0x11, 0x19, 0x61, 0x96, // 404 - it
0x00, 0x08, 0x10, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x19, 0x51, 0x95, // 405 - it-ch
0x00, 0x04, 0x10, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x38, 0x00, 0x00, 0x00, 0x76, 0x11, 0x19, 0x61, 0x96, // 406 - it-it
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x38, 0x00, 0x00, 0x00, 0xd6, 0x11, 0x19, 0x70, 0xf0, // 407 - it-sm
0x00, 0x00, 0x5d, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xc1, 0x9c, // 408 - iu
0x00, 0x78, 0x5d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xa0, 0x8f, // 409 - iu-cans
0x00, 0x04, 0x5d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xa0, 0x8f, // 410 - iu-cans-ca
0x00, 0x7c, 0x5d, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xc1, 0x9c, // 411 - iu-latn
0x00, 0x08, 0x5d, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xc1, 0x9c, // 412 - iu-latn-ca
0x00, 0x00, 0x11, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x19, 0xe1, 0x9e, // 413 - ja
0x00, 0x04, 0x11, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x19, 0xe1, 0x9e, // 414 - ja-jp
0x04, 0x04, 0x11, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x19, 0xe1, 0x9e, // 415 - ja-jp_radstr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1a, 0x10, 0xf0, // 416 - jgo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1a, 0x10, 0xf0, // 417 - jgo-cm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1a, 0x30, 0xf0, // 418 - jmc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1a, 0x30, 0xf0, // 419 - jmc-tz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x81, 0xa8, // 420 - jv
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x61, 0xa8, // 421 - jv-java
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x61, 0xa8, // 422 - jv-java-id
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x81, 0xa8, // 423 - jv-latn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x81, 0xa8, // 424 - jv-latn-id
0x00, 0x00, 0x37, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x1a, 0xa1, 0xaa, // 425 - ka
0x00, 0x04, 0x37, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x1a, 0xa1, 0xaa, // 426 - ka-ge
0x01, 0x04, 0x37, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x1a, 0xa1, 0xaa, // 427 - ka-ge_modern
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x04, 0x11, 0x1a, 0xd0, 0xf0, // 428 - kab
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x04, 0x11, 0x1a, 0xd0, 0xf0, // 429 - kab-dz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1a, 0xf0, 0xf0, // 430 - kam
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1a, 0xf0, 0xf0, // 431 - kam-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1b, 0x10, 0xf0, // 432 - kde
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1b, 0x10, 0xf0, // 433 - kde-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x39, 0x11, 0x1b, 0x30, 0xf0, // 434 - kea
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x39, 0x11, 0x1b, 0x30, 0xf0, // 435 - kea-cv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x1b, 0x50, 0xf0, // 436 - khq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x1b, 0x50, 0xf0, // 437 - khq-ml
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0x70, 0xf0, // 438 - ki
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0x70, 0xf0, // 439 - ki-ke
0x00, 0x00, 0x3f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x89, 0x11, 0x1b, 0x91, 0xb9, // 440 - kk
0x00, 0x04, 0x3f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x89, 0x11, 0x1b, 0x91, 0xb9, // 441 - kk-kz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1b, 0xb0, 0xf0, // 442 - kkj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1b, 0xb0, 0xf0, // 443 - kkj-cm
0x00, 0x00, 0x6f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x5d, 0x11, 0x1b, 0xd1, 0xbd, // 444 - kl
0x00, 0x04, 0x6f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x5d, 0x11, 0x1b, 0xd1, 0xbd, // 445 - kl-gl
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0xf0, 0xf0, // 446 - kln
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0xf0, 0xf0, // 447 - kln-ke
0x00, 0x00, 0x53, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x28, 0x02, 0x1c, 0x10, 0x8f, // 448 - km
0x00, 0x04, 0x53, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x28, 0x02, 0x1c, 0x10, 0x8f, // 449 - km-kh
0x00, 0x00, 0x4b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x30, 0x8f, // 450 - kn
0x00, 0x04, 0x4b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x30, 0x8f, // 451 - kn-in
0x00, 0x00, 0x12, 0x3b, 0x53, 0xb5, 0x27, 0x13, 0x51, 0x61, 0x00, 0x00, 0x00, 0x86, 0x01, 0x1c, 0x61, 0xc6, // 452 - ko
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x83, 0x11, 0x1c, 0x50, 0xf0, // 453 - ko-kp
0x00, 0x04, 0x12, 0x3b, 0x53, 0xb5, 0x27, 0x13, 0x51, 0x61, 0x00, 0x00, 0x00, 0x86, 0x01, 0x1c, 0x61, 0xc6, // 454 - ko-kr
0x00, 0x00, 0x57, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x80, 0x8f, // 455 - kok
0x00, 0x04, 0x57, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x80, 0x8f, // 456 - kok-in
0x00, 0x00, 0x71, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x1c, 0xa0, 0xf0, // 457 - kr
0x00, 0x04, 0x71, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x1c, 0xa0, 0xf0, // 458 - kr-ng
0x00, 0x00, 0x60, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x1c, 0xd0, 0xf0, // 459 - ks
0x00, 0x04, 0x60, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x1c, 0xd0, 0xf0, // 460 - ks-arab
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x1c, 0xd0, 0xf0, // 461 - ks-arab-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0xf0, 0xbb, // 462 - ks-deva
0x00, 0x08, 0x60, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0xf0, 0xbb, // 463 - ks-deva-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1d, 0x10, 0xf0, // 464 - ksb
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1d, 0x10, 0xf0, // 465 - ksb-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1d, 0x30, 0xf0, // 466 - ksf
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1d, 0x30, 0xf0, // 467 - ksf-cm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x1d, 0x50, 0xf0, // 468 - ksh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x1d, 0x50, 0xf0, // 469 - ksh-de
0x00, 0x00, 0x92, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x30, 0x1d, 0x80, 0x8f, // 470 - ku
0x00, 0x7c, 0x92, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x30, 0x1d, 0x80, 0x8f, // 471 - ku-arab
0x00, 0x04, 0x92, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x30, 0x1d, 0x80, 0x8f, // 472 - ku-arab-iq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x10, 0x1d, 0x90, 0xf0, // 473 - ku-arab-ir
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x1d, 0xb0, 0xf0, // 474 - kw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x1d, 0xb0, 0xf0, // 475 - kw-gb
0x00, 0x00, 0x40, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x82, 0x11, 0x1d, 0xd1, 0xdd, // 476 - ky
0x00, 0x04, 0x40, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x82, 0x11, 0x1d, 0xd1, 0xdd, // 477 - ky-kg
0x00, 0x00, 0x76, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x98, 0x9e, 0x01, 0x1d, 0xf0, 0x8f, // 478 - la
0x00, 0x04, 0x76, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x98, 0x9e, 0x01, 0x1d, 0xf0, 0x8f, // 479 - la-001
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1e, 0x10, 0xf0, // 480 - lag
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1e, 0x10, 0xf0, // 481 - lag-tz
0x00, 0x00, 0x6e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x93, 0x11, 0x1e, 0x31, 0xe3, // 482 - lb
0x00, 0x04, 0x6e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x93, 0x11, 0x1e, 0x31, 0xe3, // 483 - lb-lu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x1e, 0x50, 0xf0, // 484 - lg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x1e, 0x50, 0xf0, // 485 - lg-ug
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x1e, 0x70, 0xf0, // 486 - lkt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x1e, 0x70, 0xf0, // 487 - lkt-us
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1e, 0xa0, 0xf0, // 488 - ln
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x09, 0x11, 0x1e, 0x90, 0xf0, // 489 - ln-ao
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1e, 0xa0, 0xf0, // 490 - ln-cd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x37, 0x11, 0x1e, 0xb0, 0xf0, // 491 - ln-cf
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2b, 0x11, 0x1e, 0xc0, 0xf0, // 492 - ln-cg
0x00, 0x00, 0x54, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8a, 0x11, 0x1e, 0xe0, 0x8f, // 493 - lo
0x00, 0x04, 0x54, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8a, 0x11, 0x1e, 0xe0, 0x8f, // 494 - lo-la
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x1f, 0x10, 0xf0, // 495 - lrc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x79, 0x12, 0x1f, 0x00, 0xf0, // 496 - lrc-iq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x1f, 0x10, 0xf0, // 497 - lrc-ir
0x00, 0x00, 0x27, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8d, 0x11, 0x1f, 0x31, 0xf3, // 498 - lt
0x00, 0x04, 0x27, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8d, 0x11, 0x1f, 0x31, 0xf3, // 499 - lt-lt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1f, 0x50, 0xf0, // 500 - lu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1f, 0x50, 0xf0, // 501 - lu-cd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x70, 0xf0, // 502 - luo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x70, 0xf0, // 503 - luo-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x90, 0xf0, // 504 - luy
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x90, 0xf0, // 505 - luy-ke
0x00, 0x00, 0x26, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8c, 0x11, 0x1f, 0xb1, 0xfb, // 506 - lv
0x00, 0x04, 0x26, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8c, 0x11, 0x1f, 0xb1, 0xfb, // 507 - lv-lv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0xd0, 0xf0, // 508 - mas
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0xd0, 0xf0, // 509 - mas-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1f, 0xe0, 0xf0, // 510 - mas-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x20, 0x00, 0xf0, // 511 - mer
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x20, 0x00, 0xf0, // 512 - mer-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa0, 0x11, 0x20, 0x20, 0xf0, // 513 - mfe
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa0, 0x11, 0x20, 0x20, 0xf0, // 514 - mfe-mu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x95, 0x11, 0x20, 0x40, 0xf0, // 515 - mg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x95, 0x11, 0x20, 0x40, 0xf0, // 516 - mg-mg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x20, 0x60, 0xf0, // 517 - mgh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x20, 0x60, 0xf0, // 518 - mgh-mz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x20, 0x80, 0xf0, // 519 - mgo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x20, 0x80, 0xf0, // 520 - mgo-cm
0x00, 0x00, 0x81, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x20, 0xa2, 0x0a, // 521 - mi
0x00, 0x04, 0x81, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x20, 0xa2, 0x0a, // 522 - mi-nz
0x00, 0x00, 0x2f, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x4c, 0xa2, 0x11, 0x20, 0xc2, 0x0c, // 523 - mk
0x00, 0x04, 0x2f, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x4c, 0xa2, 0x11, 0x20, 0xc2, 0x0c, // 524 - mk-mk
0x00, 0x00, 0x4c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x20, 0xe0, 0x8f, // 525 - ml
0x00, 0x04, 0x4c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x20, 0xe0, 0x8f, // 526 - ml-in
0x00, 0x00, 0x50, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x9a, 0x11, 0x21, 0x12, 0x11, // 527 - mn
0x00, 0x78, 0x50, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x9a, 0x11, 0x21, 0x12, 0x11, // 528 - mn-cyrl
0x00, 0x04, 0x50, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x9a, 0x11, 0x21, 0x12, 0x11, // 529 - mn-mn
0x00, 0x7c, 0x50, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x21, 0x32, 0x13, // 530 - mn-mong
0x00, 0x08, 0x50, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x21, 0x32, 0x13, // 531 - mn-mong-cn
0x00, 0x0c, 0x50, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9a, 0x01, 0x21, 0x42, 0x14, // 532 - mn-mong-mn
0x00, 0x00, 0x58, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0x60, 0xbb, // 533 - mni
0x00, 0x04, 0x58, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0x60, 0xbb, // 534 - mni-in
0x00, 0x00, 0x7c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x21, 0x80, 0xf0, // 535 - moh
0x00, 0x04, 0x7c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x21, 0x80, 0xf0, // 536 - moh-ca
0x00, 0x00, 0x4e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0xa0, 0x8f, // 537 - mr
0x00, 0x04, 0x4e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0xa0, 0x8f, // 538 - mr-in
0x00, 0x00, 0x3e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa7, 0x11, 0x21, 0xd2, 0x1d, // 539 - ms
0x00, 0x08, 0x3e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x25, 0x11, 0x21, 0xc2, 0x1c, // 540 - ms-bn
0x00, 0x04, 0x3e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa7, 0x11, 0x21, 0xd2, 0x1d, // 541 - ms-my
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x11, 0x21, 0xe0, 0xf0, // 542 - ms-sg
0x00, 0x00, 0x3a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa3, 0x11, 0x22, 0x02, 0x20, // 543 - mt
0x00, 0x04, 0x3a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa3, 0x11, 0x22, 0x02, 0x20, // 544 - mt-mt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x22, 0x20, 0xf0, // 545 - mua
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x22, 0x20, 0xf0, // 546 - mua-cm
0x00, 0x00, 0x55, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1b, 0x12, 0x22, 0x40, 0xf0, // 547 - my
0x00, 0x04, 0x55, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1b, 0x12, 0x22, 0x40, 0xf0, // 548 - my-mm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x22, 0x60, 0xf0, // 549 - mzn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x22, 0x60, 0xf0, // 550 - mzn-ir
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x11, 0x22, 0x80, 0xf0, // 551 - naq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x11, 0x22, 0x80, 0xf0, // 552 - naq-na
0x00, 0x7c, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x22, 0xa2, 0x2a, // 553 - nb
0x00, 0x04, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x22, 0xa2, 0x2a, // 554 - nb-no
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xdc, 0x11, 0x22, 0xb0, 0xf0, // 555 - nb-sj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x22, 0xd0, 0xf0, // 556 - nd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x22, 0xd0, 0xf0, // 557 - nd-zw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x22, 0xf0, 0xf0, // 558 - nds
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x22, 0xf0, 0xf0, // 559 - nds-de
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x23, 0x00, 0xf0, // 560 - nds-nl
0x00, 0x00, 0x61, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb2, 0x01, 0x23, 0x30, 0x8f, // 561 - ne
0x00, 0x08, 0x61, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x23, 0x20, 0xf0, // 562 - ne-in
0x00, 0x04, 0x61, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb2, 0x01, 0x23, 0x30, 0x8f, // 563 - ne-np
0x00, 0x00, 0x13, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x23, 0x92, 0x39, // 564 - nl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x2e, 0x11, 0x23, 0x50, 0xf0, // 565 - nl-aw
0x00, 0x08, 0x13, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x15, 0x11, 0x23, 0x62, 0x36, // 566 - nl-be
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x09, 0xa5, 0x5d, 0x42, 0x11, 0x23, 0x70, 0xf0, // 567 - nl-bq
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x11, 0x11, 0x23, 0x80, 0xf0, // 568 - nl-cw
0x00, 0x04, 0x13, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x23, 0x92, 0x39, // 569 - nl-nl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb5, 0x11, 0x23, 0xa0, 0xf0, // 570 - nl-sr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x78, 0xf7, 0x11, 0x23, 0xb0, 0xf0, // 571 - nl-sx
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x23, 0xd0, 0xf0, // 572 - nmg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x23, 0xd0, 0xf0, // 573 - nmg-cm
0x00, 0x78, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x23, 0xf2, 0x3f, // 574 - nn
0x00, 0x08, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x23, 0xf2, 0x3f, // 575 - nn-no
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x24, 0x10, 0xf0, // 576 - nnh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x24, 0x10, 0xf0, // 577 - nnh-cm
0x00, 0x00, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x22, 0xa2, 0x2a, // 578 - no
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x64, 0x22, 0x24, 0x40, 0x8f, // 579 - nqo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x64, 0x22, 0x24, 0x40, 0x8f, // 580 - nqo-gn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x60, 0xf0, // 581 - nr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x60, 0xf0, // 582 - nr-za
0x00, 0x00, 0x6c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x82, 0x48, // 583 - nso
0x00, 0x04, 0x6c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x82, 0x48, // 584 - nso-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x14, 0x11, 0x24, 0xa0, 0xf0, // 585 - nus
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x14, 0x11, 0x24, 0xa0, 0xf0, // 586 - nus-ss
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x24, 0xc0, 0xf0, // 587 - nyn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x24, 0xc0, 0xf0, // 588 - nyn-ug
0x00, 0x00, 0x82, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x24, 0xe2, 0x4e, // 589 - oc
0x00, 0x04, 0x82, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x24, 0xe2, 0x4e, // 590 - oc-fr
0x00, 0x00, 0x72, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x25, 0x00, 0xf0, // 591 - om
0x00, 0x04, 0x72, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x25, 0x00, 0xf0, // 592 - om-et
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x25, 0x10, 0xf0, // 593 - om-ke
0x00, 0x00, 0x48, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0x30, 0x8f, // 594 - or
0x00, 0x04, 0x48, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0x30, 0x8f, // 595 - or-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x25, 0x50, 0xf0, // 596 - os
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x25, 0x50, 0xf0, // 597 - os-ge
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x25, 0x60, 0xf0, // 598 - os-ru
0x00, 0x00, 0x46, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0xa0, 0x8f, // 599 - pa
0x00, 0x7c, 0x46, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x25, 0x90, 0x8f, // 600 - pa-arab
0x00, 0x08, 0x46, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x25, 0x90, 0x8f, // 601 - pa-arab-pk
0x00, 0x04, 0x46, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0xa0, 0x8f, // 602 - pa-in
0x00, 0x00, 0x79, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x99, 0x32, 0x48, 0x01, 0x25, 0xc0, 0x91, // 603 - pap
0x00, 0x04, 0x79, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x99, 0x32, 0x48, 0x01, 0x25, 0xc0, 0x91, // 604 - pap-029
0x00, 0x00, 0x15, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xbf, 0x11, 0x25, 0xe2, 0x5e, // 605 - pl
0x00, 0x04, 0x15, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xbf, 0x11, 0x25, 0xe2, 0x5e, // 606 - pl-pl
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x26, 0x00, 0xf0, // 607 - prg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x26, 0x00, 0xf0, // 608 - prg-001
0x00, 0x00, 0x8c, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x20, 0x8f, // 609 - prs
0x00, 0x04, 0x8c, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x20, 0x8f, // 610 - prs-af
0x00, 0x00, 0x63, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x40, 0x8f, // 611 - ps
0x00, 0x04, 0x63, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x40, 0x8f, // 612 - ps-af
0x00, 0x00, 0x16, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x20, 0x11, 0x26, 0x72, 0x67, // 613 - pt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x09, 0x11, 0x26, 0x60, 0xf0, // 614 - pt-ao
0x00, 0x04, 0x16, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x20, 0x11, 0x26, 0x72, 0x67, // 615 - pt-br
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x26, 0x80, 0xf0, // 616 - pt-ch
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x39, 0x11, 0x26, 0x90, 0xf0, // 617 - pt-cv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x45, 0x11, 0x26, 0xa0, 0xf0, // 618 - pt-gq
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc4, 0x11, 0x26, 0xb0, 0xf0, // 619 - pt-gw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x93, 0x11, 0x26, 0xc0, 0xf0, // 620 - pt-lu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x11, 0x26, 0xd0, 0xf0, // 621 - pt-mo
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x26, 0xe0, 0xf0, // 622 - pt-mz
0x00, 0x08, 0x16, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc1, 0x11, 0x26, 0xf2, 0x6f, // 623 - pt-pt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe9, 0x11, 0x27, 0x00, 0xf0, // 624 - pt-st
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x6f, 0x60, 0xe7, 0x11, 0x27, 0x10, 0xf0, // 625 - pt-tl
0x00, 0x09, 0x01, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x7c, 0x01, 0x27, 0x20, 0xbe, // 626 - qps-latn-x-sh
0x00, 0x05, 0x01, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xf4, 0x41, 0x27, 0x32, 0x73, // 627 - qps-ploc
0x00, 0x05, 0xfe, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x27, 0x42, 0x74, // 628 - qps-ploca
0x00, 0x09, 0xff, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xcd, 0x10, 0x27, 0x50, 0x8f, // 629 - qps-plocm
0x00, 0x00, 0x86, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x01, 0x27, 0x82, 0x78, // 630 - quc
0x00, 0x7c, 0x86, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x01, 0x27, 0x82, 0x78, // 631 - quc-latn
0x00, 0x04, 0x86, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x01, 0x27, 0x82, 0x78, // 632 - quc-latn-gt
0x00, 0x00, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x1a, 0x01, 0x27, 0xa2, 0x7a, // 633 - quz
0x00, 0x04, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x1a, 0x01, 0x27, 0xa2, 0x7a, // 634 - quz-bo
0x00, 0x08, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x42, 0x01, 0x27, 0xb2, 0x7b, // 635 - quz-ec
0x00, 0x0c, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xbb, 0x01, 0x27, 0xc2, 0x7c, // 636 - quz-pe
0x00, 0x00, 0x17, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x27, 0xe2, 0x7e, // 637 - rm
0x00, 0x04, 0x17, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x27, 0xe2, 0x7e, // 638 - rm-ch
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x26, 0x11, 0x28, 0x00, 0xf0, // 639 - rn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x26, 0x11, 0x28, 0x00, 0xf0, // 640 - rn-bi
0x00, 0x00, 0x18, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xc8, 0x11, 0x28, 0x32, 0x83, // 641 - ro
0x00, 0x08, 0x18, 0x4e, 0x23, 0x54, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x98, 0x11, 0x28, 0x20, 0xf0, // 642 - ro-md
0x00, 0x04, 0x18, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xc8, 0x11, 0x28, 0x32, 0x83, // 643 - ro-ro
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x28, 0x50, 0xf0, // 644 - rof
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x28, 0x50, 0xf0, // 645 - rof-tz
0x00, 0x00, 0x19, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x28, 0xb2, 0x8b, // 646 - ru
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1d, 0x11, 0x28, 0x70, 0xf0, // 647 - ru-by
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x82, 0x11, 0x28, 0x80, 0xf0, // 648 - ru-kg
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x89, 0x11, 0x28, 0x90, 0xf0, // 649 - ru-kz
0x00, 0x08, 0x19, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x98, 0x11, 0x28, 0xa0, 0xf0, // 650 - ru-md
0x00, 0x04, 0x19, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x28, 0xb2, 0x8b, // 651 - ru-ru
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf1, 0x11, 0x28, 0xc0, 0xf0, // 652 - ru-ua
0x00, 0x00, 0x87, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xcc, 0x11, 0x28, 0xe2, 0x8e, // 653 - rw
0x00, 0x04, 0x87, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xcc, 0x11, 0x28, 0xe2, 0x8e, // 654 - rw-rw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x00, 0xf0, // 655 - rwk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x00, 0xf0, // 656 - rwk-tz
0x00, 0x00, 0x4f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0x20, 0x8f, // 657 - sa
0x00, 0x04, 0x4f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0x20, 0x8f, // 658 - sa-in
0x00, 0x00, 0x85, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x29, 0x42, 0x94, // 659 - sah
0x00, 0x04, 0x85, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x29, 0x42, 0x94, // 660 - sah-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x29, 0x60, 0xf0, // 661 - saq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x29, 0x60, 0xf0, // 662 - saq-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x80, 0xf0, // 663 - sbp
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x80, 0xf0, // 664 - sbp-tz
0x00, 0x00, 0x59, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x29, 0xb0, 0x8f, // 665 - sd
0x00, 0x7c, 0x59, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x29, 0xb0, 0x8f, // 666 - sd-arab
0x00, 0x08, 0x59, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x29, 0xb0, 0x8f, // 667 - sd-arab-pk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0xd0, 0xbb, // 668 - sd-deva
0x00, 0x04, 0x59, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0xd0, 0xbb, // 669 - sd-deva-in
0x00, 0x00, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2a, 0x02, 0xa0, // 670 - se
0x00, 0x0c, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x29, 0xf2, 0x9f, // 671 - se-fi
0x00, 0x04, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2a, 0x02, 0xa0, // 672 - se-no
0x00, 0x08, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2a, 0x12, 0xa1, // 673 - se-se
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x2a, 0x30, 0xf0, // 674 - seh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x2a, 0x30, 0xf0, // 675 - seh-mz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x2a, 0x50, 0xf0, // 676 - ses
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x2a, 0x50, 0xf0, // 677 - ses-ml
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x37, 0x11, 0x2a, 0x70, 0xf0, // 678 - sg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x37, 0x11, 0x2a, 0x70, 0xf0, // 679 - sg-cf
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xc0, 0xf0, // 680 - shi
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xa0, 0xf0, // 681 - shi-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xa0, 0xf0, // 682 - shi-latn-ma
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xc0, 0xf0, // 683 - shi-tfng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xc0, 0xf0, // 684 - shi-tfng-ma
0x00, 0x00, 0x5b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2a, 0x11, 0x2a, 0xe0, 0x8f, // 685 - si
0x00, 0x04, 0x5b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2a, 0x11, 0x2a, 0xe0, 0x8f, // 686 - si-lk
0x00, 0x00, 0x1b, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x2b, 0x02, 0xb0, // 687 - sk
0x00, 0x04, 0x1b, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x2b, 0x02, 0xb0, // 688 - sk-sk
0x00, 0x00, 0x24, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xd4, 0x11, 0x2b, 0x22, 0xb2, // 689 - sl
0x00, 0x04, 0x24, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xd4, 0x11, 0x2b, 0x22, 0xb2, // 690 - sl-si
0x00, 0x78, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x52, 0xb5, // 691 - sma
0x00, 0x18, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2b, 0x42, 0xb4, // 692 - sma-no
0x00, 0x1c, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x52, 0xb5, // 693 - sma-se
0x00, 0x7c, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x82, 0xb8, // 694 - smj
0x00, 0x10, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2b, 0x72, 0xb7, // 695 - smj-no
0x00, 0x14, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x82, 0xb8, // 696 - smj-se
0x00, 0x70, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xa2, 0xba, // 697 - smn
0x00, 0x24, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xa2, 0xba, // 698 - smn-fi
0x00, 0x74, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xc2, 0xbc, // 699 - sms
0x00, 0x20, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xc2, 0xbc, // 700 - sms-fi
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x2b, 0xf0, 0xf0, // 701 - sn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x2b, 0xf0, 0xf0, // 702 - sn-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x2b, 0xf0, 0xf0, // 703 - sn-latn-zw
0x00, 0x00, 0x77, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd8, 0x11, 0x2c, 0x40, 0xf0, // 704 - so
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3e, 0x11, 0x2c, 0x10, 0xf0, // 705 - so-dj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x2c, 0x20, 0xf0, // 706 - so-et
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2c, 0x30, 0xf0, // 707 - so-ke
0x00, 0x04, 0x77, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd8, 0x11, 0x2c, 0x40, 0xf0, // 708 - so-so
0x00, 0x00, 0x1c, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x06, 0x11, 0x2c, 0x62, 0xc6, // 709 - sq
0x00, 0x04, 0x1c, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x06, 0x11, 0x2c, 0x62, 0xc6, // 710 - sq-al
0x00, 0x10, 0x00, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x4c, 0xa2, 0x11, 0x2c, 0x70, 0xf0, // 711 - sq-mk
0x00, 0x10, 0x00, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x97, 0x49, 0x41, 0x11, 0x2c, 0x80, 0xf0, // 712 - sq-xk
0x00, 0x7c, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2d, 0x42, 0xd4, // 713 - sr
0x00, 0x6c, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2c, 0xe2, 0xce, // 714 - sr-cyrl
0x00, 0x1c, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x00, 0x19, 0x11, 0x2c, 0xb2, 0xcb, // 715 - sr-cyrl-ba
0x00, 0x0c, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0d, 0x11, 0x2c, 0xc2, 0xcc, // 716 - sr-cyrl-cs
0x00, 0x30, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0e, 0x11, 0x2c, 0xd2, 0xcd, // 717 - sr-cyrl-me
0x00, 0x28, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2c, 0xe2, 0xce, // 718 - sr-cyrl-rs
0x00, 0x10, 0x00, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x97, 0x49, 0x41, 0x11, 0x2c, 0xf0, 0xf0, // 719 - sr-cyrl-xk
0x00, 0x70, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2d, 0x42, 0xd4, // 720 - sr-latn
0x00, 0x18, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x2d, 0x12, 0xd1, // 721 - sr-latn-ba
0x00, 0x08, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0d, 0x11, 0x2d, 0x22, 0xd2, // 722 - sr-latn-cs
0x00, 0x2c, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0e, 0x11, 0x2d, 0x32, 0xd3, // 723 - sr-latn-me
0x00, 0x24, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2d, 0x42, 0xd4, // 724 - sr-latn-rs
0x00, 0x10, 0x00, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x97, 0x49, 0x41, 0x11, 0x2d, 0x50, 0xf0, // 725 - sr-latn-xk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0x80, 0xf0, // 726 - ss
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x04, 0x11, 0x2d, 0x70, 0xf0, // 727 - ss-sz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0x80, 0xf0, // 728 - ss-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2d, 0xa0, 0xf0, // 729 - ssy
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2d, 0xa0, 0xf0, // 730 - ssy-er
0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0xd0, 0xf0, // 731 - st
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x92, 0x11, 0x2d, 0xc0, 0xf0, // 732 - st-ls
0x00, 0x04, 0x30, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0xd0, 0xf0, // 733 - st-za
0x00, 0x00, 0x1d, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2e, 0x12, 0xe1, // 734 - sv
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x99, 0x06, 0xf5, 0x11, 0x2d, 0xf0, 0xf0, // 735 - sv-ax
0x00, 0x08, 0x1d, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2e, 0x02, 0xe0, // 736 - sv-fi
0x00, 0x04, 0x1d, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2e, 0x12, 0xe1, // 737 - sv-se
0x00, 0x00, 0x41, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2e, 0x42, 0xe4, // 738 - sw
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x2e, 0x32, 0xe4, // 739 - sw-cd
0x00, 0x04, 0x41, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2e, 0x42, 0xe4, // 740 - sw-ke
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x2e, 0x50, 0xf0, // 741 - sw-tz
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x2e, 0x60, 0xf0, // 742 - sw-ug
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x01, 0x2e, 0x80, 0xf0, // 743 - swc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x2e, 0x80, 0xf0, // 744 - swc-cd
0x00, 0x00, 0x5a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xde, 0x01, 0x2e, 0xa0, 0x8f, // 745 - syr
0x00, 0x04, 0x5a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xde, 0x01, 0x2e, 0xa0, 0x8f, // 746 - syr-sy
0x00, 0x00, 0x49, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x2e, 0xc0, 0x8f, // 747 - ta
0x00, 0x04, 0x49, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x2e, 0xc0, 0x8f, // 748 - ta-in
0x00, 0x08, 0x49, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2a, 0x11, 0x2e, 0xd0, 0x8f, // 749 - ta-lk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa7, 0x11, 0x2e, 0xe0, 0xf0, // 750 - ta-my
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x11, 0x2e, 0xf0, 0xf0, // 751 - ta-sg
0x00, 0x00, 0x4a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x2f, 0x10, 0x8f, // 752 - te
0x00, 0x04, 0x4a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x2f, 0x10, 0x8f, // 753 - te-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x2f, 0x40, 0xf0, // 754 - teo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2f, 0x30, 0xf0, // 755 - teo-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x2f, 0x40, 0xf0, // 756 - teo-ug
0x00, 0x00, 0x28, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xe4, 0x11, 0x2f, 0x72, 0xf7, // 757 - tg
0x00, 0x7c, 0x28, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xe4, 0x11, 0x2f, 0x72, 0xf7, // 758 - tg-cyrl
0x00, 0x04, 0x28, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xe4, 0x11, 0x2f, 0x72, 0xf7, // 759 - tg-cyrl-tj
0x00, 0x00, 0x1e, 0x36, 0xa3, 0x6a, 0x27, 0x25, 0x51, 0x66, 0x00, 0x00, 0x00, 0xe3, 0x01, 0x2f, 0x90, 0x8f, // 760 - th
0x00, 0x04, 0x1e, 0x36, 0xa3, 0x6a, 0x27, 0x25, 0x51, 0x66, 0x00, 0x00, 0x00, 0xe3, 0x01, 0x2f, 0x90, 0x8f, // 761 - th-th
0x00, 0x00, 0x73, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xb0, 0x8f, // 762 - ti
0x00, 0x08, 0x73, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xb0, 0x8f, // 763 - ti-er
0x00, 0x04, 0x73, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x2f, 0xc0, 0x8f, // 764 - ti-et
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xe0, 0xf0, // 765 - tig
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xe0, 0xf0, // 766 - tig-er
0x00, 0x00, 0x42, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xee, 0x11, 0x30, 0x03, 0x00, // 767 - tk
0x00, 0x04, 0x42, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xee, 0x11, 0x30, 0x03, 0x00, // 768 - tk-tm
0x00, 0x00, 0x32, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0x33, 0x03, // 769 - tn
0x00, 0x08, 0x32, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x13, 0x11, 0x30, 0x23, 0x02, // 770 - tn-bw
0x00, 0x04, 0x32, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0x33, 0x03, // 771 - tn-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe7, 0x11, 0x30, 0x50, 0xf0, // 772 - to
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe7, 0x11, 0x30, 0x50, 0xf0, // 773 - to-to
0x00, 0x00, 0x1f, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0xeb, 0x11, 0x30, 0x83, 0x08, // 774 - tr
0x00, 0x10, 0x00, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x3b, 0x11, 0x30, 0x70, 0xf0, // 775 - tr-cy
0x00, 0x04, 0x1f, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0xeb, 0x11, 0x30, 0x83, 0x08, // 776 - tr-tr
0x00, 0x00, 0x31, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0xa0, 0xf0, // 777 - ts
0x00, 0x04, 0x31, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0xa0, 0xf0, // 778 - ts-za
0x00, 0x00, 0x44, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x30, 0xc3, 0x0c, // 779 - tt
0x00, 0x04, 0x44, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x30, 0xc3, 0x0c, // 780 - tt-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x30, 0xe0, 0xf0, // 781 - twq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x30, 0xe0, 0xf0, // 782 - twq-ne
0x00, 0x00, 0x5f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x31, 0x33, 0x13, // 783 - tzm
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x10, 0xf0, // 784 - tzm-arab
0x00, 0x04, 0x5f, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x10, 0xf0, // 785 - tzm-arab-ma
0x00, 0x7c, 0x5f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x31, 0x33, 0x13, // 786 - tzm-latn
0x00, 0x08, 0x5f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x31, 0x33, 0x13, // 787 - tzm-latn-dz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x40, 0xf0, // 788 - tzm-latn-ma
0x00, 0x78, 0x5f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x61, 0x3c, // 789 - tzm-tfng
0x00, 0x10, 0x5f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x61, 0x3c, // 790 - tzm-tfng-ma
0x00, 0x00, 0x80, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x31, 0x80, 0x8f, // 791 - ug
0x00, 0x04, 0x80, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x31, 0x80, 0x8f, // 792 - ug-cn
0x00, 0x00, 0x22, 0x4e, 0x33, 0x62, 0x27, 0x21, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf1, 0x11, 0x31, 0xa3, 0x1a, // 793 - uk
0x00, 0x04, 0x22, 0x4e, 0x33, 0x62, 0x27, 0x21, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf1, 0x11, 0x31, 0xa3, 0x1a, // 794 - uk-ua
0x00, 0x00, 0x20, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x11, 0x31, 0xd0, 0x8f, // 795 - ur
0x00, 0x08, 0x20, 0x4e, 0x82, 0xd0, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x31, 0xc0, 0xf0, // 796 - ur-in
0x00, 0x04, 0x20, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x11, 0x31, 0xd0, 0x8f, // 797 - ur-pk
0x00, 0x00, 0x43, 0x4e, 0x63, 0x59, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x43, 0x24, // 798 - uz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x32, 0x00, 0xf0, // 799 - uz-arab
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x32, 0x00, 0xf0, // 800 - uz-arab-af
0x00, 0x78, 0x43, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x23, 0x22, // 801 - uz-cyrl
0x00, 0x08, 0x43, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x23, 0x22, // 802 - uz-cyrl-uz
0x00, 0x7c, 0x43, 0x4e, 0x63, 0x59, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x43, 0x24, // 803 - uz-latn
0x00, 0x04, 0x43, 0x4e, 0x63, 0x59, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x43, 0x24, // 804 - uz-latn-uz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x90, 0xf0, // 805 - vai
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x70, 0xf0, // 806 - vai-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x70, 0xf0, // 807 - vai-latn-lr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x90, 0xf0, // 808 - vai-vaii
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x90, 0xf0, // 809 - vai-vaii-lr
0x00, 0x00, 0x33, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x32, 0xb0, 0xf0, // 810 - ve
0x00, 0x04, 0x33, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x32, 0xb0, 0xf0, // 811 - ve-za
0x00, 0x00, 0x2a, 0x4e, 0xa4, 0xea, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfb, 0x01, 0x32, 0xd0, 0x8f, // 812 - vi
0x00, 0x04, 0x2a, 0x4e, 0xa4, 0xea, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfb, 0x01, 0x32, 0xd0, 0x8f, // 813 - vi-vn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x32, 0xf0, 0xf0, // 814 - vo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x32, 0xf0, 0xf0, // 815 - vo-001
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x33, 0x10, 0xf0, // 816 - vun
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x33, 0x10, 0xf0, // 817 - vun-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x33, 0x30, 0xf0, // 818 - wae
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x33, 0x30, 0xf0, // 819 - wae-ch
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x33, 0x50, 0xf0, // 820 - wal
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x33, 0x50, 0xf0, // 821 - wal-et
0x00, 0x00, 0x88, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x33, 0x73, 0x37, // 822 - wo
0x00, 0x04, 0x88, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x33, 0x73, 0x37, // 823 - wo-sn
0x01, 0x00, 0x7f, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x01, 0xff, 0xff, 0xff, // 824 - x-iv_mathan
0x00, 0x00, 0x34, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x33, 0xa3, 0x3a, // 825 - xh
0x00, 0x04, 0x34, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x33, 0xa3, 0x3a, // 826 - xh-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x33, 0xc0, 0xf0, // 827 - xog
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x33, 0xc0, 0xf0, // 828 - xog-ug
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x33, 0xe0, 0xf0, // 829 - yav
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x33, 0xe0, 0xf0, // 830 - yav-cm
0x00, 0x00, 0x3d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x34, 0x00, 0xf0, // 831 - yi
0x00, 0x04, 0x3d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x34, 0x00, 0xf0, // 832 - yi-001
0x00, 0x00, 0x6a, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x34, 0x33, 0x43, // 833 - yo
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1c, 0x11, 0x34, 0x20, 0xf0, // 834 - yo-bj
0x00, 0x04, 0x6a, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x34, 0x33, 0x43, // 835 - yo-ng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x34, 0x50, 0xf0, // 836 - yue
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x34, 0x50, 0xf0, // 837 - yue-hk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x34, 0x81, 0x3c, // 838 - zgh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x34, 0x81, 0x3c, // 839 - zgh-tfng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x34, 0x81, 0x3c, // 840 - zgh-tfng-ma
0x00, 0x78, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 841 - zh
0x00, 0x00, 0x04, 0x3a, 0x83, 0xa8, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 842 - zh-chs
0x00, 0x7c, 0x04, 0x3b, 0x63, 0xb6, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 843 - zh-cht
0x00, 0x08, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 844 - zh-cn
0x05, 0x08, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 845 - zh-cn_phoneb
0x02, 0x08, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 846 - zh-cn_stroke
0x00, 0x00, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 847 - zh-hans
0x00, 0x10, 0x00, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x11, 0x35, 0x00, 0xf0, // 848 - zh-hans-hk
0x00, 0x10, 0x00, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x11, 0x35, 0x10, 0xf0, // 849 - zh-hans-mo
0x00, 0x7c, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 850 - zh-hant
0x00, 0x0c, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 851 - zh-hk
0x04, 0x0c, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 852 - zh-hk_radstr
0x00, 0x14, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x35, 0x53, 0x55, // 853 - zh-mo
0x04, 0x14, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x35, 0x53, 0x55, // 854 - zh-mo_radstr
0x02, 0x14, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x35, 0x53, 0x55, // 855 - zh-mo_stroke
0x00, 0x10, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x35, 0x83, 0x58, // 856 - zh-sg
0x05, 0x10, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x35, 0x83, 0x58, // 857 - zh-sg_phoneb
0x02, 0x10, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x35, 0x83, 0x58, // 858 - zh-sg_stroke
0x00, 0x04, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xed, 0x01, 0x35, 0xb3, 0x5b, // 859 - zh-tw
0x03, 0x04, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xed, 0x01, 0x35, 0xb3, 0x5b, // 860 - zh-tw_pronun
0x04, 0x04, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xed, 0x01, 0x35, 0xb3, 0x5b, // 861 - zh-tw_radstr
0x00, 0x00, 0x35, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x35, 0xf3, 0x5f, // 862 - zu
0x00, 0x04, 0x35, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x35, 0xf3, 0x5f, // 863 - zu-za
};
internal static string? LCIDToLocaleName(int culture)
{
uint sort = (uint)culture >> 16;
culture = (ushort)culture;
ReadOnlySpan<byte> indices = LcidToCultureNameIndices;
(int start, int end) = sort switch
{
0 => (0, LcidSortPrefix1Index),
1 => (LcidSortPrefix1Index, LcidSortPrefix2Index),
2 => (LcidSortPrefix2Index, LcidSortPrefix3Index),
3 => (LcidSortPrefix3Index, LcidSortPrefix4Index),
4 => (LcidSortPrefix4Index, LcidSortPrefix5Index),
5 => (LcidSortPrefix5Index, indices.Length),
_ => default
};
indices = indices[start..end];
int lo = 0;
int hi = indices.Length / 4 - 1;
// Binary search the array
while (lo <= hi)
{
int i = lo + ((hi - lo) >> 1);
int index = i * 4;
int array_value = indices[index] << 8 | indices[index + 1];
int order = array_value.CompareTo(culture);
if (order == 0)
{
start = (indices[index + 2] << 4) | indices[index + 3] >> 4;
int length = indices[index + 3] & 0xF;
return GetString(CultureNames.Slice(start, length));
}
if (order < 0)
{
lo = i + 1;
}
else
{
hi = i - 1;
}
}
return null;
}
internal static int GetLocaleDataNumericPart(string cultureName, IcuLocaleDataParts part)
{
int index = SearchCultureName(cultureName);
if (index < 0)
{
return -1;
}
ReadOnlySpan<byte> numericData = NameIndexToNumericData.Slice(index * NumericLocaleDataBytesPerRow, NumericLocaleDataBytesPerRow);
return part switch
{
IcuLocaleDataParts.Lcid => numericData[2] | (numericData[1] << 8) | (numericData[0] << 16),
IcuLocaleDataParts.AnsiCodePage => (numericData[4] & 0xf0) >> 4 | (numericData[3] & 0xff) << 4,
IcuLocaleDataParts.OemCodePage => numericData[5] | (numericData[4] & 0xf) << 8,
IcuLocaleDataParts.MacCodePage => numericData[7] | (numericData[6] << 8),
IcuLocaleDataParts.EbcdicCodePage => numericData[9] | (numericData[8] << 8),
IcuLocaleDataParts.GeoId => numericData[13] | (numericData[12] << 8) | (numericData[11] << 16) | (numericData[10] << 24),
IcuLocaleDataParts.DigitSubstitutionOrListSeparator => ResolveDigitListSeparator(numericData[14]),
IcuLocaleDataParts.SpecificLocaleIndex => ResolveIndex((numericData[16] & 0xf0) >> 4 | ((numericData[15] & 0xff) << 4)),
IcuLocaleDataParts.ConsoleLocaleIndex => ResolveIndex(numericData[17] | (numericData[16] & 0xf) << 8),
_ => -1
};
static int ResolveIndex(int value) => value == 0xfff ? -1 : value;
static int ResolveDigitListSeparator(int value) => ((value & 0xf0) << 12) | (value & 0xf);
}
internal static string? GetThreeLetterWindowsLanguageName(string cultureName)
{
int index = SearchCultureName(cultureName);
if (index < 0)
{
return null;
}
Debug.Assert(CulturesCount == (ThreeLetterWindowsLanguageName.Length / 3));
return GetString(ThreeLetterWindowsLanguageName.Slice(index * 3, 3));
}
private static string GetLocaleDataMappedCulture(string cultureName, IcuLocaleDataParts part)
{
int indexToIndicesTable = GetLocaleDataNumericPart(cultureName, part);
if (indexToIndicesTable < 0)
{
return ""; // fallback to invariant
}
return GetString(GetCultureName(indexToIndicesTable));
}
internal static string GetSpecificCultureName(string cultureName)
{
return GetLocaleDataMappedCulture(cultureName, IcuLocaleDataParts.SpecificLocaleIndex);
}
internal static string GetConsoleUICulture(string cultureName)
{
return GetLocaleDataMappedCulture(cultureName, IcuLocaleDataParts.ConsoleLocaleIndex);
}
// Returns index of the culture or less than 0 if it fail finding any match
private static int SearchCultureName(string name)
{
if (name.Length > LocaleLongestName)
return -1;
Span<byte> lower_case = stackalloc byte[name.Length];
for (int i = 0; i < name.Length; ++i)
{
char ch = name[i];
Debug.Assert(ch <= 'z');
lower_case[i] = ((uint)(ch - 'A') <= 'Z' - 'A') ? (byte)(ch | 0x20) : (byte)ch;
}
ReadOnlySpan<byte> lname = lower_case;
Debug.Assert(CulturesCount * 2 == LocalesNamesIndexes.Length);
int lo = 0;
int hi = CulturesCount - 1;
// Binary search the array
while (lo <= hi)
{
int i = lo + ((hi - lo) >> 1);
int order = GetCultureName(i).SequenceCompareTo(lname);
if (order == 0) return i;
if (order < 0)
{
lo = i + 1;
}
else
{
hi = i - 1;
}
}
return ~lo;
}
private static ReadOnlySpan<byte> GetCultureName(int localeNameIndice)
{
ReadOnlySpan<byte> localesNamesIndexes = LocalesNamesIndexes;
int index = localeNameIndice * 2;
int high = localesNamesIndexes[index];
int low = localesNamesIndexes[index + 1];
int start = (high << 4) | (low >> 4);
int length = low & 0xF;
return CultureNames.Slice(start, length);
}
private static string GetString(ReadOnlySpan<byte> buffer)
{
string result = string.FastAllocateString(buffer.Length);
var s = new Span<char>(ref result.GetRawStringData(), buffer.Length);
for (int i = 0; i < buffer.Length; i++)
{
s[i] = (char)buffer[i];
}
return result;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
#pragma warning disable SA1001
// This file contains the handling of Windows OS specific culture features.
namespace System.Globalization
{
internal enum IcuLocaleDataParts
{
Lcid = 0,
AnsiCodePage = 1,
OemCodePage = 2,
MacCodePage = 3,
EbcdicCodePage = 4,
GeoId = 5,
DigitSubstitutionOrListSeparator = 6,
SpecificLocaleIndex = 7,
ConsoleLocaleIndex = 8
}
internal static partial class IcuLocaleData
{
private static ReadOnlySpan<byte> CultureNames => new byte[]
{
(byte)'a', (byte)'a', (byte)'-', (byte)'d', (byte)'j', // aa, aa-dj
(byte)'a', (byte)'a', (byte)'-', (byte)'e', (byte)'r', // aa-er
(byte)'a', (byte)'a', (byte)'-', (byte)'e', (byte)'t', // aa-et
(byte)'a', (byte)'f', (byte)'-', (byte)'n', (byte)'a', // af, af-na
(byte)'a', (byte)'f', (byte)'-', (byte)'z', (byte)'a', // af-za
(byte)'a', (byte)'g', (byte)'q', (byte)'-', (byte)'c', (byte)'m', // agq, agq-cm
(byte)'a', (byte)'k', (byte)'-', (byte)'g', (byte)'h', // ak, ak-gh
(byte)'a', (byte)'m', (byte)'-', (byte)'e', (byte)'t', // am, am-et
(byte)'a', (byte)'r', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // ar, ar-001
(byte)'a', (byte)'r', (byte)'-', (byte)'a', (byte)'e', // ar-ae
(byte)'a', (byte)'r', (byte)'-', (byte)'b', (byte)'h', // ar-bh
(byte)'a', (byte)'r', (byte)'-', (byte)'d', (byte)'j', // ar-dj
(byte)'a', (byte)'r', (byte)'-', (byte)'d', (byte)'z', // ar-dz
(byte)'a', (byte)'r', (byte)'-', (byte)'e', (byte)'g', // ar-eg
(byte)'a', (byte)'r', (byte)'-', (byte)'e', (byte)'r', // ar-er
(byte)'a', (byte)'r', (byte)'-', (byte)'i', (byte)'l', // ar-il
(byte)'a', (byte)'r', (byte)'-', (byte)'i', (byte)'q', // ar-iq
(byte)'a', (byte)'r', (byte)'-', (byte)'j', (byte)'o', // ar-jo
(byte)'a', (byte)'r', (byte)'-', (byte)'k', (byte)'m', // ar-km
(byte)'a', (byte)'r', (byte)'-', (byte)'k', (byte)'w', // ar-kw
(byte)'a', (byte)'r', (byte)'-', (byte)'l', (byte)'b', // ar-lb
(byte)'a', (byte)'r', (byte)'-', (byte)'l', (byte)'y', // ar-ly
(byte)'a', (byte)'r', (byte)'-', (byte)'m', (byte)'a', // ar-ma
(byte)'a', (byte)'r', (byte)'-', (byte)'m', (byte)'r', // ar-mr
(byte)'a', (byte)'r', (byte)'-', (byte)'o', (byte)'m', // ar-om
(byte)'a', (byte)'r', (byte)'-', (byte)'p', (byte)'s', // ar-ps
(byte)'a', (byte)'r', (byte)'-', (byte)'q', (byte)'a', // ar-qa
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'a', // ar-sa
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'d', // ar-sd
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'o', // ar-so
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'s', // ar-ss
(byte)'a', (byte)'r', (byte)'-', (byte)'s', (byte)'y', // ar-sy
(byte)'a', (byte)'r', (byte)'-', (byte)'t', (byte)'d', // ar-td
(byte)'a', (byte)'r', (byte)'-', (byte)'t', (byte)'n', // ar-tn
(byte)'a', (byte)'r', (byte)'-', (byte)'y', (byte)'e', // ar-ye
(byte)'a', (byte)'r', (byte)'n', (byte)'-', (byte)'c', (byte)'l', // arn, arn-cl
(byte)'a', (byte)'s', (byte)'-', (byte)'i', (byte)'n', // as, as-in
(byte)'a', (byte)'s', (byte)'a', (byte)'-', (byte)'t', (byte)'z', // asa, asa-tz
(byte)'a', (byte)'s', (byte)'t', (byte)'-', (byte)'e', (byte)'s', // ast, ast-es
(byte)'a', (byte)'z', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'a', (byte)'z', // az, az-cyrl, az-cyrl-az
(byte)'a', (byte)'z', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'a', (byte)'z', // az-latn, az-latn-az
(byte)'b', (byte)'a', (byte)'-', (byte)'r', (byte)'u', // ba, ba-ru
(byte)'b', (byte)'a', (byte)'s', (byte)'-', (byte)'c', (byte)'m', // bas, bas-cm
(byte)'b', (byte)'e', (byte)'-', (byte)'b', (byte)'y', // be, be-by
(byte)'b', (byte)'e', (byte)'m', (byte)'-', (byte)'z', (byte)'m', // bem, bem-zm
(byte)'b', (byte)'e', (byte)'z', (byte)'-', (byte)'t', (byte)'z', // bez, bez-tz
(byte)'b', (byte)'g', (byte)'-', (byte)'b', (byte)'g', // bg, bg-bg
(byte)'b', (byte)'i', (byte)'n', (byte)'-', (byte)'n', (byte)'g', // bin, bin-ng
(byte)'b', (byte)'m', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'l', // bm, bm-latn, bm-latn-ml
(byte)'b', (byte)'n', (byte)'-', (byte)'b', (byte)'d', // bn, bn-bd
(byte)'b', (byte)'n', (byte)'-', (byte)'i', (byte)'n', // bn-in
(byte)'b', (byte)'o', (byte)'-', (byte)'c', (byte)'n', // bo, bo-cn
(byte)'b', (byte)'o', (byte)'-', (byte)'i', (byte)'n', // bo-in
(byte)'b', (byte)'r', (byte)'-', (byte)'f', (byte)'r', // br, br-fr
(byte)'b', (byte)'r', (byte)'x', (byte)'-', (byte)'i', (byte)'n', // brx, brx-in
(byte)'b', (byte)'s', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'b', (byte)'a', // bs, bs-cyrl, bs-cyrl-ba
(byte)'b', (byte)'s', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'b', (byte)'a', // bs-latn, bs-latn-ba
(byte)'b', (byte)'y', (byte)'n', (byte)'-', (byte)'e', (byte)'r', // byn, byn-er
(byte)'c', (byte)'a', (byte)'-', (byte)'a', (byte)'d', // ca, ca-ad
(byte)'c', (byte)'a', (byte)'-', (byte)'e', (byte)'s', (byte)'-', (byte)'v', (byte)'a', (byte)'l', (byte)'e', (byte)'n', (byte)'c', (byte)'i', (byte)'a', // ca-es, ca-es-valencia
(byte)'c', (byte)'a', (byte)'-', (byte)'f', (byte)'r', // ca-fr
(byte)'c', (byte)'a', (byte)'-', (byte)'i', (byte)'t', // ca-it
(byte)'c', (byte)'e', (byte)'-', (byte)'r', (byte)'u', // ce, ce-ru
(byte)'c', (byte)'g', (byte)'g', (byte)'-', (byte)'u', (byte)'g', // cgg, cgg-ug
(byte)'c', (byte)'h', (byte)'r', (byte)'-', (byte)'c', (byte)'h', (byte)'e', (byte)'r', (byte)'-', (byte)'u', (byte)'s', // chr, chr-cher, chr-cher-us
(byte)'c', (byte)'o', (byte)'-', (byte)'f', (byte)'r', // co, co-fr
(byte)'c', (byte)'s', (byte)'-', (byte)'c', (byte)'z', // cs, cs-cz
(byte)'c', (byte)'u', (byte)'-', (byte)'r', (byte)'u', // cu, cu-ru
(byte)'c', (byte)'y', (byte)'-', (byte)'g', (byte)'b', // cy, cy-gb
(byte)'d', (byte)'a', (byte)'-', (byte)'d', (byte)'k', // da, da-dk
(byte)'d', (byte)'a', (byte)'-', (byte)'g', (byte)'l', // da-gl
(byte)'d', (byte)'a', (byte)'v', (byte)'-', (byte)'k', (byte)'e', // dav, dav-ke
(byte)'d', (byte)'e', (byte)'-', (byte)'a', (byte)'t', // de, de-at
(byte)'d', (byte)'e', (byte)'-', (byte)'b', (byte)'e', // de-be
(byte)'d', (byte)'e', (byte)'-', (byte)'c', (byte)'h', // de-ch
(byte)'d', (byte)'e', (byte)'-', (byte)'d', (byte)'e', (byte)'_', (byte)'p', (byte)'h', (byte)'o', (byte)'n', (byte)'e', (byte)'b', // de-de, de-de_phoneb
(byte)'d', (byte)'e', (byte)'-', (byte)'i', (byte)'t', // de-it
(byte)'d', (byte)'e', (byte)'-', (byte)'l', (byte)'i', // de-li
(byte)'d', (byte)'e', (byte)'-', (byte)'l', (byte)'u', // de-lu
(byte)'d', (byte)'j', (byte)'e', (byte)'-', (byte)'n', (byte)'e', // dje, dje-ne
(byte)'d', (byte)'s', (byte)'b', (byte)'-', (byte)'d', (byte)'e', // dsb, dsb-de
(byte)'d', (byte)'u', (byte)'a', (byte)'-', (byte)'c', (byte)'m', // dua, dua-cm
(byte)'d', (byte)'v', (byte)'-', (byte)'m', (byte)'v', // dv, dv-mv
(byte)'d', (byte)'y', (byte)'o', (byte)'-', (byte)'s', (byte)'n', // dyo, dyo-sn
(byte)'d', (byte)'z', (byte)'-', (byte)'b', (byte)'t', // dz, dz-bt
(byte)'e', (byte)'b', (byte)'u', (byte)'-', (byte)'k', (byte)'e', // ebu, ebu-ke
(byte)'e', (byte)'e', (byte)'-', (byte)'g', (byte)'h', // ee, ee-gh
(byte)'e', (byte)'e', (byte)'-', (byte)'t', (byte)'g', // ee-tg
(byte)'e', (byte)'l', (byte)'-', (byte)'c', (byte)'y', // el, el-cy
(byte)'e', (byte)'l', (byte)'-', (byte)'g', (byte)'r', // el-gr
(byte)'e', (byte)'n', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // en, en-001
(byte)'e', (byte)'n', (byte)'-', (byte)'0', (byte)'2', (byte)'9', // en-029
(byte)'e', (byte)'n', (byte)'-', (byte)'1', (byte)'5', (byte)'0', // en-150
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'g', // en-ag
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'i', // en-ai
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'s', // en-as
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'t', // en-at
(byte)'e', (byte)'n', (byte)'-', (byte)'a', (byte)'u', // en-au
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'b', // en-bb
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'e', // en-be
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'i', // en-bi
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'m', // en-bm
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'s', // en-bs
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'w', // en-bw
(byte)'e', (byte)'n', (byte)'-', (byte)'b', (byte)'z', // en-bz
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'a', // en-ca
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'c', // en-cc
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'h', // en-ch
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'k', // en-ck
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'m', // en-cm
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'x', // en-cx
(byte)'e', (byte)'n', (byte)'-', (byte)'c', (byte)'y', // en-cy
(byte)'e', (byte)'n', (byte)'-', (byte)'d', (byte)'e', // en-de
(byte)'e', (byte)'n', (byte)'-', (byte)'d', (byte)'k', // en-dk
(byte)'e', (byte)'n', (byte)'-', (byte)'d', (byte)'m', // en-dm
(byte)'e', (byte)'n', (byte)'-', (byte)'e', (byte)'r', // en-er
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'i', // en-fi
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'j', // en-fj
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'k', // en-fk
(byte)'e', (byte)'n', (byte)'-', (byte)'f', (byte)'m', // en-fm
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'b', // en-gb
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'d', // en-gd
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'g', // en-gg
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'h', // en-gh
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'i', // en-gi
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'m', // en-gm
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'u', // en-gu
(byte)'e', (byte)'n', (byte)'-', (byte)'g', (byte)'y', // en-gy
(byte)'e', (byte)'n', (byte)'-', (byte)'h', (byte)'k', // en-hk
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'d', // en-id
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'e', // en-ie
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'l', // en-il
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'m', // en-im
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'n', // en-in
(byte)'e', (byte)'n', (byte)'-', (byte)'i', (byte)'o', // en-io
(byte)'e', (byte)'n', (byte)'-', (byte)'j', (byte)'e', // en-je
(byte)'e', (byte)'n', (byte)'-', (byte)'j', (byte)'m', // en-jm
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'e', // en-ke
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'i', // en-ki
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'n', // en-kn
(byte)'e', (byte)'n', (byte)'-', (byte)'k', (byte)'y', // en-ky
(byte)'e', (byte)'n', (byte)'-', (byte)'l', (byte)'c', // en-lc
(byte)'e', (byte)'n', (byte)'-', (byte)'l', (byte)'r', // en-lr
(byte)'e', (byte)'n', (byte)'-', (byte)'l', (byte)'s', // en-ls
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'g', // en-mg
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'h', // en-mh
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'o', // en-mo
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'p', // en-mp
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'s', // en-ms
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'t', // en-mt
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'u', // en-mu
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'w', // en-mw
(byte)'e', (byte)'n', (byte)'-', (byte)'m', (byte)'y', // en-my
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'a', // en-na
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'f', // en-nf
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'g', // en-ng
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'l', // en-nl
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'r', // en-nr
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'u', // en-nu
(byte)'e', (byte)'n', (byte)'-', (byte)'n', (byte)'z', // en-nz
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'g', // en-pg
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'h', // en-ph
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'k', // en-pk
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'n', // en-pn
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'r', // en-pr
(byte)'e', (byte)'n', (byte)'-', (byte)'p', (byte)'w', // en-pw
(byte)'e', (byte)'n', (byte)'-', (byte)'r', (byte)'w', // en-rw
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'b', // en-sb
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'c', // en-sc
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'d', // en-sd
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'e', // en-se
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'g', // en-sg
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'h', // en-sh
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'i', // en-si
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'l', // en-sl
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'s', // en-ss
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'x', // en-sx
(byte)'e', (byte)'n', (byte)'-', (byte)'s', (byte)'z', // en-sz
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'c', // en-tc
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'k', // en-tk
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'o', // en-to
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'t', // en-tt
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'v', // en-tv
(byte)'e', (byte)'n', (byte)'-', (byte)'t', (byte)'z', // en-tz
(byte)'e', (byte)'n', (byte)'-', (byte)'u', (byte)'g', // en-ug
(byte)'e', (byte)'n', (byte)'-', (byte)'u', (byte)'m', // en-um
(byte)'e', (byte)'n', (byte)'-', (byte)'u', (byte)'s', // en-us
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'c', // en-vc
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'g', // en-vg
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'i', // en-vi
(byte)'e', (byte)'n', (byte)'-', (byte)'v', (byte)'u', // en-vu
(byte)'e', (byte)'n', (byte)'-', (byte)'w', (byte)'s', // en-ws
(byte)'e', (byte)'n', (byte)'-', (byte)'z', (byte)'a', // en-za
(byte)'e', (byte)'n', (byte)'-', (byte)'z', (byte)'m', // en-zm
(byte)'e', (byte)'n', (byte)'-', (byte)'z', (byte)'w', // en-zw
(byte)'e', (byte)'o', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // eo, eo-001
(byte)'e', (byte)'s', (byte)'-', (byte)'4', (byte)'1', (byte)'9', // es, es-419
(byte)'e', (byte)'s', (byte)'-', (byte)'a', (byte)'r', // es-ar
(byte)'e', (byte)'s', (byte)'-', (byte)'b', (byte)'o', // es-bo
(byte)'e', (byte)'s', (byte)'-', (byte)'b', (byte)'r', // es-br
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'l', // es-cl
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'o', // es-co
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'r', // es-cr
(byte)'e', (byte)'s', (byte)'-', (byte)'c', (byte)'u', // es-cu
(byte)'e', (byte)'s', (byte)'-', (byte)'d', (byte)'o', // es-do
(byte)'e', (byte)'s', (byte)'-', (byte)'e', (byte)'c', // es-ec
(byte)'e', (byte)'s', (byte)'-', (byte)'e', (byte)'s', (byte)'_', (byte)'t', (byte)'r', (byte)'a', (byte)'d', (byte)'n', (byte)'l', // es-es, es-es_tradnl
(byte)'e', (byte)'s', (byte)'-', (byte)'g', (byte)'q', // es-gq
(byte)'e', (byte)'s', (byte)'-', (byte)'g', (byte)'t', // es-gt
(byte)'e', (byte)'s', (byte)'-', (byte)'h', (byte)'n', // es-hn
(byte)'e', (byte)'s', (byte)'-', (byte)'m', (byte)'x', // es-mx
(byte)'e', (byte)'s', (byte)'-', (byte)'n', (byte)'i', // es-ni
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'a', // es-pa
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'e', // es-pe
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'h', // es-ph
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'r', // es-pr
(byte)'e', (byte)'s', (byte)'-', (byte)'p', (byte)'y', // es-py
(byte)'e', (byte)'s', (byte)'-', (byte)'s', (byte)'v', // es-sv
(byte)'e', (byte)'s', (byte)'-', (byte)'u', (byte)'s', // es-us
(byte)'e', (byte)'s', (byte)'-', (byte)'u', (byte)'y', // es-uy
(byte)'e', (byte)'s', (byte)'-', (byte)'v', (byte)'e', // es-ve
(byte)'e', (byte)'t', (byte)'-', (byte)'e', (byte)'e', // et, et-ee
(byte)'e', (byte)'u', (byte)'-', (byte)'e', (byte)'s', // eu, eu-es
(byte)'e', (byte)'w', (byte)'o', (byte)'-', (byte)'c', (byte)'m', // ewo, ewo-cm
(byte)'f', (byte)'a', (byte)'-', (byte)'i', (byte)'r', // fa, fa-ir
(byte)'f', (byte)'f', (byte)'-', (byte)'c', (byte)'m', // ff, ff-cm
(byte)'f', (byte)'f', (byte)'-', (byte)'g', (byte)'n', // ff-gn
(byte)'f', (byte)'f', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'s', (byte)'n', // ff-latn, ff-latn-sn
(byte)'f', (byte)'f', (byte)'-', (byte)'m', (byte)'r', // ff-mr
(byte)'f', (byte)'f', (byte)'-', (byte)'n', (byte)'g', // ff-ng
(byte)'f', (byte)'i', (byte)'-', (byte)'f', (byte)'i', // fi, fi-fi
(byte)'f', (byte)'i', (byte)'l', (byte)'-', (byte)'p', (byte)'h', // fil, fil-ph
(byte)'f', (byte)'o', (byte)'-', (byte)'d', (byte)'k', // fo, fo-dk
(byte)'f', (byte)'o', (byte)'-', (byte)'f', (byte)'o', // fo-fo
(byte)'f', (byte)'r', (byte)'-', (byte)'0', (byte)'2', (byte)'9', // fr, fr-029
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'e', // fr-be
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'f', // fr-bf
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'i', // fr-bi
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'j', // fr-bj
(byte)'f', (byte)'r', (byte)'-', (byte)'b', (byte)'l', // fr-bl
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'a', // fr-ca
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'d', // fr-cd
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'f', // fr-cf
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'g', // fr-cg
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'h', // fr-ch
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'i', // fr-ci
(byte)'f', (byte)'r', (byte)'-', (byte)'c', (byte)'m', // fr-cm
(byte)'f', (byte)'r', (byte)'-', (byte)'d', (byte)'j', // fr-dj
(byte)'f', (byte)'r', (byte)'-', (byte)'d', (byte)'z', // fr-dz
(byte)'f', (byte)'r', (byte)'-', (byte)'f', (byte)'r', // fr-fr
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'a', // fr-ga
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'f', // fr-gf
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'n', // fr-gn
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'p', // fr-gp
(byte)'f', (byte)'r', (byte)'-', (byte)'g', (byte)'q', // fr-gq
(byte)'f', (byte)'r', (byte)'-', (byte)'h', (byte)'t', // fr-ht
(byte)'f', (byte)'r', (byte)'-', (byte)'k', (byte)'m', // fr-km
(byte)'f', (byte)'r', (byte)'-', (byte)'l', (byte)'u', // fr-lu
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'a', // fr-ma
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'c', // fr-mc
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'f', // fr-mf
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'g', // fr-mg
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'l', // fr-ml
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'q', // fr-mq
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'r', // fr-mr
(byte)'f', (byte)'r', (byte)'-', (byte)'m', (byte)'u', // fr-mu
(byte)'f', (byte)'r', (byte)'-', (byte)'n', (byte)'c', // fr-nc
(byte)'f', (byte)'r', (byte)'-', (byte)'n', (byte)'e', // fr-ne
(byte)'f', (byte)'r', (byte)'-', (byte)'p', (byte)'f', // fr-pf
(byte)'f', (byte)'r', (byte)'-', (byte)'p', (byte)'m', // fr-pm
(byte)'f', (byte)'r', (byte)'-', (byte)'r', (byte)'e', // fr-re
(byte)'f', (byte)'r', (byte)'-', (byte)'r', (byte)'w', // fr-rw
(byte)'f', (byte)'r', (byte)'-', (byte)'s', (byte)'c', // fr-sc
(byte)'f', (byte)'r', (byte)'-', (byte)'s', (byte)'n', // fr-sn
(byte)'f', (byte)'r', (byte)'-', (byte)'s', (byte)'y', // fr-sy
(byte)'f', (byte)'r', (byte)'-', (byte)'t', (byte)'d', // fr-td
(byte)'f', (byte)'r', (byte)'-', (byte)'t', (byte)'g', // fr-tg
(byte)'f', (byte)'r', (byte)'-', (byte)'t', (byte)'n', // fr-tn
(byte)'f', (byte)'r', (byte)'-', (byte)'v', (byte)'u', // fr-vu
(byte)'f', (byte)'r', (byte)'-', (byte)'w', (byte)'f', // fr-wf
(byte)'f', (byte)'r', (byte)'-', (byte)'y', (byte)'t', // fr-yt
(byte)'f', (byte)'u', (byte)'r', (byte)'-', (byte)'i', (byte)'t', // fur, fur-it
(byte)'f', (byte)'y', (byte)'-', (byte)'n', (byte)'l', // fy, fy-nl
(byte)'g', (byte)'a', (byte)'-', (byte)'i', (byte)'e', // ga, ga-ie
(byte)'g', (byte)'d', (byte)'-', (byte)'g', (byte)'b', // gd, gd-gb
(byte)'g', (byte)'l', (byte)'-', (byte)'e', (byte)'s', // gl, gl-es
(byte)'g', (byte)'n', (byte)'-', (byte)'p', (byte)'y', // gn, gn-py
(byte)'g', (byte)'s', (byte)'w', (byte)'-', (byte)'c', (byte)'h', // gsw, gsw-ch
(byte)'g', (byte)'s', (byte)'w', (byte)'-', (byte)'f', (byte)'r', // gsw-fr
(byte)'g', (byte)'s', (byte)'w', (byte)'-', (byte)'l', (byte)'i', // gsw-li
(byte)'g', (byte)'u', (byte)'-', (byte)'i', (byte)'n', // gu, gu-in
(byte)'g', (byte)'u', (byte)'z', (byte)'-', (byte)'k', (byte)'e', // guz, guz-ke
(byte)'g', (byte)'v', (byte)'-', (byte)'i', (byte)'m', // gv, gv-im
(byte)'h', (byte)'a', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'g', (byte)'h', // ha, ha-latn, ha-latn-gh
(byte)'h', (byte)'a', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'n', (byte)'e', // ha-latn-ne
(byte)'h', (byte)'a', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'n', (byte)'g', // ha-latn-ng
(byte)'h', (byte)'a', (byte)'w', (byte)'-', (byte)'u', (byte)'s', // haw, haw-us
(byte)'h', (byte)'e', (byte)'-', (byte)'i', (byte)'l', // he, he-il
(byte)'h', (byte)'i', (byte)'-', (byte)'i', (byte)'n', // hi, hi-in
(byte)'h', (byte)'r', (byte)'-', (byte)'b', (byte)'a', // hr, hr-ba
(byte)'h', (byte)'r', (byte)'-', (byte)'h', (byte)'r', // hr-hr
(byte)'h', (byte)'s', (byte)'b', (byte)'-', (byte)'d', (byte)'e', // hsb, hsb-de
(byte)'h', (byte)'u', (byte)'-', (byte)'h', (byte)'u', (byte)'_', (byte)'t', (byte)'e', (byte)'c', (byte)'h', (byte)'n', (byte)'l', // hu, hu-hu, hu-hu_technl
(byte)'h', (byte)'y', (byte)'-', (byte)'a', (byte)'m', // hy, hy-am
(byte)'i', (byte)'a', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // ia, ia-001
(byte)'i', (byte)'a', (byte)'-', (byte)'f', (byte)'r', // ia-fr
(byte)'i', (byte)'b', (byte)'b', (byte)'-', (byte)'n', (byte)'g', // ibb, ibb-ng
(byte)'i', (byte)'d', (byte)'-', (byte)'i', (byte)'d', // id, id-id
(byte)'i', (byte)'g', (byte)'-', (byte)'n', (byte)'g', // ig, ig-ng
(byte)'i', (byte)'i', (byte)'-', (byte)'c', (byte)'n', // ii, ii-cn
(byte)'i', (byte)'s', (byte)'-', (byte)'i', (byte)'s', // is, is-is
(byte)'i', (byte)'t', (byte)'-', (byte)'c', (byte)'h', // it, it-ch
(byte)'i', (byte)'t', (byte)'-', (byte)'i', (byte)'t', // it-it
(byte)'i', (byte)'t', (byte)'-', (byte)'s', (byte)'m', // it-sm
(byte)'i', (byte)'u', (byte)'-', (byte)'c', (byte)'a', (byte)'n', (byte)'s', (byte)'-', (byte)'c', (byte)'a', // iu, iu-cans, iu-cans-ca
(byte)'i', (byte)'u', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'c', (byte)'a', // iu-latn, iu-latn-ca
(byte)'j', (byte)'a', (byte)'-', (byte)'j', (byte)'p', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // ja, ja-jp, ja-jp_radstr
(byte)'j', (byte)'g', (byte)'o', (byte)'-', (byte)'c', (byte)'m', // jgo, jgo-cm
(byte)'j', (byte)'m', (byte)'c', (byte)'-', (byte)'t', (byte)'z', // jmc, jmc-tz
(byte)'j', (byte)'v', (byte)'-', (byte)'j', (byte)'a', (byte)'v', (byte)'a', (byte)'-', (byte)'i', (byte)'d', // jv, jv-java, jv-java-id
(byte)'j', (byte)'v', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'i', (byte)'d', // jv-latn, jv-latn-id
(byte)'k', (byte)'a', (byte)'-', (byte)'g', (byte)'e', (byte)'_', (byte)'m', (byte)'o', (byte)'d', (byte)'e', (byte)'r', (byte)'n', // ka, ka-ge, ka-ge_modern
(byte)'k', (byte)'a', (byte)'b', (byte)'-', (byte)'d', (byte)'z', // kab, kab-dz
(byte)'k', (byte)'a', (byte)'m', (byte)'-', (byte)'k', (byte)'e', // kam, kam-ke
(byte)'k', (byte)'d', (byte)'e', (byte)'-', (byte)'t', (byte)'z', // kde, kde-tz
(byte)'k', (byte)'e', (byte)'a', (byte)'-', (byte)'c', (byte)'v', // kea, kea-cv
(byte)'k', (byte)'h', (byte)'q', (byte)'-', (byte)'m', (byte)'l', // khq, khq-ml
(byte)'k', (byte)'i', (byte)'-', (byte)'k', (byte)'e', // ki, ki-ke
(byte)'k', (byte)'k', (byte)'-', (byte)'k', (byte)'z', // kk, kk-kz
(byte)'k', (byte)'k', (byte)'j', (byte)'-', (byte)'c', (byte)'m', // kkj, kkj-cm
(byte)'k', (byte)'l', (byte)'-', (byte)'g', (byte)'l', // kl, kl-gl
(byte)'k', (byte)'l', (byte)'n', (byte)'-', (byte)'k', (byte)'e', // kln, kln-ke
(byte)'k', (byte)'m', (byte)'-', (byte)'k', (byte)'h', // km, km-kh
(byte)'k', (byte)'n', (byte)'-', (byte)'i', (byte)'n', // kn, kn-in
(byte)'k', (byte)'o', (byte)'-', (byte)'k', (byte)'p', // ko, ko-kp
(byte)'k', (byte)'o', (byte)'-', (byte)'k', (byte)'r', // ko-kr
(byte)'k', (byte)'o', (byte)'k', (byte)'-', (byte)'i', (byte)'n', // kok, kok-in
(byte)'k', (byte)'r', (byte)'-', (byte)'n', (byte)'g', // kr, kr-ng
(byte)'k', (byte)'s', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'i', (byte)'n', // ks, ks-arab, ks-arab-in
(byte)'k', (byte)'s', (byte)'-', (byte)'d', (byte)'e', (byte)'v', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // ks-deva, ks-deva-in
(byte)'k', (byte)'s', (byte)'b', (byte)'-', (byte)'t', (byte)'z', // ksb, ksb-tz
(byte)'k', (byte)'s', (byte)'f', (byte)'-', (byte)'c', (byte)'m', // ksf, ksf-cm
(byte)'k', (byte)'s', (byte)'h', (byte)'-', (byte)'d', (byte)'e', // ksh, ksh-de
(byte)'k', (byte)'u', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'i', (byte)'q', // ku, ku-arab, ku-arab-iq
(byte)'k', (byte)'u', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'i', (byte)'r', // ku-arab-ir
(byte)'k', (byte)'w', (byte)'-', (byte)'g', (byte)'b', // kw, kw-gb
(byte)'k', (byte)'y', (byte)'-', (byte)'k', (byte)'g', // ky, ky-kg
(byte)'l', (byte)'a', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // la, la-001
(byte)'l', (byte)'a', (byte)'g', (byte)'-', (byte)'t', (byte)'z', // lag, lag-tz
(byte)'l', (byte)'b', (byte)'-', (byte)'l', (byte)'u', // lb, lb-lu
(byte)'l', (byte)'g', (byte)'-', (byte)'u', (byte)'g', // lg, lg-ug
(byte)'l', (byte)'k', (byte)'t', (byte)'-', (byte)'u', (byte)'s', // lkt, lkt-us
(byte)'l', (byte)'n', (byte)'-', (byte)'a', (byte)'o', // ln, ln-ao
(byte)'l', (byte)'n', (byte)'-', (byte)'c', (byte)'d', // ln-cd
(byte)'l', (byte)'n', (byte)'-', (byte)'c', (byte)'f', // ln-cf
(byte)'l', (byte)'n', (byte)'-', (byte)'c', (byte)'g', // ln-cg
(byte)'l', (byte)'o', (byte)'-', (byte)'l', (byte)'a', // lo, lo-la
(byte)'l', (byte)'r', (byte)'c', (byte)'-', (byte)'i', (byte)'q', // lrc, lrc-iq
(byte)'l', (byte)'r', (byte)'c', (byte)'-', (byte)'i', (byte)'r', // lrc-ir
(byte)'l', (byte)'t', (byte)'-', (byte)'l', (byte)'t', // lt, lt-lt
(byte)'l', (byte)'u', (byte)'-', (byte)'c', (byte)'d', // lu, lu-cd
(byte)'l', (byte)'u', (byte)'o', (byte)'-', (byte)'k', (byte)'e', // luo, luo-ke
(byte)'l', (byte)'u', (byte)'y', (byte)'-', (byte)'k', (byte)'e', // luy, luy-ke
(byte)'l', (byte)'v', (byte)'-', (byte)'l', (byte)'v', // lv, lv-lv
(byte)'m', (byte)'a', (byte)'s', (byte)'-', (byte)'k', (byte)'e', // mas, mas-ke
(byte)'m', (byte)'a', (byte)'s', (byte)'-', (byte)'t', (byte)'z', // mas-tz
(byte)'m', (byte)'e', (byte)'r', (byte)'-', (byte)'k', (byte)'e', // mer, mer-ke
(byte)'m', (byte)'f', (byte)'e', (byte)'-', (byte)'m', (byte)'u', // mfe, mfe-mu
(byte)'m', (byte)'g', (byte)'-', (byte)'m', (byte)'g', // mg, mg-mg
(byte)'m', (byte)'g', (byte)'h', (byte)'-', (byte)'m', (byte)'z', // mgh, mgh-mz
(byte)'m', (byte)'g', (byte)'o', (byte)'-', (byte)'c', (byte)'m', // mgo, mgo-cm
(byte)'m', (byte)'i', (byte)'-', (byte)'n', (byte)'z', // mi, mi-nz
(byte)'m', (byte)'k', (byte)'-', (byte)'m', (byte)'k', // mk, mk-mk
(byte)'m', (byte)'l', (byte)'-', (byte)'i', (byte)'n', // ml, ml-in
(byte)'m', (byte)'n', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', // mn, mn-cyrl
(byte)'m', (byte)'n', (byte)'-', (byte)'m', (byte)'n', // mn-mn
(byte)'m', (byte)'n', (byte)'-', (byte)'m', (byte)'o', (byte)'n', (byte)'g', (byte)'-', (byte)'c', (byte)'n', // mn-mong, mn-mong-cn
(byte)'m', (byte)'n', (byte)'-', (byte)'m', (byte)'o', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'n', // mn-mong-mn
(byte)'m', (byte)'n', (byte)'i', (byte)'-', (byte)'i', (byte)'n', // mni, mni-in
(byte)'m', (byte)'o', (byte)'h', (byte)'-', (byte)'c', (byte)'a', // moh, moh-ca
(byte)'m', (byte)'r', (byte)'-', (byte)'i', (byte)'n', // mr, mr-in
(byte)'m', (byte)'s', (byte)'-', (byte)'b', (byte)'n', // ms, ms-bn
(byte)'m', (byte)'s', (byte)'-', (byte)'m', (byte)'y', // ms-my
(byte)'m', (byte)'s', (byte)'-', (byte)'s', (byte)'g', // ms-sg
(byte)'m', (byte)'t', (byte)'-', (byte)'m', (byte)'t', // mt, mt-mt
(byte)'m', (byte)'u', (byte)'a', (byte)'-', (byte)'c', (byte)'m', // mua, mua-cm
(byte)'m', (byte)'y', (byte)'-', (byte)'m', (byte)'m', // my, my-mm
(byte)'m', (byte)'z', (byte)'n', (byte)'-', (byte)'i', (byte)'r', // mzn, mzn-ir
(byte)'n', (byte)'a', (byte)'q', (byte)'-', (byte)'n', (byte)'a', // naq, naq-na
(byte)'n', (byte)'b', (byte)'-', (byte)'n', (byte)'o', // nb, nb-no
(byte)'n', (byte)'b', (byte)'-', (byte)'s', (byte)'j', // nb-sj
(byte)'n', (byte)'d', (byte)'-', (byte)'z', (byte)'w', // nd, nd-zw
(byte)'n', (byte)'d', (byte)'s', (byte)'-', (byte)'d', (byte)'e', // nds, nds-de
(byte)'n', (byte)'d', (byte)'s', (byte)'-', (byte)'n', (byte)'l', // nds-nl
(byte)'n', (byte)'e', (byte)'-', (byte)'i', (byte)'n', // ne, ne-in
(byte)'n', (byte)'e', (byte)'-', (byte)'n', (byte)'p', // ne-np
(byte)'n', (byte)'l', (byte)'-', (byte)'a', (byte)'w', // nl, nl-aw
(byte)'n', (byte)'l', (byte)'-', (byte)'b', (byte)'e', // nl-be
(byte)'n', (byte)'l', (byte)'-', (byte)'b', (byte)'q', // nl-bq
(byte)'n', (byte)'l', (byte)'-', (byte)'c', (byte)'w', // nl-cw
(byte)'n', (byte)'l', (byte)'-', (byte)'n', (byte)'l', // nl-nl
(byte)'n', (byte)'l', (byte)'-', (byte)'s', (byte)'r', // nl-sr
(byte)'n', (byte)'l', (byte)'-', (byte)'s', (byte)'x', // nl-sx
(byte)'n', (byte)'m', (byte)'g', (byte)'-', (byte)'c', (byte)'m', // nmg, nmg-cm
(byte)'n', (byte)'n', (byte)'-', (byte)'n', (byte)'o', // nn, nn-no
(byte)'n', (byte)'n', (byte)'h', (byte)'-', (byte)'c', (byte)'m', // nnh, nnh-cm
(byte)'n', (byte)'o', // no
(byte)'n', (byte)'q', (byte)'o', (byte)'-', (byte)'g', (byte)'n', // nqo, nqo-gn
(byte)'n', (byte)'r', (byte)'-', (byte)'z', (byte)'a', // nr, nr-za
(byte)'n', (byte)'s', (byte)'o', (byte)'-', (byte)'z', (byte)'a', // nso, nso-za
(byte)'n', (byte)'u', (byte)'s', (byte)'-', (byte)'s', (byte)'s', // nus, nus-ss
(byte)'n', (byte)'y', (byte)'n', (byte)'-', (byte)'u', (byte)'g', // nyn, nyn-ug
(byte)'o', (byte)'c', (byte)'-', (byte)'f', (byte)'r', // oc, oc-fr
(byte)'o', (byte)'m', (byte)'-', (byte)'e', (byte)'t', // om, om-et
(byte)'o', (byte)'m', (byte)'-', (byte)'k', (byte)'e', // om-ke
(byte)'o', (byte)'r', (byte)'-', (byte)'i', (byte)'n', // or, or-in
(byte)'o', (byte)'s', (byte)'-', (byte)'g', (byte)'e', // os, os-ge
(byte)'o', (byte)'s', (byte)'-', (byte)'r', (byte)'u', // os-ru
(byte)'p', (byte)'a', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'p', (byte)'k', // pa, pa-arab, pa-arab-pk
(byte)'p', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // pa-in
(byte)'p', (byte)'a', (byte)'p', (byte)'-', (byte)'0', (byte)'2', (byte)'9', // pap, pap-029
(byte)'p', (byte)'l', (byte)'-', (byte)'p', (byte)'l', // pl, pl-pl
(byte)'p', (byte)'r', (byte)'g', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // prg, prg-001
(byte)'p', (byte)'r', (byte)'s', (byte)'-', (byte)'a', (byte)'f', // prs, prs-af
(byte)'p', (byte)'s', (byte)'-', (byte)'a', (byte)'f', // ps, ps-af
(byte)'p', (byte)'t', (byte)'-', (byte)'a', (byte)'o', // pt, pt-ao
(byte)'p', (byte)'t', (byte)'-', (byte)'b', (byte)'r', // pt-br
(byte)'p', (byte)'t', (byte)'-', (byte)'c', (byte)'h', // pt-ch
(byte)'p', (byte)'t', (byte)'-', (byte)'c', (byte)'v', // pt-cv
(byte)'p', (byte)'t', (byte)'-', (byte)'g', (byte)'q', // pt-gq
(byte)'p', (byte)'t', (byte)'-', (byte)'g', (byte)'w', // pt-gw
(byte)'p', (byte)'t', (byte)'-', (byte)'l', (byte)'u', // pt-lu
(byte)'p', (byte)'t', (byte)'-', (byte)'m', (byte)'o', // pt-mo
(byte)'p', (byte)'t', (byte)'-', (byte)'m', (byte)'z', // pt-mz
(byte)'p', (byte)'t', (byte)'-', (byte)'p', (byte)'t', // pt-pt
(byte)'p', (byte)'t', (byte)'-', (byte)'s', (byte)'t', // pt-st
(byte)'p', (byte)'t', (byte)'-', (byte)'t', (byte)'l', // pt-tl
(byte)'q', (byte)'p', (byte)'s', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'x', (byte)'-', (byte)'s', (byte)'h', // qps-latn-x-sh
(byte)'q', (byte)'p', (byte)'s', (byte)'-', (byte)'p', (byte)'l', (byte)'o', (byte)'c', (byte)'a', // qps-ploc, qps-ploca
(byte)'q', (byte)'p', (byte)'s', (byte)'-', (byte)'p', (byte)'l', (byte)'o', (byte)'c', (byte)'m', // qps-plocm
(byte)'q', (byte)'u', (byte)'c', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'g', (byte)'t', // quc, quc-latn, quc-latn-gt
(byte)'q', (byte)'u', (byte)'z', (byte)'-', (byte)'b', (byte)'o', // quz, quz-bo
(byte)'q', (byte)'u', (byte)'z', (byte)'-', (byte)'e', (byte)'c', // quz-ec
(byte)'q', (byte)'u', (byte)'z', (byte)'-', (byte)'p', (byte)'e', // quz-pe
(byte)'r', (byte)'m', (byte)'-', (byte)'c', (byte)'h', // rm, rm-ch
(byte)'r', (byte)'n', (byte)'-', (byte)'b', (byte)'i', // rn, rn-bi
(byte)'r', (byte)'o', (byte)'-', (byte)'m', (byte)'d', // ro, ro-md
(byte)'r', (byte)'o', (byte)'-', (byte)'r', (byte)'o', // ro-ro
(byte)'r', (byte)'o', (byte)'f', (byte)'-', (byte)'t', (byte)'z', // rof, rof-tz
(byte)'r', (byte)'u', (byte)'-', (byte)'b', (byte)'y', // ru, ru-by
(byte)'r', (byte)'u', (byte)'-', (byte)'k', (byte)'g', // ru-kg
(byte)'r', (byte)'u', (byte)'-', (byte)'k', (byte)'z', // ru-kz
(byte)'r', (byte)'u', (byte)'-', (byte)'m', (byte)'d', // ru-md
(byte)'r', (byte)'u', (byte)'-', (byte)'r', (byte)'u', // ru-ru
(byte)'r', (byte)'u', (byte)'-', (byte)'u', (byte)'a', // ru-ua
(byte)'r', (byte)'w', (byte)'-', (byte)'r', (byte)'w', // rw, rw-rw
(byte)'r', (byte)'w', (byte)'k', (byte)'-', (byte)'t', (byte)'z', // rwk, rwk-tz
(byte)'s', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // sa, sa-in
(byte)'s', (byte)'a', (byte)'h', (byte)'-', (byte)'r', (byte)'u', // sah, sah-ru
(byte)'s', (byte)'a', (byte)'q', (byte)'-', (byte)'k', (byte)'e', // saq, saq-ke
(byte)'s', (byte)'b', (byte)'p', (byte)'-', (byte)'t', (byte)'z', // sbp, sbp-tz
(byte)'s', (byte)'d', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'p', (byte)'k', // sd, sd-arab, sd-arab-pk
(byte)'s', (byte)'d', (byte)'-', (byte)'d', (byte)'e', (byte)'v', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // sd-deva, sd-deva-in
(byte)'s', (byte)'e', (byte)'-', (byte)'f', (byte)'i', // se, se-fi
(byte)'s', (byte)'e', (byte)'-', (byte)'n', (byte)'o', // se-no
(byte)'s', (byte)'e', (byte)'-', (byte)'s', (byte)'e', // se-se
(byte)'s', (byte)'e', (byte)'h', (byte)'-', (byte)'m', (byte)'z', // seh, seh-mz
(byte)'s', (byte)'e', (byte)'s', (byte)'-', (byte)'m', (byte)'l', // ses, ses-ml
(byte)'s', (byte)'g', (byte)'-', (byte)'c', (byte)'f', // sg, sg-cf
(byte)'s', (byte)'h', (byte)'i', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'a', // shi, shi-latn, shi-latn-ma
(byte)'s', (byte)'h', (byte)'i', (byte)'-', (byte)'t', (byte)'f', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'a', // shi-tfng, shi-tfng-ma
(byte)'s', (byte)'i', (byte)'-', (byte)'l', (byte)'k', // si, si-lk
(byte)'s', (byte)'k', (byte)'-', (byte)'s', (byte)'k', // sk, sk-sk
(byte)'s', (byte)'l', (byte)'-', (byte)'s', (byte)'i', // sl, sl-si
(byte)'s', (byte)'m', (byte)'a', (byte)'-', (byte)'n', (byte)'o', // sma, sma-no
(byte)'s', (byte)'m', (byte)'a', (byte)'-', (byte)'s', (byte)'e', // sma-se
(byte)'s', (byte)'m', (byte)'j', (byte)'-', (byte)'n', (byte)'o', // smj, smj-no
(byte)'s', (byte)'m', (byte)'j', (byte)'-', (byte)'s', (byte)'e', // smj-se
(byte)'s', (byte)'m', (byte)'n', (byte)'-', (byte)'f', (byte)'i', // smn, smn-fi
(byte)'s', (byte)'m', (byte)'s', (byte)'-', (byte)'f', (byte)'i', // sms, sms-fi
(byte)'s', (byte)'n', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'z', (byte)'w', // sn, sn-latn, sn-latn-zw
(byte)'s', (byte)'o', (byte)'-', (byte)'d', (byte)'j', // so, so-dj
(byte)'s', (byte)'o', (byte)'-', (byte)'e', (byte)'t', // so-et
(byte)'s', (byte)'o', (byte)'-', (byte)'k', (byte)'e', // so-ke
(byte)'s', (byte)'o', (byte)'-', (byte)'s', (byte)'o', // so-so
(byte)'s', (byte)'q', (byte)'-', (byte)'a', (byte)'l', // sq, sq-al
(byte)'s', (byte)'q', (byte)'-', (byte)'m', (byte)'k', // sq-mk
(byte)'s', (byte)'q', (byte)'-', (byte)'x', (byte)'k', // sq-xk
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'b', (byte)'a', // sr, sr-cyrl, sr-cyrl-ba
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'c', (byte)'s', // sr-cyrl-cs
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'m', (byte)'e', // sr-cyrl-me
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'r', (byte)'s', // sr-cyrl-rs
(byte)'s', (byte)'r', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'x', (byte)'k', // sr-cyrl-xk
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'b', (byte)'a', // sr-latn, sr-latn-ba
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'c', (byte)'s', // sr-latn-cs
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'e', // sr-latn-me
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'r', (byte)'s', // sr-latn-rs
(byte)'s', (byte)'r', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'x', (byte)'k', // sr-latn-xk
(byte)'s', (byte)'s', (byte)'-', (byte)'s', (byte)'z', // ss, ss-sz
(byte)'s', (byte)'s', (byte)'-', (byte)'z', (byte)'a', // ss-za
(byte)'s', (byte)'s', (byte)'y', (byte)'-', (byte)'e', (byte)'r', // ssy, ssy-er
(byte)'s', (byte)'t', (byte)'-', (byte)'l', (byte)'s', // st, st-ls
(byte)'s', (byte)'t', (byte)'-', (byte)'z', (byte)'a', // st-za
(byte)'s', (byte)'v', (byte)'-', (byte)'a', (byte)'x', // sv, sv-ax
(byte)'s', (byte)'v', (byte)'-', (byte)'f', (byte)'i', // sv-fi
(byte)'s', (byte)'v', (byte)'-', (byte)'s', (byte)'e', // sv-se
(byte)'s', (byte)'w', (byte)'-', (byte)'c', (byte)'d', // sw, sw-cd
(byte)'s', (byte)'w', (byte)'-', (byte)'k', (byte)'e', // sw-ke
(byte)'s', (byte)'w', (byte)'-', (byte)'t', (byte)'z', // sw-tz
(byte)'s', (byte)'w', (byte)'-', (byte)'u', (byte)'g', // sw-ug
(byte)'s', (byte)'w', (byte)'c', (byte)'-', (byte)'c', (byte)'d', // swc, swc-cd
(byte)'s', (byte)'y', (byte)'r', (byte)'-', (byte)'s', (byte)'y', // syr, syr-sy
(byte)'t', (byte)'a', (byte)'-', (byte)'i', (byte)'n', // ta, ta-in
(byte)'t', (byte)'a', (byte)'-', (byte)'l', (byte)'k', // ta-lk
(byte)'t', (byte)'a', (byte)'-', (byte)'m', (byte)'y', // ta-my
(byte)'t', (byte)'a', (byte)'-', (byte)'s', (byte)'g', // ta-sg
(byte)'t', (byte)'e', (byte)'-', (byte)'i', (byte)'n', // te, te-in
(byte)'t', (byte)'e', (byte)'o', (byte)'-', (byte)'k', (byte)'e', // teo, teo-ke
(byte)'t', (byte)'e', (byte)'o', (byte)'-', (byte)'u', (byte)'g', // teo-ug
(byte)'t', (byte)'g', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'t', (byte)'j', // tg, tg-cyrl, tg-cyrl-tj
(byte)'t', (byte)'h', (byte)'-', (byte)'t', (byte)'h', // th, th-th
(byte)'t', (byte)'i', (byte)'-', (byte)'e', (byte)'r', // ti, ti-er
(byte)'t', (byte)'i', (byte)'-', (byte)'e', (byte)'t', // ti-et
(byte)'t', (byte)'i', (byte)'g', (byte)'-', (byte)'e', (byte)'r', // tig, tig-er
(byte)'t', (byte)'k', (byte)'-', (byte)'t', (byte)'m', // tk, tk-tm
(byte)'t', (byte)'n', (byte)'-', (byte)'b', (byte)'w', // tn, tn-bw
(byte)'t', (byte)'n', (byte)'-', (byte)'z', (byte)'a', // tn-za
(byte)'t', (byte)'o', (byte)'-', (byte)'t', (byte)'o', // to, to-to
(byte)'t', (byte)'r', (byte)'-', (byte)'c', (byte)'y', // tr, tr-cy
(byte)'t', (byte)'r', (byte)'-', (byte)'t', (byte)'r', // tr-tr
(byte)'t', (byte)'s', (byte)'-', (byte)'z', (byte)'a', // ts, ts-za
(byte)'t', (byte)'t', (byte)'-', (byte)'r', (byte)'u', // tt, tt-ru
(byte)'t', (byte)'w', (byte)'q', (byte)'-', (byte)'n', (byte)'e', // twq, twq-ne
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'m', (byte)'a', // tzm, tzm-arab, tzm-arab-ma
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'d', (byte)'z', // tzm-latn, tzm-latn-dz
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'m', (byte)'a', // tzm-latn-ma
(byte)'t', (byte)'z', (byte)'m', (byte)'-', (byte)'t', (byte)'f', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'a', // tzm-tfng, tzm-tfng-ma
(byte)'u', (byte)'g', (byte)'-', (byte)'c', (byte)'n', // ug, ug-cn
(byte)'u', (byte)'k', (byte)'-', (byte)'u', (byte)'a', // uk, uk-ua
(byte)'u', (byte)'r', (byte)'-', (byte)'i', (byte)'n', // ur, ur-in
(byte)'u', (byte)'r', (byte)'-', (byte)'p', (byte)'k', // ur-pk
(byte)'u', (byte)'z', (byte)'-', (byte)'a', (byte)'r', (byte)'a', (byte)'b', (byte)'-', (byte)'a', (byte)'f', // uz, uz-arab, uz-arab-af
(byte)'u', (byte)'z', (byte)'-', (byte)'c', (byte)'y', (byte)'r', (byte)'l', (byte)'-', (byte)'u', (byte)'z', // uz-cyrl, uz-cyrl-uz
(byte)'u', (byte)'z', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'u', (byte)'z', // uz-latn, uz-latn-uz
(byte)'v', (byte)'a', (byte)'i', (byte)'-', (byte)'l', (byte)'a', (byte)'t', (byte)'n', (byte)'-', (byte)'l', (byte)'r', // vai, vai-latn, vai-latn-lr
(byte)'v', (byte)'a', (byte)'i', (byte)'-', (byte)'v', (byte)'a', (byte)'i', (byte)'i', (byte)'-', (byte)'l', (byte)'r', // vai-vaii, vai-vaii-lr
(byte)'v', (byte)'e', (byte)'-', (byte)'z', (byte)'a', // ve, ve-za
(byte)'v', (byte)'i', (byte)'-', (byte)'v', (byte)'n', // vi, vi-vn
(byte)'v', (byte)'o', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // vo, vo-001
(byte)'v', (byte)'u', (byte)'n', (byte)'-', (byte)'t', (byte)'z', // vun, vun-tz
(byte)'w', (byte)'a', (byte)'e', (byte)'-', (byte)'c', (byte)'h', // wae, wae-ch
(byte)'w', (byte)'a', (byte)'l', (byte)'-', (byte)'e', (byte)'t', // wal, wal-et
(byte)'w', (byte)'o', (byte)'-', (byte)'s', (byte)'n', // wo, wo-sn
(byte)'x', (byte)'-', (byte)'i', (byte)'v', (byte)'_', (byte)'m', (byte)'a', (byte)'t', (byte)'h', (byte)'a', (byte)'n', // x-iv_mathan
(byte)'x', (byte)'h', (byte)'-', (byte)'z', (byte)'a', // xh, xh-za
(byte)'x', (byte)'o', (byte)'g', (byte)'-', (byte)'u', (byte)'g', // xog, xog-ug
(byte)'y', (byte)'a', (byte)'v', (byte)'-', (byte)'c', (byte)'m', // yav, yav-cm
(byte)'y', (byte)'i', (byte)'-', (byte)'0', (byte)'0', (byte)'1', // yi, yi-001
(byte)'y', (byte)'o', (byte)'-', (byte)'b', (byte)'j', // yo, yo-bj
(byte)'y', (byte)'o', (byte)'-', (byte)'n', (byte)'g', // yo-ng
(byte)'y', (byte)'u', (byte)'e', (byte)'-', (byte)'h', (byte)'k', // yue, yue-hk
(byte)'z', (byte)'g', (byte)'h', (byte)'-', (byte)'t', (byte)'f', (byte)'n', (byte)'g', (byte)'-', (byte)'m', (byte)'a', // zgh, zgh-tfng, zgh-tfng-ma
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'h', (byte)'s', // zh, zh-chs
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'h', (byte)'t', // zh-cht
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'n', (byte)'_', (byte)'p', (byte)'h', (byte)'o', (byte)'n', (byte)'e', (byte)'b', // zh-cn, zh-cn_phoneb
(byte)'z', (byte)'h', (byte)'-', (byte)'c', (byte)'n', (byte)'_', (byte)'s', (byte)'t', (byte)'r', (byte)'o', (byte)'k', (byte)'e', // zh-cn_stroke
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'a', (byte)'n', (byte)'s', (byte)'-', (byte)'h', (byte)'k', // zh-hans, zh-hans-hk
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'a', (byte)'n', (byte)'s', (byte)'-', (byte)'m', (byte)'o', // zh-hans-mo
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'a', (byte)'n', (byte)'t', // zh-hant
(byte)'z', (byte)'h', (byte)'-', (byte)'h', (byte)'k', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // zh-hk, zh-hk_radstr
(byte)'z', (byte)'h', (byte)'-', (byte)'m', (byte)'o', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // zh-mo, zh-mo_radstr
(byte)'z', (byte)'h', (byte)'-', (byte)'m', (byte)'o', (byte)'_', (byte)'s', (byte)'t', (byte)'r', (byte)'o', (byte)'k', (byte)'e', // zh-mo_stroke
(byte)'z', (byte)'h', (byte)'-', (byte)'s', (byte)'g', (byte)'_', (byte)'p', (byte)'h', (byte)'o', (byte)'n', (byte)'e', (byte)'b', // zh-sg, zh-sg_phoneb
(byte)'z', (byte)'h', (byte)'-', (byte)'s', (byte)'g', (byte)'_', (byte)'s', (byte)'t', (byte)'r', (byte)'o', (byte)'k', (byte)'e', // zh-sg_stroke
(byte)'z', (byte)'h', (byte)'-', (byte)'t', (byte)'w', (byte)'_', (byte)'p', (byte)'r', (byte)'o', (byte)'n', (byte)'u', (byte)'n', // zh-tw, zh-tw_pronun
(byte)'z', (byte)'h', (byte)'-', (byte)'t', (byte)'w', (byte)'_', (byte)'r', (byte)'a', (byte)'d', (byte)'s', (byte)'t', (byte)'r', // zh-tw_radstr
(byte)'z', (byte)'u', (byte)'-', (byte)'z', (byte)'a', // zu, zu-za
};
private const int CulturesCount = 864;
// Table which holds index into LocalesNames data and length of the string for each locale
// Values are binary searched and need to be sorted alphabetically
//
// value = index << 4 | length
// byte0 = value >> 8; byte1 = value & 0xff
private static ReadOnlySpan<byte> LocalesNamesIndexes => new byte[CulturesCount * 2]
{
0, 2, // aa
0, 5, // aa-dj
0, 85, // aa-er
0, 165, // aa-et
0, 242, // af
0, 245, // af-na
1, 69, // af-za
1, 147, // agq
1, 150, // agq-cm
1, 242, // ak
1, 245, // ak-gh
2, 66, // am
2, 69, // am-et
2, 146, // ar
2, 150, // ar-001
2, 245, // ar-ae
3, 69, // ar-bh
3, 149, // ar-dj
3, 229, // ar-dz
4, 53, // ar-eg
4, 133, // ar-er
4, 213, // ar-il
5, 37, // ar-iq
5, 117, // ar-jo
5, 197, // ar-km
6, 21, // ar-kw
6, 101, // ar-lb
6, 181, // ar-ly
7, 5, // ar-ma
7, 85, // ar-mr
7, 165, // ar-om
7, 245, // ar-ps
8, 69, // ar-qa
8, 149, // ar-sa
8, 229, // ar-sd
9, 53, // ar-so
9, 133, // ar-ss
9, 213, // ar-sy
10, 37, // ar-td
10, 117, // ar-tn
10, 197, // ar-ye
11, 19, // arn
11, 22, // arn-cl
11, 114, // as
11, 117, // as-in
11, 195, // asa
11, 198, // asa-tz
12, 35, // ast
12, 38, // ast-es
12, 130, // az
12, 135, // az-cyrl
12, 138, // az-cyrl-az
13, 39, // az-latn
13, 42, // az-latn-az
13, 194, // ba
13, 197, // ba-ru
14, 19, // bas
14, 22, // bas-cm
14, 114, // be
14, 117, // be-by
14, 195, // bem
14, 198, // bem-zm
15, 35, // bez
15, 38, // bez-tz
15, 130, // bg
15, 133, // bg-bg
15, 211, // bin
15, 214, // bin-ng
16, 50, // bm
16, 55, // bm-latn
16, 58, // bm-latn-ml
16, 210, // bn
16, 213, // bn-bd
17, 37, // bn-in
17, 114, // bo
17, 117, // bo-cn
17, 197, // bo-in
18, 18, // br
18, 21, // br-fr
18, 99, // brx
18, 102, // brx-in
18, 194, // bs
18, 199, // bs-cyrl
18, 202, // bs-cyrl-ba
19, 103, // bs-latn
19, 106, // bs-latn-ba
20, 3, // byn
20, 6, // byn-er
20, 98, // ca
20, 101, // ca-ad
20, 181, // ca-es
20, 190, // ca-es-valencia
21, 149, // ca-fr
21, 229, // ca-it
22, 50, // ce
22, 53, // ce-ru
22, 131, // cgg
22, 134, // cgg-ug
22, 227, // chr
22, 232, // chr-cher
22, 235, // chr-cher-us
23, 146, // co
23, 149, // co-fr
23, 226, // cs
23, 229, // cs-cz
24, 50, // cu
24, 53, // cu-ru
24, 130, // cy
24, 133, // cy-gb
24, 210, // da
24, 213, // da-dk
25, 37, // da-gl
25, 115, // dav
25, 118, // dav-ke
25, 210, // de
25, 213, // de-at
26, 37, // de-be
26, 117, // de-ch
26, 197, // de-de
26, 204, // de-de_phoneb
27, 133, // de-it
27, 213, // de-li
28, 37, // de-lu
28, 115, // dje
28, 118, // dje-ne
28, 211, // dsb
28, 214, // dsb-de
29, 51, // dua
29, 54, // dua-cm
29, 146, // dv
29, 149, // dv-mv
29, 227, // dyo
29, 230, // dyo-sn
30, 66, // dz
30, 69, // dz-bt
30, 147, // ebu
30, 150, // ebu-ke
30, 242, // ee
30, 245, // ee-gh
31, 69, // ee-tg
31, 146, // el
31, 149, // el-cy
31, 229, // el-gr
32, 50, // en
32, 54, // en-001
32, 150, // en-029
32, 246, // en-150
33, 85, // en-ag
33, 165, // en-ai
33, 245, // en-as
34, 69, // en-at
34, 149, // en-au
34, 229, // en-bb
35, 53, // en-be
35, 133, // en-bi
35, 213, // en-bm
36, 37, // en-bs
36, 117, // en-bw
36, 197, // en-bz
37, 21, // en-ca
37, 101, // en-cc
37, 181, // en-ch
38, 5, // en-ck
38, 85, // en-cm
38, 165, // en-cx
38, 245, // en-cy
39, 69, // en-de
39, 149, // en-dk
39, 229, // en-dm
40, 53, // en-er
40, 133, // en-fi
40, 213, // en-fj
41, 37, // en-fk
41, 117, // en-fm
41, 197, // en-gb
42, 21, // en-gd
42, 101, // en-gg
42, 181, // en-gh
43, 5, // en-gi
43, 85, // en-gm
43, 165, // en-gu
43, 245, // en-gy
44, 69, // en-hk
44, 149, // en-id
44, 229, // en-ie
45, 53, // en-il
45, 133, // en-im
45, 213, // en-in
46, 37, // en-io
46, 117, // en-je
46, 197, // en-jm
47, 21, // en-ke
47, 101, // en-ki
47, 181, // en-kn
48, 5, // en-ky
48, 85, // en-lc
48, 165, // en-lr
48, 245, // en-ls
49, 69, // en-mg
49, 149, // en-mh
49, 229, // en-mo
50, 53, // en-mp
50, 133, // en-ms
50, 213, // en-mt
51, 37, // en-mu
51, 117, // en-mw
51, 197, // en-my
52, 21, // en-na
52, 101, // en-nf
52, 181, // en-ng
53, 5, // en-nl
53, 85, // en-nr
53, 165, // en-nu
53, 245, // en-nz
54, 69, // en-pg
54, 149, // en-ph
54, 229, // en-pk
55, 53, // en-pn
55, 133, // en-pr
55, 213, // en-pw
56, 37, // en-rw
56, 117, // en-sb
56, 197, // en-sc
57, 21, // en-sd
57, 101, // en-se
57, 181, // en-sg
58, 5, // en-sh
58, 85, // en-si
58, 165, // en-sl
58, 245, // en-ss
59, 69, // en-sx
59, 149, // en-sz
59, 229, // en-tc
60, 53, // en-tk
60, 133, // en-to
60, 213, // en-tt
61, 37, // en-tv
61, 117, // en-tz
61, 197, // en-ug
62, 21, // en-um
62, 101, // en-us
62, 181, // en-vc
63, 5, // en-vg
63, 85, // en-vi
63, 165, // en-vu
63, 245, // en-ws
64, 69, // en-za
64, 149, // en-zm
64, 229, // en-zw
65, 50, // eo
65, 54, // eo-001
65, 146, // es
65, 150, // es-419
65, 245, // es-ar
66, 69, // es-bo
66, 149, // es-br
66, 229, // es-cl
67, 53, // es-co
67, 133, // es-cr
67, 213, // es-cu
68, 37, // es-do
68, 117, // es-ec
68, 197, // es-es
68, 204, // es-es_tradnl
69, 133, // es-gq
69, 213, // es-gt
70, 37, // es-hn
70, 117, // es-mx
70, 197, // es-ni
71, 21, // es-pa
71, 101, // es-pe
71, 181, // es-ph
72, 5, // es-pr
72, 85, // es-py
72, 165, // es-sv
72, 245, // es-us
73, 69, // es-uy
73, 149, // es-ve
73, 226, // et
73, 229, // et-ee
74, 50, // eu
74, 53, // eu-es
74, 131, // ewo
74, 134, // ewo-cm
74, 226, // fa
74, 229, // fa-ir
75, 50, // ff
75, 53, // ff-cm
75, 133, // ff-gn
75, 215, // ff-latn
75, 218, // ff-latn-sn
76, 117, // ff-mr
76, 197, // ff-ng
77, 18, // fi
77, 21, // fi-fi
77, 99, // fil
77, 102, // fil-ph
77, 194, // fo
77, 197, // fo-dk
78, 21, // fo-fo
78, 98, // fr
78, 102, // fr-029
78, 197, // fr-be
79, 21, // fr-bf
79, 101, // fr-bi
79, 181, // fr-bj
80, 5, // fr-bl
80, 85, // fr-ca
80, 165, // fr-cd
80, 245, // fr-cf
81, 69, // fr-cg
81, 149, // fr-ch
81, 229, // fr-ci
82, 53, // fr-cm
82, 133, // fr-dj
82, 213, // fr-dz
83, 37, // fr-fr
83, 117, // fr-ga
83, 197, // fr-gf
84, 21, // fr-gn
84, 101, // fr-gp
84, 181, // fr-gq
85, 5, // fr-ht
85, 85, // fr-km
85, 165, // fr-lu
85, 245, // fr-ma
86, 69, // fr-mc
86, 149, // fr-mf
86, 229, // fr-mg
87, 53, // fr-ml
87, 133, // fr-mq
87, 213, // fr-mr
88, 37, // fr-mu
88, 117, // fr-nc
88, 197, // fr-ne
89, 21, // fr-pf
89, 101, // fr-pm
89, 181, // fr-re
90, 5, // fr-rw
90, 85, // fr-sc
90, 165, // fr-sn
90, 245, // fr-sy
91, 69, // fr-td
91, 149, // fr-tg
91, 229, // fr-tn
92, 53, // fr-vu
92, 133, // fr-wf
92, 213, // fr-yt
93, 35, // fur
93, 38, // fur-it
93, 130, // fy
93, 133, // fy-nl
93, 210, // ga
93, 213, // ga-ie
94, 34, // gd
94, 37, // gd-gb
94, 114, // gl
94, 117, // gl-es
94, 194, // gn
94, 197, // gn-py
95, 19, // gsw
95, 22, // gsw-ch
95, 118, // gsw-fr
95, 214, // gsw-li
96, 50, // gu
96, 53, // gu-in
96, 131, // guz
96, 134, // guz-ke
96, 226, // gv
96, 229, // gv-im
97, 50, // ha
97, 55, // ha-latn
97, 58, // ha-latn-gh
97, 218, // ha-latn-ne
98, 122, // ha-latn-ng
99, 19, // haw
99, 22, // haw-us
99, 114, // he
99, 117, // he-il
99, 194, // hi
99, 197, // hi-in
100, 18, // hr
100, 21, // hr-ba
100, 101, // hr-hr
100, 179, // hsb
100, 182, // hsb-de
101, 18, // hu
101, 21, // hu-hu
101, 28, // hu-hu_technl
101, 210, // hy
101, 213, // hy-am
102, 34, // ia
102, 38, // ia-001
102, 133, // ia-fr
102, 211, // ibb
102, 214, // ibb-ng
103, 50, // id
103, 53, // id-id
103, 130, // ig
103, 133, // ig-ng
103, 210, // ii
103, 213, // ii-cn
104, 34, // is
104, 37, // is-is
104, 114, // it
104, 117, // it-ch
104, 197, // it-it
105, 21, // it-sm
105, 98, // iu
105, 103, // iu-cans
105, 106, // iu-cans-ca
106, 7, // iu-latn
106, 10, // iu-latn-ca
106, 162, // ja
106, 165, // ja-jp
106, 172, // ja-jp_radstr
107, 99, // jgo
107, 102, // jgo-cm
107, 195, // jmc
107, 198, // jmc-tz
108, 34, // jv
108, 39, // jv-java
108, 42, // jv-java-id
108, 199, // jv-latn
108, 202, // jv-latn-id
109, 98, // ka
109, 101, // ka-ge
109, 108, // ka-ge_modern
110, 35, // kab
110, 38, // kab-dz
110, 131, // kam
110, 134, // kam-ke
110, 227, // kde
110, 230, // kde-tz
111, 67, // kea
111, 70, // kea-cv
111, 163, // khq
111, 166, // khq-ml
112, 2, // ki
112, 5, // ki-ke
112, 82, // kk
112, 85, // kk-kz
112, 163, // kkj
112, 166, // kkj-cm
113, 2, // kl
113, 5, // kl-gl
113, 83, // kln
113, 86, // kln-ke
113, 178, // km
113, 181, // km-kh
114, 2, // kn
114, 5, // kn-in
114, 82, // ko
114, 85, // ko-kp
114, 165, // ko-kr
114, 243, // kok
114, 246, // kok-in
115, 82, // kr
115, 85, // kr-ng
115, 162, // ks
115, 167, // ks-arab
115, 170, // ks-arab-in
116, 71, // ks-deva
116, 74, // ks-deva-in
116, 227, // ksb
116, 230, // ksb-tz
117, 67, // ksf
117, 70, // ksf-cm
117, 163, // ksh
117, 166, // ksh-de
118, 2, // ku
118, 7, // ku-arab
118, 10, // ku-arab-iq
118, 170, // ku-arab-ir
119, 66, // kw
119, 69, // kw-gb
119, 146, // ky
119, 149, // ky-kg
119, 226, // la
119, 230, // la-001
120, 67, // lag
120, 70, // lag-tz
120, 162, // lb
120, 165, // lb-lu
120, 242, // lg
120, 245, // lg-ug
121, 67, // lkt
121, 70, // lkt-us
121, 162, // ln
121, 165, // ln-ao
121, 245, // ln-cd
122, 69, // ln-cf
122, 149, // ln-cg
122, 226, // lo
122, 229, // lo-la
123, 51, // lrc
123, 54, // lrc-iq
123, 150, // lrc-ir
123, 242, // lt
123, 245, // lt-lt
124, 66, // lu
124, 69, // lu-cd
124, 147, // luo
124, 150, // luo-ke
124, 243, // luy
124, 246, // luy-ke
125, 82, // lv
125, 85, // lv-lv
125, 163, // mas
125, 166, // mas-ke
126, 6, // mas-tz
126, 99, // mer
126, 102, // mer-ke
126, 195, // mfe
126, 198, // mfe-mu
127, 34, // mg
127, 37, // mg-mg
127, 115, // mgh
127, 118, // mgh-mz
127, 211, // mgo
127, 214, // mgo-cm
128, 50, // mi
128, 53, // mi-nz
128, 130, // mk
128, 133, // mk-mk
128, 210, // ml
128, 213, // ml-in
129, 34, // mn
129, 39, // mn-cyrl
129, 149, // mn-mn
129, 231, // mn-mong
129, 234, // mn-mong-cn
130, 138, // mn-mong-mn
131, 35, // mni
131, 38, // mni-in
131, 131, // moh
131, 134, // moh-ca
131, 226, // mr
131, 229, // mr-in
132, 50, // ms
132, 53, // ms-bn
132, 133, // ms-my
132, 213, // ms-sg
133, 34, // mt
133, 37, // mt-mt
133, 115, // mua
133, 118, // mua-cm
133, 210, // my
133, 213, // my-mm
134, 35, // mzn
134, 38, // mzn-ir
134, 131, // naq
134, 134, // naq-na
134, 226, // nb
134, 229, // nb-no
135, 53, // nb-sj
135, 130, // nd
135, 133, // nd-zw
135, 211, // nds
135, 214, // nds-de
136, 54, // nds-nl
136, 146, // ne
136, 149, // ne-in
136, 229, // ne-np
137, 50, // nl
137, 53, // nl-aw
137, 133, // nl-be
137, 213, // nl-bq
138, 37, // nl-cw
138, 117, // nl-nl
138, 197, // nl-sr
139, 21, // nl-sx
139, 99, // nmg
139, 102, // nmg-cm
139, 194, // nn
139, 197, // nn-no
140, 19, // nnh
140, 22, // nnh-cm
140, 114, // no
140, 147, // nqo
140, 150, // nqo-gn
140, 242, // nr
140, 245, // nr-za
141, 67, // nso
141, 70, // nso-za
141, 163, // nus
141, 166, // nus-ss
142, 3, // nyn
142, 6, // nyn-ug
142, 98, // oc
142, 101, // oc-fr
142, 178, // om
142, 181, // om-et
143, 5, // om-ke
143, 82, // or
143, 85, // or-in
143, 162, // os
143, 165, // os-ge
143, 245, // os-ru
144, 66, // pa
144, 71, // pa-arab
144, 74, // pa-arab-pk
144, 229, // pa-in
145, 51, // pap
145, 55, // pap-029
145, 162, // pl
145, 165, // pl-pl
145, 243, // prg
145, 247, // prg-001
146, 99, // prs
146, 102, // prs-af
146, 194, // ps
146, 197, // ps-af
147, 18, // pt
147, 21, // pt-ao
147, 101, // pt-br
147, 181, // pt-ch
148, 5, // pt-cv
148, 85, // pt-gq
148, 165, // pt-gw
148, 245, // pt-lu
149, 69, // pt-mo
149, 149, // pt-mz
149, 229, // pt-pt
150, 53, // pt-st
150, 133, // pt-tl
150, 221, // qps-latn-x-sh
151, 168, // qps-ploc
151, 169, // qps-ploca
152, 57, // qps-plocm
152, 195, // quc
152, 200, // quc-latn
152, 203, // quc-latn-gt
153, 115, // quz
153, 118, // quz-bo
153, 214, // quz-ec
154, 54, // quz-pe
154, 146, // rm
154, 149, // rm-ch
154, 226, // rn
154, 229, // rn-bi
155, 50, // ro
155, 53, // ro-md
155, 133, // ro-ro
155, 211, // rof
155, 214, // rof-tz
156, 50, // ru
156, 53, // ru-by
156, 133, // ru-kg
156, 213, // ru-kz
157, 37, // ru-md
157, 117, // ru-ru
157, 197, // ru-ua
158, 18, // rw
158, 21, // rw-rw
158, 99, // rwk
158, 102, // rwk-tz
158, 194, // sa
158, 197, // sa-in
159, 19, // sah
159, 22, // sah-ru
159, 115, // saq
159, 118, // saq-ke
159, 211, // sbp
159, 214, // sbp-tz
160, 50, // sd
160, 55, // sd-arab
160, 58, // sd-arab-pk
160, 215, // sd-deva
160, 218, // sd-deva-in
161, 114, // se
161, 117, // se-fi
161, 197, // se-no
162, 21, // se-se
162, 99, // seh
162, 102, // seh-mz
162, 195, // ses
162, 198, // ses-ml
163, 34, // sg
163, 37, // sg-cf
163, 115, // shi
163, 120, // shi-latn
163, 123, // shi-latn-ma
164, 40, // shi-tfng
164, 43, // shi-tfng-ma
164, 210, // si
164, 213, // si-lk
165, 34, // sk
165, 37, // sk-sk
165, 114, // sl
165, 117, // sl-si
165, 195, // sma
165, 198, // sma-no
166, 38, // sma-se
166, 131, // smj
166, 134, // smj-no
166, 230, // smj-se
167, 67, // smn
167, 70, // smn-fi
167, 163, // sms
167, 166, // sms-fi
168, 2, // sn
168, 7, // sn-latn
168, 10, // sn-latn-zw
168, 162, // so
168, 165, // so-dj
168, 245, // so-et
169, 69, // so-ke
169, 149, // so-so
169, 226, // sq
169, 229, // sq-al
170, 53, // sq-mk
170, 133, // sq-xk
170, 210, // sr
170, 215, // sr-cyrl
170, 218, // sr-cyrl-ba
171, 122, // sr-cyrl-cs
172, 26, // sr-cyrl-me
172, 186, // sr-cyrl-rs
173, 90, // sr-cyrl-xk
173, 247, // sr-latn
173, 250, // sr-latn-ba
174, 154, // sr-latn-cs
175, 58, // sr-latn-me
175, 218, // sr-latn-rs
176, 122, // sr-latn-xk
177, 18, // ss
177, 21, // ss-sz
177, 101, // ss-za
177, 179, // ssy
177, 182, // ssy-er
178, 18, // st
178, 21, // st-ls
178, 101, // st-za
178, 178, // sv
178, 181, // sv-ax
179, 5, // sv-fi
179, 85, // sv-se
179, 162, // sw
179, 165, // sw-cd
179, 245, // sw-ke
180, 69, // sw-tz
180, 149, // sw-ug
180, 227, // swc
180, 230, // swc-cd
181, 67, // syr
181, 70, // syr-sy
181, 162, // ta
181, 165, // ta-in
181, 245, // ta-lk
182, 69, // ta-my
182, 149, // ta-sg
182, 226, // te
182, 229, // te-in
183, 51, // teo
183, 54, // teo-ke
183, 150, // teo-ug
183, 242, // tg
183, 247, // tg-cyrl
183, 250, // tg-cyrl-tj
184, 146, // th
184, 149, // th-th
184, 226, // ti
184, 229, // ti-er
185, 53, // ti-et
185, 131, // tig
185, 134, // tig-er
185, 226, // tk
185, 229, // tk-tm
186, 50, // tn
186, 53, // tn-bw
186, 133, // tn-za
186, 210, // to
186, 213, // to-to
187, 34, // tr
187, 37, // tr-cy
187, 117, // tr-tr
187, 194, // ts
187, 197, // ts-za
188, 18, // tt
188, 21, // tt-ru
188, 99, // twq
188, 102, // twq-ne
188, 195, // tzm
188, 200, // tzm-arab
188, 203, // tzm-arab-ma
189, 120, // tzm-latn
189, 123, // tzm-latn-dz
190, 43, // tzm-latn-ma
190, 216, // tzm-tfng
190, 219, // tzm-tfng-ma
191, 130, // ug
191, 133, // ug-cn
191, 210, // uk
191, 213, // uk-ua
192, 34, // ur
192, 37, // ur-in
192, 117, // ur-pk
192, 194, // uz
192, 199, // uz-arab
192, 202, // uz-arab-af
193, 103, // uz-cyrl
193, 106, // uz-cyrl-uz
194, 7, // uz-latn
194, 10, // uz-latn-uz
194, 163, // vai
194, 168, // vai-latn
194, 171, // vai-latn-lr
195, 88, // vai-vaii
195, 91, // vai-vaii-lr
196, 2, // ve
196, 5, // ve-za
196, 82, // vi
196, 85, // vi-vn
196, 162, // vo
196, 166, // vo-001
197, 3, // vun
197, 6, // vun-tz
197, 99, // wae
197, 102, // wae-ch
197, 195, // wal
197, 198, // wal-et
198, 34, // wo
198, 37, // wo-sn
198, 123, // x-iv_mathan
199, 34, // xh
199, 37, // xh-za
199, 115, // xog
199, 118, // xog-ug
199, 211, // yav
199, 214, // yav-cm
200, 50, // yi
200, 54, // yi-001
200, 146, // yo
200, 149, // yo-bj
200, 229, // yo-ng
201, 51, // yue
201, 54, // yue-hk
201, 147, // zgh
201, 152, // zgh-tfng
201, 155, // zgh-tfng-ma
202, 66, // zh
202, 70, // zh-chs
202, 166, // zh-cht
203, 5, // zh-cn
203, 12, // zh-cn_phoneb
203, 204, // zh-cn_stroke
204, 135, // zh-hans
204, 138, // zh-hans-hk
205, 42, // zh-hans-mo
205, 199, // zh-hant
206, 53, // zh-hk
206, 60, // zh-hk_radstr
206, 245, // zh-mo
206, 252, // zh-mo_radstr
207, 188, // zh-mo_stroke
208, 117, // zh-sg
208, 124, // zh-sg_phoneb
209, 60, // zh-sg_stroke
209, 245, // zh-tw
209, 252, // zh-tw_pronun
210, 188, // zh-tw_radstr
211, 114, // zu
211, 117, // zu-za
};
private const int LocaleLongestName = 14;
private const int LcidCount = 448;
private static ReadOnlySpan<byte> LcidToCultureNameIndices => new byte[LcidCount * 4]
{
0x00, 0x01, 0x02, 0x92, // ar
0x00, 0x02, 0x0f, 0x82, // bg
0x00, 0x03, 0x14, 0x62, // ca
0x00, 0x04, 0xca, 0x46, // zh-chs
0x00, 0x05, 0x17, 0xe2, // cs
0x00, 0x06, 0x18, 0xd2, // da
0x00, 0x07, 0x19, 0xd2, // de
0x00, 0x08, 0x1f, 0x92, // el
0x00, 0x09, 0x20, 0x32, // en
0x00, 0x0a, 0x41, 0x92, // es
0x00, 0x0b, 0x4d, 0x12, // fi
0x00, 0x0c, 0x4e, 0x62, // fr
0x00, 0x0d, 0x63, 0x72, // he
0x00, 0x0e, 0x65, 0x12, // hu
0x00, 0x0f, 0x68, 0x22, // is
0x00, 0x10, 0x68, 0x72, // it
0x00, 0x11, 0x6a, 0xa2, // ja
0x00, 0x12, 0x72, 0x52, // ko
0x00, 0x13, 0x89, 0x32, // nl
0x00, 0x14, 0x8c, 0x72, // no
0x00, 0x15, 0x91, 0xa2, // pl
0x00, 0x16, 0x93, 0x12, // pt
0x00, 0x17, 0x9a, 0x92, // rm
0x00, 0x18, 0x9b, 0x32, // ro
0x00, 0x19, 0x9c, 0x32, // ru
0x00, 0x1a, 0x64, 0x12, // hr
0x00, 0x1b, 0xa5, 0x22, // sk
0x00, 0x1c, 0xa9, 0xe2, // sq
0x00, 0x1d, 0xb2, 0xb2, // sv
0x00, 0x1e, 0xb8, 0x92, // th
0x00, 0x1f, 0xbb, 0x22, // tr
0x00, 0x20, 0xc0, 0x22, // ur
0x00, 0x21, 0x67, 0x32, // id
0x00, 0x22, 0xbf, 0xd2, // uk
0x00, 0x23, 0x0e, 0x72, // be
0x00, 0x24, 0xa5, 0x72, // sl
0x00, 0x25, 0x49, 0xe2, // et
0x00, 0x26, 0x7d, 0x52, // lv
0x00, 0x27, 0x7b, 0xf2, // lt
0x00, 0x28, 0xb7, 0xf2, // tg
0x00, 0x29, 0x4a, 0xe2, // fa
0x00, 0x2a, 0xc4, 0x52, // vi
0x00, 0x2b, 0x65, 0xd2, // hy
0x00, 0x2c, 0x0c, 0x82, // az
0x00, 0x2d, 0x4a, 0x32, // eu
0x00, 0x2e, 0x64, 0xb3, // hsb
0x00, 0x2f, 0x80, 0x82, // mk
0x00, 0x30, 0xb2, 0x12, // st
0x00, 0x31, 0xbb, 0xc2, // ts
0x00, 0x32, 0xba, 0x32, // tn
0x00, 0x33, 0xc4, 0x02, // ve
0x00, 0x34, 0xc7, 0x22, // xh
0x00, 0x35, 0xd3, 0x72, // zu
0x00, 0x36, 0x00, 0xf2, // af
0x00, 0x37, 0x6d, 0x62, // ka
0x00, 0x38, 0x4d, 0xc2, // fo
0x00, 0x39, 0x63, 0xc2, // hi
0x00, 0x3a, 0x85, 0x22, // mt
0x00, 0x3b, 0xa1, 0x72, // se
0x00, 0x3c, 0x5d, 0xd2, // ga
0x00, 0x3d, 0xc8, 0x32, // yi
0x00, 0x3e, 0x84, 0x32, // ms
0x00, 0x3f, 0x70, 0x52, // kk
0x00, 0x40, 0x77, 0x92, // ky
0x00, 0x41, 0xb3, 0xa2, // sw
0x00, 0x42, 0xb9, 0xe2, // tk
0x00, 0x43, 0xc0, 0xc2, // uz
0x00, 0x44, 0xbc, 0x12, // tt
0x00, 0x45, 0x10, 0xd2, // bn
0x00, 0x46, 0x90, 0x42, // pa
0x00, 0x47, 0x60, 0x32, // gu
0x00, 0x48, 0x8f, 0x52, // or
0x00, 0x49, 0xb5, 0xa2, // ta
0x00, 0x4a, 0xb6, 0xe2, // te
0x00, 0x4b, 0x72, 0x02, // kn
0x00, 0x4c, 0x80, 0xd2, // ml
0x00, 0x4d, 0x0b, 0x72, // as
0x00, 0x4e, 0x83, 0xe2, // mr
0x00, 0x4f, 0x9e, 0xc2, // sa
0x00, 0x50, 0x81, 0x22, // mn
0x00, 0x51, 0x11, 0x72, // bo
0x00, 0x52, 0x18, 0x82, // cy
0x00, 0x53, 0x71, 0xb2, // km
0x00, 0x54, 0x7a, 0xe2, // lo
0x00, 0x55, 0x85, 0xd2, // my
0x00, 0x56, 0x5e, 0x72, // gl
0x00, 0x57, 0x72, 0xf3, // kok
0x00, 0x58, 0x83, 0x23, // mni
0x00, 0x59, 0xa0, 0x32, // sd
0x00, 0x5a, 0xb5, 0x43, // syr
0x00, 0x5b, 0xa4, 0xd2, // si
0x00, 0x5c, 0x16, 0xe3, // chr
0x00, 0x5d, 0x69, 0x62, // iu
0x00, 0x5e, 0x02, 0x42, // am
0x00, 0x5f, 0xbc, 0xc3, // tzm
0x00, 0x60, 0x73, 0xa2, // ks
0x00, 0x61, 0x88, 0x92, // ne
0x00, 0x62, 0x5d, 0x82, // fy
0x00, 0x63, 0x92, 0xc2, // ps
0x00, 0x64, 0x4d, 0x63, // fil
0x00, 0x65, 0x1d, 0x92, // dv
0x00, 0x66, 0x0f, 0xd3, // bin
0x00, 0x67, 0x4b, 0x32, // ff
0x00, 0x68, 0x61, 0x32, // ha
0x00, 0x69, 0x66, 0xd3, // ibb
0x00, 0x6a, 0xc8, 0x92, // yo
0x00, 0x6b, 0x99, 0x73, // quz
0x00, 0x6c, 0x8d, 0x43, // nso
0x00, 0x6d, 0x0d, 0xc2, // ba
0x00, 0x6e, 0x78, 0xa2, // lb
0x00, 0x6f, 0x71, 0x02, // kl
0x00, 0x70, 0x67, 0x82, // ig
0x00, 0x71, 0x73, 0x52, // kr
0x00, 0x72, 0x8e, 0xb2, // om
0x00, 0x73, 0xb8, 0xe2, // ti
0x00, 0x74, 0x5e, 0xc2, // gn
0x00, 0x75, 0x63, 0x13, // haw
0x00, 0x76, 0x77, 0xe2, // la
0x00, 0x77, 0xa8, 0xa2, // so
0x00, 0x78, 0x67, 0xd2, // ii
0x00, 0x79, 0x91, 0x33, // pap
0x00, 0x7a, 0x0b, 0x13, // arn
0x00, 0x7c, 0x83, 0x83, // moh
0x00, 0x7e, 0x12, 0x12, // br
0x00, 0x80, 0xbf, 0x82, // ug
0x00, 0x81, 0x80, 0x32, // mi
0x00, 0x82, 0x8e, 0x62, // oc
0x00, 0x83, 0x17, 0x92, // co
0x00, 0x84, 0x5f, 0x13, // gsw
0x00, 0x85, 0x9f, 0x13, // sah
0x00, 0x86, 0x98, 0xc3, // quc
0x00, 0x87, 0x9e, 0x12, // rw
0x00, 0x88, 0xc6, 0x22, // wo
0x00, 0x8c, 0x92, 0x63, // prs
0x00, 0x91, 0x5e, 0x22, // gd
0x00, 0x92, 0x76, 0x02, // ku
0x04, 0x01, 0x08, 0x95, // ar-sa
0x04, 0x02, 0x0f, 0x85, // bg-bg
0x04, 0x03, 0x14, 0xb5, // ca-es
0x04, 0x04, 0xd1, 0xf5, // zh-tw
0x04, 0x05, 0x17, 0xe5, // cs-cz
0x04, 0x06, 0x18, 0xd5, // da-dk
0x04, 0x07, 0x1a, 0xc5, // de-de
0x04, 0x08, 0x1f, 0xe5, // el-gr
0x04, 0x09, 0x3e, 0x65, // en-us
0x04, 0x0a, 0x44, 0xcc, // es-es_tradnl
0x04, 0x0b, 0x4d, 0x15, // fi-fi
0x04, 0x0c, 0x53, 0x25, // fr-fr
0x04, 0x0d, 0x63, 0x75, // he-il
0x04, 0x0e, 0x65, 0x15, // hu-hu
0x04, 0x0f, 0x68, 0x25, // is-is
0x04, 0x10, 0x68, 0xc5, // it-it
0x04, 0x11, 0x6a, 0xa5, // ja-jp
0x04, 0x12, 0x72, 0xa5, // ko-kr
0x04, 0x13, 0x8a, 0x75, // nl-nl
0x04, 0x14, 0x86, 0xe5, // nb-no
0x04, 0x15, 0x91, 0xa5, // pl-pl
0x04, 0x16, 0x93, 0x65, // pt-br
0x04, 0x17, 0x9a, 0x95, // rm-ch
0x04, 0x18, 0x9b, 0x85, // ro-ro
0x04, 0x19, 0x9d, 0x75, // ru-ru
0x04, 0x1a, 0x64, 0x65, // hr-hr
0x04, 0x1b, 0xa5, 0x25, // sk-sk
0x04, 0x1c, 0xa9, 0xe5, // sq-al
0x04, 0x1d, 0xb3, 0x55, // sv-se
0x04, 0x1e, 0xb8, 0x95, // th-th
0x04, 0x1f, 0xbb, 0x75, // tr-tr
0x04, 0x20, 0xc0, 0x75, // ur-pk
0x04, 0x21, 0x67, 0x35, // id-id
0x04, 0x22, 0xbf, 0xd5, // uk-ua
0x04, 0x23, 0x0e, 0x75, // be-by
0x04, 0x24, 0xa5, 0x75, // sl-si
0x04, 0x25, 0x49, 0xe5, // et-ee
0x04, 0x26, 0x7d, 0x55, // lv-lv
0x04, 0x27, 0x7b, 0xf5, // lt-lt
0x04, 0x28, 0xb7, 0xfa, // tg-cyrl-tj
0x04, 0x29, 0x4a, 0xe5, // fa-ir
0x04, 0x2a, 0xc4, 0x55, // vi-vn
0x04, 0x2b, 0x65, 0xd5, // hy-am
0x04, 0x2c, 0x0d, 0x2a, // az-latn-az
0x04, 0x2d, 0x4a, 0x35, // eu-es
0x04, 0x2e, 0x64, 0xb6, // hsb-de
0x04, 0x2f, 0x80, 0x85, // mk-mk
0x04, 0x30, 0xb2, 0x65, // st-za
0x04, 0x31, 0xbb, 0xc5, // ts-za
0x04, 0x32, 0xba, 0x85, // tn-za
0x04, 0x33, 0xc4, 0x05, // ve-za
0x04, 0x34, 0xc7, 0x25, // xh-za
0x04, 0x35, 0xd3, 0x75, // zu-za
0x04, 0x36, 0x01, 0x45, // af-za
0x04, 0x37, 0x6d, 0x65, // ka-ge
0x04, 0x38, 0x4e, 0x15, // fo-fo
0x04, 0x39, 0x63, 0xc5, // hi-in
0x04, 0x3a, 0x85, 0x25, // mt-mt
0x04, 0x3b, 0xa1, 0xc5, // se-no
0x04, 0x3d, 0xc8, 0x36, // yi-001
0x04, 0x3e, 0x84, 0x85, // ms-my
0x04, 0x3f, 0x70, 0x55, // kk-kz
0x04, 0x40, 0x77, 0x95, // ky-kg
0x04, 0x41, 0xb3, 0xf5, // sw-ke
0x04, 0x42, 0xb9, 0xe5, // tk-tm
0x04, 0x43, 0xc2, 0x0a, // uz-latn-uz
0x04, 0x44, 0xbc, 0x15, // tt-ru
0x04, 0x45, 0x11, 0x25, // bn-in
0x04, 0x46, 0x90, 0xe5, // pa-in
0x04, 0x47, 0x60, 0x35, // gu-in
0x04, 0x48, 0x8f, 0x55, // or-in
0x04, 0x49, 0xb5, 0xa5, // ta-in
0x04, 0x4a, 0xb6, 0xe5, // te-in
0x04, 0x4b, 0x72, 0x05, // kn-in
0x04, 0x4c, 0x80, 0xd5, // ml-in
0x04, 0x4d, 0x0b, 0x75, // as-in
0x04, 0x4e, 0x83, 0xe5, // mr-in
0x04, 0x4f, 0x9e, 0xc5, // sa-in
0x04, 0x50, 0x81, 0x95, // mn-mn
0x04, 0x51, 0x11, 0x75, // bo-cn
0x04, 0x52, 0x18, 0x85, // cy-gb
0x04, 0x53, 0x71, 0xb5, // km-kh
0x04, 0x54, 0x7a, 0xe5, // lo-la
0x04, 0x55, 0x85, 0xd5, // my-mm
0x04, 0x56, 0x5e, 0x75, // gl-es
0x04, 0x57, 0x72, 0xf6, // kok-in
0x04, 0x58, 0x83, 0x26, // mni-in
0x04, 0x59, 0xa0, 0xda, // sd-deva-in
0x04, 0x5a, 0xb5, 0x46, // syr-sy
0x04, 0x5b, 0xa4, 0xd5, // si-lk
0x04, 0x5c, 0x16, 0xeb, // chr-cher-us
0x04, 0x5d, 0x69, 0x6a, // iu-cans-ca
0x04, 0x5e, 0x02, 0x45, // am-et
0x04, 0x5f, 0xbc, 0xcb, // tzm-arab-ma
0x04, 0x60, 0x73, 0xa7, // ks-arab
0x04, 0x61, 0x88, 0xe5, // ne-np
0x04, 0x62, 0x5d, 0x85, // fy-nl
0x04, 0x63, 0x92, 0xc5, // ps-af
0x04, 0x64, 0x4d, 0x66, // fil-ph
0x04, 0x65, 0x1d, 0x95, // dv-mv
0x04, 0x66, 0x0f, 0xd6, // bin-ng
0x04, 0x67, 0x4c, 0xc5, // ff-ng
0x04, 0x68, 0x62, 0x7a, // ha-latn-ng
0x04, 0x69, 0x66, 0xd6, // ibb-ng
0x04, 0x6a, 0xc8, 0xe5, // yo-ng
0x04, 0x6b, 0x99, 0x76, // quz-bo
0x04, 0x6c, 0x8d, 0x46, // nso-za
0x04, 0x6d, 0x0d, 0xc5, // ba-ru
0x04, 0x6e, 0x78, 0xa5, // lb-lu
0x04, 0x6f, 0x71, 0x05, // kl-gl
0x04, 0x70, 0x67, 0x85, // ig-ng
0x04, 0x71, 0x73, 0x55, // kr-ng
0x04, 0x72, 0x8e, 0xb5, // om-et
0x04, 0x73, 0xb9, 0x35, // ti-et
0x04, 0x74, 0x5e, 0xc5, // gn-py
0x04, 0x75, 0x63, 0x16, // haw-us
0x04, 0x76, 0x77, 0xe6, // la-001
0x04, 0x77, 0xa9, 0x95, // so-so
0x04, 0x78, 0x67, 0xd5, // ii-cn
0x04, 0x79, 0x91, 0x37, // pap-029
0x04, 0x7a, 0x0b, 0x16, // arn-cl
0x04, 0x7c, 0x83, 0x86, // moh-ca
0x04, 0x7e, 0x12, 0x15, // br-fr
0x04, 0x80, 0xbf, 0x85, // ug-cn
0x04, 0x81, 0x80, 0x35, // mi-nz
0x04, 0x82, 0x8e, 0x65, // oc-fr
0x04, 0x83, 0x17, 0x95, // co-fr
0x04, 0x84, 0x5f, 0x76, // gsw-fr
0x04, 0x85, 0x9f, 0x16, // sah-ru
0x04, 0x86, 0x98, 0xcb, // quc-latn-gt
0x04, 0x87, 0x9e, 0x15, // rw-rw
0x04, 0x88, 0xc6, 0x25, // wo-sn
0x04, 0x8c, 0x92, 0x66, // prs-af
0x04, 0x91, 0x5e, 0x25, // gd-gb
0x04, 0x92, 0x76, 0x0a, // ku-arab-iq
0x05, 0x01, 0x97, 0xa8, // qps-ploc
0x05, 0xfe, 0x97, 0xa9, // qps-ploca
0x08, 0x01, 0x05, 0x25, // ar-iq
0x08, 0x03, 0x14, 0xbe, // ca-es-valencia
0x08, 0x04, 0xcb, 0x05, // zh-cn
0x08, 0x07, 0x1a, 0x75, // de-ch
0x08, 0x09, 0x29, 0xc5, // en-gb
0x08, 0x0a, 0x46, 0x75, // es-mx
0x08, 0x0c, 0x4e, 0xc5, // fr-be
0x08, 0x10, 0x68, 0x75, // it-ch
0x08, 0x13, 0x89, 0x85, // nl-be
0x08, 0x14, 0x8b, 0xc5, // nn-no
0x08, 0x16, 0x95, 0xe5, // pt-pt
0x08, 0x18, 0x9b, 0x35, // ro-md
0x08, 0x19, 0x9d, 0x25, // ru-md
0x08, 0x1a, 0xae, 0x9a, // sr-latn-cs
0x08, 0x1d, 0xb3, 0x05, // sv-fi
0x08, 0x20, 0xc0, 0x25, // ur-in
0x08, 0x2c, 0x0c, 0x8a, // az-cyrl-az
0x08, 0x2e, 0x1c, 0xd6, // dsb-de
0x08, 0x32, 0xba, 0x35, // tn-bw
0x08, 0x3b, 0xa2, 0x15, // se-se
0x08, 0x3c, 0x5d, 0xd5, // ga-ie
0x08, 0x3e, 0x84, 0x35, // ms-bn
0x08, 0x43, 0xc1, 0x6a, // uz-cyrl-uz
0x08, 0x45, 0x10, 0xd5, // bn-bd
0x08, 0x46, 0x90, 0x4a, // pa-arab-pk
0x08, 0x49, 0xb5, 0xf5, // ta-lk
0x08, 0x50, 0x81, 0xea, // mn-mong-cn
0x08, 0x59, 0xa0, 0x3a, // sd-arab-pk
0x08, 0x5d, 0x6a, 0x0a, // iu-latn-ca
0x08, 0x5f, 0xbd, 0x7b, // tzm-latn-dz
0x08, 0x60, 0x74, 0x4a, // ks-deva-in
0x08, 0x61, 0x88, 0x95, // ne-in
0x08, 0x67, 0x4b, 0xda, // ff-latn-sn
0x08, 0x6b, 0x99, 0xd6, // quz-ec
0x08, 0x73, 0xb8, 0xe5, // ti-er
0x09, 0x01, 0x96, 0xdd, // qps-latn-x-sh
0x09, 0xff, 0x98, 0x39, // qps-plocm
0x0c, 0x01, 0x04, 0x35, // ar-eg
0x0c, 0x04, 0xce, 0x35, // zh-hk
0x0c, 0x07, 0x19, 0xd5, // de-at
0x0c, 0x09, 0x22, 0x95, // en-au
0x0c, 0x0a, 0x44, 0xc5, // es-es
0x0c, 0x0c, 0x50, 0x55, // fr-ca
0x0c, 0x1a, 0xab, 0x7a, // sr-cyrl-cs
0x0c, 0x3b, 0xa1, 0x75, // se-fi
0x0c, 0x50, 0x82, 0x8a, // mn-mong-mn
0x0c, 0x51, 0x1e, 0x45, // dz-bt
0x0c, 0x6b, 0x9a, 0x36, // quz-pe
0x10, 0x01, 0x06, 0xb5, // ar-ly
0x10, 0x04, 0xd0, 0x75, // zh-sg
0x10, 0x07, 0x1c, 0x25, // de-lu
0x10, 0x09, 0x25, 0x15, // en-ca
0x10, 0x0a, 0x45, 0xd5, // es-gt
0x10, 0x0c, 0x51, 0x95, // fr-ch
0x10, 0x1a, 0x64, 0x15, // hr-ba
0x10, 0x3b, 0xa6, 0x86, // smj-no
0x10, 0x5f, 0xbe, 0xdb, // tzm-tfng-ma
0x14, 0x01, 0x03, 0xe5, // ar-dz
0x14, 0x04, 0xce, 0xf5, // zh-mo
0x14, 0x07, 0x1b, 0xd5, // de-li
0x14, 0x09, 0x35, 0xf5, // en-nz
0x14, 0x0a, 0x43, 0x85, // es-cr
0x14, 0x0c, 0x55, 0xa5, // fr-lu
0x14, 0x1a, 0x13, 0x6a, // bs-latn-ba
0x14, 0x3b, 0xa6, 0xe6, // smj-se
0x18, 0x01, 0x07, 0x05, // ar-ma
0x18, 0x09, 0x2c, 0xe5, // en-ie
0x18, 0x0a, 0x47, 0x15, // es-pa
0x18, 0x0c, 0x56, 0x45, // fr-mc
0x18, 0x1a, 0xad, 0xfa, // sr-latn-ba
0x18, 0x3b, 0xa5, 0xc6, // sma-no
0x1c, 0x01, 0x0a, 0x75, // ar-tn
0x1c, 0x09, 0x40, 0x45, // en-za
0x1c, 0x0a, 0x44, 0x25, // es-do
0x1c, 0x0c, 0x4e, 0x66, // fr-029
0x1c, 0x1a, 0xaa, 0xda, // sr-cyrl-ba
0x1c, 0x3b, 0xa6, 0x26, // sma-se
0x20, 0x01, 0x07, 0xa5, // ar-om
0x20, 0x09, 0x2e, 0xc5, // en-jm
0x20, 0x0a, 0x49, 0x95, // es-ve
0x20, 0x0c, 0x59, 0xb5, // fr-re
0x20, 0x1a, 0x12, 0xca, // bs-cyrl-ba
0x20, 0x3b, 0xa7, 0xa6, // sms-fi
0x24, 0x01, 0x0a, 0xc5, // ar-ye
0x24, 0x09, 0x20, 0x96, // en-029
0x24, 0x0a, 0x43, 0x35, // es-co
0x24, 0x0c, 0x50, 0xa5, // fr-cd
0x24, 0x1a, 0xaf, 0xda, // sr-latn-rs
0x24, 0x3b, 0xa7, 0x46, // smn-fi
0x28, 0x01, 0x09, 0xd5, // ar-sy
0x28, 0x09, 0x24, 0xc5, // en-bz
0x28, 0x0a, 0x47, 0x65, // es-pe
0x28, 0x0c, 0x5a, 0xa5, // fr-sn
0x28, 0x1a, 0xac, 0xba, // sr-cyrl-rs
0x2c, 0x01, 0x05, 0x75, // ar-jo
0x2c, 0x09, 0x3c, 0xd5, // en-tt
0x2c, 0x0a, 0x41, 0xf5, // es-ar
0x2c, 0x0c, 0x52, 0x35, // fr-cm
0x2c, 0x1a, 0xaf, 0x3a, // sr-latn-me
0x30, 0x01, 0x06, 0x65, // ar-lb
0x30, 0x09, 0x40, 0xe5, // en-zw
0x30, 0x0a, 0x44, 0x75, // es-ec
0x30, 0x0c, 0x51, 0xe5, // fr-ci
0x30, 0x1a, 0xac, 0x1a, // sr-cyrl-me
0x34, 0x01, 0x06, 0x15, // ar-kw
0x34, 0x09, 0x36, 0x95, // en-ph
0x34, 0x0a, 0x42, 0xe5, // es-cl
0x34, 0x0c, 0x57, 0x35, // fr-ml
0x38, 0x01, 0x02, 0xf5, // ar-ae
0x38, 0x09, 0x2c, 0x95, // en-id
0x38, 0x0a, 0x49, 0x45, // es-uy
0x38, 0x0c, 0x55, 0xf5, // fr-ma
0x3c, 0x01, 0x03, 0x45, // ar-bh
0x3c, 0x09, 0x2c, 0x45, // en-hk
0x3c, 0x0a, 0x48, 0x55, // es-py
0x3c, 0x0c, 0x55, 0x05, // fr-ht
0x40, 0x01, 0x08, 0x45, // ar-qa
0x40, 0x09, 0x2d, 0xd5, // en-in
0x40, 0x0a, 0x42, 0x45, // es-bo
0x44, 0x09, 0x33, 0xc5, // en-my
0x44, 0x0a, 0x48, 0xa5, // es-sv
0x48, 0x09, 0x39, 0xb5, // en-sg
0x48, 0x0a, 0x46, 0x25, // es-hn
0x4c, 0x0a, 0x46, 0xc5, // es-ni
0x50, 0x0a, 0x48, 0x05, // es-pr
0x54, 0x0a, 0x48, 0xf5, // es-us
0x58, 0x0a, 0x41, 0x96, // es-419
0x5c, 0x0a, 0x43, 0xd5, // es-cu
0x64, 0x1a, 0x12, 0xc7, // bs-cyrl
0x68, 0x1a, 0x13, 0x67, // bs-latn
0x6c, 0x1a, 0xaa, 0xd7, // sr-cyrl
0x70, 0x1a, 0xad, 0xf7, // sr-latn
0x70, 0x3b, 0xa7, 0x43, // smn
0x74, 0x2c, 0x0c, 0x87, // az-cyrl
0x74, 0x3b, 0xa7, 0xa3, // sms
0x78, 0x04, 0xca, 0x42, // zh
0x78, 0x14, 0x8b, 0xc2, // nn
0x78, 0x1a, 0x12, 0xc2, // bs
0x78, 0x2c, 0x0d, 0x27, // az-latn
0x78, 0x3b, 0xa5, 0xc3, // sma
0x78, 0x43, 0xc1, 0x67, // uz-cyrl
0x78, 0x50, 0x81, 0x27, // mn-cyrl
0x78, 0x5d, 0x69, 0x67, // iu-cans
0x78, 0x5f, 0xbe, 0xd8, // tzm-tfng
0x7c, 0x04, 0xca, 0xa6, // zh-cht
0x7c, 0x14, 0x86, 0xe2, // nb
0x7c, 0x1a, 0xaa, 0xd2, // sr
0x7c, 0x28, 0xb7, 0xf7, // tg-cyrl
0x7c, 0x2e, 0x1c, 0xd3, // dsb
0x7c, 0x3b, 0xa6, 0x83, // smj
0x7c, 0x43, 0xc2, 0x07, // uz-latn
0x7c, 0x46, 0x90, 0x47, // pa-arab
0x7c, 0x50, 0x81, 0xe7, // mn-mong
0x7c, 0x59, 0xa0, 0x37, // sd-arab
0x7c, 0x5c, 0x16, 0xe8, // chr-cher
0x7c, 0x5d, 0x6a, 0x07, // iu-latn
0x7c, 0x5f, 0xbd, 0x78, // tzm-latn
0x7c, 0x67, 0x4b, 0xd7, // ff-latn
0x7c, 0x68, 0x61, 0x37, // ha-latn
0x7c, 0x86, 0x98, 0xc8, // quc-latn
0x7c, 0x92, 0x76, 0x07, // ku-arab
// Sort 0x1
0x00, 0x7f, 0xc6, 0x7b, // x-iv_mathan
0x04, 0x07, 0x1a, 0xcc, // de-de_phoneb
0x04, 0x0e, 0x65, 0x1c, // hu-hu_technl
0x04, 0x37, 0x6d, 0x6c, // ka-ge_modern
// Sort 0x2
0x08, 0x04, 0xcb, 0xcc, // zh-cn_stroke
0x10, 0x04, 0xd1, 0x3c, // zh-sg_stroke
0x14, 0x04, 0xcf, 0xbc, // zh-mo_stroke
// Sort 0x3
0x04, 0x04, 0xd1, 0xfc, // zh-tw_pronun
// Sort 0x4
0x04, 0x04, 0xd2, 0xbc, // zh-tw_radstr
0x04, 0x11, 0x6a, 0xac, // ja-jp_radstr
0x0c, 0x04, 0xce, 0x3c, // zh-hk_radstr
0x14, 0x04, 0xce, 0xfc, // zh-mo_radstr
// Sort 0x5
0x08, 0x04, 0xcb, 0x0c, // zh-cn_phoneb
0x10, 0x04, 0xd0, 0x7c, // zh-sg_phoneb
};
private const int LcidSortPrefix1Index = 1736;
private const int LcidSortPrefix2Index = 1752;
private const int LcidSortPrefix3Index = 1764;
private const int LcidSortPrefix4Index = 1768;
private const int LcidSortPrefix5Index = 1784;
private const int NumericLocaleDataBytesPerRow = 18;
// ThreeLetterWindowsLanguageName is string containing 3-letter Windows language names
// every 3-characters entry is matching locale name entry in CultureNames
private static ReadOnlySpan<byte> ThreeLetterWindowsLanguageName => new byte[CulturesCount * 3]
{
(byte)'Z', (byte)'Z', (byte)'Z', // aa
(byte)'Z', (byte)'Z', (byte)'Z', // aa-dj
(byte)'Z', (byte)'Z', (byte)'Z', // aa-er
(byte)'Z', (byte)'Z', (byte)'Z', // aa-et
(byte)'A', (byte)'F', (byte)'K', // af
(byte)'Z', (byte)'Z', (byte)'Z', // af-na
(byte)'A', (byte)'F', (byte)'K', // af-za
(byte)'Z', (byte)'Z', (byte)'Z', // agq
(byte)'Z', (byte)'Z', (byte)'Z', // agq-cm
(byte)'Z', (byte)'Z', (byte)'Z', // ak
(byte)'Z', (byte)'Z', (byte)'Z', // ak-gh
(byte)'A', (byte)'M', (byte)'H', // am
(byte)'A', (byte)'M', (byte)'H', // am-et
(byte)'A', (byte)'R', (byte)'A', // ar
(byte)'Z', (byte)'Z', (byte)'Z', // ar-001
(byte)'A', (byte)'R', (byte)'U', // ar-ae
(byte)'A', (byte)'R', (byte)'H', // ar-bh
(byte)'Z', (byte)'Z', (byte)'Z', // ar-dj
(byte)'A', (byte)'R', (byte)'G', // ar-dz
(byte)'A', (byte)'R', (byte)'E', // ar-eg
(byte)'Z', (byte)'Z', (byte)'Z', // ar-er
(byte)'Z', (byte)'Z', (byte)'Z', // ar-il
(byte)'A', (byte)'R', (byte)'I', // ar-iq
(byte)'A', (byte)'R', (byte)'J', // ar-jo
(byte)'Z', (byte)'Z', (byte)'Z', // ar-km
(byte)'A', (byte)'R', (byte)'K', // ar-kw
(byte)'A', (byte)'R', (byte)'B', // ar-lb
(byte)'A', (byte)'R', (byte)'L', // ar-ly
(byte)'A', (byte)'R', (byte)'M', // ar-ma
(byte)'Z', (byte)'Z', (byte)'Z', // ar-mr
(byte)'A', (byte)'R', (byte)'O', // ar-om
(byte)'Z', (byte)'Z', (byte)'Z', // ar-ps
(byte)'A', (byte)'R', (byte)'Q', // ar-qa
(byte)'A', (byte)'R', (byte)'A', // ar-sa
(byte)'Z', (byte)'Z', (byte)'Z', // ar-sd
(byte)'Z', (byte)'Z', (byte)'Z', // ar-so
(byte)'Z', (byte)'Z', (byte)'Z', // ar-ss
(byte)'A', (byte)'R', (byte)'S', // ar-sy
(byte)'Z', (byte)'Z', (byte)'Z', // ar-td
(byte)'A', (byte)'R', (byte)'T', // ar-tn
(byte)'A', (byte)'R', (byte)'Y', // ar-ye
(byte)'M', (byte)'P', (byte)'D', // arn
(byte)'M', (byte)'P', (byte)'D', // arn-cl
(byte)'A', (byte)'S', (byte)'M', // as
(byte)'A', (byte)'S', (byte)'M', // as-in
(byte)'Z', (byte)'Z', (byte)'Z', // asa
(byte)'Z', (byte)'Z', (byte)'Z', // asa-tz
(byte)'Z', (byte)'Z', (byte)'Z', // ast
(byte)'Z', (byte)'Z', (byte)'Z', // ast-es
(byte)'A', (byte)'Z', (byte)'E', // az
(byte)'A', (byte)'Z', (byte)'C', // az-cyrl
(byte)'A', (byte)'Z', (byte)'C', // az-cyrl-az
(byte)'A', (byte)'Z', (byte)'E', // az-latn
(byte)'A', (byte)'Z', (byte)'E', // az-latn-az
(byte)'B', (byte)'A', (byte)'S', // ba
(byte)'B', (byte)'A', (byte)'S', // ba-ru
(byte)'Z', (byte)'Z', (byte)'Z', // bas
(byte)'Z', (byte)'Z', (byte)'Z', // bas-cm
(byte)'B', (byte)'E', (byte)'L', // be
(byte)'B', (byte)'E', (byte)'L', // be-by
(byte)'Z', (byte)'Z', (byte)'Z', // bem
(byte)'Z', (byte)'Z', (byte)'Z', // bem-zm
(byte)'Z', (byte)'Z', (byte)'Z', // bez
(byte)'Z', (byte)'Z', (byte)'Z', // bez-tz
(byte)'B', (byte)'G', (byte)'R', // bg
(byte)'B', (byte)'G', (byte)'R', // bg-bg
(byte)'Z', (byte)'Z', (byte)'Z', // bin
(byte)'Z', (byte)'Z', (byte)'Z', // bin-ng
(byte)'Z', (byte)'Z', (byte)'Z', // bm
(byte)'Z', (byte)'Z', (byte)'Z', // bm-latn
(byte)'Z', (byte)'Z', (byte)'Z', // bm-latn-ml
(byte)'B', (byte)'N', (byte)'B', // bn
(byte)'B', (byte)'N', (byte)'B', // bn-bd
(byte)'B', (byte)'N', (byte)'G', // bn-in
(byte)'B', (byte)'O', (byte)'B', // bo
(byte)'B', (byte)'O', (byte)'B', // bo-cn
(byte)'Z', (byte)'Z', (byte)'Z', // bo-in
(byte)'B', (byte)'R', (byte)'E', // br
(byte)'B', (byte)'R', (byte)'E', // br-fr
(byte)'Z', (byte)'Z', (byte)'Z', // brx
(byte)'Z', (byte)'Z', (byte)'Z', // brx-in
(byte)'B', (byte)'S', (byte)'B', // bs
(byte)'B', (byte)'S', (byte)'C', // bs-cyrl
(byte)'B', (byte)'S', (byte)'C', // bs-cyrl-ba
(byte)'B', (byte)'S', (byte)'B', // bs-latn
(byte)'B', (byte)'S', (byte)'B', // bs-latn-ba
(byte)'Z', (byte)'Z', (byte)'Z', // byn
(byte)'Z', (byte)'Z', (byte)'Z', // byn-er
(byte)'C', (byte)'A', (byte)'T', // ca
(byte)'Z', (byte)'Z', (byte)'Z', // ca-ad
(byte)'C', (byte)'A', (byte)'T', // ca-es
(byte)'V', (byte)'A', (byte)'L', // ca-es-valencia
(byte)'Z', (byte)'Z', (byte)'Z', // ca-fr
(byte)'Z', (byte)'Z', (byte)'Z', // ca-it
(byte)'Z', (byte)'Z', (byte)'Z', // ce
(byte)'Z', (byte)'Z', (byte)'Z', // ce-ru
(byte)'Z', (byte)'Z', (byte)'Z', // cgg
(byte)'Z', (byte)'Z', (byte)'Z', // cgg-ug
(byte)'C', (byte)'R', (byte)'E', // chr
(byte)'C', (byte)'R', (byte)'E', // chr-cher
(byte)'C', (byte)'R', (byte)'E', // chr-cher-us
(byte)'C', (byte)'O', (byte)'S', // co
(byte)'C', (byte)'O', (byte)'S', // co-fr
(byte)'C', (byte)'S', (byte)'Y', // cs
(byte)'C', (byte)'S', (byte)'Y', // cs-cz
(byte)'Z', (byte)'Z', (byte)'Z', // cu
(byte)'Z', (byte)'Z', (byte)'Z', // cu-ru
(byte)'C', (byte)'Y', (byte)'M', // cy
(byte)'C', (byte)'Y', (byte)'M', // cy-gb
(byte)'D', (byte)'A', (byte)'N', // da
(byte)'D', (byte)'A', (byte)'N', // da-dk
(byte)'Z', (byte)'Z', (byte)'Z', // da-gl
(byte)'Z', (byte)'Z', (byte)'Z', // dav
(byte)'Z', (byte)'Z', (byte)'Z', // dav-ke
(byte)'D', (byte)'E', (byte)'U', // de
(byte)'D', (byte)'E', (byte)'A', // de-at
(byte)'Z', (byte)'Z', (byte)'Z', // de-be
(byte)'D', (byte)'E', (byte)'S', // de-ch
(byte)'D', (byte)'E', (byte)'U', // de-de
(byte)'D', (byte)'E', (byte)'U', // de-de_phoneb
(byte)'Z', (byte)'Z', (byte)'Z', // de-it
(byte)'D', (byte)'E', (byte)'C', // de-li
(byte)'D', (byte)'E', (byte)'L', // de-lu
(byte)'Z', (byte)'Z', (byte)'Z', // dje
(byte)'Z', (byte)'Z', (byte)'Z', // dje-ne
(byte)'D', (byte)'S', (byte)'B', // dsb
(byte)'D', (byte)'S', (byte)'B', // dsb-de
(byte)'Z', (byte)'Z', (byte)'Z', // dua
(byte)'Z', (byte)'Z', (byte)'Z', // dua-cm
(byte)'D', (byte)'I', (byte)'V', // dv
(byte)'D', (byte)'I', (byte)'V', // dv-mv
(byte)'Z', (byte)'Z', (byte)'Z', // dyo
(byte)'Z', (byte)'Z', (byte)'Z', // dyo-sn
(byte)'Z', (byte)'Z', (byte)'Z', // dz
(byte)'Z', (byte)'Z', (byte)'Z', // dz-bt
(byte)'Z', (byte)'Z', (byte)'Z', // ebu
(byte)'Z', (byte)'Z', (byte)'Z', // ebu-ke
(byte)'Z', (byte)'Z', (byte)'Z', // ee
(byte)'Z', (byte)'Z', (byte)'Z', // ee-gh
(byte)'Z', (byte)'Z', (byte)'Z', // ee-tg
(byte)'E', (byte)'L', (byte)'L', // el
(byte)'Z', (byte)'Z', (byte)'Z', // el-cy
(byte)'E', (byte)'L', (byte)'L', // el-gr
(byte)'E', (byte)'N', (byte)'U', // en
(byte)'Z', (byte)'Z', (byte)'Z', // en-001
(byte)'E', (byte)'N', (byte)'B', // en-029
(byte)'Z', (byte)'Z', (byte)'Z', // en-150
(byte)'Z', (byte)'Z', (byte)'Z', // en-ag
(byte)'Z', (byte)'Z', (byte)'Z', // en-ai
(byte)'Z', (byte)'Z', (byte)'Z', // en-as
(byte)'Z', (byte)'Z', (byte)'Z', // en-at
(byte)'E', (byte)'N', (byte)'A', // en-au
(byte)'Z', (byte)'Z', (byte)'Z', // en-bb
(byte)'Z', (byte)'Z', (byte)'Z', // en-be
(byte)'Z', (byte)'Z', (byte)'Z', // en-bi
(byte)'Z', (byte)'Z', (byte)'Z', // en-bm
(byte)'Z', (byte)'Z', (byte)'Z', // en-bs
(byte)'Z', (byte)'Z', (byte)'Z', // en-bw
(byte)'E', (byte)'N', (byte)'L', // en-bz
(byte)'E', (byte)'N', (byte)'C', // en-ca
(byte)'Z', (byte)'Z', (byte)'Z', // en-cc
(byte)'Z', (byte)'Z', (byte)'Z', // en-ch
(byte)'Z', (byte)'Z', (byte)'Z', // en-ck
(byte)'Z', (byte)'Z', (byte)'Z', // en-cm
(byte)'Z', (byte)'Z', (byte)'Z', // en-cx
(byte)'Z', (byte)'Z', (byte)'Z', // en-cy
(byte)'Z', (byte)'Z', (byte)'Z', // en-de
(byte)'Z', (byte)'Z', (byte)'Z', // en-dk
(byte)'Z', (byte)'Z', (byte)'Z', // en-dm
(byte)'Z', (byte)'Z', (byte)'Z', // en-er
(byte)'Z', (byte)'Z', (byte)'Z', // en-fi
(byte)'Z', (byte)'Z', (byte)'Z', // en-fj
(byte)'Z', (byte)'Z', (byte)'Z', // en-fk
(byte)'Z', (byte)'Z', (byte)'Z', // en-fm
(byte)'E', (byte)'N', (byte)'G', // en-gb
(byte)'Z', (byte)'Z', (byte)'Z', // en-gd
(byte)'Z', (byte)'Z', (byte)'Z', // en-gg
(byte)'Z', (byte)'Z', (byte)'Z', // en-gh
(byte)'Z', (byte)'Z', (byte)'Z', // en-gi
(byte)'Z', (byte)'Z', (byte)'Z', // en-gm
(byte)'Z', (byte)'Z', (byte)'Z', // en-gu
(byte)'Z', (byte)'Z', (byte)'Z', // en-gy
(byte)'E', (byte)'N', (byte)'H', // en-hk
(byte)'Z', (byte)'Z', (byte)'Z', // en-id
(byte)'E', (byte)'N', (byte)'I', // en-ie
(byte)'Z', (byte)'Z', (byte)'Z', // en-il
(byte)'Z', (byte)'Z', (byte)'Z', // en-im
(byte)'E', (byte)'N', (byte)'N', // en-in
(byte)'Z', (byte)'Z', (byte)'Z', // en-io
(byte)'Z', (byte)'Z', (byte)'Z', // en-je
(byte)'E', (byte)'N', (byte)'J', // en-jm
(byte)'Z', (byte)'Z', (byte)'Z', // en-ke
(byte)'Z', (byte)'Z', (byte)'Z', // en-ki
(byte)'Z', (byte)'Z', (byte)'Z', // en-kn
(byte)'Z', (byte)'Z', (byte)'Z', // en-ky
(byte)'Z', (byte)'Z', (byte)'Z', // en-lc
(byte)'Z', (byte)'Z', (byte)'Z', // en-lr
(byte)'Z', (byte)'Z', (byte)'Z', // en-ls
(byte)'Z', (byte)'Z', (byte)'Z', // en-mg
(byte)'Z', (byte)'Z', (byte)'Z', // en-mh
(byte)'Z', (byte)'Z', (byte)'Z', // en-mo
(byte)'Z', (byte)'Z', (byte)'Z', // en-mp
(byte)'Z', (byte)'Z', (byte)'Z', // en-ms
(byte)'Z', (byte)'Z', (byte)'Z', // en-mt
(byte)'Z', (byte)'Z', (byte)'Z', // en-mu
(byte)'Z', (byte)'Z', (byte)'Z', // en-mw
(byte)'E', (byte)'N', (byte)'M', // en-my
(byte)'Z', (byte)'Z', (byte)'Z', // en-na
(byte)'Z', (byte)'Z', (byte)'Z', // en-nf
(byte)'Z', (byte)'Z', (byte)'Z', // en-ng
(byte)'Z', (byte)'Z', (byte)'Z', // en-nl
(byte)'Z', (byte)'Z', (byte)'Z', // en-nr
(byte)'Z', (byte)'Z', (byte)'Z', // en-nu
(byte)'E', (byte)'N', (byte)'Z', // en-nz
(byte)'Z', (byte)'Z', (byte)'Z', // en-pg
(byte)'E', (byte)'N', (byte)'P', // en-ph
(byte)'Z', (byte)'Z', (byte)'Z', // en-pk
(byte)'Z', (byte)'Z', (byte)'Z', // en-pn
(byte)'Z', (byte)'Z', (byte)'Z', // en-pr
(byte)'Z', (byte)'Z', (byte)'Z', // en-pw
(byte)'Z', (byte)'Z', (byte)'Z', // en-rw
(byte)'Z', (byte)'Z', (byte)'Z', // en-sb
(byte)'Z', (byte)'Z', (byte)'Z', // en-sc
(byte)'Z', (byte)'Z', (byte)'Z', // en-sd
(byte)'Z', (byte)'Z', (byte)'Z', // en-se
(byte)'E', (byte)'N', (byte)'E', // en-sg
(byte)'Z', (byte)'Z', (byte)'Z', // en-sh
(byte)'Z', (byte)'Z', (byte)'Z', // en-si
(byte)'Z', (byte)'Z', (byte)'Z', // en-sl
(byte)'Z', (byte)'Z', (byte)'Z', // en-ss
(byte)'Z', (byte)'Z', (byte)'Z', // en-sx
(byte)'Z', (byte)'Z', (byte)'Z', // en-sz
(byte)'Z', (byte)'Z', (byte)'Z', // en-tc
(byte)'Z', (byte)'Z', (byte)'Z', // en-tk
(byte)'Z', (byte)'Z', (byte)'Z', // en-to
(byte)'E', (byte)'N', (byte)'T', // en-tt
(byte)'Z', (byte)'Z', (byte)'Z', // en-tv
(byte)'Z', (byte)'Z', (byte)'Z', // en-tz
(byte)'Z', (byte)'Z', (byte)'Z', // en-ug
(byte)'Z', (byte)'Z', (byte)'Z', // en-um
(byte)'E', (byte)'N', (byte)'U', // en-us
(byte)'Z', (byte)'Z', (byte)'Z', // en-vc
(byte)'Z', (byte)'Z', (byte)'Z', // en-vg
(byte)'Z', (byte)'Z', (byte)'Z', // en-vi
(byte)'Z', (byte)'Z', (byte)'Z', // en-vu
(byte)'Z', (byte)'Z', (byte)'Z', // en-ws
(byte)'E', (byte)'N', (byte)'S', // en-za
(byte)'Z', (byte)'Z', (byte)'Z', // en-zm
(byte)'E', (byte)'N', (byte)'W', // en-zw
(byte)'Z', (byte)'Z', (byte)'Z', // eo
(byte)'Z', (byte)'Z', (byte)'Z', // eo-001
(byte)'E', (byte)'S', (byte)'P', // es
(byte)'E', (byte)'S', (byte)'J', // es-419
(byte)'E', (byte)'S', (byte)'S', // es-ar
(byte)'E', (byte)'S', (byte)'B', // es-bo
(byte)'Z', (byte)'Z', (byte)'Z', // es-br
(byte)'E', (byte)'S', (byte)'L', // es-cl
(byte)'E', (byte)'S', (byte)'O', // es-co
(byte)'E', (byte)'S', (byte)'C', // es-cr
(byte)'E', (byte)'S', (byte)'K', // es-cu
(byte)'E', (byte)'S', (byte)'D', // es-do
(byte)'E', (byte)'S', (byte)'F', // es-ec
(byte)'E', (byte)'S', (byte)'N', // es-es
(byte)'E', (byte)'S', (byte)'P', // es-es_tradnl
(byte)'Z', (byte)'Z', (byte)'Z', // es-gq
(byte)'E', (byte)'S', (byte)'G', // es-gt
(byte)'E', (byte)'S', (byte)'H', // es-hn
(byte)'E', (byte)'S', (byte)'M', // es-mx
(byte)'E', (byte)'S', (byte)'I', // es-ni
(byte)'E', (byte)'S', (byte)'A', // es-pa
(byte)'E', (byte)'S', (byte)'R', // es-pe
(byte)'Z', (byte)'Z', (byte)'Z', // es-ph
(byte)'E', (byte)'S', (byte)'U', // es-pr
(byte)'E', (byte)'S', (byte)'Z', // es-py
(byte)'E', (byte)'S', (byte)'E', // es-sv
(byte)'E', (byte)'S', (byte)'T', // es-us
(byte)'E', (byte)'S', (byte)'Y', // es-uy
(byte)'E', (byte)'S', (byte)'V', // es-ve
(byte)'E', (byte)'T', (byte)'I', // et
(byte)'E', (byte)'T', (byte)'I', // et-ee
(byte)'E', (byte)'U', (byte)'Q', // eu
(byte)'E', (byte)'U', (byte)'Q', // eu-es
(byte)'Z', (byte)'Z', (byte)'Z', // ewo
(byte)'Z', (byte)'Z', (byte)'Z', // ewo-cm
(byte)'F', (byte)'A', (byte)'R', // fa
(byte)'F', (byte)'A', (byte)'R', // fa-ir
(byte)'F', (byte)'U', (byte)'L', // ff
(byte)'Z', (byte)'Z', (byte)'Z', // ff-cm
(byte)'Z', (byte)'Z', (byte)'Z', // ff-gn
(byte)'F', (byte)'U', (byte)'L', // ff-latn
(byte)'F', (byte)'U', (byte)'L', // ff-latn-sn
(byte)'Z', (byte)'Z', (byte)'Z', // ff-mr
(byte)'Z', (byte)'Z', (byte)'Z', // ff-ng
(byte)'F', (byte)'I', (byte)'N', // fi
(byte)'F', (byte)'I', (byte)'N', // fi-fi
(byte)'F', (byte)'P', (byte)'O', // fil
(byte)'F', (byte)'P', (byte)'O', // fil-ph
(byte)'F', (byte)'O', (byte)'S', // fo
(byte)'Z', (byte)'Z', (byte)'Z', // fo-dk
(byte)'F', (byte)'O', (byte)'S', // fo-fo
(byte)'F', (byte)'R', (byte)'A', // fr
(byte)'Z', (byte)'Z', (byte)'Z', // fr-029
(byte)'F', (byte)'R', (byte)'B', // fr-be
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bi
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bj
(byte)'Z', (byte)'Z', (byte)'Z', // fr-bl
(byte)'F', (byte)'R', (byte)'C', // fr-ca
(byte)'F', (byte)'R', (byte)'D', // fr-cd
(byte)'Z', (byte)'Z', (byte)'Z', // fr-cf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-cg
(byte)'F', (byte)'R', (byte)'S', // fr-ch
(byte)'F', (byte)'R', (byte)'I', // fr-ci
(byte)'F', (byte)'R', (byte)'E', // fr-cm
(byte)'Z', (byte)'Z', (byte)'Z', // fr-dj
(byte)'Z', (byte)'Z', (byte)'Z', // fr-dz
(byte)'F', (byte)'R', (byte)'A', // fr-fr
(byte)'Z', (byte)'Z', (byte)'Z', // fr-ga
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gn
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gp
(byte)'Z', (byte)'Z', (byte)'Z', // fr-gq
(byte)'F', (byte)'R', (byte)'H', // fr-ht
(byte)'Z', (byte)'Z', (byte)'Z', // fr-km
(byte)'F', (byte)'R', (byte)'L', // fr-lu
(byte)'F', (byte)'R', (byte)'O', // fr-ma
(byte)'F', (byte)'R', (byte)'M', // fr-mc
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mg
(byte)'F', (byte)'R', (byte)'F', // fr-ml
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mq
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mr
(byte)'Z', (byte)'Z', (byte)'Z', // fr-mu
(byte)'Z', (byte)'Z', (byte)'Z', // fr-nc
(byte)'Z', (byte)'Z', (byte)'Z', // fr-ne
(byte)'Z', (byte)'Z', (byte)'Z', // fr-pf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-pm
(byte)'F', (byte)'R', (byte)'R', // fr-re
(byte)'Z', (byte)'Z', (byte)'Z', // fr-rw
(byte)'Z', (byte)'Z', (byte)'Z', // fr-sc
(byte)'F', (byte)'R', (byte)'N', // fr-sn
(byte)'Z', (byte)'Z', (byte)'Z', // fr-sy
(byte)'Z', (byte)'Z', (byte)'Z', // fr-td
(byte)'Z', (byte)'Z', (byte)'Z', // fr-tg
(byte)'Z', (byte)'Z', (byte)'Z', // fr-tn
(byte)'Z', (byte)'Z', (byte)'Z', // fr-vu
(byte)'Z', (byte)'Z', (byte)'Z', // fr-wf
(byte)'Z', (byte)'Z', (byte)'Z', // fr-yt
(byte)'Z', (byte)'Z', (byte)'Z', // fur
(byte)'Z', (byte)'Z', (byte)'Z', // fur-it
(byte)'F', (byte)'Y', (byte)'N', // fy
(byte)'F', (byte)'Y', (byte)'N', // fy-nl
(byte)'I', (byte)'R', (byte)'E', // ga
(byte)'I', (byte)'R', (byte)'E', // ga-ie
(byte)'G', (byte)'L', (byte)'A', // gd
(byte)'G', (byte)'L', (byte)'A', // gd-gb
(byte)'G', (byte)'L', (byte)'C', // gl
(byte)'G', (byte)'L', (byte)'C', // gl-es
(byte)'G', (byte)'R', (byte)'N', // gn
(byte)'G', (byte)'R', (byte)'N', // gn-py
(byte)'Z', (byte)'Z', (byte)'Z', // gsw
(byte)'Z', (byte)'Z', (byte)'Z', // gsw-ch
(byte)'G', (byte)'S', (byte)'W', // gsw-fr
(byte)'Z', (byte)'Z', (byte)'Z', // gsw-li
(byte)'G', (byte)'U', (byte)'J', // gu
(byte)'G', (byte)'U', (byte)'J', // gu-in
(byte)'Z', (byte)'Z', (byte)'Z', // guz
(byte)'Z', (byte)'Z', (byte)'Z', // guz-ke
(byte)'Z', (byte)'Z', (byte)'Z', // gv
(byte)'Z', (byte)'Z', (byte)'Z', // gv-im
(byte)'H', (byte)'A', (byte)'U', // ha
(byte)'H', (byte)'A', (byte)'U', // ha-latn
(byte)'Z', (byte)'Z', (byte)'Z', // ha-latn-gh
(byte)'Z', (byte)'Z', (byte)'Z', // ha-latn-ne
(byte)'H', (byte)'A', (byte)'U', // ha-latn-ng
(byte)'H', (byte)'A', (byte)'W', // haw
(byte)'H', (byte)'A', (byte)'W', // haw-us
(byte)'H', (byte)'E', (byte)'B', // he
(byte)'H', (byte)'E', (byte)'B', // he-il
(byte)'H', (byte)'I', (byte)'N', // hi
(byte)'H', (byte)'I', (byte)'N', // hi-in
(byte)'H', (byte)'R', (byte)'V', // hr
(byte)'H', (byte)'R', (byte)'B', // hr-ba
(byte)'H', (byte)'R', (byte)'V', // hr-hr
(byte)'H', (byte)'S', (byte)'B', // hsb
(byte)'H', (byte)'S', (byte)'B', // hsb-de
(byte)'H', (byte)'U', (byte)'N', // hu
(byte)'H', (byte)'U', (byte)'N', // hu-hu
(byte)'H', (byte)'U', (byte)'N', // hu-hu_technl
(byte)'H', (byte)'Y', (byte)'E', // hy
(byte)'H', (byte)'Y', (byte)'E', // hy-am
(byte)'Z', (byte)'Z', (byte)'Z', // ia
(byte)'Z', (byte)'Z', (byte)'Z', // ia-001
(byte)'Z', (byte)'Z', (byte)'Z', // ia-fr
(byte)'Z', (byte)'Z', (byte)'Z', // ibb
(byte)'Z', (byte)'Z', (byte)'Z', // ibb-ng
(byte)'I', (byte)'N', (byte)'D', // id
(byte)'I', (byte)'N', (byte)'D', // id-id
(byte)'I', (byte)'B', (byte)'O', // ig
(byte)'I', (byte)'B', (byte)'O', // ig-ng
(byte)'I', (byte)'I', (byte)'I', // ii
(byte)'I', (byte)'I', (byte)'I', // ii-cn
(byte)'I', (byte)'S', (byte)'L', // is
(byte)'I', (byte)'S', (byte)'L', // is-is
(byte)'I', (byte)'T', (byte)'A', // it
(byte)'I', (byte)'T', (byte)'S', // it-ch
(byte)'I', (byte)'T', (byte)'A', // it-it
(byte)'Z', (byte)'Z', (byte)'Z', // it-sm
(byte)'I', (byte)'U', (byte)'K', // iu
(byte)'I', (byte)'U', (byte)'S', // iu-cans
(byte)'I', (byte)'U', (byte)'S', // iu-cans-ca
(byte)'I', (byte)'U', (byte)'K', // iu-latn
(byte)'I', (byte)'U', (byte)'K', // iu-latn-ca
(byte)'J', (byte)'P', (byte)'N', // ja
(byte)'J', (byte)'P', (byte)'N', // ja-jp
(byte)'J', (byte)'P', (byte)'N', // ja-jp_radstr
(byte)'Z', (byte)'Z', (byte)'Z', // jgo
(byte)'Z', (byte)'Z', (byte)'Z', // jgo-cm
(byte)'Z', (byte)'Z', (byte)'Z', // jmc
(byte)'Z', (byte)'Z', (byte)'Z', // jmc-tz
(byte)'J', (byte)'A', (byte)'V', // jv
(byte)'Z', (byte)'Z', (byte)'Z', // jv-java
(byte)'Z', (byte)'Z', (byte)'Z', // jv-java-id
(byte)'J', (byte)'A', (byte)'V', // jv-latn
(byte)'J', (byte)'A', (byte)'V', // jv-latn-id
(byte)'K', (byte)'A', (byte)'T', // ka
(byte)'K', (byte)'A', (byte)'T', // ka-ge
(byte)'K', (byte)'A', (byte)'T', // ka-ge_modern
(byte)'Z', (byte)'Z', (byte)'Z', // kab
(byte)'Z', (byte)'Z', (byte)'Z', // kab-dz
(byte)'Z', (byte)'Z', (byte)'Z', // kam
(byte)'Z', (byte)'Z', (byte)'Z', // kam-ke
(byte)'Z', (byte)'Z', (byte)'Z', // kde
(byte)'Z', (byte)'Z', (byte)'Z', // kde-tz
(byte)'Z', (byte)'Z', (byte)'Z', // kea
(byte)'Z', (byte)'Z', (byte)'Z', // kea-cv
(byte)'Z', (byte)'Z', (byte)'Z', // khq
(byte)'Z', (byte)'Z', (byte)'Z', // khq-ml
(byte)'Z', (byte)'Z', (byte)'Z', // ki
(byte)'Z', (byte)'Z', (byte)'Z', // ki-ke
(byte)'K', (byte)'K', (byte)'Z', // kk
(byte)'K', (byte)'K', (byte)'Z', // kk-kz
(byte)'Z', (byte)'Z', (byte)'Z', // kkj
(byte)'Z', (byte)'Z', (byte)'Z', // kkj-cm
(byte)'K', (byte)'A', (byte)'L', // kl
(byte)'K', (byte)'A', (byte)'L', // kl-gl
(byte)'Z', (byte)'Z', (byte)'Z', // kln
(byte)'Z', (byte)'Z', (byte)'Z', // kln-ke
(byte)'K', (byte)'H', (byte)'M', // km
(byte)'K', (byte)'H', (byte)'M', // km-kh
(byte)'K', (byte)'D', (byte)'I', // kn
(byte)'K', (byte)'D', (byte)'I', // kn-in
(byte)'K', (byte)'O', (byte)'R', // ko
(byte)'Z', (byte)'Z', (byte)'Z', // ko-kp
(byte)'K', (byte)'O', (byte)'R', // ko-kr
(byte)'K', (byte)'N', (byte)'K', // kok
(byte)'K', (byte)'N', (byte)'K', // kok-in
(byte)'Z', (byte)'Z', (byte)'Z', // kr
(byte)'Z', (byte)'Z', (byte)'Z', // kr-ng
(byte)'Z', (byte)'Z', (byte)'Z', // ks
(byte)'Z', (byte)'Z', (byte)'Z', // ks-arab
(byte)'Z', (byte)'Z', (byte)'Z', // ks-arab-in
(byte)'Z', (byte)'Z', (byte)'Z', // ks-deva
(byte)'Z', (byte)'Z', (byte)'Z', // ks-deva-in
(byte)'Z', (byte)'Z', (byte)'Z', // ksb
(byte)'Z', (byte)'Z', (byte)'Z', // ksb-tz
(byte)'Z', (byte)'Z', (byte)'Z', // ksf
(byte)'Z', (byte)'Z', (byte)'Z', // ksf-cm
(byte)'Z', (byte)'Z', (byte)'Z', // ksh
(byte)'Z', (byte)'Z', (byte)'Z', // ksh-de
(byte)'K', (byte)'U', (byte)'R', // ku
(byte)'K', (byte)'U', (byte)'R', // ku-arab
(byte)'K', (byte)'U', (byte)'R', // ku-arab-iq
(byte)'Z', (byte)'Z', (byte)'Z', // ku-arab-ir
(byte)'Z', (byte)'Z', (byte)'Z', // kw
(byte)'Z', (byte)'Z', (byte)'Z', // kw-gb
(byte)'K', (byte)'Y', (byte)'R', // ky
(byte)'K', (byte)'Y', (byte)'R', // ky-kg
(byte)'Z', (byte)'Z', (byte)'Z', // la
(byte)'Z', (byte)'Z', (byte)'Z', // la-001
(byte)'Z', (byte)'Z', (byte)'Z', // lag
(byte)'Z', (byte)'Z', (byte)'Z', // lag-tz
(byte)'L', (byte)'B', (byte)'X', // lb
(byte)'L', (byte)'B', (byte)'X', // lb-lu
(byte)'Z', (byte)'Z', (byte)'Z', // lg
(byte)'Z', (byte)'Z', (byte)'Z', // lg-ug
(byte)'Z', (byte)'Z', (byte)'Z', // lkt
(byte)'Z', (byte)'Z', (byte)'Z', // lkt-us
(byte)'Z', (byte)'Z', (byte)'Z', // ln
(byte)'Z', (byte)'Z', (byte)'Z', // ln-ao
(byte)'Z', (byte)'Z', (byte)'Z', // ln-cd
(byte)'Z', (byte)'Z', (byte)'Z', // ln-cf
(byte)'Z', (byte)'Z', (byte)'Z', // ln-cg
(byte)'L', (byte)'A', (byte)'O', // lo
(byte)'L', (byte)'A', (byte)'O', // lo-la
(byte)'Z', (byte)'Z', (byte)'Z', // lrc
(byte)'Z', (byte)'Z', (byte)'Z', // lrc-iq
(byte)'Z', (byte)'Z', (byte)'Z', // lrc-ir
(byte)'L', (byte)'T', (byte)'H', // lt
(byte)'L', (byte)'T', (byte)'H', // lt-lt
(byte)'Z', (byte)'Z', (byte)'Z', // lu
(byte)'Z', (byte)'Z', (byte)'Z', // lu-cd
(byte)'Z', (byte)'Z', (byte)'Z', // luo
(byte)'Z', (byte)'Z', (byte)'Z', // luo-ke
(byte)'Z', (byte)'Z', (byte)'Z', // luy
(byte)'Z', (byte)'Z', (byte)'Z', // luy-ke
(byte)'L', (byte)'V', (byte)'I', // lv
(byte)'L', (byte)'V', (byte)'I', // lv-lv
(byte)'Z', (byte)'Z', (byte)'Z', // mas
(byte)'Z', (byte)'Z', (byte)'Z', // mas-ke
(byte)'Z', (byte)'Z', (byte)'Z', // mas-tz
(byte)'Z', (byte)'Z', (byte)'Z', // mer
(byte)'Z', (byte)'Z', (byte)'Z', // mer-ke
(byte)'Z', (byte)'Z', (byte)'Z', // mfe
(byte)'Z', (byte)'Z', (byte)'Z', // mfe-mu
(byte)'M', (byte)'L', (byte)'G', // mg
(byte)'M', (byte)'L', (byte)'G', // mg-mg
(byte)'Z', (byte)'Z', (byte)'Z', // mgh
(byte)'Z', (byte)'Z', (byte)'Z', // mgh-mz
(byte)'Z', (byte)'Z', (byte)'Z', // mgo
(byte)'Z', (byte)'Z', (byte)'Z', // mgo-cm
(byte)'M', (byte)'R', (byte)'I', // mi
(byte)'M', (byte)'R', (byte)'I', // mi-nz
(byte)'M', (byte)'K', (byte)'I', // mk
(byte)'M', (byte)'K', (byte)'I', // mk-mk
(byte)'M', (byte)'Y', (byte)'M', // ml
(byte)'M', (byte)'Y', (byte)'M', // ml-in
(byte)'M', (byte)'O', (byte)'N', // mn
(byte)'M', (byte)'N', (byte)'N', // mn-cyrl
(byte)'M', (byte)'N', (byte)'N', // mn-mn
(byte)'M', (byte)'N', (byte)'G', // mn-mong
(byte)'M', (byte)'N', (byte)'G', // mn-mong-cn
(byte)'M', (byte)'N', (byte)'M', // mn-mong-mn
(byte)'Z', (byte)'Z', (byte)'Z', // mni
(byte)'Z', (byte)'Z', (byte)'Z', // mni-in
(byte)'M', (byte)'W', (byte)'K', // moh
(byte)'M', (byte)'W', (byte)'K', // moh-ca
(byte)'M', (byte)'A', (byte)'R', // mr
(byte)'M', (byte)'A', (byte)'R', // mr-in
(byte)'M', (byte)'S', (byte)'L', // ms
(byte)'M', (byte)'S', (byte)'B', // ms-bn
(byte)'M', (byte)'S', (byte)'L', // ms-my
(byte)'Z', (byte)'Z', (byte)'Z', // ms-sg
(byte)'M', (byte)'L', (byte)'T', // mt
(byte)'M', (byte)'L', (byte)'T', // mt-mt
(byte)'Z', (byte)'Z', (byte)'Z', // mua
(byte)'Z', (byte)'Z', (byte)'Z', // mua-cm
(byte)'M', (byte)'Y', (byte)'A', // my
(byte)'M', (byte)'Y', (byte)'A', // my-mm
(byte)'Z', (byte)'Z', (byte)'Z', // mzn
(byte)'Z', (byte)'Z', (byte)'Z', // mzn-ir
(byte)'Z', (byte)'Z', (byte)'Z', // naq
(byte)'Z', (byte)'Z', (byte)'Z', // naq-na
(byte)'N', (byte)'O', (byte)'R', // nb
(byte)'N', (byte)'O', (byte)'R', // nb-no
(byte)'Z', (byte)'Z', (byte)'Z', // nb-sj
(byte)'Z', (byte)'Z', (byte)'Z', // nd
(byte)'Z', (byte)'Z', (byte)'Z', // nd-zw
(byte)'Z', (byte)'Z', (byte)'Z', // nds
(byte)'Z', (byte)'Z', (byte)'Z', // nds-de
(byte)'Z', (byte)'Z', (byte)'Z', // nds-nl
(byte)'N', (byte)'E', (byte)'P', // ne
(byte)'N', (byte)'E', (byte)'I', // ne-in
(byte)'N', (byte)'E', (byte)'P', // ne-np
(byte)'N', (byte)'L', (byte)'D', // nl
(byte)'Z', (byte)'Z', (byte)'Z', // nl-aw
(byte)'N', (byte)'L', (byte)'B', // nl-be
(byte)'Z', (byte)'Z', (byte)'Z', // nl-bq
(byte)'Z', (byte)'Z', (byte)'Z', // nl-cw
(byte)'N', (byte)'L', (byte)'D', // nl-nl
(byte)'Z', (byte)'Z', (byte)'Z', // nl-sr
(byte)'Z', (byte)'Z', (byte)'Z', // nl-sx
(byte)'Z', (byte)'Z', (byte)'Z', // nmg
(byte)'Z', (byte)'Z', (byte)'Z', // nmg-cm
(byte)'N', (byte)'O', (byte)'N', // nn
(byte)'N', (byte)'O', (byte)'N', // nn-no
(byte)'Z', (byte)'Z', (byte)'Z', // nnh
(byte)'Z', (byte)'Z', (byte)'Z', // nnh-cm
(byte)'N', (byte)'O', (byte)'R', // no
(byte)'N', (byte)'Q', (byte)'O', // nqo
(byte)'N', (byte)'Q', (byte)'O', // nqo-gn
(byte)'Z', (byte)'Z', (byte)'Z', // nr
(byte)'Z', (byte)'Z', (byte)'Z', // nr-za
(byte)'N', (byte)'S', (byte)'O', // nso
(byte)'N', (byte)'S', (byte)'O', // nso-za
(byte)'Z', (byte)'Z', (byte)'Z', // nus
(byte)'Z', (byte)'Z', (byte)'Z', // nus-ss
(byte)'Z', (byte)'Z', (byte)'Z', // nyn
(byte)'Z', (byte)'Z', (byte)'Z', // nyn-ug
(byte)'O', (byte)'C', (byte)'I', // oc
(byte)'O', (byte)'C', (byte)'I', // oc-fr
(byte)'O', (byte)'R', (byte)'M', // om
(byte)'O', (byte)'R', (byte)'M', // om-et
(byte)'Z', (byte)'Z', (byte)'Z', // om-ke
(byte)'O', (byte)'R', (byte)'I', // or
(byte)'O', (byte)'R', (byte)'I', // or-in
(byte)'Z', (byte)'Z', (byte)'Z', // os
(byte)'Z', (byte)'Z', (byte)'Z', // os-ge
(byte)'Z', (byte)'Z', (byte)'Z', // os-ru
(byte)'P', (byte)'A', (byte)'N', // pa
(byte)'P', (byte)'A', (byte)'P', // pa-arab
(byte)'P', (byte)'A', (byte)'P', // pa-arab-pk
(byte)'P', (byte)'A', (byte)'N', // pa-in
(byte)'Z', (byte)'Z', (byte)'Z', // pap
(byte)'Z', (byte)'Z', (byte)'Z', // pap-029
(byte)'P', (byte)'L', (byte)'K', // pl
(byte)'P', (byte)'L', (byte)'K', // pl-pl
(byte)'Z', (byte)'Z', (byte)'Z', // prg
(byte)'Z', (byte)'Z', (byte)'Z', // prg-001
(byte)'P', (byte)'R', (byte)'S', // prs
(byte)'P', (byte)'R', (byte)'S', // prs-af
(byte)'P', (byte)'A', (byte)'S', // ps
(byte)'P', (byte)'A', (byte)'S', // ps-af
(byte)'P', (byte)'T', (byte)'B', // pt
(byte)'P', (byte)'T', (byte)'A', // pt-ao
(byte)'P', (byte)'T', (byte)'B', // pt-br
(byte)'Z', (byte)'Z', (byte)'Z', // pt-ch
(byte)'Z', (byte)'Z', (byte)'Z', // pt-cv
(byte)'Z', (byte)'Z', (byte)'Z', // pt-gq
(byte)'Z', (byte)'Z', (byte)'Z', // pt-gw
(byte)'Z', (byte)'Z', (byte)'Z', // pt-lu
(byte)'Z', (byte)'Z', (byte)'Z', // pt-mo
(byte)'Z', (byte)'Z', (byte)'Z', // pt-mz
(byte)'P', (byte)'T', (byte)'G', // pt-pt
(byte)'Z', (byte)'Z', (byte)'Z', // pt-st
(byte)'Z', (byte)'Z', (byte)'Z', // pt-tl
(byte)'E', (byte)'N', (byte)'J', // qps-latn-x-sh
(byte)'E', (byte)'N', (byte)'U', // qps-ploc
(byte)'J', (byte)'P', (byte)'N', // qps-ploca
(byte)'A', (byte)'R', (byte)'A', // qps-plocm
(byte)'Q', (byte)'U', (byte)'C', // quc
(byte)'Q', (byte)'U', (byte)'T', // quc-latn
(byte)'Q', (byte)'U', (byte)'T', // quc-latn-gt
(byte)'Q', (byte)'U', (byte)'B', // quz
(byte)'Q', (byte)'U', (byte)'B', // quz-bo
(byte)'Q', (byte)'U', (byte)'E', // quz-ec
(byte)'Q', (byte)'U', (byte)'P', // quz-pe
(byte)'R', (byte)'M', (byte)'C', // rm
(byte)'R', (byte)'M', (byte)'C', // rm-ch
(byte)'Z', (byte)'Z', (byte)'Z', // rn
(byte)'Z', (byte)'Z', (byte)'Z', // rn-bi
(byte)'R', (byte)'O', (byte)'M', // ro
(byte)'R', (byte)'O', (byte)'D', // ro-md
(byte)'R', (byte)'O', (byte)'M', // ro-ro
(byte)'Z', (byte)'Z', (byte)'Z', // rof
(byte)'Z', (byte)'Z', (byte)'Z', // rof-tz
(byte)'R', (byte)'U', (byte)'S', // ru
(byte)'Z', (byte)'Z', (byte)'Z', // ru-by
(byte)'Z', (byte)'Z', (byte)'Z', // ru-kg
(byte)'Z', (byte)'Z', (byte)'Z', // ru-kz
(byte)'R', (byte)'U', (byte)'M', // ru-md
(byte)'R', (byte)'U', (byte)'S', // ru-ru
(byte)'Z', (byte)'Z', (byte)'Z', // ru-ua
(byte)'K', (byte)'I', (byte)'N', // rw
(byte)'K', (byte)'I', (byte)'N', // rw-rw
(byte)'Z', (byte)'Z', (byte)'Z', // rwk
(byte)'Z', (byte)'Z', (byte)'Z', // rwk-tz
(byte)'S', (byte)'A', (byte)'N', // sa
(byte)'S', (byte)'A', (byte)'N', // sa-in
(byte)'S', (byte)'A', (byte)'H', // sah
(byte)'S', (byte)'A', (byte)'H', // sah-ru
(byte)'Z', (byte)'Z', (byte)'Z', // saq
(byte)'Z', (byte)'Z', (byte)'Z', // saq-ke
(byte)'Z', (byte)'Z', (byte)'Z', // sbp
(byte)'Z', (byte)'Z', (byte)'Z', // sbp-tz
(byte)'S', (byte)'I', (byte)'P', // sd
(byte)'S', (byte)'I', (byte)'P', // sd-arab
(byte)'S', (byte)'I', (byte)'P', // sd-arab-pk
(byte)'Z', (byte)'Z', (byte)'Z', // sd-deva
(byte)'Z', (byte)'Z', (byte)'Z', // sd-deva-in
(byte)'S', (byte)'M', (byte)'E', // se
(byte)'S', (byte)'M', (byte)'G', // se-fi
(byte)'S', (byte)'M', (byte)'E', // se-no
(byte)'S', (byte)'M', (byte)'F', // se-se
(byte)'Z', (byte)'Z', (byte)'Z', // seh
(byte)'Z', (byte)'Z', (byte)'Z', // seh-mz
(byte)'Z', (byte)'Z', (byte)'Z', // ses
(byte)'Z', (byte)'Z', (byte)'Z', // ses-ml
(byte)'Z', (byte)'Z', (byte)'Z', // sg
(byte)'Z', (byte)'Z', (byte)'Z', // sg-cf
(byte)'Z', (byte)'Z', (byte)'Z', // shi
(byte)'Z', (byte)'Z', (byte)'Z', // shi-latn
(byte)'Z', (byte)'Z', (byte)'Z', // shi-latn-ma
(byte)'Z', (byte)'Z', (byte)'Z', // shi-tfng
(byte)'Z', (byte)'Z', (byte)'Z', // shi-tfng-ma
(byte)'S', (byte)'I', (byte)'N', // si
(byte)'S', (byte)'I', (byte)'N', // si-lk
(byte)'S', (byte)'K', (byte)'Y', // sk
(byte)'S', (byte)'K', (byte)'Y', // sk-sk
(byte)'S', (byte)'L', (byte)'V', // sl
(byte)'S', (byte)'L', (byte)'V', // sl-si
(byte)'S', (byte)'M', (byte)'B', // sma
(byte)'S', (byte)'M', (byte)'A', // sma-no
(byte)'S', (byte)'M', (byte)'B', // sma-se
(byte)'S', (byte)'M', (byte)'K', // smj
(byte)'S', (byte)'M', (byte)'J', // smj-no
(byte)'S', (byte)'M', (byte)'K', // smj-se
(byte)'S', (byte)'M', (byte)'N', // smn
(byte)'S', (byte)'M', (byte)'N', // smn-fi
(byte)'S', (byte)'M', (byte)'S', // sms
(byte)'S', (byte)'M', (byte)'S', // sms-fi
(byte)'S', (byte)'N', (byte)'A', // sn
(byte)'S', (byte)'N', (byte)'A', // sn-latn
(byte)'S', (byte)'N', (byte)'A', // sn-latn-zw
(byte)'S', (byte)'O', (byte)'M', // so
(byte)'Z', (byte)'Z', (byte)'Z', // so-dj
(byte)'Z', (byte)'Z', (byte)'Z', // so-et
(byte)'Z', (byte)'Z', (byte)'Z', // so-ke
(byte)'S', (byte)'O', (byte)'M', // so-so
(byte)'S', (byte)'Q', (byte)'I', // sq
(byte)'S', (byte)'Q', (byte)'I', // sq-al
(byte)'Z', (byte)'Z', (byte)'Z', // sq-mk
(byte)'Z', (byte)'Z', (byte)'Z', // sq-xk
(byte)'S', (byte)'R', (byte)'B', // sr
(byte)'S', (byte)'R', (byte)'O', // sr-cyrl
(byte)'S', (byte)'R', (byte)'N', // sr-cyrl-ba
(byte)'S', (byte)'R', (byte)'B', // sr-cyrl-cs
(byte)'S', (byte)'R', (byte)'Q', // sr-cyrl-me
(byte)'S', (byte)'R', (byte)'O', // sr-cyrl-rs
(byte)'Z', (byte)'Z', (byte)'Z', // sr-cyrl-xk
(byte)'S', (byte)'R', (byte)'M', // sr-latn
(byte)'S', (byte)'R', (byte)'S', // sr-latn-ba
(byte)'S', (byte)'R', (byte)'L', // sr-latn-cs
(byte)'S', (byte)'R', (byte)'P', // sr-latn-me
(byte)'S', (byte)'R', (byte)'M', // sr-latn-rs
(byte)'Z', (byte)'Z', (byte)'Z', // sr-latn-xk
(byte)'Z', (byte)'Z', (byte)'Z', // ss
(byte)'Z', (byte)'Z', (byte)'Z', // ss-sz
(byte)'Z', (byte)'Z', (byte)'Z', // ss-za
(byte)'Z', (byte)'Z', (byte)'Z', // ssy
(byte)'Z', (byte)'Z', (byte)'Z', // ssy-er
(byte)'S', (byte)'O', (byte)'T', // st
(byte)'Z', (byte)'Z', (byte)'Z', // st-ls
(byte)'S', (byte)'O', (byte)'T', // st-za
(byte)'S', (byte)'V', (byte)'E', // sv
(byte)'Z', (byte)'Z', (byte)'Z', // sv-ax
(byte)'S', (byte)'V', (byte)'F', // sv-fi
(byte)'S', (byte)'V', (byte)'E', // sv-se
(byte)'S', (byte)'W', (byte)'K', // sw
(byte)'Z', (byte)'Z', (byte)'Z', // sw-cd
(byte)'S', (byte)'W', (byte)'K', // sw-ke
(byte)'Z', (byte)'Z', (byte)'Z', // sw-tz
(byte)'Z', (byte)'Z', (byte)'Z', // sw-ug
(byte)'Z', (byte)'Z', (byte)'Z', // swc
(byte)'Z', (byte)'Z', (byte)'Z', // swc-cd
(byte)'S', (byte)'Y', (byte)'R', // syr
(byte)'S', (byte)'Y', (byte)'R', // syr-sy
(byte)'T', (byte)'A', (byte)'I', // ta
(byte)'T', (byte)'A', (byte)'I', // ta-in
(byte)'T', (byte)'A', (byte)'M', // ta-lk
(byte)'Z', (byte)'Z', (byte)'Z', // ta-my
(byte)'Z', (byte)'Z', (byte)'Z', // ta-sg
(byte)'T', (byte)'E', (byte)'L', // te
(byte)'T', (byte)'E', (byte)'L', // te-in
(byte)'Z', (byte)'Z', (byte)'Z', // teo
(byte)'Z', (byte)'Z', (byte)'Z', // teo-ke
(byte)'Z', (byte)'Z', (byte)'Z', // teo-ug
(byte)'T', (byte)'A', (byte)'J', // tg
(byte)'T', (byte)'A', (byte)'J', // tg-cyrl
(byte)'T', (byte)'A', (byte)'J', // tg-cyrl-tj
(byte)'T', (byte)'H', (byte)'A', // th
(byte)'T', (byte)'H', (byte)'A', // th-th
(byte)'T', (byte)'I', (byte)'R', // ti
(byte)'T', (byte)'I', (byte)'R', // ti-er
(byte)'T', (byte)'I', (byte)'E', // ti-et
(byte)'Z', (byte)'Z', (byte)'Z', // tig
(byte)'Z', (byte)'Z', (byte)'Z', // tig-er
(byte)'T', (byte)'U', (byte)'K', // tk
(byte)'T', (byte)'U', (byte)'K', // tk-tm
(byte)'T', (byte)'S', (byte)'N', // tn
(byte)'T', (byte)'S', (byte)'B', // tn-bw
(byte)'T', (byte)'S', (byte)'N', // tn-za
(byte)'Z', (byte)'Z', (byte)'Z', // to
(byte)'Z', (byte)'Z', (byte)'Z', // to-to
(byte)'T', (byte)'R', (byte)'K', // tr
(byte)'Z', (byte)'Z', (byte)'Z', // tr-cy
(byte)'T', (byte)'R', (byte)'K', // tr-tr
(byte)'T', (byte)'S', (byte)'O', // ts
(byte)'T', (byte)'S', (byte)'O', // ts-za
(byte)'T', (byte)'T', (byte)'T', // tt
(byte)'T', (byte)'T', (byte)'T', // tt-ru
(byte)'Z', (byte)'Z', (byte)'Z', // twq
(byte)'Z', (byte)'Z', (byte)'Z', // twq-ne
(byte)'T', (byte)'Z', (byte)'A', // tzm
(byte)'Z', (byte)'Z', (byte)'Z', // tzm-arab
(byte)'Z', (byte)'Z', (byte)'Z', // tzm-arab-ma
(byte)'T', (byte)'Z', (byte)'A', // tzm-latn
(byte)'T', (byte)'Z', (byte)'A', // tzm-latn-dz
(byte)'Z', (byte)'Z', (byte)'Z', // tzm-latn-ma
(byte)'T', (byte)'Z', (byte)'M', // tzm-tfng
(byte)'T', (byte)'Z', (byte)'M', // tzm-tfng-ma
(byte)'U', (byte)'I', (byte)'G', // ug
(byte)'U', (byte)'I', (byte)'G', // ug-cn
(byte)'U', (byte)'K', (byte)'R', // uk
(byte)'U', (byte)'K', (byte)'R', // uk-ua
(byte)'U', (byte)'R', (byte)'D', // ur
(byte)'U', (byte)'R', (byte)'I', // ur-in
(byte)'U', (byte)'R', (byte)'D', // ur-pk
(byte)'U', (byte)'Z', (byte)'B', // uz
(byte)'Z', (byte)'Z', (byte)'Z', // uz-arab
(byte)'Z', (byte)'Z', (byte)'Z', // uz-arab-af
(byte)'U', (byte)'Z', (byte)'C', // uz-cyrl
(byte)'U', (byte)'Z', (byte)'C', // uz-cyrl-uz
(byte)'U', (byte)'Z', (byte)'B', // uz-latn
(byte)'U', (byte)'Z', (byte)'B', // uz-latn-uz
(byte)'Z', (byte)'Z', (byte)'Z', // vai
(byte)'Z', (byte)'Z', (byte)'Z', // vai-latn
(byte)'Z', (byte)'Z', (byte)'Z', // vai-latn-lr
(byte)'Z', (byte)'Z', (byte)'Z', // vai-vaii
(byte)'Z', (byte)'Z', (byte)'Z', // vai-vaii-lr
(byte)'Z', (byte)'Z', (byte)'Z', // ve
(byte)'Z', (byte)'Z', (byte)'Z', // ve-za
(byte)'V', (byte)'I', (byte)'T', // vi
(byte)'V', (byte)'I', (byte)'T', // vi-vn
(byte)'Z', (byte)'Z', (byte)'Z', // vo
(byte)'Z', (byte)'Z', (byte)'Z', // vo-001
(byte)'Z', (byte)'Z', (byte)'Z', // vun
(byte)'Z', (byte)'Z', (byte)'Z', // vun-tz
(byte)'Z', (byte)'Z', (byte)'Z', // wae
(byte)'Z', (byte)'Z', (byte)'Z', // wae-ch
(byte)'Z', (byte)'Z', (byte)'Z', // wal
(byte)'Z', (byte)'Z', (byte)'Z', // wal-et
(byte)'W', (byte)'O', (byte)'L', // wo
(byte)'W', (byte)'O', (byte)'L', // wo-sn
(byte)'I', (byte)'V', (byte)'L', // x-iv_mathan
(byte)'X', (byte)'H', (byte)'O', // xh
(byte)'X', (byte)'H', (byte)'O', // xh-za
(byte)'Z', (byte)'Z', (byte)'Z', // xog
(byte)'Z', (byte)'Z', (byte)'Z', // xog-ug
(byte)'Z', (byte)'Z', (byte)'Z', // yav
(byte)'Z', (byte)'Z', (byte)'Z', // yav-cm
(byte)'Z', (byte)'Z', (byte)'Z', // yi
(byte)'Z', (byte)'Z', (byte)'Z', // yi-001
(byte)'Y', (byte)'O', (byte)'R', // yo
(byte)'Z', (byte)'Z', (byte)'Z', // yo-bj
(byte)'Y', (byte)'O', (byte)'R', // yo-ng
(byte)'Z', (byte)'Z', (byte)'Z', // yue
(byte)'Z', (byte)'Z', (byte)'Z', // yue-hk
(byte)'Z', (byte)'H', (byte)'G', // zgh
(byte)'Z', (byte)'H', (byte)'G', // zgh-tfng
(byte)'Z', (byte)'H', (byte)'G', // zgh-tfng-ma
(byte)'C', (byte)'H', (byte)'S', // zh
(byte)'C', (byte)'H', (byte)'S', // zh-chs
(byte)'C', (byte)'H', (byte)'T', // zh-cht
(byte)'C', (byte)'H', (byte)'S', // zh-cn
(byte)'C', (byte)'H', (byte)'S', // zh-cn_phoneb
(byte)'C', (byte)'H', (byte)'S', // zh-cn_stroke
(byte)'C', (byte)'H', (byte)'S', // zh-hans
(byte)'Z', (byte)'Z', (byte)'Z', // zh-hans-hk
(byte)'Z', (byte)'Z', (byte)'Z', // zh-hans-mo
(byte)'Z', (byte)'H', (byte)'H', // zh-hant
(byte)'Z', (byte)'H', (byte)'H', // zh-hk
(byte)'Z', (byte)'H', (byte)'H', // zh-hk_radstr
(byte)'Z', (byte)'H', (byte)'M', // zh-mo
(byte)'Z', (byte)'H', (byte)'M', // zh-mo_radstr
(byte)'Z', (byte)'H', (byte)'M', // zh-mo_stroke
(byte)'Z', (byte)'H', (byte)'I', // zh-sg
(byte)'Z', (byte)'H', (byte)'I', // zh-sg_phoneb
(byte)'Z', (byte)'H', (byte)'I', // zh-sg_stroke
(byte)'C', (byte)'H', (byte)'T', // zh-tw
(byte)'C', (byte)'H', (byte)'T', // zh-tw_pronun
(byte)'C', (byte)'H', (byte)'T', // zh-tw_radstr
(byte)'Z', (byte)'U', (byte)'L', // zu
(byte)'Z', (byte)'U', (byte)'L', // zu-za
};
internal const int CommaSep = 0 << 16;
internal const int SemicolonSep = 1 << 16;
internal const int ArabicCommaSep = 2 << 16;
internal const int ArabicSemicolonSep = 3 << 16;
internal const int DoubleCommaSep = 4 << 16;
private static ReadOnlySpan<byte> NameIndexToNumericData => new byte[CulturesCount * NumericLocaleDataBytesPerRow]
{
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0x30, 0xf0, // 0 - aa
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3e, 0x11, 0x00, 0x10, 0xf0, // 1 - aa-dj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x00, 0x20, 0xf0, // 2 - aa-er
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0x30, 0xf0, // 3 - aa-et
0x00, 0x00, 0x36, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x00, 0x60, 0x06, // 4 - af
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x11, 0x00, 0x50, 0xf0, // 5 - af-na
0x00, 0x04, 0x36, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x00, 0x60, 0x06, // 6 - af-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x00, 0x80, 0xf0, // 7 - agq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x00, 0x80, 0xf0, // 8 - agq-cm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x00, 0xa0, 0xf0, // 9 - ak
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x00, 0xa0, 0xf0, // 10 - ak-gh
0x00, 0x00, 0x5e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0xc0, 0x8f, // 11 - am
0x00, 0x04, 0x5e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x00, 0xc0, 0x8f, // 12 - am-et
0x00, 0x00, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xcd, 0x10, 0x02, 0x10, 0x8f, // 13 - ar
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x98, 0x9e, 0x10, 0x00, 0xe0, 0xf0, // 14 - ar-001
0x00, 0x38, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xe0, 0x10, 0x00, 0xf0, 0x8f, // 15 - ar-ae
0x00, 0x3c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x11, 0x10, 0x01, 0x00, 0x8f, // 16 - ar-bh
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x3e, 0x10, 0x01, 0x10, 0xf0, // 17 - ar-dj
0x00, 0x14, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x04, 0x11, 0x01, 0x21, 0x2c, // 18 - ar-dz
0x00, 0x0c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x43, 0x10, 0x01, 0x30, 0x8f, // 19 - ar-eg
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x47, 0x10, 0x01, 0x40, 0xf0, // 20 - ar-er
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x75, 0x10, 0x01, 0x50, 0xf0, // 21 - ar-il
0x00, 0x08, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x10, 0x01, 0x60, 0x8f, // 22 - ar-iq
0x00, 0x2c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x7e, 0x10, 0x01, 0x70, 0x8f, // 23 - ar-jo
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x32, 0x10, 0x01, 0x80, 0xf0, // 24 - ar-km
0x00, 0x34, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x88, 0x10, 0x01, 0x90, 0x8f, // 25 - ar-kw
0x00, 0x30, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x8b, 0x10, 0x01, 0xa0, 0x8f, // 26 - ar-lb
0x00, 0x10, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x94, 0x11, 0x01, 0xb0, 0x8f, // 27 - ar-ly
0x00, 0x18, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x01, 0xc1, 0x2c, // 28 - ar-ma
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xa2, 0x10, 0x01, 0xd0, 0xf0, // 29 - ar-mr
0x00, 0x20, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xa4, 0x10, 0x01, 0xe0, 0x8f, // 30 - ar-om
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xb8, 0x10, 0x01, 0xf0, 0xf0, // 31 - ar-ps
0x00, 0x40, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xc5, 0x10, 0x02, 0x00, 0x8f, // 32 - ar-qa
0x00, 0x04, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xcd, 0x10, 0x02, 0x10, 0x8f, // 33 - ar-sa
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xdb, 0x10, 0x02, 0x20, 0xf0, // 34 - ar-sd
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xd8, 0x10, 0x02, 0x30, 0xf0, // 35 - ar-so
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x01, 0x14, 0x10, 0x02, 0x40, 0xf0, // 36 - ar-ss
0x00, 0x28, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xde, 0x10, 0x02, 0x50, 0x8f, // 37 - ar-sy
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x29, 0x10, 0x02, 0x60, 0xf0, // 38 - ar-td
0x00, 0x1c, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xea, 0x11, 0x02, 0x71, 0x2c, // 39 - ar-tn
0x00, 0x24, 0x01, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x01, 0x05, 0x10, 0x02, 0x80, 0x8f, // 40 - ar-ye
0x00, 0x00, 0x7a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x2e, 0x01, 0x02, 0xa0, 0x2a, // 41 - arn
0x00, 0x04, 0x7a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x2e, 0x01, 0x02, 0xa0, 0x2a, // 42 - arn-cl
0x00, 0x00, 0x4d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x02, 0xc0, 0x8f, // 43 - as
0x00, 0x04, 0x4d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x02, 0xc0, 0x8f, // 44 - as-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x02, 0xe0, 0xf0, // 45 - asa
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x02, 0xe0, 0xf0, // 46 - asa-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x03, 0x00, 0xf0, // 47 - ast
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x03, 0x00, 0xf0, // 48 - ast-es
0x00, 0x00, 0x2c, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x50, 0x35, // 49 - az
0x00, 0x74, 0x2c, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x30, 0x33, // 50 - az-cyrl
0x00, 0x08, 0x2c, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x30, 0x33, // 51 - az-cyrl-az
0x00, 0x78, 0x2c, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x50, 0x35, // 52 - az-latn
0x00, 0x04, 0x2c, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x05, 0x11, 0x03, 0x50, 0x35, // 53 - az-latn-az
0x00, 0x00, 0x6d, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x03, 0x70, 0x37, // 54 - ba
0x00, 0x04, 0x6d, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x03, 0x70, 0x37, // 55 - ba-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x03, 0x90, 0xf0, // 56 - bas
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x03, 0x90, 0xf0, // 57 - bas-cm
0x00, 0x00, 0x23, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1d, 0x11, 0x03, 0xb0, 0x3b, // 58 - be
0x00, 0x04, 0x23, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1d, 0x11, 0x03, 0xb0, 0x3b, // 59 - be-by
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x07, 0x11, 0x03, 0xd0, 0xf0, // 60 - bem
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x07, 0x11, 0x03, 0xd0, 0xf0, // 61 - bem-zm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x03, 0xf0, 0xf0, // 62 - bez
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x03, 0xf0, 0xf0, // 63 - bez-tz
0x00, 0x00, 0x02, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x00, 0x23, 0x11, 0x04, 0x10, 0x41, // 64 - bg
0x00, 0x04, 0x02, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x00, 0x23, 0x11, 0x04, 0x10, 0x41, // 65 - bg-bg
0x00, 0x00, 0x66, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x04, 0x30, 0xf0, // 66 - bin
0x00, 0x04, 0x66, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x04, 0x30, 0xf0, // 67 - bin-ng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x04, 0x60, 0xf0, // 68 - bm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x04, 0x60, 0xf0, // 69 - bm-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x04, 0x60, 0xf0, // 70 - bm-latn-ml
0x00, 0x00, 0x45, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x17, 0x01, 0x04, 0x80, 0x8f, // 71 - bn
0x00, 0x08, 0x45, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x17, 0x01, 0x04, 0x80, 0x8f, // 72 - bn-bd
0x00, 0x04, 0x45, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x04, 0x90, 0x8f, // 73 - bn-in
0x00, 0x00, 0x51, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x04, 0xb0, 0x8f, // 74 - bo
0x00, 0x04, 0x51, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x04, 0xb0, 0x8f, // 75 - bo-cn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x04, 0xc0, 0xf0, // 76 - bo-in
0x00, 0x00, 0x7e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x04, 0xe0, 0x4e, // 77 - br
0x00, 0x04, 0x7e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x04, 0xe0, 0x4e, // 78 - br-fr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x05, 0x00, 0xf0, // 79 - brx
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x05, 0x00, 0xf0, // 80 - brx-in
0x00, 0x78, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x50, 0x55, // 81 - bs
0x00, 0x64, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x30, 0x53, // 82 - bs-cyrl
0x00, 0x20, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x30, 0x53, // 83 - bs-cyrl-ba
0x00, 0x68, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x50, 0x55, // 84 - bs-latn
0x00, 0x14, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x05, 0x50, 0x55, // 85 - bs-latn-ba
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x05, 0x70, 0xf0, // 86 - byn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x05, 0x70, 0xf0, // 87 - byn-er
0x00, 0x00, 0x03, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x05, 0xa0, 0x5a, // 88 - ca
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x08, 0x11, 0x05, 0x90, 0xf0, // 89 - ca-ad
0x00, 0x04, 0x03, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x05, 0xa0, 0x5a, // 90 - ca-es
0x00, 0x08, 0x03, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x05, 0xb0, 0x5a, // 91 - ca-es-valencia
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x54, 0x11, 0x05, 0xc0, 0xf0, // 92 - ca-fr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x05, 0xd0, 0xf0, // 93 - ca-it
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x05, 0xf0, 0xf0, // 94 - ce
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x05, 0xf0, 0xf0, // 95 - ce-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x06, 0x10, 0xf0, // 96 - cgg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x06, 0x10, 0xf0, // 97 - cgg-ug
0x00, 0x00, 0x5c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x06, 0x40, 0xf0, // 98 - chr
0x00, 0x7c, 0x5c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x06, 0x40, 0xf0, // 99 - chr-cher
0x00, 0x04, 0x5c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x06, 0x40, 0xf0, // 100 - chr-cher-us
0x00, 0x00, 0x83, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x06, 0x60, 0x66, // 101 - co
0x00, 0x04, 0x83, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x06, 0x60, 0x66, // 102 - co-fr
0x00, 0x00, 0x05, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4b, 0x11, 0x06, 0x80, 0x68, // 103 - cs
0x00, 0x04, 0x05, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4b, 0x11, 0x06, 0x80, 0x68, // 104 - cs-cz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x06, 0xa0, 0xf0, // 105 - cu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x06, 0xa0, 0xf0, // 106 - cu-ru
0x00, 0x00, 0x52, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x06, 0xc0, 0x6c, // 107 - cy
0x00, 0x04, 0x52, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x06, 0xc0, 0x6c, // 108 - cy-gb
0x00, 0x00, 0x06, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x3d, 0x11, 0x06, 0xe0, 0x6e, // 109 - da
0x00, 0x04, 0x06, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x3d, 0x11, 0x06, 0xe0, 0x6e, // 110 - da-dk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5d, 0x11, 0x06, 0xf0, 0xf0, // 111 - da-gl
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x07, 0x10, 0xf0, // 112 - dav
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x07, 0x10, 0xf0, // 113 - dav-ke
0x00, 0x00, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0x60, 0x76, // 114 - de
0x00, 0x0c, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x0e, 0x11, 0x07, 0x30, 0x73, // 115 - de-at
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x15, 0x11, 0x07, 0x40, 0xf0, // 116 - de-be
0x00, 0x08, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x07, 0x50, 0x75, // 117 - de-ch
0x00, 0x04, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0x60, 0x76, // 118 - de-de
0x01, 0x04, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0x60, 0x76, // 119 - de-de_phoneb
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x07, 0x80, 0xf0, // 120 - de-it
0x00, 0x14, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x91, 0x11, 0x07, 0x90, 0x79, // 121 - de-li
0x00, 0x10, 0x07, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x93, 0x11, 0x07, 0xa0, 0x7a, // 122 - de-lu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x07, 0xc0, 0xf0, // 123 - dje
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x07, 0xc0, 0xf0, // 124 - dje-ne
0x00, 0x7c, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0xe0, 0x7e, // 125 - dsb
0x00, 0x08, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x07, 0xe0, 0x7e, // 126 - dsb-de
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x08, 0x00, 0xf0, // 127 - dua
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x08, 0x00, 0xf0, // 128 - dua-cm
0x00, 0x00, 0x65, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa5, 0x21, 0x08, 0x20, 0x8f, // 129 - dv
0x00, 0x04, 0x65, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa5, 0x21, 0x08, 0x20, 0x8f, // 130 - dv-mv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x08, 0x40, 0xf0, // 131 - dyo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x08, 0x40, 0xf0, // 132 - dyo-sn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x22, 0x12, 0x08, 0x60, 0xf0, // 133 - dz
0x00, 0x0c, 0x51, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x22, 0x12, 0x08, 0x60, 0xf0, // 134 - dz-bt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x08, 0x80, 0xf0, // 135 - ebu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x08, 0x80, 0xf0, // 136 - ebu-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x08, 0xa0, 0xf0, // 137 - ee
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x08, 0xa0, 0xf0, // 138 - ee-gh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe8, 0x11, 0x08, 0xb0, 0xf0, // 139 - ee-tg
0x00, 0x00, 0x08, 0x4e, 0x52, 0xe1, 0x27, 0x16, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x62, 0x11, 0x08, 0xe0, 0x8e, // 140 - el
0x00, 0x10, 0x00, 0x4e, 0x52, 0xe1, 0x27, 0x16, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x3b, 0x11, 0x08, 0xd0, 0xf0, // 141 - el-cy
0x00, 0x04, 0x08, 0x4e, 0x52, 0xe1, 0x27, 0x16, 0x4f, 0x31, 0x00, 0x00, 0x00, 0x62, 0x11, 0x08, 0xe0, 0x8e, // 142 - el-gr
0x00, 0x00, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x0f, 0x00, 0xf0, // 143 - en
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x01, 0x09, 0x00, 0xf0, // 144 - en-001
0x00, 0x24, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x99, 0x32, 0x48, 0x01, 0x09, 0x10, 0x91, // 145 - en-029
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x29, 0x2d, 0x01, 0x09, 0x20, 0xf0, // 146 - en-150
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x02, 0x01, 0x09, 0x30, 0xf0, // 147 - en-ag
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x2c, 0x01, 0x09, 0x40, 0xf0, // 148 - en-ai
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x0a, 0x01, 0x09, 0x50, 0xf0, // 149 - en-as
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x0e, 0x01, 0x09, 0x60, 0xf0, // 150 - en-at
0x00, 0x0c, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x09, 0x70, 0x97, // 151 - en-au
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x12, 0x01, 0x09, 0x80, 0xf0, // 152 - en-bb
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x15, 0x01, 0x09, 0x90, 0xf0, // 153 - en-be
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x26, 0x01, 0x09, 0xa0, 0xf0, // 154 - en-bi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x14, 0x01, 0x09, 0xb0, 0xf0, // 155 - en-bm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x16, 0x01, 0x09, 0xc0, 0xf0, // 156 - en-bs
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x13, 0x01, 0x09, 0xd0, 0xf0, // 157 - en-bw
0x00, 0x28, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x18, 0x01, 0x09, 0xe0, 0x9e, // 158 - en-bz
0x00, 0x10, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x09, 0xf0, 0x9f, // 159 - en-ca
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x37, 0x01, 0x0a, 0x00, 0xf0, // 160 - en-cc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x01, 0x0a, 0x10, 0xf0, // 161 - en-ch
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x38, 0x01, 0x0a, 0x20, 0xf0, // 162 - en-ck
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x01, 0x0a, 0x30, 0xf0, // 163 - en-cm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x35, 0x01, 0x0a, 0x40, 0xf0, // 164 - en-cx
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3b, 0x01, 0x0a, 0x50, 0xf0, // 165 - en-cy
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x01, 0x0a, 0x60, 0xf0, // 166 - en-de
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3d, 0x01, 0x0a, 0x70, 0xf0, // 167 - en-dk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3f, 0x01, 0x0a, 0x80, 0xf0, // 168 - en-dm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x01, 0x0a, 0x90, 0xf0, // 169 - en-er
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4d, 0x01, 0x0a, 0xa0, 0xf0, // 170 - en-fi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x4e, 0x01, 0x0a, 0xb0, 0xf0, // 171 - en-fj
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x3b, 0x01, 0x0a, 0xc0, 0xf0, // 172 - en-fk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x50, 0x01, 0x0a, 0xd0, 0xf0, // 173 - en-fm
0x00, 0x08, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x01, 0x0a, 0xe0, 0xae, // 174 - en-gb
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5b, 0x01, 0x0a, 0xf0, 0xf0, // 175 - en-gd
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x44, 0x01, 0x0b, 0x00, 0xf0, // 176 - en-gg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x01, 0x0b, 0x10, 0xf0, // 177 - en-gh
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5a, 0x01, 0x0b, 0x20, 0xf0, // 178 - en-gi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x56, 0x01, 0x0b, 0x30, 0xf0, // 179 - en-gm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x42, 0x01, 0x0b, 0x40, 0xf0, // 180 - en-gu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x65, 0x01, 0x0b, 0x50, 0xf0, // 181 - en-gy
0x00, 0x3c, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x0b, 0x60, 0xf0, // 182 - en-hk
0x00, 0x38, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x0b, 0x70, 0xf0, // 183 - en-id
0x00, 0x18, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x44, 0x01, 0x0b, 0x80, 0xb8, // 184 - en-ie
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x75, 0x01, 0x0b, 0x90, 0xf0, // 185 - en-il
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x3b, 0x16, 0x01, 0x0b, 0xa0, 0xf0, // 186 - en-im
0x00, 0x40, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x71, 0x01, 0x0b, 0xb0, 0xbb, // 187 - en-in
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x72, 0x01, 0x0b, 0xc0, 0xf0, // 188 - en-io
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x48, 0x01, 0x0b, 0xd0, 0xf0, // 189 - en-je
0x00, 0x20, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x7c, 0x01, 0x0b, 0xe0, 0xbe, // 190 - en-jm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x01, 0x0b, 0xf0, 0xf0, // 191 - en-ke
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x85, 0x01, 0x0c, 0x00, 0xf0, // 192 - en-ki
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcf, 0x01, 0x0c, 0x10, 0xf0, // 193 - en-kn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x33, 0x01, 0x0c, 0x20, 0xf0, // 194 - en-ky
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xda, 0x01, 0x0c, 0x30, 0xf0, // 195 - en-lc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x01, 0x0c, 0x40, 0xf0, // 196 - en-lr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x92, 0x01, 0x0c, 0x50, 0xf0, // 197 - en-ls
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x95, 0x01, 0x0c, 0x60, 0xf0, // 198 - en-mg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc7, 0x01, 0x0c, 0x70, 0xf0, // 199 - en-mh
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x0c, 0x80, 0xf0, // 200 - en-mo
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x51, 0x01, 0x0c, 0x90, 0xf0, // 201 - en-mp
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x4c, 0x01, 0x0c, 0xa0, 0xf0, // 202 - en-ms
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa3, 0x01, 0x0c, 0xb0, 0xf0, // 203 - en-mt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa0, 0x01, 0x0c, 0xc0, 0xf0, // 204 - en-mu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9c, 0x01, 0x0c, 0xd0, 0xf0, // 205 - en-mw
0x00, 0x44, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xa7, 0x01, 0x0c, 0xe0, 0xce, // 206 - en-my
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x0c, 0xf0, 0xf0, // 207 - en-na
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x50, 0x01, 0x0d, 0x00, 0xf0, // 208 - en-nf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x01, 0x0d, 0x10, 0xf0, // 209 - en-ng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x01, 0x0d, 0x20, 0xf0, // 210 - en-nl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb4, 0x01, 0x0d, 0x30, 0xf0, // 211 - en-nr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x4f, 0x01, 0x0d, 0x40, 0xf0, // 212 - en-nu
0x00, 0x14, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x0d, 0x50, 0xd5, // 213 - en-nz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc2, 0x01, 0x0d, 0x60, 0xf0, // 214 - en-pg
0x00, 0x34, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc9, 0x01, 0x0d, 0x70, 0xd7, // 215 - en-ph
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xbe, 0x01, 0x0d, 0x80, 0xf0, // 216 - en-pk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x53, 0x01, 0x0d, 0x90, 0xf0, // 217 - en-pn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xca, 0x01, 0x0d, 0xa0, 0xf0, // 218 - en-pr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc3, 0x01, 0x0d, 0xb0, 0xf0, // 219 - en-pw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcc, 0x01, 0x0d, 0xc0, 0xf0, // 220 - en-rw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1e, 0x01, 0x0d, 0xd0, 0xf0, // 221 - en-sb
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd0, 0x01, 0x0d, 0xe0, 0xf0, // 222 - en-sc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdb, 0x01, 0x0d, 0xf0, 0xf0, // 223 - en-sd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdd, 0x01, 0x0e, 0x00, 0xf0, // 224 - en-se
0x00, 0x48, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x0e, 0x10, 0xe1, // 225 - en-sg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x57, 0x01, 0x0e, 0x20, 0xf0, // 226 - en-sh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd4, 0x01, 0x0e, 0x30, 0xf0, // 227 - en-si
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd5, 0x01, 0x0e, 0x40, 0xf0, // 228 - en-sl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x14, 0x01, 0x0e, 0x50, 0xf0, // 229 - en-ss
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x78, 0xf7, 0x01, 0x0e, 0x60, 0xf0, // 230 - en-sx
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x04, 0x01, 0x0e, 0x70, 0xf0, // 231 - en-sz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x5d, 0x01, 0x0e, 0x80, 0xf0, // 232 - en-tc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x5b, 0x01, 0x0e, 0x90, 0xf0, // 233 - en-tk
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe7, 0x01, 0x0e, 0xa0, 0xf0, // 234 - en-to
0x00, 0x2c, 0x09, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe1, 0x01, 0x0e, 0xb0, 0xeb, // 235 - en-tt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xec, 0x01, 0x0e, 0xc0, 0xf0, // 236 - en-tv
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x01, 0x0e, 0xd0, 0xf0, // 237 - en-tz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x01, 0x0e, 0xe0, 0xf0, // 238 - en-ug
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x09, 0xa5, 0x5d, 0x40, 0x01, 0x0e, 0xf0, 0xf0, // 239 - en-um
0x00, 0x04, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x0f, 0x00, 0xf0, // 240 - en-us
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x0f, 0x10, 0xf0, // 241 - en-vc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x5f, 0x01, 0x0f, 0x20, 0xf0, // 242 - en-vg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x0f, 0x30, 0xf0, // 243 - en-vi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xae, 0x01, 0x0f, 0x40, 0xf0, // 244 - en-vu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x03, 0x01, 0x0f, 0x50, 0xf0, // 245 - en-ws
0x00, 0x1c, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x01, 0x0f, 0x60, 0xf6, // 246 - en-za
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x07, 0x01, 0x0f, 0x70, 0xf0, // 247 - en-zm
0x00, 0x30, 0x09, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x01, 0x0f, 0x80, 0xf8, // 248 - en-zw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x0f, 0xa0, 0xf0, // 249 - eo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x0f, 0xa0, 0xf0, // 250 - eo-001
0x00, 0x00, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x10, 0x61, 0x06, // 251 - es
0x00, 0x58, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x09, 0xa5, 0x5d, 0x41, 0x11, 0x0f, 0xc0, 0xf0, // 252 - es-419
0x00, 0x2c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x0b, 0x11, 0x0f, 0xd0, 0xfd, // 253 - es-ar
0x00, 0x40, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x1a, 0x11, 0x0f, 0xe0, 0xfe, // 254 - es-bo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x20, 0x11, 0x0f, 0xf0, 0xf0, // 255 - es-br
0x00, 0x34, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x2e, 0x11, 0x10, 0x01, 0x00, // 256 - es-cl
0x00, 0x24, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x33, 0x11, 0x10, 0x11, 0x01, // 257 - es-co
0x00, 0x14, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x36, 0x11, 0x10, 0x21, 0x02, // 258 - es-cr
0x00, 0x5c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x38, 0x11, 0x10, 0x30, 0xf0, // 259 - es-cu
0x00, 0x1c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x41, 0x11, 0x10, 0x41, 0x04, // 260 - es-do
0x00, 0x30, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x42, 0x11, 0x10, 0x51, 0x05, // 261 - es-ec
0x00, 0x0c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x10, 0x61, 0x06, // 262 - es-es
0x00, 0x04, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x10, 0x71, 0x07, // 263 - es-es_tradnl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x45, 0x11, 0x10, 0x80, 0xf0, // 264 - es-gq
0x00, 0x10, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x11, 0x10, 0x91, 0x09, // 265 - es-gt
0x00, 0x48, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x6a, 0x11, 0x10, 0xa1, 0x0a, // 266 - es-hn
0x00, 0x08, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xa6, 0x01, 0x10, 0xb1, 0x0b, // 267 - es-mx
0x00, 0x4c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb6, 0x11, 0x10, 0xc1, 0x0c, // 268 - es-ni
0x00, 0x18, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xc0, 0x11, 0x10, 0xd1, 0x0d, // 269 - es-pa
0x00, 0x28, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xbb, 0x11, 0x10, 0xe1, 0x0e, // 270 - es-pe
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xc9, 0x11, 0x10, 0xf0, 0xf0, // 271 - es-ph
0x00, 0x50, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xca, 0x11, 0x11, 0x01, 0x10, // 272 - es-pr
0x00, 0x3c, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb9, 0x11, 0x11, 0x11, 0x11, // 273 - es-py
0x00, 0x44, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x48, 0x11, 0x11, 0x21, 0x12, // 274 - es-sv
0x00, 0x54, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xf4, 0x01, 0x11, 0x31, 0x13, // 275 - es-us
0x00, 0x38, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xf6, 0x11, 0x11, 0x41, 0x14, // 276 - es-uy
0x00, 0x20, 0x0a, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xf9, 0x11, 0x11, 0x51, 0x15, // 277 - es-ve
0x00, 0x00, 0x25, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x46, 0x11, 0x11, 0x71, 0x17, // 278 - et
0x00, 0x04, 0x25, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x46, 0x11, 0x11, 0x71, 0x17, // 279 - et-ee
0x00, 0x00, 0x2d, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x11, 0x90, 0xf0, // 280 - eu
0x00, 0x04, 0x2d, 0x4e, 0x43, 0x52, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x11, 0x90, 0xf0, // 281 - eu-es
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x11, 0xb0, 0xf0, // 282 - ewo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x11, 0xb0, 0xf0, // 283 - ewo-cm
0x00, 0x00, 0x29, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x74, 0x30, 0x11, 0xd0, 0x8f, // 284 - fa
0x00, 0x04, 0x29, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x74, 0x30, 0x11, 0xd0, 0x8f, // 285 - fa-ir
0x00, 0x00, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x12, 0x21, 0x22, // 286 - ff
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x31, 0x11, 0x11, 0xf0, 0xf0, // 287 - ff-cm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x64, 0x11, 0x12, 0x00, 0xf0, // 288 - ff-gn
0x00, 0x7c, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x12, 0x21, 0x22, // 289 - ff-latn
0x00, 0x08, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x12, 0x21, 0x22, // 290 - ff-latn-sn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xa2, 0x11, 0x12, 0x30, 0xf0, // 291 - ff-mr
0x00, 0x04, 0x67, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x12, 0x40, 0xf0, // 292 - ff-ng
0x00, 0x00, 0x0b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x12, 0x61, 0x26, // 293 - fi
0x00, 0x04, 0x0b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x12, 0x61, 0x26, // 294 - fi-fi
0x00, 0x00, 0x64, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc9, 0x11, 0x12, 0x81, 0x28, // 295 - fil
0x00, 0x04, 0x64, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc9, 0x11, 0x12, 0x81, 0x28, // 296 - fil-ph
0x00, 0x00, 0x38, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x51, 0x11, 0x12, 0xb1, 0x2b, // 297 - fo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3d, 0x11, 0x12, 0xa0, 0xf0, // 298 - fo-dk
0x00, 0x04, 0x38, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x51, 0x11, 0x12, 0xb1, 0x2b, // 299 - fo-fo
0x00, 0x00, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x13, 0xc1, 0x3c, // 300 - fr
0x00, 0x1c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x99, 0x32, 0x48, 0x11, 0x12, 0xd1, 0x3c, // 301 - fr-029
0x00, 0x08, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x15, 0x11, 0x12, 0xe1, 0x2e, // 302 - fr-be
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xf5, 0x11, 0x12, 0xf0, 0xf0, // 303 - fr-bf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x26, 0x11, 0x13, 0x00, 0xf0, // 304 - fr-bi
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x1c, 0x11, 0x13, 0x10, 0xf0, // 305 - fr-bj
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x09, 0xa5, 0x5c, 0x4f, 0x11, 0x13, 0x20, 0xf0, // 306 - fr-bl
0x00, 0x0c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x27, 0x11, 0x13, 0x31, 0x33, // 307 - fr-ca
0x00, 0x24, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x13, 0x40, 0xf0, // 308 - fr-cd
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x37, 0x11, 0x13, 0x50, 0xf0, // 309 - fr-cf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x2b, 0x11, 0x13, 0x60, 0xf0, // 310 - fr-cg
0x00, 0x10, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x13, 0x71, 0x37, // 311 - fr-ch
0x00, 0x30, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x77, 0x11, 0x13, 0x80, 0xf0, // 312 - fr-ci
0x00, 0x2c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x31, 0x11, 0x13, 0x90, 0xf0, // 313 - fr-cm
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x3e, 0x11, 0x13, 0xa0, 0xf0, // 314 - fr-dj
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x13, 0xb0, 0xf0, // 315 - fr-dz
0x00, 0x04, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x13, 0xc1, 0x3c, // 316 - fr-fr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x57, 0x11, 0x13, 0xd0, 0xf0, // 317 - fr-ga
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x3d, 0x11, 0x13, 0xe0, 0xf0, // 318 - fr-gf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x64, 0x11, 0x13, 0xf0, 0xf0, // 319 - fr-gn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x41, 0x11, 0x14, 0x00, 0xf0, // 320 - fr-gp
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x45, 0x11, 0x14, 0x10, 0xf0, // 321 - fr-gq
0x00, 0x3c, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x67, 0x11, 0x14, 0x20, 0xf0, // 322 - fr-ht
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x32, 0x11, 0x14, 0x30, 0xf0, // 323 - fr-km
0x00, 0x14, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x93, 0x11, 0x14, 0x41, 0x44, // 324 - fr-lu
0x00, 0x38, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x14, 0x50, 0xf0, // 325 - fr-ma
0x00, 0x18, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x9e, 0x11, 0x14, 0x61, 0x46, // 326 - fr-mc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x7b, 0xda, 0x11, 0x14, 0x70, 0xf0, // 327 - fr-mf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x95, 0x11, 0x14, 0x80, 0xf0, // 328 - fr-mg
0x00, 0x34, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x14, 0x90, 0xf0, // 329 - fr-ml
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x4a, 0x11, 0x14, 0xa0, 0xf0, // 330 - fr-mq
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xa2, 0x11, 0x14, 0xb0, 0xf0, // 331 - fr-mr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xa0, 0x11, 0x14, 0xc0, 0xf0, // 332 - fr-mu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x4e, 0x11, 0x14, 0xd0, 0xf0, // 333 - fr-nc
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xad, 0x11, 0x14, 0xe0, 0xf0, // 334 - fr-ne
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x3e, 0x11, 0x14, 0xf0, 0xf0, // 335 - fr-pf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xce, 0x11, 0x15, 0x00, 0xf0, // 336 - fr-pm
0x00, 0x20, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xc6, 0x11, 0x15, 0x10, 0xf0, // 337 - fr-re
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xcc, 0x11, 0x15, 0x20, 0xf0, // 338 - fr-rw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd0, 0x11, 0x15, 0x30, 0xf0, // 339 - fr-sc
0x00, 0x28, 0x0c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x15, 0x40, 0xf0, // 340 - fr-sn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xde, 0x11, 0x15, 0x50, 0xf0, // 341 - fr-sy
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x29, 0x11, 0x15, 0x60, 0xf0, // 342 - fr-td
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xe8, 0x11, 0x15, 0x70, 0xf0, // 343 - fr-tg
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xea, 0x11, 0x15, 0x80, 0xf0, // 344 - fr-tn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xae, 0x11, 0x15, 0x90, 0xf0, // 345 - fr-vu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x60, 0x11, 0x15, 0xa0, 0xf0, // 346 - fr-wf
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x01, 0x4b, 0x11, 0x15, 0xb0, 0xf0, // 347 - fr-yt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x15, 0xd0, 0xf0, // 348 - fur
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x76, 0x11, 0x15, 0xd0, 0xf0, // 349 - fur-it
0x00, 0x00, 0x62, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x15, 0xf1, 0x5f, // 350 - fy
0x00, 0x04, 0x62, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x15, 0xf1, 0x5f, // 351 - fy-nl
0x00, 0x00, 0x3c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x44, 0x11, 0x16, 0x11, 0x61, // 352 - ga
0x00, 0x08, 0x3c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x44, 0x11, 0x16, 0x11, 0x61, // 353 - ga-ie
0x00, 0x00, 0x91, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x16, 0x31, 0x63, // 354 - gd
0x00, 0x04, 0x91, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3d, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x16, 0x31, 0x63, // 355 - gd-gb
0x00, 0x00, 0x56, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x16, 0x51, 0x65, // 356 - gl
0x00, 0x04, 0x56, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd9, 0x11, 0x16, 0x51, 0x65, // 357 - gl-es
0x00, 0x00, 0x74, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb9, 0x01, 0x16, 0x71, 0x67, // 358 - gn
0x00, 0x04, 0x74, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xb9, 0x01, 0x16, 0x71, 0x67, // 359 - gn-py
0x00, 0x00, 0x84, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x16, 0x90, 0xf0, // 360 - gsw
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x16, 0x90, 0xf0, // 361 - gsw-ch
0x00, 0x04, 0x84, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x16, 0xa1, 0x6a, // 362 - gsw-fr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x91, 0x11, 0x16, 0xb0, 0xf0, // 363 - gsw-li
0x00, 0x00, 0x47, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x16, 0xd0, 0x8f, // 364 - gu
0x00, 0x04, 0x47, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x16, 0xd0, 0x8f, // 365 - gu-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x16, 0xf0, 0xf0, // 366 - guz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x16, 0xf0, 0xf0, // 367 - guz-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x3b, 0x16, 0x11, 0x17, 0x10, 0xf0, // 368 - gv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x3b, 0x16, 0x11, 0x17, 0x10, 0xf0, // 369 - gv-im
0x00, 0x00, 0x68, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x17, 0x61, 0x76, // 370 - ha
0x00, 0x7c, 0x68, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x17, 0x61, 0x76, // 371 - ha-latn
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x59, 0x11, 0x17, 0x40, 0xf0, // 372 - ha-latn-gh
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x17, 0x50, 0xf0, // 373 - ha-latn-ne
0x00, 0x04, 0x68, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x17, 0x61, 0x76, // 374 - ha-latn-ng
0x00, 0x00, 0x75, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x17, 0x81, 0x78, // 375 - haw
0x00, 0x04, 0x75, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x17, 0x81, 0x78, // 376 - haw-us
0x00, 0x00, 0x0d, 0x4e, 0x73, 0x5e, 0x27, 0x15, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x75, 0x01, 0x17, 0xa0, 0x8f, // 377 - he
0x00, 0x04, 0x0d, 0x4e, 0x73, 0x5e, 0x27, 0x15, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x75, 0x01, 0x17, 0xa0, 0x8f, // 378 - he-il
0x00, 0x00, 0x39, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x17, 0xc0, 0x8f, // 379 - hi
0x00, 0x04, 0x39, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x17, 0xc0, 0x8f, // 380 - hi-in
0x00, 0x00, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6c, 0x11, 0x17, 0xf1, 0x7f, // 381 - hr
0x00, 0x10, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x17, 0xe1, 0x7e, // 382 - hr-ba
0x00, 0x04, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6c, 0x11, 0x17, 0xf1, 0x7f, // 383 - hr-hr
0x00, 0x00, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x18, 0x11, 0x81, // 384 - hsb
0x00, 0x04, 0x2e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x03, 0x66, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x18, 0x11, 0x81, // 385 - hsb-de
0x00, 0x00, 0x0e, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6d, 0x11, 0x18, 0x31, 0x83, // 386 - hu
0x00, 0x04, 0x0e, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6d, 0x11, 0x18, 0x31, 0x83, // 387 - hu-hu
0x01, 0x04, 0x0e, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6d, 0x11, 0x18, 0x31, 0x83, // 388 - hu-hu_technl
0x00, 0x00, 0x2b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x07, 0x01, 0x18, 0x61, 0x86, // 389 - hy
0x00, 0x04, 0x2b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x07, 0x01, 0x18, 0x61, 0x86, // 390 - hy-am
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x54, 0x11, 0x18, 0x90, 0xf0, // 391 - ia
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x18, 0x80, 0xf0, // 392 - ia-001
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x54, 0x11, 0x18, 0x90, 0xf0, // 393 - ia-fr
0x00, 0x00, 0x69, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xb0, 0xf0, // 394 - ibb
0x00, 0x04, 0x69, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xb0, 0xf0, // 395 - ibb-ng
0x00, 0x00, 0x21, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x18, 0xd1, 0x8d, // 396 - id
0x00, 0x04, 0x21, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x18, 0xd1, 0x8d, // 397 - id-id
0x00, 0x00, 0x70, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xf1, 0x8f, // 398 - ig
0x00, 0x04, 0x70, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x18, 0xf1, 0x8f, // 399 - ig-ng
0x00, 0x00, 0x78, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x11, 0x19, 0x10, 0x8f, // 400 - ii
0x00, 0x04, 0x78, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x11, 0x19, 0x10, 0x8f, // 401 - ii-cn
0x00, 0x00, 0x0f, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x51, 0x87, 0x00, 0x00, 0x00, 0x6e, 0x11, 0x19, 0x31, 0x93, // 402 - is
0x00, 0x04, 0x0f, 0x4e, 0x43, 0x52, 0x27, 0x5f, 0x51, 0x87, 0x00, 0x00, 0x00, 0x6e, 0x11, 0x19, 0x31, 0x93, // 403 - is-is
0x00, 0x00, 0x10, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x38, 0x00, 0x00, 0x00, 0x76, 0x11, 0x19, 0x61, 0x96, // 404 - it
0x00, 0x08, 0x10, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x19, 0x51, 0x95, // 405 - it-ch
0x00, 0x04, 0x10, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x38, 0x00, 0x00, 0x00, 0x76, 0x11, 0x19, 0x61, 0x96, // 406 - it-it
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x38, 0x00, 0x00, 0x00, 0xd6, 0x11, 0x19, 0x70, 0xf0, // 407 - it-sm
0x00, 0x00, 0x5d, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xc1, 0x9c, // 408 - iu
0x00, 0x78, 0x5d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xa0, 0x8f, // 409 - iu-cans
0x00, 0x04, 0x5d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xa0, 0x8f, // 410 - iu-cans-ca
0x00, 0x7c, 0x5d, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xc1, 0x9c, // 411 - iu-latn
0x00, 0x08, 0x5d, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x19, 0xc1, 0x9c, // 412 - iu-latn-ca
0x00, 0x00, 0x11, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x19, 0xe1, 0x9e, // 413 - ja
0x00, 0x04, 0x11, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x19, 0xe1, 0x9e, // 414 - ja-jp
0x04, 0x04, 0x11, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x19, 0xe1, 0x9e, // 415 - ja-jp_radstr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1a, 0x10, 0xf0, // 416 - jgo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1a, 0x10, 0xf0, // 417 - jgo-cm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1a, 0x30, 0xf0, // 418 - jmc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1a, 0x30, 0xf0, // 419 - jmc-tz
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x81, 0xa8, // 420 - jv
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x61, 0xa8, // 421 - jv-java
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x61, 0xa8, // 422 - jv-java-id
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x81, 0xa8, // 423 - jv-latn
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x6f, 0x11, 0x1a, 0x81, 0xa8, // 424 - jv-latn-id
0x00, 0x00, 0x37, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x1a, 0xa1, 0xaa, // 425 - ka
0x00, 0x04, 0x37, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x1a, 0xa1, 0xaa, // 426 - ka-ge
0x01, 0x04, 0x37, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x1a, 0xa1, 0xaa, // 427 - ka-ge_modern
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x04, 0x11, 0x1a, 0xd0, 0xf0, // 428 - kab
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x04, 0x11, 0x1a, 0xd0, 0xf0, // 429 - kab-dz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1a, 0xf0, 0xf0, // 430 - kam
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1a, 0xf0, 0xf0, // 431 - kam-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1b, 0x10, 0xf0, // 432 - kde
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1b, 0x10, 0xf0, // 433 - kde-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x39, 0x11, 0x1b, 0x30, 0xf0, // 434 - kea
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x39, 0x11, 0x1b, 0x30, 0xf0, // 435 - kea-cv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x1b, 0x50, 0xf0, // 436 - khq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x1b, 0x50, 0xf0, // 437 - khq-ml
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0x70, 0xf0, // 438 - ki
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0x70, 0xf0, // 439 - ki-ke
0x00, 0x00, 0x3f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x89, 0x11, 0x1b, 0x91, 0xb9, // 440 - kk
0x00, 0x04, 0x3f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x89, 0x11, 0x1b, 0x91, 0xb9, // 441 - kk-kz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1b, 0xb0, 0xf0, // 442 - kkj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1b, 0xb0, 0xf0, // 443 - kkj-cm
0x00, 0x00, 0x6f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x5d, 0x11, 0x1b, 0xd1, 0xbd, // 444 - kl
0x00, 0x04, 0x6f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0x5d, 0x11, 0x1b, 0xd1, 0xbd, // 445 - kl-gl
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0xf0, 0xf0, // 446 - kln
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1b, 0xf0, 0xf0, // 447 - kln-ke
0x00, 0x00, 0x53, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x28, 0x02, 0x1c, 0x10, 0x8f, // 448 - km
0x00, 0x04, 0x53, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x28, 0x02, 0x1c, 0x10, 0x8f, // 449 - km-kh
0x00, 0x00, 0x4b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x30, 0x8f, // 450 - kn
0x00, 0x04, 0x4b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x30, 0x8f, // 451 - kn-in
0x00, 0x00, 0x12, 0x3b, 0x53, 0xb5, 0x27, 0x13, 0x51, 0x61, 0x00, 0x00, 0x00, 0x86, 0x01, 0x1c, 0x61, 0xc6, // 452 - ko
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x83, 0x11, 0x1c, 0x50, 0xf0, // 453 - ko-kp
0x00, 0x04, 0x12, 0x3b, 0x53, 0xb5, 0x27, 0x13, 0x51, 0x61, 0x00, 0x00, 0x00, 0x86, 0x01, 0x1c, 0x61, 0xc6, // 454 - ko-kr
0x00, 0x00, 0x57, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x80, 0x8f, // 455 - kok
0x00, 0x04, 0x57, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0x80, 0x8f, // 456 - kok-in
0x00, 0x00, 0x71, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x1c, 0xa0, 0xf0, // 457 - kr
0x00, 0x04, 0x71, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x1c, 0xa0, 0xf0, // 458 - kr-ng
0x00, 0x00, 0x60, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x1c, 0xd0, 0xf0, // 459 - ks
0x00, 0x04, 0x60, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x1c, 0xd0, 0xf0, // 460 - ks-arab
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x1c, 0xd0, 0xf0, // 461 - ks-arab-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0xf0, 0xbb, // 462 - ks-deva
0x00, 0x08, 0x60, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x1c, 0xf0, 0xbb, // 463 - ks-deva-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1d, 0x10, 0xf0, // 464 - ksb
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1d, 0x10, 0xf0, // 465 - ksb-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1d, 0x30, 0xf0, // 466 - ksf
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x1d, 0x30, 0xf0, // 467 - ksf-cm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x1d, 0x50, 0xf0, // 468 - ksh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x1d, 0x50, 0xf0, // 469 - ksh-de
0x00, 0x00, 0x92, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x30, 0x1d, 0x80, 0x8f, // 470 - ku
0x00, 0x7c, 0x92, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x30, 0x1d, 0x80, 0x8f, // 471 - ku-arab
0x00, 0x04, 0x92, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x79, 0x30, 0x1d, 0x80, 0x8f, // 472 - ku-arab-iq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x10, 0x1d, 0x90, 0xf0, // 473 - ku-arab-ir
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x1d, 0xb0, 0xf0, // 474 - kw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf2, 0x11, 0x1d, 0xb0, 0xf0, // 475 - kw-gb
0x00, 0x00, 0x40, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x82, 0x11, 0x1d, 0xd1, 0xdd, // 476 - ky
0x00, 0x04, 0x40, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x82, 0x11, 0x1d, 0xd1, 0xdd, // 477 - ky-kg
0x00, 0x00, 0x76, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x98, 0x9e, 0x01, 0x1d, 0xf0, 0x8f, // 478 - la
0x00, 0x04, 0x76, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x98, 0x9e, 0x01, 0x1d, 0xf0, 0x8f, // 479 - la-001
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1e, 0x10, 0xf0, // 480 - lag
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1e, 0x10, 0xf0, // 481 - lag-tz
0x00, 0x00, 0x6e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x93, 0x11, 0x1e, 0x31, 0xe3, // 482 - lb
0x00, 0x04, 0x6e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x93, 0x11, 0x1e, 0x31, 0xe3, // 483 - lb-lu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x1e, 0x50, 0xf0, // 484 - lg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x1e, 0x50, 0xf0, // 485 - lg-ug
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x1e, 0x70, 0xf0, // 486 - lkt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf4, 0x11, 0x1e, 0x70, 0xf0, // 487 - lkt-us
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1e, 0xa0, 0xf0, // 488 - ln
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x09, 0x11, 0x1e, 0x90, 0xf0, // 489 - ln-ao
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1e, 0xa0, 0xf0, // 490 - ln-cd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x37, 0x11, 0x1e, 0xb0, 0xf0, // 491 - ln-cf
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2b, 0x11, 0x1e, 0xc0, 0xf0, // 492 - ln-cg
0x00, 0x00, 0x54, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8a, 0x11, 0x1e, 0xe0, 0x8f, // 493 - lo
0x00, 0x04, 0x54, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8a, 0x11, 0x1e, 0xe0, 0x8f, // 494 - lo-la
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x1f, 0x10, 0xf0, // 495 - lrc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x79, 0x12, 0x1f, 0x00, 0xf0, // 496 - lrc-iq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x1f, 0x10, 0xf0, // 497 - lrc-ir
0x00, 0x00, 0x27, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8d, 0x11, 0x1f, 0x31, 0xf3, // 498 - lt
0x00, 0x04, 0x27, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8d, 0x11, 0x1f, 0x31, 0xf3, // 499 - lt-lt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1f, 0x50, 0xf0, // 500 - lu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x1f, 0x50, 0xf0, // 501 - lu-cd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x70, 0xf0, // 502 - luo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x70, 0xf0, // 503 - luo-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x90, 0xf0, // 504 - luy
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0x90, 0xf0, // 505 - luy-ke
0x00, 0x00, 0x26, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8c, 0x11, 0x1f, 0xb1, 0xfb, // 506 - lv
0x00, 0x04, 0x26, 0x4e, 0x93, 0x07, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8c, 0x11, 0x1f, 0xb1, 0xfb, // 507 - lv-lv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0xd0, 0xf0, // 508 - mas
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x1f, 0xd0, 0xf0, // 509 - mas-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x1f, 0xe0, 0xf0, // 510 - mas-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x20, 0x00, 0xf0, // 511 - mer
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x20, 0x00, 0xf0, // 512 - mer-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa0, 0x11, 0x20, 0x20, 0xf0, // 513 - mfe
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa0, 0x11, 0x20, 0x20, 0xf0, // 514 - mfe-mu
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x95, 0x11, 0x20, 0x40, 0xf0, // 515 - mg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x95, 0x11, 0x20, 0x40, 0xf0, // 516 - mg-mg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x20, 0x60, 0xf0, // 517 - mgh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x20, 0x60, 0xf0, // 518 - mgh-mz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x20, 0x80, 0xf0, // 519 - mgo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x20, 0x80, 0xf0, // 520 - mgo-cm
0x00, 0x00, 0x81, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x20, 0xa2, 0x0a, // 521 - mi
0x00, 0x04, 0x81, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x20, 0xa2, 0x0a, // 522 - mi-nz
0x00, 0x00, 0x2f, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x4c, 0xa2, 0x11, 0x20, 0xc2, 0x0c, // 523 - mk
0x00, 0x04, 0x2f, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x01, 0xf4, 0x00, 0x00, 0x4c, 0xa2, 0x11, 0x20, 0xc2, 0x0c, // 524 - mk-mk
0x00, 0x00, 0x4c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x20, 0xe0, 0x8f, // 525 - ml
0x00, 0x04, 0x4c, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x20, 0xe0, 0x8f, // 526 - ml-in
0x00, 0x00, 0x50, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x9a, 0x11, 0x21, 0x12, 0x11, // 527 - mn
0x00, 0x78, 0x50, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x9a, 0x11, 0x21, 0x12, 0x11, // 528 - mn-cyrl
0x00, 0x04, 0x50, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0x9a, 0x11, 0x21, 0x12, 0x11, // 529 - mn-mn
0x00, 0x7c, 0x50, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x21, 0x32, 0x13, // 530 - mn-mong
0x00, 0x08, 0x50, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x21, 0x32, 0x13, // 531 - mn-mong-cn
0x00, 0x0c, 0x50, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9a, 0x01, 0x21, 0x42, 0x14, // 532 - mn-mong-mn
0x00, 0x00, 0x58, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0x60, 0xbb, // 533 - mni
0x00, 0x04, 0x58, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0x60, 0xbb, // 534 - mni-in
0x00, 0x00, 0x7c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x21, 0x80, 0xf0, // 535 - moh
0x00, 0x04, 0x7c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0x27, 0x01, 0x21, 0x80, 0xf0, // 536 - moh-ca
0x00, 0x00, 0x4e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0xa0, 0x8f, // 537 - mr
0x00, 0x04, 0x4e, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x21, 0xa0, 0x8f, // 538 - mr-in
0x00, 0x00, 0x3e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa7, 0x11, 0x21, 0xd2, 0x1d, // 539 - ms
0x00, 0x08, 0x3e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x25, 0x11, 0x21, 0xc2, 0x1c, // 540 - ms-bn
0x00, 0x04, 0x3e, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa7, 0x11, 0x21, 0xd2, 0x1d, // 541 - ms-my
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x11, 0x21, 0xe0, 0xf0, // 542 - ms-sg
0x00, 0x00, 0x3a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa3, 0x11, 0x22, 0x02, 0x20, // 543 - mt
0x00, 0x04, 0x3a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa3, 0x11, 0x22, 0x02, 0x20, // 544 - mt-mt
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x22, 0x20, 0xf0, // 545 - mua
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x22, 0x20, 0xf0, // 546 - mua-cm
0x00, 0x00, 0x55, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1b, 0x12, 0x22, 0x40, 0xf0, // 547 - my
0x00, 0x04, 0x55, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1b, 0x12, 0x22, 0x40, 0xf0, // 548 - my-mm
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x22, 0x60, 0xf0, // 549 - mzn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x74, 0x12, 0x22, 0x60, 0xf0, // 550 - mzn-ir
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x11, 0x22, 0x80, 0xf0, // 551 - naq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfe, 0x11, 0x22, 0x80, 0xf0, // 552 - naq-na
0x00, 0x7c, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x22, 0xa2, 0x2a, // 553 - nb
0x00, 0x04, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x22, 0xa2, 0x2a, // 554 - nb-no
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xdc, 0x11, 0x22, 0xb0, 0xf0, // 555 - nb-sj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x22, 0xd0, 0xf0, // 556 - nd
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x22, 0xd0, 0xf0, // 557 - nd-zw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x22, 0xf0, 0xf0, // 558 - nds
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x5e, 0x11, 0x22, 0xf0, 0xf0, // 559 - nds-de
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x23, 0x00, 0xf0, // 560 - nds-nl
0x00, 0x00, 0x61, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb2, 0x01, 0x23, 0x30, 0x8f, // 561 - ne
0x00, 0x08, 0x61, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x23, 0x20, 0xf0, // 562 - ne-in
0x00, 0x04, 0x61, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb2, 0x01, 0x23, 0x30, 0x8f, // 563 - ne-np
0x00, 0x00, 0x13, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x23, 0x92, 0x39, // 564 - nl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x2e, 0x11, 0x23, 0x50, 0xf0, // 565 - nl-aw
0x00, 0x08, 0x13, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x15, 0x11, 0x23, 0x62, 0x36, // 566 - nl-be
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x09, 0xa5, 0x5d, 0x42, 0x11, 0x23, 0x70, 0xf0, // 567 - nl-bq
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x11, 0x11, 0x23, 0x80, 0xf0, // 568 - nl-cw
0x00, 0x04, 0x13, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb0, 0x11, 0x23, 0x92, 0x39, // 569 - nl-nl
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xb5, 0x11, 0x23, 0xa0, 0xf0, // 570 - nl-sr
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x78, 0xf7, 0x11, 0x23, 0xb0, 0xf0, // 571 - nl-sx
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x23, 0xd0, 0xf0, // 572 - nmg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x23, 0xd0, 0xf0, // 573 - nmg-cm
0x00, 0x78, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x23, 0xf2, 0x3f, // 574 - nn
0x00, 0x08, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x23, 0xf2, 0x3f, // 575 - nn-no
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x24, 0x10, 0xf0, // 576 - nnh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x24, 0x10, 0xf0, // 577 - nnh-cm
0x00, 0x00, 0x14, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x22, 0xa2, 0x2a, // 578 - no
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x64, 0x22, 0x24, 0x40, 0x8f, // 579 - nqo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x64, 0x22, 0x24, 0x40, 0x8f, // 580 - nqo-gn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x60, 0xf0, // 581 - nr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x60, 0xf0, // 582 - nr-za
0x00, 0x00, 0x6c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x82, 0x48, // 583 - nso
0x00, 0x04, 0x6c, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x24, 0x82, 0x48, // 584 - nso-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x14, 0x11, 0x24, 0xa0, 0xf0, // 585 - nus
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x14, 0x11, 0x24, 0xa0, 0xf0, // 586 - nus-ss
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x24, 0xc0, 0xf0, // 587 - nyn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x24, 0xc0, 0xf0, // 588 - nyn-ug
0x00, 0x00, 0x82, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x24, 0xe2, 0x4e, // 589 - oc
0x00, 0x04, 0x82, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x54, 0x11, 0x24, 0xe2, 0x4e, // 590 - oc-fr
0x00, 0x00, 0x72, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x25, 0x00, 0xf0, // 591 - om
0x00, 0x04, 0x72, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x25, 0x00, 0xf0, // 592 - om-et
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x25, 0x10, 0xf0, // 593 - om-ke
0x00, 0x00, 0x48, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0x30, 0x8f, // 594 - or
0x00, 0x04, 0x48, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0x30, 0x8f, // 595 - or-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x25, 0x50, 0xf0, // 596 - os
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x58, 0x11, 0x25, 0x50, 0xf0, // 597 - os-ge
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x25, 0x60, 0xf0, // 598 - os-ru
0x00, 0x00, 0x46, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0xa0, 0x8f, // 599 - pa
0x00, 0x7c, 0x46, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x25, 0x90, 0x8f, // 600 - pa-arab
0x00, 0x08, 0x46, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x25, 0x90, 0x8f, // 601 - pa-arab-pk
0x00, 0x04, 0x46, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x25, 0xa0, 0x8f, // 602 - pa-in
0x00, 0x00, 0x79, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x99, 0x32, 0x48, 0x01, 0x25, 0xc0, 0x91, // 603 - pap
0x00, 0x04, 0x79, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x99, 0x32, 0x48, 0x01, 0x25, 0xc0, 0x91, // 604 - pap-029
0x00, 0x00, 0x15, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xbf, 0x11, 0x25, 0xe2, 0x5e, // 605 - pl
0x00, 0x04, 0x15, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xbf, 0x11, 0x25, 0xe2, 0x5e, // 606 - pl-pl
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x26, 0x00, 0xf0, // 607 - prg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x26, 0x00, 0xf0, // 608 - prg-001
0x00, 0x00, 0x8c, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x20, 0x8f, // 609 - prs
0x00, 0x04, 0x8c, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x20, 0x8f, // 610 - prs-af
0x00, 0x00, 0x63, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x40, 0x8f, // 611 - ps
0x00, 0x04, 0x63, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x26, 0x40, 0x8f, // 612 - ps-af
0x00, 0x00, 0x16, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x20, 0x11, 0x26, 0x72, 0x67, // 613 - pt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x09, 0x11, 0x26, 0x60, 0xf0, // 614 - pt-ao
0x00, 0x04, 0x16, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x20, 0x11, 0x26, 0x72, 0x67, // 615 - pt-br
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x26, 0x80, 0xf0, // 616 - pt-ch
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x39, 0x11, 0x26, 0x90, 0xf0, // 617 - pt-cv
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x45, 0x11, 0x26, 0xa0, 0xf0, // 618 - pt-gq
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc4, 0x11, 0x26, 0xb0, 0xf0, // 619 - pt-gw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x93, 0x11, 0x26, 0xc0, 0xf0, // 620 - pt-lu
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x11, 0x26, 0xd0, 0xf0, // 621 - pt-mo
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x26, 0xe0, 0xf0, // 622 - pt-mz
0x00, 0x08, 0x16, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xc1, 0x11, 0x26, 0xf2, 0x6f, // 623 - pt-pt
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe9, 0x11, 0x27, 0x00, 0xf0, // 624 - pt-st
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x6f, 0x60, 0xe7, 0x11, 0x27, 0x10, 0xf0, // 625 - pt-tl
0x00, 0x09, 0x01, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x7c, 0x01, 0x27, 0x20, 0xbe, // 626 - qps-latn-x-sh
0x00, 0x05, 0x01, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xf4, 0x41, 0x27, 0x32, 0x73, // 627 - qps-ploc
0x00, 0x05, 0xfe, 0x3a, 0x43, 0xa4, 0x27, 0x11, 0x4f, 0x42, 0x00, 0x00, 0x00, 0x7a, 0x01, 0x27, 0x42, 0x74, // 628 - qps-ploca
0x00, 0x09, 0xff, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xcd, 0x10, 0x27, 0x50, 0x8f, // 629 - qps-plocm
0x00, 0x00, 0x86, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x01, 0x27, 0x82, 0x78, // 630 - quc
0x00, 0x7c, 0x86, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x01, 0x27, 0x82, 0x78, // 631 - quc-latn
0x00, 0x04, 0x86, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x63, 0x01, 0x27, 0x82, 0x78, // 632 - quc-latn-gt
0x00, 0x00, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x1a, 0x01, 0x27, 0xa2, 0x7a, // 633 - quz
0x00, 0x04, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x1a, 0x01, 0x27, 0xa2, 0x7a, // 634 - quz-bo
0x00, 0x08, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0x42, 0x01, 0x27, 0xb2, 0x7b, // 635 - quz-ec
0x00, 0x0c, 0x6b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x3c, 0x00, 0x00, 0x00, 0xbb, 0x01, 0x27, 0xc2, 0x7c, // 636 - quz-pe
0x00, 0x00, 0x17, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x27, 0xe2, 0x7e, // 637 - rm
0x00, 0x04, 0x17, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x31, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x27, 0xe2, 0x7e, // 638 - rm-ch
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x26, 0x11, 0x28, 0x00, 0xf0, // 639 - rn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x26, 0x11, 0x28, 0x00, 0xf0, // 640 - rn-bi
0x00, 0x00, 0x18, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xc8, 0x11, 0x28, 0x32, 0x83, // 641 - ro
0x00, 0x08, 0x18, 0x4e, 0x23, 0x54, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x98, 0x11, 0x28, 0x20, 0xf0, // 642 - ro-md
0x00, 0x04, 0x18, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xc8, 0x11, 0x28, 0x32, 0x83, // 643 - ro-ro
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x28, 0x50, 0xf0, // 644 - rof
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x28, 0x50, 0xf0, // 645 - rof-tz
0x00, 0x00, 0x19, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x28, 0xb2, 0x8b, // 646 - ru
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1d, 0x11, 0x28, 0x70, 0xf0, // 647 - ru-by
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x82, 0x11, 0x28, 0x80, 0xf0, // 648 - ru-kg
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x89, 0x11, 0x28, 0x90, 0xf0, // 649 - ru-kz
0x00, 0x08, 0x19, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x98, 0x11, 0x28, 0xa0, 0xf0, // 650 - ru-md
0x00, 0x04, 0x19, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x28, 0xb2, 0x8b, // 651 - ru-ru
0x00, 0x10, 0x00, 0x4e, 0x33, 0x62, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf1, 0x11, 0x28, 0xc0, 0xf0, // 652 - ru-ua
0x00, 0x00, 0x87, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xcc, 0x11, 0x28, 0xe2, 0x8e, // 653 - rw
0x00, 0x04, 0x87, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xcc, 0x11, 0x28, 0xe2, 0x8e, // 654 - rw-rw
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x00, 0xf0, // 655 - rwk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x00, 0xf0, // 656 - rwk-tz
0x00, 0x00, 0x4f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0x20, 0x8f, // 657 - sa
0x00, 0x04, 0x4f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0x20, 0x8f, // 658 - sa-in
0x00, 0x00, 0x85, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x29, 0x42, 0x94, // 659 - sah
0x00, 0x04, 0x85, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x29, 0x42, 0x94, // 660 - sah-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x29, 0x60, 0xf0, // 661 - saq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x29, 0x60, 0xf0, // 662 - saq-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x80, 0xf0, // 663 - sbp
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x29, 0x80, 0xf0, // 664 - sbp-tz
0x00, 0x00, 0x59, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x29, 0xb0, 0x8f, // 665 - sd
0x00, 0x7c, 0x59, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x29, 0xb0, 0x8f, // 666 - sd-arab
0x00, 0x08, 0x59, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x12, 0x29, 0xb0, 0x8f, // 667 - sd-arab-pk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0xd0, 0xbb, // 668 - sd-deva
0x00, 0x04, 0x59, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x29, 0xd0, 0xbb, // 669 - sd-deva-in
0x00, 0x00, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2a, 0x02, 0xa0, // 670 - se
0x00, 0x0c, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x29, 0xf2, 0x9f, // 671 - se-fi
0x00, 0x04, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2a, 0x02, 0xa0, // 672 - se-no
0x00, 0x08, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2a, 0x12, 0xa1, // 673 - se-se
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x2a, 0x30, 0xf0, // 674 - seh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa8, 0x11, 0x2a, 0x30, 0xf0, // 675 - seh-mz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x2a, 0x50, 0xf0, // 676 - ses
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9d, 0x11, 0x2a, 0x50, 0xf0, // 677 - ses-ml
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x37, 0x11, 0x2a, 0x70, 0xf0, // 678 - sg
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x37, 0x11, 0x2a, 0x70, 0xf0, // 679 - sg-cf
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xc0, 0xf0, // 680 - shi
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xa0, 0xf0, // 681 - shi-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xa0, 0xf0, // 682 - shi-latn-ma
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xc0, 0xf0, // 683 - shi-tfng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x2a, 0xc0, 0xf0, // 684 - shi-tfng-ma
0x00, 0x00, 0x5b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2a, 0x11, 0x2a, 0xe0, 0x8f, // 685 - si
0x00, 0x04, 0x5b, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2a, 0x11, 0x2a, 0xe0, 0x8f, // 686 - si-lk
0x00, 0x00, 0x1b, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x2b, 0x02, 0xb0, // 687 - sk
0x00, 0x04, 0x1b, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x2b, 0x02, 0xb0, // 688 - sk-sk
0x00, 0x00, 0x24, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xd4, 0x11, 0x2b, 0x22, 0xb2, // 689 - sl
0x00, 0x04, 0x24, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xd4, 0x11, 0x2b, 0x22, 0xb2, // 690 - sl-si
0x00, 0x78, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x52, 0xb5, // 691 - sma
0x00, 0x18, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2b, 0x42, 0xb4, // 692 - sma-no
0x00, 0x1c, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x52, 0xb5, // 693 - sma-se
0x00, 0x7c, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x82, 0xb8, // 694 - smj
0x00, 0x10, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x35, 0x00, 0x00, 0x00, 0xb1, 0x11, 0x2b, 0x72, 0xb7, // 695 - smj-no
0x00, 0x14, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2b, 0x82, 0xb8, // 696 - smj-se
0x00, 0x70, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xa2, 0xba, // 697 - smn
0x00, 0x24, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xa2, 0xba, // 698 - smn-fi
0x00, 0x74, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xc2, 0xbc, // 699 - sms
0x00, 0x20, 0x3b, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2b, 0xc2, 0xbc, // 700 - sms-fi
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x2b, 0xf0, 0xf0, // 701 - sn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x2b, 0xf0, 0xf0, // 702 - sn-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x08, 0x11, 0x2b, 0xf0, 0xf0, // 703 - sn-latn-zw
0x00, 0x00, 0x77, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd8, 0x11, 0x2c, 0x40, 0xf0, // 704 - so
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x3e, 0x11, 0x2c, 0x10, 0xf0, // 705 - so-dj
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x2c, 0x20, 0xf0, // 706 - so-et
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2c, 0x30, 0xf0, // 707 - so-ke
0x00, 0x04, 0x77, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd8, 0x11, 0x2c, 0x40, 0xf0, // 708 - so-so
0x00, 0x00, 0x1c, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x06, 0x11, 0x2c, 0x62, 0xc6, // 709 - sq
0x00, 0x04, 0x1c, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0x06, 0x11, 0x2c, 0x62, 0xc6, // 710 - sq-al
0x00, 0x10, 0x00, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x4c, 0xa2, 0x11, 0x2c, 0x70, 0xf0, // 711 - sq-mk
0x00, 0x10, 0x00, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x97, 0x49, 0x41, 0x11, 0x2c, 0x80, 0xf0, // 712 - sq-xk
0x00, 0x7c, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2d, 0x42, 0xd4, // 713 - sr
0x00, 0x6c, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2c, 0xe2, 0xce, // 714 - sr-cyrl
0x00, 0x1c, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x00, 0x19, 0x11, 0x2c, 0xb2, 0xcb, // 715 - sr-cyrl-ba
0x00, 0x0c, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0d, 0x11, 0x2c, 0xc2, 0xcc, // 716 - sr-cyrl-cs
0x00, 0x30, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0e, 0x11, 0x2c, 0xd2, 0xcd, // 717 - sr-cyrl-me
0x00, 0x28, 0x1a, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2c, 0xe2, 0xce, // 718 - sr-cyrl-rs
0x00, 0x10, 0x00, 0x4e, 0x33, 0x57, 0x27, 0x17, 0x52, 0x21, 0x00, 0x97, 0x49, 0x41, 0x11, 0x2c, 0xf0, 0xf0, // 719 - sr-cyrl-xk
0x00, 0x70, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2d, 0x42, 0xd4, // 720 - sr-latn
0x00, 0x18, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x62, 0x03, 0x66, 0x00, 0x00, 0x00, 0x19, 0x11, 0x2d, 0x12, 0xd1, // 721 - sr-latn-ba
0x00, 0x08, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0d, 0x11, 0x2d, 0x22, 0xd2, // 722 - sr-latn-cs
0x00, 0x2c, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0e, 0x11, 0x2d, 0x32, 0xd3, // 723 - sr-latn-me
0x00, 0x24, 0x1a, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x0f, 0x11, 0x2d, 0x42, 0xd4, // 724 - sr-latn-rs
0x00, 0x10, 0x00, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x97, 0x49, 0x41, 0x11, 0x2d, 0x50, 0xf0, // 725 - sr-latn-xk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0x80, 0xf0, // 726 - ss
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x01, 0x04, 0x11, 0x2d, 0x70, 0xf0, // 727 - ss-sz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0x80, 0xf0, // 728 - ss-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2d, 0xa0, 0xf0, // 729 - ssy
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2d, 0xa0, 0xf0, // 730 - ssy-er
0x00, 0x00, 0x30, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0xd0, 0xf0, // 731 - st
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x92, 0x11, 0x2d, 0xc0, 0xf0, // 732 - st-ls
0x00, 0x04, 0x30, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x2d, 0xd0, 0xf0, // 733 - st-za
0x00, 0x00, 0x1d, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2e, 0x12, 0xe1, // 734 - sv
0x00, 0x10, 0x00, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x99, 0x06, 0xf5, 0x11, 0x2d, 0xf0, 0xf0, // 735 - sv-ax
0x00, 0x08, 0x1d, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0x4d, 0x11, 0x2e, 0x02, 0xe0, // 736 - sv-fi
0x00, 0x04, 0x1d, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x36, 0x00, 0x00, 0x00, 0xdd, 0x11, 0x2e, 0x12, 0xe1, // 737 - sv-se
0x00, 0x00, 0x41, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2e, 0x42, 0xe4, // 738 - sw
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x2e, 0x32, 0xe4, // 739 - sw-cd
0x00, 0x04, 0x41, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2e, 0x42, 0xe4, // 740 - sw-ke
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x2e, 0x50, 0xf0, // 741 - sw-tz
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x2e, 0x60, 0xf0, // 742 - sw-ug
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x01, 0x2e, 0x80, 0xf0, // 743 - swc
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2c, 0x11, 0x2e, 0x80, 0xf0, // 744 - swc-cd
0x00, 0x00, 0x5a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xde, 0x01, 0x2e, 0xa0, 0x8f, // 745 - syr
0x00, 0x04, 0x5a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xde, 0x01, 0x2e, 0xa0, 0x8f, // 746 - syr-sy
0x00, 0x00, 0x49, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x2e, 0xc0, 0x8f, // 747 - ta
0x00, 0x04, 0x49, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x01, 0x2e, 0xc0, 0x8f, // 748 - ta-in
0x00, 0x08, 0x49, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2a, 0x11, 0x2e, 0xd0, 0x8f, // 749 - ta-lk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xa7, 0x11, 0x2e, 0xe0, 0xf0, // 750 - ta-my
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x11, 0x2e, 0xf0, 0xf0, // 751 - ta-sg
0x00, 0x00, 0x4a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x2f, 0x10, 0x8f, // 752 - te
0x00, 0x04, 0x4a, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x11, 0x2f, 0x10, 0x8f, // 753 - te-in
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x2f, 0x40, 0xf0, // 754 - teo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x81, 0x11, 0x2f, 0x30, 0xf0, // 755 - teo-ke
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x2f, 0x40, 0xf0, // 756 - teo-ug
0x00, 0x00, 0x28, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xe4, 0x11, 0x2f, 0x72, 0xf7, // 757 - tg
0x00, 0x7c, 0x28, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xe4, 0x11, 0x2f, 0x72, 0xf7, // 758 - tg-cyrl
0x00, 0x04, 0x28, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xe4, 0x11, 0x2f, 0x72, 0xf7, // 759 - tg-cyrl-tj
0x00, 0x00, 0x1e, 0x36, 0xa3, 0x6a, 0x27, 0x25, 0x51, 0x66, 0x00, 0x00, 0x00, 0xe3, 0x01, 0x2f, 0x90, 0x8f, // 760 - th
0x00, 0x04, 0x1e, 0x36, 0xa3, 0x6a, 0x27, 0x25, 0x51, 0x66, 0x00, 0x00, 0x00, 0xe3, 0x01, 0x2f, 0x90, 0x8f, // 761 - th-th
0x00, 0x00, 0x73, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xb0, 0x8f, // 762 - ti
0x00, 0x08, 0x73, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xb0, 0x8f, // 763 - ti-er
0x00, 0x04, 0x73, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x2f, 0xc0, 0x8f, // 764 - ti-et
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xe0, 0xf0, // 765 - tig
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x47, 0x11, 0x2f, 0xe0, 0xf0, // 766 - tig-er
0x00, 0x00, 0x42, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xee, 0x11, 0x30, 0x03, 0x00, // 767 - tk
0x00, 0x04, 0x42, 0x4e, 0x23, 0x54, 0x27, 0x2d, 0x51, 0x90, 0x00, 0x00, 0x00, 0xee, 0x11, 0x30, 0x03, 0x00, // 768 - tk-tm
0x00, 0x00, 0x32, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0x33, 0x03, // 769 - tn
0x00, 0x08, 0x32, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x13, 0x11, 0x30, 0x23, 0x02, // 770 - tn-bw
0x00, 0x04, 0x32, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0x33, 0x03, // 771 - tn-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe7, 0x11, 0x30, 0x50, 0xf0, // 772 - to
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xe7, 0x11, 0x30, 0x50, 0xf0, // 773 - to-to
0x00, 0x00, 0x1f, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0xeb, 0x11, 0x30, 0x83, 0x08, // 774 - tr
0x00, 0x10, 0x00, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0x3b, 0x11, 0x30, 0x70, 0xf0, // 775 - tr-cy
0x00, 0x04, 0x1f, 0x4e, 0x63, 0x59, 0x27, 0x61, 0x51, 0xa9, 0x00, 0x00, 0x00, 0xeb, 0x11, 0x30, 0x83, 0x08, // 776 - tr-tr
0x00, 0x00, 0x31, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0xa0, 0xf0, // 777 - ts
0x00, 0x04, 0x31, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x30, 0xa0, 0xf0, // 778 - ts-za
0x00, 0x00, 0x44, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x30, 0xc3, 0x0c, // 779 - tt
0x00, 0x04, 0x44, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xcb, 0x11, 0x30, 0xc3, 0x0c, // 780 - tt-ru
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x30, 0xe0, 0xf0, // 781 - twq
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xad, 0x11, 0x30, 0xe0, 0xf0, // 782 - twq-ne
0x00, 0x00, 0x5f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x31, 0x33, 0x13, // 783 - tzm
0x00, 0x10, 0x00, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x10, 0xf0, // 784 - tzm-arab
0x00, 0x04, 0x5f, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x10, 0xf0, // 785 - tzm-arab-ma
0x00, 0x7c, 0x5f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x31, 0x33, 0x13, // 786 - tzm-latn
0x00, 0x08, 0x5f, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0x04, 0x11, 0x31, 0x33, 0x13, // 787 - tzm-latn-dz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x40, 0xf0, // 788 - tzm-latn-ma
0x00, 0x78, 0x5f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x61, 0x3c, // 789 - tzm-tfng
0x00, 0x10, 0x5f, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x31, 0x61, 0x3c, // 790 - tzm-tfng-ma
0x00, 0x00, 0x80, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x31, 0x80, 0x8f, // 791 - ug
0x00, 0x04, 0x80, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x31, 0x80, 0x8f, // 792 - ug-cn
0x00, 0x00, 0x22, 0x4e, 0x33, 0x62, 0x27, 0x21, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf1, 0x11, 0x31, 0xa3, 0x1a, // 793 - uk
0x00, 0x04, 0x22, 0x4e, 0x33, 0x62, 0x27, 0x21, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf1, 0x11, 0x31, 0xa3, 0x1a, // 794 - uk-ua
0x00, 0x00, 0x20, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x11, 0x31, 0xd0, 0x8f, // 795 - ur
0x00, 0x08, 0x20, 0x4e, 0x82, 0xd0, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x71, 0x12, 0x31, 0xc0, 0xf0, // 796 - ur-in
0x00, 0x04, 0x20, 0x4e, 0x82, 0xd0, 0x27, 0x14, 0x4f, 0xc4, 0x00, 0x00, 0x00, 0xbe, 0x11, 0x31, 0xd0, 0x8f, // 797 - ur-pk
0x00, 0x00, 0x43, 0x4e, 0x63, 0x59, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x43, 0x24, // 798 - uz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x32, 0x00, 0xf0, // 799 - uz-arab
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x03, 0x12, 0x32, 0x00, 0xf0, // 800 - uz-arab-af
0x00, 0x78, 0x43, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x23, 0x22, // 801 - uz-cyrl
0x00, 0x08, 0x43, 0x4e, 0x33, 0x62, 0x27, 0x17, 0x51, 0x90, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x23, 0x22, // 802 - uz-cyrl-uz
0x00, 0x7c, 0x43, 0x4e, 0x63, 0x59, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x43, 0x24, // 803 - uz-latn
0x00, 0x04, 0x43, 0x4e, 0x63, 0x59, 0x27, 0x2d, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf7, 0x11, 0x32, 0x43, 0x24, // 804 - uz-latn-uz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x90, 0xf0, // 805 - vai
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x70, 0xf0, // 806 - vai-latn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x70, 0xf0, // 807 - vai-latn-lr
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x90, 0xf0, // 808 - vai-vaii
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x8e, 0x11, 0x32, 0x90, 0xf0, // 809 - vai-vaii-lr
0x00, 0x00, 0x33, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x32, 0xb0, 0xf0, // 810 - ve
0x00, 0x04, 0x33, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x32, 0xb0, 0xf0, // 811 - ve-za
0x00, 0x00, 0x2a, 0x4e, 0xa4, 0xea, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfb, 0x01, 0x32, 0xd0, 0x8f, // 812 - vi
0x00, 0x04, 0x2a, 0x4e, 0xa4, 0xea, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xfb, 0x01, 0x32, 0xd0, 0x8f, // 813 - vi-vn
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x32, 0xf0, 0xf0, // 814 - vo
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x32, 0xf0, 0xf0, // 815 - vo-001
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x33, 0x10, 0xf0, // 816 - vun
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xef, 0x11, 0x33, 0x10, 0xf0, // 817 - vun-tz
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x33, 0x30, 0xf0, // 818 - wae
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xdf, 0x11, 0x33, 0x30, 0xf0, // 819 - wae-ch
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x33, 0x50, 0xf0, // 820 - wal
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x49, 0x11, 0x33, 0x50, 0xf0, // 821 - wal-et
0x00, 0x00, 0x88, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x33, 0x73, 0x37, // 822 - wo
0x00, 0x04, 0x88, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x4f, 0x49, 0x00, 0x00, 0x00, 0xd2, 0x11, 0x33, 0x73, 0x37, // 823 - wo-sn
0x01, 0x00, 0x7f, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xf4, 0x01, 0xff, 0xff, 0xff, // 824 - x-iv_mathan
0x00, 0x00, 0x34, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x33, 0xa3, 0x3a, // 825 - xh
0x00, 0x04, 0x34, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x33, 0xa3, 0x3a, // 826 - xh-za
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x33, 0xc0, 0xf0, // 827 - xog
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xf0, 0x11, 0x33, 0xc0, 0xf0, // 828 - xog-ug
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x33, 0xe0, 0xf0, // 829 - yav
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x31, 0x11, 0x33, 0xe0, 0xf0, // 830 - yav-cm
0x00, 0x00, 0x3d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x34, 0x00, 0xf0, // 831 - yi
0x00, 0x04, 0x3d, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x98, 0x9e, 0x11, 0x34, 0x00, 0xf0, // 832 - yi-001
0x00, 0x00, 0x6a, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x34, 0x33, 0x43, // 833 - yo
0x00, 0x10, 0x00, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x1c, 0x11, 0x34, 0x20, 0xf0, // 834 - yo-bj
0x00, 0x04, 0x6a, 0x4e, 0x41, 0xb5, 0x27, 0x10, 0x00, 0x25, 0x00, 0x00, 0x00, 0xaf, 0x11, 0x34, 0x33, 0x43, // 835 - yo-ng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x34, 0x50, 0xf0, // 836 - yue
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x34, 0x50, 0xf0, // 837 - yue-hk
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x34, 0x81, 0x3c, // 838 - zgh
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x34, 0x81, 0x3c, // 839 - zgh-tfng
0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x9f, 0x11, 0x34, 0x81, 0x3c, // 840 - zgh-tfng-ma
0x00, 0x78, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 841 - zh
0x00, 0x00, 0x04, 0x3a, 0x83, 0xa8, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 842 - zh-chs
0x00, 0x7c, 0x04, 0x3b, 0x63, 0xb6, 0x00, 0x00, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 843 - zh-cht
0x00, 0x08, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 844 - zh-cn
0x05, 0x08, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 845 - zh-cn_phoneb
0x02, 0x08, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 846 - zh-cn_stroke
0x00, 0x00, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x2d, 0x01, 0x34, 0xc3, 0x4c, // 847 - zh-hans
0x00, 0x10, 0x00, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x11, 0x35, 0x00, 0xf0, // 848 - zh-hans-hk
0x00, 0x10, 0x00, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x11, 0x35, 0x10, 0xf0, // 849 - zh-hans-mo
0x00, 0x7c, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 850 - zh-hant
0x00, 0x0c, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 851 - zh-hk
0x04, 0x0c, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x68, 0x01, 0x35, 0x33, 0x53, // 852 - zh-hk_radstr
0x00, 0x14, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x35, 0x53, 0x55, // 853 - zh-mo
0x04, 0x14, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x35, 0x53, 0x55, // 854 - zh-mo_radstr
0x02, 0x14, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0x97, 0x01, 0x35, 0x53, 0x55, // 855 - zh-mo_stroke
0x00, 0x10, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x35, 0x83, 0x58, // 856 - zh-sg
0x05, 0x10, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x35, 0x83, 0x58, // 857 - zh-sg_phoneb
0x02, 0x10, 0x04, 0x3a, 0x83, 0xa8, 0x27, 0x18, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd7, 0x01, 0x35, 0x83, 0x58, // 858 - zh-sg_stroke
0x00, 0x04, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xed, 0x01, 0x35, 0xb3, 0x5b, // 859 - zh-tw
0x03, 0x04, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xed, 0x01, 0x35, 0xb3, 0x5b, // 860 - zh-tw_pronun
0x04, 0x04, 0x04, 0x3b, 0x63, 0xb6, 0x27, 0x12, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xed, 0x01, 0x35, 0xb3, 0x5b, // 861 - zh-tw_radstr
0x00, 0x00, 0x35, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x35, 0xf3, 0x5f, // 862 - zu
0x00, 0x04, 0x35, 0x4e, 0x43, 0x52, 0x27, 0x10, 0x01, 0xf4, 0x00, 0x00, 0x00, 0xd1, 0x11, 0x35, 0xf3, 0x5f, // 863 - zu-za
};
internal static string? LCIDToLocaleName(int culture)
{
uint sort = (uint)culture >> 16;
culture = (ushort)culture;
ReadOnlySpan<byte> indices = LcidToCultureNameIndices;
(int start, int end) = sort switch
{
0 => (0, LcidSortPrefix1Index),
1 => (LcidSortPrefix1Index, LcidSortPrefix2Index),
2 => (LcidSortPrefix2Index, LcidSortPrefix3Index),
3 => (LcidSortPrefix3Index, LcidSortPrefix4Index),
4 => (LcidSortPrefix4Index, LcidSortPrefix5Index),
5 => (LcidSortPrefix5Index, indices.Length),
_ => default
};
indices = indices[start..end];
int lo = 0;
int hi = indices.Length / 4 - 1;
// Binary search the array
while (lo <= hi)
{
int i = lo + ((hi - lo) >> 1);
int index = i * 4;
int array_value = indices[index] << 8 | indices[index + 1];
int order = array_value.CompareTo(culture);
if (order == 0)
{
start = (indices[index + 2] << 4) | indices[index + 3] >> 4;
int length = indices[index + 3] & 0xF;
return GetString(CultureNames.Slice(start, length));
}
if (order < 0)
{
lo = i + 1;
}
else
{
hi = i - 1;
}
}
return null;
}
internal static int GetLocaleDataNumericPart(string cultureName, IcuLocaleDataParts part)
{
int index = SearchCultureName(cultureName);
if (index < 0)
{
return -1;
}
ReadOnlySpan<byte> numericData = NameIndexToNumericData.Slice(index * NumericLocaleDataBytesPerRow, NumericLocaleDataBytesPerRow);
return part switch
{
IcuLocaleDataParts.Lcid => numericData[2] | (numericData[1] << 8) | (numericData[0] << 16),
IcuLocaleDataParts.AnsiCodePage => (numericData[4] & 0xf0) >> 4 | (numericData[3] & 0xff) << 4,
IcuLocaleDataParts.OemCodePage => numericData[5] | (numericData[4] & 0xf) << 8,
IcuLocaleDataParts.MacCodePage => numericData[7] | (numericData[6] << 8),
IcuLocaleDataParts.EbcdicCodePage => numericData[9] | (numericData[8] << 8),
IcuLocaleDataParts.GeoId => numericData[13] | (numericData[12] << 8) | (numericData[11] << 16) | (numericData[10] << 24),
IcuLocaleDataParts.DigitSubstitutionOrListSeparator => ResolveDigitListSeparator(numericData[14]),
IcuLocaleDataParts.SpecificLocaleIndex => ResolveIndex((numericData[16] & 0xf0) >> 4 | ((numericData[15] & 0xff) << 4)),
IcuLocaleDataParts.ConsoleLocaleIndex => ResolveIndex(numericData[17] | (numericData[16] & 0xf) << 8),
_ => -1
};
static int ResolveIndex(int value) => value == 0xfff ? -1 : value;
static int ResolveDigitListSeparator(int value) => ((value & 0xf0) << 12) | (value & 0xf);
}
internal static string? GetThreeLetterWindowsLanguageName(string cultureName)
{
int index = SearchCultureName(cultureName);
if (index < 0)
{
return null;
}
Debug.Assert(CulturesCount == (ThreeLetterWindowsLanguageName.Length / 3));
return GetString(ThreeLetterWindowsLanguageName.Slice(index * 3, 3));
}
private static string GetLocaleDataMappedCulture(string cultureName, IcuLocaleDataParts part)
{
int indexToIndicesTable = GetLocaleDataNumericPart(cultureName, part);
if (indexToIndicesTable < 0)
{
return ""; // fallback to invariant
}
return GetString(GetCultureName(indexToIndicesTable));
}
internal static string GetSpecificCultureName(string cultureName)
{
return GetLocaleDataMappedCulture(cultureName, IcuLocaleDataParts.SpecificLocaleIndex);
}
internal static string GetConsoleUICulture(string cultureName)
{
return GetLocaleDataMappedCulture(cultureName, IcuLocaleDataParts.ConsoleLocaleIndex);
}
// Returns index of the culture or less than 0 if it fail finding any match
private static int SearchCultureName(string name)
{
if (name.Length > LocaleLongestName)
return -1;
Span<byte> lower_case = stackalloc byte[name.Length];
for (int i = 0; i < name.Length; ++i)
{
char ch = name[i];
Debug.Assert(ch <= 'z');
lower_case[i] = ((uint)(ch - 'A') <= 'Z' - 'A') ? (byte)(ch | 0x20) : (byte)ch;
}
ReadOnlySpan<byte> lname = lower_case;
Debug.Assert(CulturesCount * 2 == LocalesNamesIndexes.Length);
int lo = 0;
int hi = CulturesCount - 1;
// Binary search the array
while (lo <= hi)
{
int i = lo + ((hi - lo) >> 1);
int order = GetCultureName(i).SequenceCompareTo(lname);
if (order == 0) return i;
if (order < 0)
{
lo = i + 1;
}
else
{
hi = i - 1;
}
}
return ~lo;
}
private static ReadOnlySpan<byte> GetCultureName(int localeNameIndice)
{
ReadOnlySpan<byte> localesNamesIndexes = LocalesNamesIndexes;
int index = localeNameIndice * 2;
int high = localesNamesIndexes[index];
int low = localesNamesIndexes[index + 1];
int start = (high << 4) | (low >> 4);
int length = low & 0xF;
return CultureNames.Slice(start, length);
}
private static string GetString(ReadOnlySpan<byte> buffer)
{
string result = string.FastAllocateString(buffer.Length);
var s = new Span<char>(ref result.GetRawStringData(), buffer.Length);
for (int i = 0; i < buffer.Length; i++)
{
s[i] = (char)buffer[i];
}
return result;
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Collections/tests/Generic/SortedDictionary/SortedDictionary.Generic.Tests.Keys.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Diagnostics;
using Xunit;
namespace System.Collections.Tests
{
public class SortedDictionary_Generic_Tests_Keys : ICollection_Generic_Tests<string>
{
protected override bool DefaultValueAllowed => false;
protected override bool DuplicateValuesAllowed => false;
protected override bool IsReadOnly => true;
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations)=> new List<ModifyEnumerable>();
protected override ICollection<string> GenericICollectionFactory()
{
return new SortedDictionary<string, string>().Keys;
}
protected override ICollection<string> GenericICollectionFactory(int count)
{
SortedDictionary<string, string> list = new SortedDictionary<string, string>();
int seed = 13453;
for (int i = 0; i < count; i++)
list.Add(CreateT(seed++), CreateT(seed++));
return list.Keys;
}
protected override string CreateT(int seed)
{
int stringLength = seed % 10 + 5;
Random rand = new Random(seed);
byte[] bytes = new byte[stringLength];
rand.NextBytes(bytes);
return Convert.ToBase64String(bytes);
}
[Fact]
public void SortedDictionary_Generic_KeyCollection_Constructor_NullDictionary()
{
Assert.Throws<ArgumentNullException>(() => new SortedDictionary<string, string>.KeyCollection(null));
}
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
public void SortedDictionary_Generic_KeyCollection_GetEnumerator(int count)
{
SortedDictionary<string, string> dictionary = new SortedDictionary<string, string>();
int seed = 13453;
while (dictionary.Count < count)
dictionary.Add(CreateT(seed++), CreateT(seed++));
dictionary.Keys.GetEnumerator();
}
}
public class SortedDictionary_Generic_Tests_Keys_AsICollection : ICollection_NonGeneric_Tests
{
protected override bool NullAllowed => false;
protected override bool DuplicateValuesAllowed => false;
protected override bool IsReadOnly => true;
protected override bool Enumerator_Current_UndefinedOperation_Throws => true;
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations) => new List<ModifyEnumerable>();
protected override ICollection NonGenericICollectionFactory()
{
return (ICollection)(new SortedDictionary<string, string>().Keys);
}
protected override bool SupportsSerialization { get { return false; } }
protected override ICollection NonGenericICollectionFactory(int count)
{
SortedDictionary<string, string> list = new SortedDictionary<string, string>();
int seed = 13453;
for (int i = 0; i < count; i++)
list.Add(CreateT(seed++), CreateT(seed++));
return (ICollection)(list.Keys);
}
private string CreateT(int seed)
{
int stringLength = seed % 10 + 5;
Random rand = new Random(seed);
byte[] bytes = new byte[stringLength];
rand.NextBytes(bytes);
return Convert.ToBase64String(bytes);
}
protected override void AddToCollection(ICollection collection, int numberOfItemsToAdd)
{
Debug.Assert(false);
}
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
public override void ICollection_NonGeneric_CopyTo_ArrayOfIncorrectValueType(int count)
{
ICollection collection = NonGenericICollectionFactory(count);
float[] array = new float[count * 3 / 2];
Assert.Throws<InvalidCastException>(() => collection.CopyTo(array, 0));
}
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
public void SortedDictionary_Generic_KeyCollection_CopyTo_ExactlyEnoughSpaceInTypeCorrectArray(int count)
{
ICollection collection = NonGenericICollectionFactory(count);
string[] array = new string[count];
collection.CopyTo(array, 0);
int i = 0;
foreach (object obj in collection)
Assert.Equal(array[i++], obj);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Diagnostics;
using Xunit;
namespace System.Collections.Tests
{
public class SortedDictionary_Generic_Tests_Keys : ICollection_Generic_Tests<string>
{
protected override bool DefaultValueAllowed => false;
protected override bool DuplicateValuesAllowed => false;
protected override bool IsReadOnly => true;
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations)=> new List<ModifyEnumerable>();
protected override ICollection<string> GenericICollectionFactory()
{
return new SortedDictionary<string, string>().Keys;
}
protected override ICollection<string> GenericICollectionFactory(int count)
{
SortedDictionary<string, string> list = new SortedDictionary<string, string>();
int seed = 13453;
for (int i = 0; i < count; i++)
list.Add(CreateT(seed++), CreateT(seed++));
return list.Keys;
}
protected override string CreateT(int seed)
{
int stringLength = seed % 10 + 5;
Random rand = new Random(seed);
byte[] bytes = new byte[stringLength];
rand.NextBytes(bytes);
return Convert.ToBase64String(bytes);
}
[Fact]
public void SortedDictionary_Generic_KeyCollection_Constructor_NullDictionary()
{
Assert.Throws<ArgumentNullException>(() => new SortedDictionary<string, string>.KeyCollection(null));
}
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
public void SortedDictionary_Generic_KeyCollection_GetEnumerator(int count)
{
SortedDictionary<string, string> dictionary = new SortedDictionary<string, string>();
int seed = 13453;
while (dictionary.Count < count)
dictionary.Add(CreateT(seed++), CreateT(seed++));
dictionary.Keys.GetEnumerator();
}
}
public class SortedDictionary_Generic_Tests_Keys_AsICollection : ICollection_NonGeneric_Tests
{
protected override bool NullAllowed => false;
protected override bool DuplicateValuesAllowed => false;
protected override bool IsReadOnly => true;
protected override bool Enumerator_Current_UndefinedOperation_Throws => true;
protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations) => new List<ModifyEnumerable>();
protected override ICollection NonGenericICollectionFactory()
{
return (ICollection)(new SortedDictionary<string, string>().Keys);
}
protected override bool SupportsSerialization { get { return false; } }
protected override ICollection NonGenericICollectionFactory(int count)
{
SortedDictionary<string, string> list = new SortedDictionary<string, string>();
int seed = 13453;
for (int i = 0; i < count; i++)
list.Add(CreateT(seed++), CreateT(seed++));
return (ICollection)(list.Keys);
}
private string CreateT(int seed)
{
int stringLength = seed % 10 + 5;
Random rand = new Random(seed);
byte[] bytes = new byte[stringLength];
rand.NextBytes(bytes);
return Convert.ToBase64String(bytes);
}
protected override void AddToCollection(ICollection collection, int numberOfItemsToAdd)
{
Debug.Assert(false);
}
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
public override void ICollection_NonGeneric_CopyTo_ArrayOfIncorrectValueType(int count)
{
ICollection collection = NonGenericICollectionFactory(count);
float[] array = new float[count * 3 / 2];
Assert.Throws<InvalidCastException>(() => collection.CopyTo(array, 0));
}
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
public void SortedDictionary_Generic_KeyCollection_CopyTo_ExactlyEnoughSpaceInTypeCorrectArray(int count)
{
ICollection collection = NonGenericICollectionFactory(count);
string[] array = new string[count];
collection.CopyTo(array, 0);
int i = 0;
foreach (object obj in collection)
Assert.Equal(array[i++], obj);
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest141/Generated141.ilproj | <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated141.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated141.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/MinPairwiseScalar.Vector64.Single.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void MinPairwiseScalar_Vector64_Single()
{
var test = new SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single
{
private struct DataTable
{
private byte[] inArray1;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Single[] inArray1, Single[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Single>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Single>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Single, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector64<Single> _fld1;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Single>, byte>(ref testStruct._fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Single>>());
return testStruct;
}
public void RunStructFldScenario(SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single testClass)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(_fld1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single testClass)
{
fixed (Vector64<Single>* pFld1 = &_fld1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pFld1))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 8;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Single>>() / sizeof(Single);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Single>>() / sizeof(Single);
private static Single[] _data1 = new Single[Op1ElementCount];
private static Vector64<Single> _clsVar1;
private Vector64<Single> _fld1;
private DataTable _dataTable;
static SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Single>, byte>(ref _clsVar1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Single>>());
}
public SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Single>, byte>(ref _fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Single>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
_dataTable = new DataTable(_data1, new Single[RetElementCount], LargestVectorSize);
}
public bool IsSupported => AdvSimd.Arm64.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = AdvSimd.Arm64.MinPairwiseScalar(
Unsafe.Read<Vector64<Single>>(_dataTable.inArray1Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(_dataTable.inArray1Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.MinPairwiseScalar), new Type[] { typeof(Vector64<Single>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector64<Single>>(_dataTable.inArray1Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Single>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.MinPairwiseScalar), new Type[] { typeof(Vector64<Single>) })
.Invoke(null, new object[] {
AdvSimd.LoadVector64((Single*)(_dataTable.inArray1Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Single>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = AdvSimd.Arm64.MinPairwiseScalar(
_clsVar1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector64<Single>* pClsVar1 = &_clsVar1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pClsVar1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector64<Single>>(_dataTable.inArray1Ptr);
var result = AdvSimd.Arm64.MinPairwiseScalar(op1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = AdvSimd.LoadVector64((Single*)(_dataTable.inArray1Ptr));
var result = AdvSimd.Arm64.MinPairwiseScalar(op1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single();
var result = AdvSimd.Arm64.MinPairwiseScalar(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single();
fixed (Vector64<Single>* pFld1 = &test._fld1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pFld1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = AdvSimd.Arm64.MinPairwiseScalar(_fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector64<Single>* pFld1 = &_fld1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pFld1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = AdvSimd.Arm64.MinPairwiseScalar(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(&test._fld1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector64<Single> op1, void* result, [CallerMemberName] string method = "")
{
Single[] inArray1 = new Single[Op1ElementCount];
Single[] outArray = new Single[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), op1);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Single>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "")
{
Single[] inArray1 = new Single[Op1ElementCount];
Single[] outArray = new Single[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Single>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Single>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(Single[] firstOp, Single[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (BitConverter.SingleToInt32Bits(Helpers.MinPairwise(firstOp, 0)) != BitConverter.SingleToInt32Bits(result[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (BitConverter.SingleToInt32Bits(result[i]) != 0)
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd.Arm64)}.{nameof(AdvSimd.Arm64.MinPairwiseScalar)}<Single>(Vector64<Single>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void MinPairwiseScalar_Vector64_Single()
{
var test = new SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single
{
private struct DataTable
{
private byte[] inArray1;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Single[] inArray1, Single[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Single>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Single>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Single, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector64<Single> _fld1;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Single>, byte>(ref testStruct._fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Single>>());
return testStruct;
}
public void RunStructFldScenario(SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single testClass)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(_fld1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single testClass)
{
fixed (Vector64<Single>* pFld1 = &_fld1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pFld1))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 8;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Single>>() / sizeof(Single);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Single>>() / sizeof(Single);
private static Single[] _data1 = new Single[Op1ElementCount];
private static Vector64<Single> _clsVar1;
private Vector64<Single> _fld1;
private DataTable _dataTable;
static SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Single>, byte>(ref _clsVar1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Single>>());
}
public SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Single>, byte>(ref _fld1), ref Unsafe.As<Single, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Single>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetSingle(); }
_dataTable = new DataTable(_data1, new Single[RetElementCount], LargestVectorSize);
}
public bool IsSupported => AdvSimd.Arm64.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = AdvSimd.Arm64.MinPairwiseScalar(
Unsafe.Read<Vector64<Single>>(_dataTable.inArray1Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(_dataTable.inArray1Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.MinPairwiseScalar), new Type[] { typeof(Vector64<Single>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector64<Single>>(_dataTable.inArray1Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Single>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.MinPairwiseScalar), new Type[] { typeof(Vector64<Single>) })
.Invoke(null, new object[] {
AdvSimd.LoadVector64((Single*)(_dataTable.inArray1Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Single>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = AdvSimd.Arm64.MinPairwiseScalar(
_clsVar1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector64<Single>* pClsVar1 = &_clsVar1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pClsVar1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector64<Single>>(_dataTable.inArray1Ptr);
var result = AdvSimd.Arm64.MinPairwiseScalar(op1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = AdvSimd.LoadVector64((Single*)(_dataTable.inArray1Ptr));
var result = AdvSimd.Arm64.MinPairwiseScalar(op1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single();
var result = AdvSimd.Arm64.MinPairwiseScalar(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleUnaryOpTest__MinPairwiseScalar_Vector64_Single();
fixed (Vector64<Single>* pFld1 = &test._fld1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pFld1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = AdvSimd.Arm64.MinPairwiseScalar(_fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector64<Single>* pFld1 = &_fld1)
{
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(pFld1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = AdvSimd.Arm64.MinPairwiseScalar(test._fld1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = AdvSimd.Arm64.MinPairwiseScalar(
AdvSimd.LoadVector64((Single*)(&test._fld1))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector64<Single> op1, void* result, [CallerMemberName] string method = "")
{
Single[] inArray1 = new Single[Op1ElementCount];
Single[] outArray = new Single[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), op1);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Single>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "")
{
Single[] inArray1 = new Single[Op1ElementCount];
Single[] outArray = new Single[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Single>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Single, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Single>>());
ValidateResult(inArray1, outArray, method);
}
private void ValidateResult(Single[] firstOp, Single[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (BitConverter.SingleToInt32Bits(Helpers.MinPairwise(firstOp, 0)) != BitConverter.SingleToInt32Bits(result[0]))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (BitConverter.SingleToInt32Bits(result[i]) != 0)
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd.Arm64)}.{nameof(AdvSimd.Arm64.MinPairwiseScalar)}<Single>(Vector64<Single>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/Fakes/ScopedFactoryService.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.Extensions.DependencyInjection.Specification.Fakes
{
public class ScopedFactoryService
{
public IFakeService FakeService { get; set; }
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.Extensions.DependencyInjection.Specification.Fakes
{
public class ScopedFactoryService
{
public IFakeService FakeService { get; set; }
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/coreclr/vm/fcall.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// FCALL.CPP
//
//
#include "common.h"
#include "vars.hpp"
#include "fcall.h"
#include "excep.h"
#include "frames.h"
#include "gms.h"
#include "ecall.h"
#include "eeconfig.h"
NOINLINE LPVOID __FCThrow(LPVOID __me, RuntimeExceptionKind reKind, UINT resID, LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3)
{
STATIC_CONTRACT_THROWS;
// This isn't strictly true... But the guarentee that we make here is
// that we won't trigger without having setup a frame.
// STATIC_CONTRACT_TRIGGER
STATIC_CONTRACT_GC_NOTRIGGER;
// side effect the compiler can't remove
if (FC_NO_TAILCALL != 1)
return (LPVOID)(SIZE_T)(FC_NO_TAILCALL + 1);
FC_CAN_TRIGGER_GC();
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
FC_GC_POLL_NOT_NEEDED();
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(Frame::FRAME_ATTR_CAPTURE_DEPTH_2);
// Now, we can construct & throw.
// In V1, throwing an ExecutionEngineException actually never really threw anything... its was the same as a
// fatal error in the runtime, and we will most probably would have ripped the process down. Starting in
// Whidbey, this behavior has changed a lot. Its not really legal to try to throw an
// ExecutionEngineExcpetion with this function.
_ASSERTE((reKind != kExecutionEngineException) ||
!"Don't throw kExecutionEngineException from here. Go to EEPolicy directly, or throw something better.");
if (resID == 0)
{
// If we have an string to add use NonLocalized otherwise just throw the exception.
if (arg1)
COMPlusThrowNonLocalized(reKind, arg1); //COMPlusThrow(reKind,arg1);
else
COMPlusThrow(reKind);
}
else
COMPlusThrow(reKind, resID, arg1, arg2, arg3);
HELPER_METHOD_FRAME_END();
FC_CAN_TRIGGER_GC_END();
_ASSERTE(!"Throw returned");
return NULL;
}
NOINLINE LPVOID __FCThrowArgument(LPVOID __me, RuntimeExceptionKind reKind, LPCWSTR argName, LPCWSTR resourceName)
{
STATIC_CONTRACT_THROWS;
// This isn't strictly true... But the guarentee that we make here is
// that we won't trigger without having setup a frame.
// STATIC_CONTRACT_TRIGGER
STATIC_CONTRACT_GC_NOTRIGGER;
// side effect the compiler can't remove
if (FC_NO_TAILCALL != 1)
return (LPVOID)(SIZE_T)(FC_NO_TAILCALL + 1);
FC_CAN_TRIGGER_GC();
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
FC_GC_POLL_NOT_NEEDED(); // throws always open up for GC
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(Frame::FRAME_ATTR_CAPTURE_DEPTH_2);
switch (reKind) {
case kArgumentNullException:
if (resourceName) {
COMPlusThrowArgumentNull(argName, resourceName);
} else {
COMPlusThrowArgumentNull(argName);
}
break;
case kArgumentOutOfRangeException:
COMPlusThrowArgumentOutOfRange(argName, resourceName);
break;
case kArgumentException:
COMPlusThrowArgumentException(argName, resourceName);
break;
default:
// If you see this assert, add a case for your exception kind above.
_ASSERTE(argName == NULL);
COMPlusThrow(reKind, resourceName);
}
HELPER_METHOD_FRAME_END();
FC_CAN_TRIGGER_GC_END();
_ASSERTE(!"Throw returned");
return NULL;
}
/**************************************************************************************/
/* erect a frame in the FCALL and then poll the GC, objToProtect will be protected
during the poll and the updated object returned. */
NOINLINE Object* FC_GCPoll(void* __me, Object* objToProtect)
{
CONTRACTL {
THROWS;
// This isn't strictly true... But the guarentee that we make here is
// that we won't trigger without having setup a frame.
UNCHECKED(GC_NOTRIGGER);
} CONTRACTL_END;
FC_CAN_TRIGGER_GC();
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
Thread *thread = GetThread();
if (thread->CatchAtSafePointOpportunistic()) // Does someone want this thread stopped?
{
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(Frame::FRAME_ATTR_CAPTURE_DEPTH_2, objToProtect);
#ifdef _DEBUG
BOOL GCOnTransition = FALSE;
if (g_pConfig->FastGCStressLevel()) {
GCOnTransition = GC_ON_TRANSITIONS (FALSE);
}
#endif
CommonTripThread();
#ifdef _DEBUG
if (g_pConfig->FastGCStressLevel()) {
GC_ON_TRANSITIONS (GCOnTransition);
}
#endif
HELPER_METHOD_FRAME_END();
}
FC_CAN_TRIGGER_GC_END();
return objToProtect;
}
#ifdef ENABLE_CONTRACTS
/**************************************************************************************/
#if defined(TARGET_X86) && defined(ENABLE_PERF_COUNTERS)
static __int64 getCycleCount() {
LIMITED_METHOD_CONTRACT;
return GET_CYCLE_COUNT();
}
#else
static __int64 getCycleCount() { LIMITED_METHOD_CONTRACT; return(0); }
#endif
/**************************************************************************************/
// No contract here: The contract destructor restores the thread contract state to what it was
// soon after constructing the contract. This would have the effect of reverting the contract
// state change made by the call to BeginForbidGC.
DEBUG_NOINLINE ForbidGC::ForbidGC(const char *szFile, int lineNum)
{
SCAN_SCOPE_BEGIN;
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_MODE_COOPERATIVE;
m_pThread = GetThread();
m_pThread->BeginForbidGC(szFile, lineNum);
}
/**************************************************************************************/
// No contract here: The contract destructor restores the thread contract state to what it was
// soon after constructing the contract. This would have the effect of reverting the contract
// state change made by the call to BeginForbidGC.
DEBUG_NOINLINE ForbidGC::~ForbidGC()
{
SCAN_SCOPE_END;
// IF EH happens, this is still called, in which case
// we should not bother
if (m_pThread->RawGCNoTrigger())
m_pThread->EndNoTriggerGC();
}
/**************************************************************************************/
DEBUG_NOINLINE FCallCheck::FCallCheck(const char *szFile, int lineNum) : ForbidGC(szFile, lineNum)
{
SCAN_SCOPE_BEGIN;
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_MODE_COOPERATIVE;
#ifdef _DEBUG
unbreakableLockCount = m_pThread->GetUnbreakableLockCount();
#endif
didGCPoll = false;
notNeeded = false;
startTicks = getCycleCount();
}
/**************************************************************************************/
DEBUG_NOINLINE FCallCheck::~FCallCheck()
{
SCAN_SCOPE_END;
// Confirm that we don't starve the GC or thread-abort.
// Basically every control flow path through an FCALL must
// to a poll. If you hit the assert below, you can fix it by
//
// If you erect a HELPER_METHOD_FRAME, you can
//
// Call HELPER_METHOD_POLL()
// or use HELPER_METHOD_FRAME_END_POLL
//
// If you don't have a helper frame you can used
//
// FC_GC_POLL_AND_RETURN_OBJREF or
// FC_GC_POLL or
// FC_GC_POLL_RET
//
// Note that these must be at GC safe points. In particular
// all object references that are NOT protected will be trashed.
// There is a special poll called FC_GC_POLL_NOT_NEEDED
// which says the code path is short enough that a GC poll is not need
// you should not use this in most cases.
_ASSERTE(unbreakableLockCount == m_pThread->GetUnbreakableLockCount() ||
(!m_pThread->HasUnbreakableLock() && !m_pThread->HasThreadStateNC(Thread::TSNC_OwnsSpinLock)));
if (notNeeded) {
/*<TODO> TODO, we want to actually measure the time to make certain we are not too far off
unsigned delta = unsigned(getCycleCount() - startTicks);
</TODO>*/
}
else if (!didGCPoll) {
// <TODO>TODO turn this on!!! _ASSERTE(!"FCALL without a GC poll in it somewhere!");</TODO>
}
}
#if defined(TARGET_AMD64)
FCallTransitionState::FCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
m_pThread = GetThread();
m_pPreviousHelperMethodFrameCallerList = m_pThread->m_pHelperMethodFrameCallerList;
m_pThread->m_pHelperMethodFrameCallerList = NULL;
}
FCallTransitionState::~FCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
m_pThread->m_pHelperMethodFrameCallerList = m_pPreviousHelperMethodFrameCallerList;
}
PermitHelperMethodFrameState::PermitHelperMethodFrameState ()
{
WRAPPER_NO_CONTRACT;
m_pThread = GetThread();
CONSISTENCY_CHECK_MSG((HelperMethodFrameCallerList*)-1 != m_pThread->m_pHelperMethodFrameCallerList,
"fcall entry point is missing a FCALL_TRANSITION_BEGIN or a FCIMPL\n");
m_ListEntry.pCaller = m_pThread->m_pHelperMethodFrameCallerList;
m_pThread->m_pHelperMethodFrameCallerList = &m_ListEntry;
}
PermitHelperMethodFrameState::~PermitHelperMethodFrameState ()
{
WRAPPER_NO_CONTRACT;
m_pThread->m_pHelperMethodFrameCallerList = m_ListEntry.pCaller;
}
VOID PermitHelperMethodFrameState::CheckHelperMethodFramePermitted ()
{
CONTRACTL {
NOTHROW;
GC_NOTRIGGER;
DEBUG_ONLY;
} CONTRACTL_END;
//
// Get current context and unwind to caller
//
CONTEXT ctx;
ClrCaptureContext(&ctx);
Thread::VirtualUnwindCallFrame(&ctx);
//
// Make sure each unmanaged frame used PERMIT_HELPER_METHOD_FRAME_BEGIN.
// If we hit NULL before we reach managed code, then the caller of the
// fcall was not managed.
//
Thread *pThread = GetThread();
HelperMethodFrameCallerList *pList = pThread->m_pHelperMethodFrameCallerList;
PCODE CurrentIP;
TADDR CurrentSP;
do
{
CurrentSP = GetSP(&ctx);
CurrentIP = GetIP(&ctx);
Thread::VirtualUnwindCallFrame(&ctx);
TADDR CallerSP = GetSP(&ctx);
unsigned nAssociatedListEntries = 0;
while ( (SIZE_T)pList >= (SIZE_T)CurrentSP
&& (SIZE_T)pList < (SIZE_T)CallerSP)
{
nAssociatedListEntries++;
pList = pList->pCaller;
}
if (!nAssociatedListEntries)
{
char szFunction[cchMaxAssertStackLevelStringLen];
GetStringFromAddr((DWORD_PTR)CurrentIP, szFunction);
CONSISTENCY_CHECK_MSGF(false, ("Unmanaged caller %s at sp %p/ip %p is missing a "
"PERMIT_HELPER_METHOD_FRAME_BEGIN, or this function "
"is calling an fcall entry point that is missing a "
"FCALL_TRANSITION_BEGIN or a FCIMPL\n", szFunction, CurrentSP, CurrentIP));
}
}
while (pList && !ExecutionManager::IsManagedCode(GetIP(&ctx)));
//
// We should have exhausted the list. If not, the list was not reset at
// the transition from managed code.
//
if (pList)
{
char szFunction[cchMaxAssertStackLevelStringLen];
GetStringFromAddr((DWORD_PTR)CurrentIP, szFunction);
CONSISTENCY_CHECK_MSGF(false, ("fcall entry point %s at sp %p/ip %p is missing a "
"FCALL_TRANSITION_BEGIN or a FCIMPL\n", szFunction, CurrentSP, CurrentIP));
}
}
CompletedFCallTransitionState::CompletedFCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
Thread *pThread = GetThread();
m_pLastHelperMethodFrameCallerList = pThread->m_pHelperMethodFrameCallerList;
pThread->m_pHelperMethodFrameCallerList = (HelperMethodFrameCallerList*)-1;
}
CompletedFCallTransitionState::~CompletedFCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
Thread *pThread = GetThread();
pThread->m_pHelperMethodFrameCallerList = m_pLastHelperMethodFrameCallerList;
}
#endif // TARGET_AMD64
#endif // ENABLE_CONTRACTS
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// FCALL.CPP
//
//
#include "common.h"
#include "vars.hpp"
#include "fcall.h"
#include "excep.h"
#include "frames.h"
#include "gms.h"
#include "ecall.h"
#include "eeconfig.h"
NOINLINE LPVOID __FCThrow(LPVOID __me, RuntimeExceptionKind reKind, UINT resID, LPCWSTR arg1, LPCWSTR arg2, LPCWSTR arg3)
{
STATIC_CONTRACT_THROWS;
// This isn't strictly true... But the guarentee that we make here is
// that we won't trigger without having setup a frame.
// STATIC_CONTRACT_TRIGGER
STATIC_CONTRACT_GC_NOTRIGGER;
// side effect the compiler can't remove
if (FC_NO_TAILCALL != 1)
return (LPVOID)(SIZE_T)(FC_NO_TAILCALL + 1);
FC_CAN_TRIGGER_GC();
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
FC_GC_POLL_NOT_NEEDED();
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(Frame::FRAME_ATTR_CAPTURE_DEPTH_2);
// Now, we can construct & throw.
// In V1, throwing an ExecutionEngineException actually never really threw anything... its was the same as a
// fatal error in the runtime, and we will most probably would have ripped the process down. Starting in
// Whidbey, this behavior has changed a lot. Its not really legal to try to throw an
// ExecutionEngineExcpetion with this function.
_ASSERTE((reKind != kExecutionEngineException) ||
!"Don't throw kExecutionEngineException from here. Go to EEPolicy directly, or throw something better.");
if (resID == 0)
{
// If we have an string to add use NonLocalized otherwise just throw the exception.
if (arg1)
COMPlusThrowNonLocalized(reKind, arg1); //COMPlusThrow(reKind,arg1);
else
COMPlusThrow(reKind);
}
else
COMPlusThrow(reKind, resID, arg1, arg2, arg3);
HELPER_METHOD_FRAME_END();
FC_CAN_TRIGGER_GC_END();
_ASSERTE(!"Throw returned");
return NULL;
}
NOINLINE LPVOID __FCThrowArgument(LPVOID __me, RuntimeExceptionKind reKind, LPCWSTR argName, LPCWSTR resourceName)
{
STATIC_CONTRACT_THROWS;
// This isn't strictly true... But the guarentee that we make here is
// that we won't trigger without having setup a frame.
// STATIC_CONTRACT_TRIGGER
STATIC_CONTRACT_GC_NOTRIGGER;
// side effect the compiler can't remove
if (FC_NO_TAILCALL != 1)
return (LPVOID)(SIZE_T)(FC_NO_TAILCALL + 1);
FC_CAN_TRIGGER_GC();
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
FC_GC_POLL_NOT_NEEDED(); // throws always open up for GC
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_NOPOLL(Frame::FRAME_ATTR_CAPTURE_DEPTH_2);
switch (reKind) {
case kArgumentNullException:
if (resourceName) {
COMPlusThrowArgumentNull(argName, resourceName);
} else {
COMPlusThrowArgumentNull(argName);
}
break;
case kArgumentOutOfRangeException:
COMPlusThrowArgumentOutOfRange(argName, resourceName);
break;
case kArgumentException:
COMPlusThrowArgumentException(argName, resourceName);
break;
default:
// If you see this assert, add a case for your exception kind above.
_ASSERTE(argName == NULL);
COMPlusThrow(reKind, resourceName);
}
HELPER_METHOD_FRAME_END();
FC_CAN_TRIGGER_GC_END();
_ASSERTE(!"Throw returned");
return NULL;
}
/**************************************************************************************/
/* erect a frame in the FCALL and then poll the GC, objToProtect will be protected
during the poll and the updated object returned. */
NOINLINE Object* FC_GCPoll(void* __me, Object* objToProtect)
{
CONTRACTL {
THROWS;
// This isn't strictly true... But the guarentee that we make here is
// that we won't trigger without having setup a frame.
UNCHECKED(GC_NOTRIGGER);
} CONTRACTL_END;
FC_CAN_TRIGGER_GC();
INCONTRACT(FCallCheck __fCallCheck(__FILE__, __LINE__));
Thread *thread = GetThread();
if (thread->CatchAtSafePointOpportunistic()) // Does someone want this thread stopped?
{
HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(Frame::FRAME_ATTR_CAPTURE_DEPTH_2, objToProtect);
#ifdef _DEBUG
BOOL GCOnTransition = FALSE;
if (g_pConfig->FastGCStressLevel()) {
GCOnTransition = GC_ON_TRANSITIONS (FALSE);
}
#endif
CommonTripThread();
#ifdef _DEBUG
if (g_pConfig->FastGCStressLevel()) {
GC_ON_TRANSITIONS (GCOnTransition);
}
#endif
HELPER_METHOD_FRAME_END();
}
FC_CAN_TRIGGER_GC_END();
return objToProtect;
}
#ifdef ENABLE_CONTRACTS
/**************************************************************************************/
#if defined(TARGET_X86) && defined(ENABLE_PERF_COUNTERS)
static __int64 getCycleCount() {
LIMITED_METHOD_CONTRACT;
return GET_CYCLE_COUNT();
}
#else
static __int64 getCycleCount() { LIMITED_METHOD_CONTRACT; return(0); }
#endif
/**************************************************************************************/
// No contract here: The contract destructor restores the thread contract state to what it was
// soon after constructing the contract. This would have the effect of reverting the contract
// state change made by the call to BeginForbidGC.
DEBUG_NOINLINE ForbidGC::ForbidGC(const char *szFile, int lineNum)
{
SCAN_SCOPE_BEGIN;
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_MODE_COOPERATIVE;
m_pThread = GetThread();
m_pThread->BeginForbidGC(szFile, lineNum);
}
/**************************************************************************************/
// No contract here: The contract destructor restores the thread contract state to what it was
// soon after constructing the contract. This would have the effect of reverting the contract
// state change made by the call to BeginForbidGC.
DEBUG_NOINLINE ForbidGC::~ForbidGC()
{
SCAN_SCOPE_END;
// IF EH happens, this is still called, in which case
// we should not bother
if (m_pThread->RawGCNoTrigger())
m_pThread->EndNoTriggerGC();
}
/**************************************************************************************/
DEBUG_NOINLINE FCallCheck::FCallCheck(const char *szFile, int lineNum) : ForbidGC(szFile, lineNum)
{
SCAN_SCOPE_BEGIN;
STATIC_CONTRACT_GC_NOTRIGGER;
STATIC_CONTRACT_MODE_COOPERATIVE;
#ifdef _DEBUG
unbreakableLockCount = m_pThread->GetUnbreakableLockCount();
#endif
didGCPoll = false;
notNeeded = false;
startTicks = getCycleCount();
}
/**************************************************************************************/
DEBUG_NOINLINE FCallCheck::~FCallCheck()
{
SCAN_SCOPE_END;
// Confirm that we don't starve the GC or thread-abort.
// Basically every control flow path through an FCALL must
// to a poll. If you hit the assert below, you can fix it by
//
// If you erect a HELPER_METHOD_FRAME, you can
//
// Call HELPER_METHOD_POLL()
// or use HELPER_METHOD_FRAME_END_POLL
//
// If you don't have a helper frame you can used
//
// FC_GC_POLL_AND_RETURN_OBJREF or
// FC_GC_POLL or
// FC_GC_POLL_RET
//
// Note that these must be at GC safe points. In particular
// all object references that are NOT protected will be trashed.
// There is a special poll called FC_GC_POLL_NOT_NEEDED
// which says the code path is short enough that a GC poll is not need
// you should not use this in most cases.
_ASSERTE(unbreakableLockCount == m_pThread->GetUnbreakableLockCount() ||
(!m_pThread->HasUnbreakableLock() && !m_pThread->HasThreadStateNC(Thread::TSNC_OwnsSpinLock)));
if (notNeeded) {
/*<TODO> TODO, we want to actually measure the time to make certain we are not too far off
unsigned delta = unsigned(getCycleCount() - startTicks);
</TODO>*/
}
else if (!didGCPoll) {
// <TODO>TODO turn this on!!! _ASSERTE(!"FCALL without a GC poll in it somewhere!");</TODO>
}
}
#if defined(TARGET_AMD64)
FCallTransitionState::FCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
m_pThread = GetThread();
m_pPreviousHelperMethodFrameCallerList = m_pThread->m_pHelperMethodFrameCallerList;
m_pThread->m_pHelperMethodFrameCallerList = NULL;
}
FCallTransitionState::~FCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
m_pThread->m_pHelperMethodFrameCallerList = m_pPreviousHelperMethodFrameCallerList;
}
PermitHelperMethodFrameState::PermitHelperMethodFrameState ()
{
WRAPPER_NO_CONTRACT;
m_pThread = GetThread();
CONSISTENCY_CHECK_MSG((HelperMethodFrameCallerList*)-1 != m_pThread->m_pHelperMethodFrameCallerList,
"fcall entry point is missing a FCALL_TRANSITION_BEGIN or a FCIMPL\n");
m_ListEntry.pCaller = m_pThread->m_pHelperMethodFrameCallerList;
m_pThread->m_pHelperMethodFrameCallerList = &m_ListEntry;
}
PermitHelperMethodFrameState::~PermitHelperMethodFrameState ()
{
WRAPPER_NO_CONTRACT;
m_pThread->m_pHelperMethodFrameCallerList = m_ListEntry.pCaller;
}
VOID PermitHelperMethodFrameState::CheckHelperMethodFramePermitted ()
{
CONTRACTL {
NOTHROW;
GC_NOTRIGGER;
DEBUG_ONLY;
} CONTRACTL_END;
//
// Get current context and unwind to caller
//
CONTEXT ctx;
ClrCaptureContext(&ctx);
Thread::VirtualUnwindCallFrame(&ctx);
//
// Make sure each unmanaged frame used PERMIT_HELPER_METHOD_FRAME_BEGIN.
// If we hit NULL before we reach managed code, then the caller of the
// fcall was not managed.
//
Thread *pThread = GetThread();
HelperMethodFrameCallerList *pList = pThread->m_pHelperMethodFrameCallerList;
PCODE CurrentIP;
TADDR CurrentSP;
do
{
CurrentSP = GetSP(&ctx);
CurrentIP = GetIP(&ctx);
Thread::VirtualUnwindCallFrame(&ctx);
TADDR CallerSP = GetSP(&ctx);
unsigned nAssociatedListEntries = 0;
while ( (SIZE_T)pList >= (SIZE_T)CurrentSP
&& (SIZE_T)pList < (SIZE_T)CallerSP)
{
nAssociatedListEntries++;
pList = pList->pCaller;
}
if (!nAssociatedListEntries)
{
char szFunction[cchMaxAssertStackLevelStringLen];
GetStringFromAddr((DWORD_PTR)CurrentIP, szFunction);
CONSISTENCY_CHECK_MSGF(false, ("Unmanaged caller %s at sp %p/ip %p is missing a "
"PERMIT_HELPER_METHOD_FRAME_BEGIN, or this function "
"is calling an fcall entry point that is missing a "
"FCALL_TRANSITION_BEGIN or a FCIMPL\n", szFunction, CurrentSP, CurrentIP));
}
}
while (pList && !ExecutionManager::IsManagedCode(GetIP(&ctx)));
//
// We should have exhausted the list. If not, the list was not reset at
// the transition from managed code.
//
if (pList)
{
char szFunction[cchMaxAssertStackLevelStringLen];
GetStringFromAddr((DWORD_PTR)CurrentIP, szFunction);
CONSISTENCY_CHECK_MSGF(false, ("fcall entry point %s at sp %p/ip %p is missing a "
"FCALL_TRANSITION_BEGIN or a FCIMPL\n", szFunction, CurrentSP, CurrentIP));
}
}
CompletedFCallTransitionState::CompletedFCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
Thread *pThread = GetThread();
m_pLastHelperMethodFrameCallerList = pThread->m_pHelperMethodFrameCallerList;
pThread->m_pHelperMethodFrameCallerList = (HelperMethodFrameCallerList*)-1;
}
CompletedFCallTransitionState::~CompletedFCallTransitionState ()
{
WRAPPER_NO_CONTRACT;
Thread *pThread = GetThread();
pThread->m_pHelperMethodFrameCallerList = m_pLastHelperMethodFrameCallerList;
}
#endif // TARGET_AMD64
#endif // ENABLE_CONTRACTS
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1050/Generated1050.il | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated1050 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public G3_C1522`1<T0>
extends class G2_C541`2<!T0,!T0>
implements class IBase2`2<!T0,!T0>
{
.method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining {
ldstr "G3_C1522::Method7.16609<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4435() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4435.16610()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4436() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4436.16611()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4437<M0>() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4437.16612<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4438<M0>() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4438.16613<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void class G2_C541`2<!T0,!T0>::.ctor()
ret
}
}
.class public G2_C541`2<T0, T1>
extends class G1_C10`2<!T0,class BaseClass0>
implements class IBase2`2<!T0,!T0>, class IBase1`1<class BaseClass0>
{
.method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining {
ldstr "G2_C541::Method7.9968<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string Method4() cil managed noinlining {
ldstr "G2_C541::Method4.9969()"
ret
}
.method public hidebysig newslot virtual instance string Method5() cil managed noinlining {
ldstr "G2_C541::Method5.9970()"
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining {
.override method instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ret
}
.method public hidebysig virtual instance string Method6<M0>() cil managed noinlining {
ldstr "G2_C541::Method6.9972<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining {
.override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>()
ldstr "G2_C541::Method6.MI.9973<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod2448() cil managed noinlining {
ldstr "G2_C541::ClassMethod2448.9974()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod2449<M0>() cil managed noinlining {
ldstr "G2_C541::ClassMethod2449.9975<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod2450<M0>() cil managed noinlining {
ldstr "G2_C541::ClassMethod2450.9976<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'G1_C10<T0,class BaseClass0>.ClassMethod1342'<M0>() cil managed noinlining {
.override method instance string class G1_C10`2<!T0,class BaseClass0>::ClassMethod1342<[1]>()
ldstr "G2_C541::ClassMethod1342.MI.9977<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void class G1_C10`2<!T0,class BaseClass0>::.ctor()
ret
}
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public G1_C10`2<T0, T1>
implements class IBase2`2<class BaseClass1,class BaseClass1>, class IBase1`1<!T0>
{
.method public hidebysig virtual instance string Method7<M0>() cil managed noinlining {
ldstr "G1_C10::Method7.4844<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string Method4() cil managed noinlining {
ldstr "G1_C10::Method4.4845()"
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<T0>.Method4'() cil managed noinlining {
.override method instance string class IBase1`1<!T0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ret
}
.method public hidebysig newslot virtual instance string Method5() cil managed noinlining {
ldstr "G1_C10::Method5.4847()"
ret
}
.method public hidebysig virtual instance string Method6<M0>() cil managed noinlining {
ldstr "G1_C10::Method6.4848<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<T0>.Method6'<M0>() cil managed noinlining {
.override method instance string class IBase1`1<!T0>::Method6<[1]>()
ldstr "G1_C10::Method6.MI.4849<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1340() cil managed noinlining {
ldstr "G1_C10::ClassMethod1340.4850()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1341() cil managed noinlining {
ldstr "G1_C10::ClassMethod1341.4851()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1342<M0>() cil managed noinlining {
ldstr "G1_C10::ClassMethod1342.4852<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1343<M0>() cil managed noinlining {
ldstr "G1_C10::ClassMethod1343.4853<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class interface public abstract IBase1`1<+T0>
{
.method public hidebysig newslot abstract virtual instance string Method4() cil managed { }
.method public hidebysig newslot abstract virtual instance string Method5() cil managed { }
.method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated1050 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G3_C1522.T<T0,(class G3_C1522`1<!!T0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 20
.locals init (string[] actualResults)
ldc.i4.s 15
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G3_C1522.T<T0,(class G3_C1522`1<!!T0>)W>(!!W 'inst', string exp)"
ldc.i4.s 15
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4435()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4436()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4437<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4438<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 11
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 12
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 13
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 14
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G3_C1522.A<(class G3_C1522`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 20
.locals init (string[] actualResults)
ldc.i4.s 15
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G3_C1522.A<(class G3_C1522`1<class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 15
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4435()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4436()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4437<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4438<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 11
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 12
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 13
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 14
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G3_C1522.B<(class G3_C1522`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 20
.locals init (string[] actualResults)
ldc.i4.s 15
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G3_C1522.B<(class G3_C1522`1<class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 15
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4435()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4436()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4437<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4438<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 11
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 12
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 13
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 14
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.T.T<T0,T1,(class G2_C541`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.T.T<T0,T1,(class G2_C541`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.A.T<T1,(class G2_C541`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.A.T<T1,(class G2_C541`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.A.A<(class G2_C541`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.A.A<(class G2_C541`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.A.B<(class G2_C541`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.A.B<(class G2_C541`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.B.T<T1,(class G2_C541`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.B.T<T1,(class G2_C541`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.B.A<(class G2_C541`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.B.A<(class G2_C541`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.B.B<(class G2_C541`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.B.B<(class G2_C541`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.T.T<T0,T1,(class G1_C10`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.T.T<T0,T1,(class G1_C10`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.A.T<T1,(class G1_C10`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.A.T<T1,(class G1_C10`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.A.A<(class G1_C10`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.A.A<(class G1_C10`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.A.B<(class G1_C10`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.A.B<(class G1_C10`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.B.T<T1,(class G1_C10`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.B.T<T1,(class G1_C10`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.B.A<(class G1_C10`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.B.A<(class G1_C10`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.B.B<(class G1_C10`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.B.B<(class G1_C10`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 8
.locals init (string[] actualResults)
ldc.i4.s 3
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)"
ldc.i4.s 3
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<!!T0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<!!T0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<!!T0>::Method6<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 8
.locals init (string[] actualResults)
ldc.i4.s 3
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 3
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 8
.locals init (string[] actualResults)
ldc.i4.s 3
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 3
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
newobj instance void class G3_C1522`1<class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4438<object>()
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4437<object>()
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4436()
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4435()
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G3_C1522`1<class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4438<object>()
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4437<object>()
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4436()
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4435()
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
newobj instance void class G3_C1522`1<class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass0,class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
newobj instance void class G3_C1522`1<class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass1,class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.B<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.A<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass1,class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.A<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.B<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
newobj instance void class G3_C1522`1<class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4438<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4437<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4436()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4435()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G3_C1522`1<class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4438<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4437<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4436()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4435()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated1050::MethodCallingTest()
call void Generated1050::ConstrainedCallsTest()
call void Generated1050::StructConstrainedInterfaceCallsTest()
call void Generated1050::CalliTest()
ldc.i4 100
ret
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 }
.assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) }
//TYPES IN FORWARDER ASSEMBLIES:
//TEST ASSEMBLY:
.assembly Generated1050 { .hash algorithm 0x00008004 }
.assembly extern xunit.core {}
.class public BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class public BaseClass1
extends BaseClass0
{
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void BaseClass0::.ctor()
ret
}
}
.class public G3_C1522`1<T0>
extends class G2_C541`2<!T0,!T0>
implements class IBase2`2<!T0,!T0>
{
.method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining {
ldstr "G3_C1522::Method7.16609<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4435() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4435.16610()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4436() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4436.16611()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4437<M0>() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4437.16612<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod4438<M0>() cil managed noinlining {
ldstr "G3_C1522::ClassMethod4438.16613<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void class G2_C541`2<!T0,!T0>::.ctor()
ret
}
}
.class public G2_C541`2<T0, T1>
extends class G1_C10`2<!T0,class BaseClass0>
implements class IBase2`2<!T0,!T0>, class IBase1`1<class BaseClass0>
{
.method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining {
ldstr "G2_C541::Method7.9968<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string Method4() cil managed noinlining {
ldstr "G2_C541::Method4.9969()"
ret
}
.method public hidebysig newslot virtual instance string Method5() cil managed noinlining {
ldstr "G2_C541::Method5.9970()"
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining {
.override method instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ret
}
.method public hidebysig virtual instance string Method6<M0>() cil managed noinlining {
ldstr "G2_C541::Method6.9972<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining {
.override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>()
ldstr "G2_C541::Method6.MI.9973<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod2448() cil managed noinlining {
ldstr "G2_C541::ClassMethod2448.9974()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod2449<M0>() cil managed noinlining {
ldstr "G2_C541::ClassMethod2449.9975<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod2450<M0>() cil managed noinlining {
ldstr "G2_C541::ClassMethod2450.9976<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'G1_C10<T0,class BaseClass0>.ClassMethod1342'<M0>() cil managed noinlining {
.override method instance string class G1_C10`2<!T0,class BaseClass0>::ClassMethod1342<[1]>()
ldstr "G2_C541::ClassMethod1342.MI.9977<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void class G1_C10`2<!T0,class BaseClass0>::.ctor()
ret
}
}
.class interface public abstract IBase2`2<+T0, -T1>
{
.method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { }
}
.class public G1_C10`2<T0, T1>
implements class IBase2`2<class BaseClass1,class BaseClass1>, class IBase1`1<!T0>
{
.method public hidebysig virtual instance string Method7<M0>() cil managed noinlining {
ldstr "G1_C10::Method7.4844<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string Method4() cil managed noinlining {
ldstr "G1_C10::Method4.4845()"
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<T0>.Method4'() cil managed noinlining {
.override method instance string class IBase1`1<!T0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ret
}
.method public hidebysig newslot virtual instance string Method5() cil managed noinlining {
ldstr "G1_C10::Method5.4847()"
ret
}
.method public hidebysig virtual instance string Method6<M0>() cil managed noinlining {
ldstr "G1_C10::Method6.4848<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string 'IBase1<T0>.Method6'<M0>() cil managed noinlining {
.override method instance string class IBase1`1<!T0>::Method6<[1]>()
ldstr "G1_C10::Method6.MI.4849<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1340() cil managed noinlining {
ldstr "G1_C10::ClassMethod1340.4850()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1341() cil managed noinlining {
ldstr "G1_C10::ClassMethod1341.4851()"
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1342<M0>() cil managed noinlining {
ldstr "G1_C10::ClassMethod1342.4852<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig newslot virtual instance string ClassMethod1343<M0>() cil managed noinlining {
ldstr "G1_C10::ClassMethod1343.4853<"
ldtoken !!M0
call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
call string [mscorlib]System.String::Concat(object,object)
ldstr ">()"
call string [mscorlib]System.String::Concat(object,object)
ret
}
.method public hidebysig specialname rtspecialname instance void .ctor() cil managed {
ldarg.0
call instance void [mscorlib]System.Object::.ctor()
ret
}
}
.class interface public abstract IBase1`1<+T0>
{
.method public hidebysig newslot abstract virtual instance string Method4() cil managed { }
.method public hidebysig newslot abstract virtual instance string Method5() cil managed { }
.method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { }
}
.class public auto ansi beforefieldinit Generated1050 {
.method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed {
.maxstack 5
.locals init (string[] actualResults)
ldc.i4.s 0
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)"
ldc.i4.s 0
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G3_C1522.T<T0,(class G3_C1522`1<!!T0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 20
.locals init (string[] actualResults)
ldc.i4.s 15
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G3_C1522.T<T0,(class G3_C1522`1<!!T0>)W>(!!W 'inst', string exp)"
ldc.i4.s 15
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4435()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4436()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4437<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::ClassMethod4438<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 11
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 12
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 13
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 14
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<!!T0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G3_C1522.A<(class G3_C1522`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 20
.locals init (string[] actualResults)
ldc.i4.s 15
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G3_C1522.A<(class G3_C1522`1<class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 15
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4435()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4436()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4437<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4438<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 11
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 12
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 13
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 14
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G3_C1522.B<(class G3_C1522`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 20
.locals init (string[] actualResults)
ldc.i4.s 15
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G3_C1522.B<(class G3_C1522`1<class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 15
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4435()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4436()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4437<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4438<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 11
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 12
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 13
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 14
ldarga.s 0
constrained. !!W
callvirt instance string class G3_C1522`1<class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.T.T<T0,T1,(class G2_C541`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.T.T<T0,T1,(class G2_C541`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.A.T<T1,(class G2_C541`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.A.T<T1,(class G2_C541`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.A.A<(class G2_C541`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.A.A<(class G2_C541`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.A.B<(class G2_C541`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.A.B<(class G2_C541`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.B.T<T1,(class G2_C541`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.B.T<T1,(class G2_C541`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.B.A<(class G2_C541`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.B.A<(class G2_C541`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G2_C541.B.B<(class G2_C541`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 16
.locals init (string[] actualResults)
ldc.i4.s 11
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G2_C541.B.B<(class G2_C541`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 11
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 8
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 9
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 10
ldarga.s 0
constrained. !!W
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 6
.locals init (string[] actualResults)
ldc.i4.s 1
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 1
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.T.T<T0,T1,(class G1_C10`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.T.T<T0,T1,(class G1_C10`2<!!T0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<!!T0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.A.T<T1,(class G1_C10`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.A.T<T1,(class G1_C10`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.A.A<(class G1_C10`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.A.A<(class G1_C10`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.A.B<(class G1_C10`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.A.B<(class G1_C10`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.B.T<T1,(class G1_C10`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.B.T<T1,(class G1_C10`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,!!T1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.B.A<(class G1_C10`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.B.A<(class G1_C10`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.G1_C10.B.B<(class G1_C10`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 13
.locals init (string[] actualResults)
ldc.i4.s 8
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.G1_C10.B.B<(class G1_C10`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 8
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 3
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 4
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 5
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 6
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
ldc.i4.s 7
ldarga.s 0
constrained. !!W
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method7<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 8
.locals init (string[] actualResults)
ldc.i4.s 3
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)"
ldc.i4.s 3
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<!!T0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<!!T0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<!!T0>::Method6<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed {
.maxstack 8
.locals init (string[] actualResults)
ldc.i4.s 3
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)"
ldc.i4.s 3
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed {
.maxstack 8
.locals init (string[] actualResults)
ldc.i4.s 3
newarr string
stloc.s actualResults
ldarg.1
ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)"
ldc.i4.s 3
ldloc.s actualResults
ldc.i4.s 0
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
stelem.ref
ldloc.s actualResults
ldc.i4.s 1
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
stelem.ref
ldloc.s actualResults
ldc.i4.s 2
ldarga.s 0
constrained. !!W
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
stelem.ref
ldloc.s actualResults
call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[])
ret
}
.method public hidebysig static void MethodCallingTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calling Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
newobj instance void class G3_C1522`1<class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4438<object>()
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4437<object>()
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4436()
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod4435()
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass0>
callvirt instance string class G3_C1522`1<class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G3_C1522`1<class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4438<object>()
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4437<object>()
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4436()
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod4435()
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method7<object>()
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G3_C1522`1<class BaseClass1>
callvirt instance string class G3_C1522`1<class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
callvirt instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method4()
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
callvirt instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldloc.0
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method4()
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method5()
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
dup
callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>()
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
pop
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void ConstrainedCallsTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Constrained Calls Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
newobj instance void class G3_C1522`1<class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass0,class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.T<class BaseClass0,class G3_C1522`1<class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.A<class G3_C1522`1<class BaseClass0>>(!!0,string)
newobj instance void class G3_C1522`1<class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass1,class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.T<class BaseClass1,class G3_C1522`1<class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G3_C1522::ClassMethod4435.16610()#G3_C1522::ClassMethod4436.16611()#G3_C1522::ClassMethod4437.16612<System.Object>()#G3_C1522::ClassMethod4438.16613<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G3_C1522::Method7.16609<System.Object>()#"
call void Generated1050::M.G3_C1522.B<class G3_C1522`1<class BaseClass1>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.A<class G2_C541`2<class BaseClass0,class BaseClass0>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.T<class BaseClass1,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.A.B<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass0,class G2_C541`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.A<class G2_C541`2<class BaseClass0,class BaseClass1>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass1,class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.A<class G2_C541`2<class BaseClass1,class BaseClass0>>(!!0,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G2_C541::Method6.9972<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G2_C541::Method4.9969()#G2_C541::Method5.MI.9971()#G2_C541::Method6.MI.9973<System.Object>()#"
call void Generated1050::M.IBase1.A<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.T.T<class BaseClass1,class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.T<class BaseClass1,class G2_C541`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G2_C541::ClassMethod1342.MI.9977<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G2_C541::ClassMethod2448.9974()#G2_C541::ClassMethod2449.9975<System.Object>()#G2_C541::ClassMethod2450.9976<System.Object>()#G2_C541::Method4.9969()#G2_C541::Method5.9970()#G2_C541::Method6.9972<System.Object>()#G2_C541::Method7.9968<System.Object>()#"
call void Generated1050::M.G2_C541.B.B<class G2_C541`2<class BaseClass1,class BaseClass1>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.A<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass0,class BaseClass0>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.A.B<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass0,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass0,class BaseClass1>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.A<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass0>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass1,class BaseClass0>>(!!0,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::ClassMethod1340.4850()#G1_C10::ClassMethod1341.4851()#G1_C10::ClassMethod1342.4852<System.Object>()#G1_C10::ClassMethod1343.4853<System.Object>()#G1_C10::Method4.4845()#G1_C10::Method5.4847()#G1_C10::Method6.4848<System.Object>()#G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.G1_C10.B.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.B.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!2,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.T<class BaseClass1,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method7.4844<System.Object>()#"
call void Generated1050::M.IBase2.A.B<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.T<class BaseClass0,class G1_C10`2<class BaseClass1,class BaseClass1>>(!!1,string)
ldloc.0
ldstr "G1_C10::Method4.MI.4846()#G1_C10::Method5.4847()#G1_C10::Method6.MI.4849<System.Object>()#"
call void Generated1050::M.IBase1.A<class G1_C10`2<class BaseClass1,class BaseClass1>>(!!0,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed
{
.maxstack 10
ldstr "===================== Struct Constrained Interface Calls Test ====================="
call void [mscorlib]System.Console::WriteLine(string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static void CalliTest() cil managed
{
.maxstack 10
.locals init (object V_0)
ldstr "========================== Method Calli Test =========================="
call void [mscorlib]System.Console::WriteLine(string)
newobj instance void class G3_C1522`1<class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4438<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4437<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4436()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod4435()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass0>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass0> on type class G3_C1522`1<class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G3_C1522`1<class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4438<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4438.16613<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4437<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4437.16612<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4436()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4436.16611()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod4435()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::ClassMethod4435.16610()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method7<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G3_C1522::Method7.16609<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod2450<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod2449<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod2448()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method6<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method5()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::Method4()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1343<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1342<object>()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1341()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G3_C1522`1<class BaseClass1>
ldloc.0
ldvirtftn instance string class G3_C1522`1<class BaseClass1>::ClassMethod1340()
calli default string(class G3_C1522`1<class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G3_C1522`1<class BaseClass1> on type class G3_C1522`1<class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass0,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C541`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G2_C541`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method5.MI.9971()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method6.MI.9973<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2450<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod2450.9976<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2449<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod2449.9975<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod2448()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod2448.9974()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method6<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method6.9972<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method5()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method5.9970()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method4()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method4.9969()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::Method7.9968<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G2_C541::ClassMethod1342.MI.9977<System.Object>()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G2_C541`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G2_C541`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
calli default string(class G2_C541`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G2_C541`2<class BaseClass1,class BaseClass1> on type class G2_C541`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass0>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass0,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass0,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass0,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass0,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass0>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass0>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass0>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass0>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass0>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
newobj instance void class G1_C10`2<class BaseClass1,class BaseClass1>::.ctor()
stloc.0
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1343<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1343.4853<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1342<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1342.4852<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1341()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1341.4851()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::ClassMethod1340()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::ClassMethod1340.4850()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.4848<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.4845()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
castclass class G1_C10`2<class BaseClass1,class BaseClass1>
ldloc.0
ldvirtftn instance string class G1_C10`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class G1_C10`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method7.4844<System.Object>()"
ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method4.MI.4846()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method5.4847()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldloc.0
ldloc.0
ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>()
calli default string(class G1_C10`2<class BaseClass1,class BaseClass1>)
ldstr "G1_C10::Method6.MI.4849<System.Object>()"
ldstr "class IBase1`1<class BaseClass0> on type class G1_C10`2<class BaseClass1,class BaseClass1>"
call void [TestFramework]TestFramework::MethodCallTest(string,string,string)
ldstr "========================================================================\n\n"
call void [mscorlib]System.Console::WriteLine(string)
ret
}
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 10
call void Generated1050::MethodCallingTest()
call void Generated1050::ConstrainedCallsTest()
call void Generated1050::StructConstrainedInterfaceCallsTest()
call void Generated1050::CalliTest()
ldc.i4 100
ret
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Methodical/MDArray/DataTypes/sbyte_cs_r.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="sbyte.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="sbyte.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigXmlDocument.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Configuration.Internal;
using System.IO;
using System.Xml;
namespace System.Configuration
{
// ConfigXmlDocument - the default Xml Document doesn't track line numbers, and line
// numbers are necessary to display source on config errors.
// These classes wrap corresponding System.Xml types and also carry
// the necessary information for reporting filename / line numbers.
// Note: these classes will go away if webdata ever decides to incorporate line numbers
// into the default XML classes. This class could also go away if webdata brings back
// the UserData property to attach any info off of any node.
public sealed class ConfigXmlDocument : XmlDocument, IConfigErrorInfo
{
private XmlTextReader _reader;
private int _lineOffset;
private string _filename;
int IConfigErrorInfo.LineNumber
{
get
{
if (_reader == null)
{
return 0;
}
if (_lineOffset > 0)
{
return _reader.LineNumber + _lineOffset - 1;
}
return _reader.LineNumber;
}
}
public int LineNumber { get { return ((IConfigErrorInfo)this).LineNumber; } }
public string Filename
{
get { return _filename; }
}
string IConfigErrorInfo.Filename
{
get { return _filename; }
}
public override void Load(string filename)
{
_filename = filename;
try
{
_reader = new XmlTextReader(filename);
_reader.XmlResolver = null;
base.Load(_reader);
}
finally
{
if (_reader != null)
{
_reader.Close();
_reader = null;
}
}
}
public void LoadSingleElement(string filename, XmlTextReader sourceReader)
{
_filename = filename;
_lineOffset = sourceReader.LineNumber;
string outerXml = sourceReader.ReadOuterXml();
try
{
_reader = new XmlTextReader(new StringReader(outerXml), sourceReader.NameTable);
base.Load(_reader);
}
finally
{
if (_reader != null)
{
_reader.Close();
_reader = null;
}
}
}
public override XmlAttribute CreateAttribute(string prefix, string localName, string namespaceUri)
{
return new ConfigXmlAttribute(_filename, LineNumber, prefix, localName, namespaceUri, this);
}
public override XmlElement CreateElement(string prefix, string localName, string namespaceUri)
{
return new ConfigXmlElement(_filename, LineNumber, prefix, localName, namespaceUri, this);
}
public override XmlText CreateTextNode(string text)
{
return new ConfigXmlText(_filename, LineNumber, text, this);
}
public override XmlCDataSection CreateCDataSection(string data)
{
return new ConfigXmlCDataSection(_filename, LineNumber, data, this);
}
public override XmlComment CreateComment(string data)
{
return new ConfigXmlComment(_filename, LineNumber, data, this);
}
public override XmlSignificantWhitespace CreateSignificantWhitespace(string data)
{
return new ConfigXmlSignificantWhitespace(_filename, LineNumber, data, this);
}
public override XmlWhitespace CreateWhitespace(string data)
{
return new ConfigXmlWhitespace(_filename, LineNumber, data, this);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Configuration.Internal;
using System.IO;
using System.Xml;
namespace System.Configuration
{
// ConfigXmlDocument - the default Xml Document doesn't track line numbers, and line
// numbers are necessary to display source on config errors.
// These classes wrap corresponding System.Xml types and also carry
// the necessary information for reporting filename / line numbers.
// Note: these classes will go away if webdata ever decides to incorporate line numbers
// into the default XML classes. This class could also go away if webdata brings back
// the UserData property to attach any info off of any node.
public sealed class ConfigXmlDocument : XmlDocument, IConfigErrorInfo
{
private XmlTextReader _reader;
private int _lineOffset;
private string _filename;
int IConfigErrorInfo.LineNumber
{
get
{
if (_reader == null)
{
return 0;
}
if (_lineOffset > 0)
{
return _reader.LineNumber + _lineOffset - 1;
}
return _reader.LineNumber;
}
}
public int LineNumber { get { return ((IConfigErrorInfo)this).LineNumber; } }
public string Filename
{
get { return _filename; }
}
string IConfigErrorInfo.Filename
{
get { return _filename; }
}
public override void Load(string filename)
{
_filename = filename;
try
{
_reader = new XmlTextReader(filename);
_reader.XmlResolver = null;
base.Load(_reader);
}
finally
{
if (_reader != null)
{
_reader.Close();
_reader = null;
}
}
}
public void LoadSingleElement(string filename, XmlTextReader sourceReader)
{
_filename = filename;
_lineOffset = sourceReader.LineNumber;
string outerXml = sourceReader.ReadOuterXml();
try
{
_reader = new XmlTextReader(new StringReader(outerXml), sourceReader.NameTable);
base.Load(_reader);
}
finally
{
if (_reader != null)
{
_reader.Close();
_reader = null;
}
}
}
public override XmlAttribute CreateAttribute(string prefix, string localName, string namespaceUri)
{
return new ConfigXmlAttribute(_filename, LineNumber, prefix, localName, namespaceUri, this);
}
public override XmlElement CreateElement(string prefix, string localName, string namespaceUri)
{
return new ConfigXmlElement(_filename, LineNumber, prefix, localName, namespaceUri, this);
}
public override XmlText CreateTextNode(string text)
{
return new ConfigXmlText(_filename, LineNumber, text, this);
}
public override XmlCDataSection CreateCDataSection(string data)
{
return new ConfigXmlCDataSection(_filename, LineNumber, data, this);
}
public override XmlComment CreateComment(string data)
{
return new ConfigXmlComment(_filename, LineNumber, data, this);
}
public override XmlSignificantWhitespace CreateSignificantWhitespace(string data)
{
return new ConfigXmlSignificantWhitespace(_filename, LineNumber, data, this);
}
public override XmlWhitespace CreateWhitespace(string data)
{
return new ConfigXmlWhitespace(_filename, LineNumber, data, this);
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/baseservices/threading/threadstatic/threadstatic07.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="threadstatic07.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="threadstatic07.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Composition.AttributedModel/src/System/Composition/ImportAttribute.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
namespace System.Composition
{
/// <summary>
/// Specifies that a property, field, or parameter imports a particular export.
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter,
AllowMultiple = false, Inherited = false)]
public class ImportAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="ImportAttribute"/> class, importing the
/// export without a contract name.
/// </summary>
public ImportAttribute() : this(null)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ImportAttribute"/> class, importing the
/// export with the specified contract name.
/// </summary>
/// <param name="contractName">
/// A <see cref="string"/> containing the contract name of the export to import, or
/// <see langword="null"/> or an empty string ("") to use the default contract name.
/// </param>
public ImportAttribute(string contractName)
{
ContractName = contractName;
}
/// <summary>
/// Gets the contract name of the export to import.
/// </summary>
/// <value>
/// A <see cref="string"/> containing the contract name of the export to import. The
/// default value is null.
/// </value>
public string ContractName { get; }
/// <summary>
/// Gets or sets a value indicating whether the property, field or parameter will be left
/// at its default value when an export with the contract name is not present in
/// the container.
/// </summary>
public bool AllowDefault { get; set; }
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
namespace System.Composition
{
/// <summary>
/// Specifies that a property, field, or parameter imports a particular export.
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter,
AllowMultiple = false, Inherited = false)]
public class ImportAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="ImportAttribute"/> class, importing the
/// export without a contract name.
/// </summary>
public ImportAttribute() : this(null)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ImportAttribute"/> class, importing the
/// export with the specified contract name.
/// </summary>
/// <param name="contractName">
/// A <see cref="string"/> containing the contract name of the export to import, or
/// <see langword="null"/> or an empty string ("") to use the default contract name.
/// </param>
public ImportAttribute(string contractName)
{
ContractName = contractName;
}
/// <summary>
/// Gets the contract name of the export to import.
/// </summary>
/// <value>
/// A <see cref="string"/> containing the contract name of the export to import. The
/// default value is null.
/// </value>
public string ContractName { get; }
/// <summary>
/// Gets or sets a value indicating whether the property, field or parameter will be left
/// at its default value when an export with the contract name is not present in
/// the container.
/// </summary>
public bool AllowDefault { get; set; }
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b59477/b59477.il | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'b59477' {}
.assembly extern xunit.core {}
.class ILGEN_0x346ef95 {
.field static float32[] field_0x1
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 9
ldc.i4 255
newarr [mscorlib]System.Single
stsfld float32[] ILGEN_0x346ef95::field_0x1
ldc.i4.2
ldc.i4.7
brfalse Branch_0x2
ldc.i4.0
br Branch_0x3
Branch_0x2:
ldc.i4.5
Branch_0x3:
blt.un Branch_0x0
ldsfld float32[] ILGEN_0x346ef95::field_0x1
ldlen
ldc.i4 55
bge Branch_0x4
br Branch_0x5
Branch_0x4:
Branch_0x5:
br Branch_0x1
Branch_0x0:
ldc.i4.0
conv.ovf.u2.un
pop
Branch_0x1:
ldc.i4 100
ret
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly 'b59477' {}
.assembly extern xunit.core {}
.class ILGEN_0x346ef95 {
.field static float32[] field_0x1
.method static int32 Main() {
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 9
ldc.i4 255
newarr [mscorlib]System.Single
stsfld float32[] ILGEN_0x346ef95::field_0x1
ldc.i4.2
ldc.i4.7
brfalse Branch_0x2
ldc.i4.0
br Branch_0x3
Branch_0x2:
ldc.i4.5
Branch_0x3:
blt.un Branch_0x0
ldsfld float32[] ILGEN_0x346ef95::field_0x1
ldlen
ldc.i4 55
bge Branch_0x4
br Branch_0x5
Branch_0x4:
Branch_0x5:
br Branch_0x1
Branch_0x0:
ldc.i4.0
conv.ovf.u2.un
pop
Branch_0x1:
ldc.i4 100
ret
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1012/Generated1012.ilproj | <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated1012.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated1012.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Private.Xml.Linq/tests/TreeManipulation/AddFirstInvalidIntoXDocument.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using CoreXml.Test.XLinq;
using Microsoft.Test.ModuleCore;
using System;
using System.Xml.Linq;
namespace XLinqTests
{
public class AddFirstInvalidIntoXDocument : XLinqTestCase
{
private EventsHelper _eHelper;
private bool _runWithEvents;
public override void AddChildren()
{
AddChild(new TestVariation(InvalidAddIntoXDocument1) { Attribute = new VariationAttribute("XDocument invalid add - double DTD") { Priority = 1 } });
AddChild(new TestVariation(InvalidAddIntoXDocument3) { Attribute = new VariationAttribute("XDocument invalid add - multiple root elements") { Priority = 1 } });
AddChild(new TestVariation(InvalidAddIntoXDocument5) { Attribute = new VariationAttribute("XDocument invalid add - CData, attribute, text (no whitespace)") { Priority = 1 } });
}
public void InvalidAddIntoXDocument1()
{
_runWithEvents = (bool)Params[0];
try
{
var doc = new XDocument(new XDocumentType("root", null, null, null), new XElement("A"));
var o = new XDocumentType("D", null, null, null);
if (_runWithEvents)
{
_eHelper = new EventsHelper(doc);
}
doc.AddFirst(o);
if (_runWithEvents)
{
_eHelper.Verify(XObjectChange.Add, o);
}
TestLog.Compare(false, "Exception expected");
}
catch (InvalidOperationException)
{
}
}
public void InvalidAddIntoXDocument3()
{
_runWithEvents = (bool)Params[0];
try
{
var doc = new XDocument(new XProcessingInstruction("pi", "halala"), new XElement("A"));
var o = new XElement("C");
if (_runWithEvents)
{
_eHelper = new EventsHelper(doc);
}
doc.AddFirst(o);
if (_runWithEvents)
{
_eHelper.Verify(XObjectChange.Add, o);
}
TestLog.Compare(false, "Exception expected");
}
catch (InvalidOperationException)
{
}
}
public void InvalidAddIntoXDocument5()
{
_runWithEvents = (bool)Params[0];
foreach (object o in new object[] { new XCData("CD"), new XAttribute("a1", "avalue"), "text1", new XText("text2"), new XDocument() })
{
try
{
var doc = new XDocument(new XElement("A"));
if (_runWithEvents)
{
_eHelper = new EventsHelper(doc);
}
doc.AddFirst(o);
if (_runWithEvents)
{
_eHelper.Verify(XObjectChange.Add, o);
}
TestLog.Compare(false, "Exception expected");
}
catch (ArgumentException)
{
}
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using CoreXml.Test.XLinq;
using Microsoft.Test.ModuleCore;
using System;
using System.Xml.Linq;
namespace XLinqTests
{
public class AddFirstInvalidIntoXDocument : XLinqTestCase
{
private EventsHelper _eHelper;
private bool _runWithEvents;
public override void AddChildren()
{
AddChild(new TestVariation(InvalidAddIntoXDocument1) { Attribute = new VariationAttribute("XDocument invalid add - double DTD") { Priority = 1 } });
AddChild(new TestVariation(InvalidAddIntoXDocument3) { Attribute = new VariationAttribute("XDocument invalid add - multiple root elements") { Priority = 1 } });
AddChild(new TestVariation(InvalidAddIntoXDocument5) { Attribute = new VariationAttribute("XDocument invalid add - CData, attribute, text (no whitespace)") { Priority = 1 } });
}
public void InvalidAddIntoXDocument1()
{
_runWithEvents = (bool)Params[0];
try
{
var doc = new XDocument(new XDocumentType("root", null, null, null), new XElement("A"));
var o = new XDocumentType("D", null, null, null);
if (_runWithEvents)
{
_eHelper = new EventsHelper(doc);
}
doc.AddFirst(o);
if (_runWithEvents)
{
_eHelper.Verify(XObjectChange.Add, o);
}
TestLog.Compare(false, "Exception expected");
}
catch (InvalidOperationException)
{
}
}
public void InvalidAddIntoXDocument3()
{
_runWithEvents = (bool)Params[0];
try
{
var doc = new XDocument(new XProcessingInstruction("pi", "halala"), new XElement("A"));
var o = new XElement("C");
if (_runWithEvents)
{
_eHelper = new EventsHelper(doc);
}
doc.AddFirst(o);
if (_runWithEvents)
{
_eHelper.Verify(XObjectChange.Add, o);
}
TestLog.Compare(false, "Exception expected");
}
catch (InvalidOperationException)
{
}
}
public void InvalidAddIntoXDocument5()
{
_runWithEvents = (bool)Params[0];
foreach (object o in new object[] { new XCData("CD"), new XAttribute("a1", "avalue"), "text1", new XText("text2"), new XDocument() })
{
try
{
var doc = new XDocument(new XElement("A"));
if (_runWithEvents)
{
_eHelper = new EventsHelper(doc);
}
doc.AddFirst(o);
if (_runWithEvents)
{
_eHelper.Verify(XObjectChange.Add, o);
}
TestLog.Compare(false, "Exception expected");
}
catch (ArgumentException)
{
}
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Private.Xml/tests/XmlDocument/XmlNodeTests/LocalNameTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Xml.Tests
{
public class LocalNameTests
{
[Fact]
public static void AllNodesForEmptyString()
{
var xml = "<root>\r\n text node one\r\n <elem1 child1=\"\" child2=\"duu\" child3=\"e1;e2;\" child4=\"a1\" child5=\"goody\">\r\n text node two e1; text node three\r\n </elem1><!-- comment3 --><?PI3 processing instruction?>e2;<foo /><![CDATA[ <opentag> without an </endtag> and & <! are all ok here ]]><elem2 att1=\"id1\" att2=\"up\" att3=\"attribute3\"><a /></elem2><elem2> \r\n elem2-text1\r\n <a> \r\n this-is-a \r\n </a> \r\n\r\n elem2-text2\r\n e3;e4;<!-- elem2-comment1-->\r\n elem2-text3\r\n\r\n <b> \r\n this-is-b\r\n </b>\r\n\r\n elem2-text4\r\n <?elem2_PI elem2-PI?>\r\n elem2-text5\r\n\r\n </elem2></root>";
var xmlDocument = new XmlDocument();
xmlDocument.LoadXml(xml);
foreach (XmlNode node in xmlDocument.DocumentElement.ChildNodes)
Assert.Equal(node.Name, node.LocalName);
var documentFragment = xmlDocument.CreateDocumentFragment();
Assert.Equal(documentFragment.Name, documentFragment.LocalName);
}
[Fact]
public static void ElementWithPrefix()
{
var xmlDocument = new XmlDocument();
var elem = xmlDocument.CreateElement("elem");
elem.Prefix = "foo";
Assert.Equal("elem", elem.LocalName);
}
[Fact]
public static void ElementWithNamespaces()
{
var xmlDocument = new XmlDocument();
xmlDocument.LoadXml("<Root xmlns:aa=\"aa\" xmlns:bb=\"bb\"><aa:elem1><bb:elem2 /></aa:elem1></Root>");
Assert.Equal("elem1", xmlDocument.DocumentElement.FirstChild.LocalName);
Assert.Equal("elem2", xmlDocument.DocumentElement.FirstChild.FirstChild.LocalName);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Xml.Tests
{
public class LocalNameTests
{
[Fact]
public static void AllNodesForEmptyString()
{
var xml = "<root>\r\n text node one\r\n <elem1 child1=\"\" child2=\"duu\" child3=\"e1;e2;\" child4=\"a1\" child5=\"goody\">\r\n text node two e1; text node three\r\n </elem1><!-- comment3 --><?PI3 processing instruction?>e2;<foo /><![CDATA[ <opentag> without an </endtag> and & <! are all ok here ]]><elem2 att1=\"id1\" att2=\"up\" att3=\"attribute3\"><a /></elem2><elem2> \r\n elem2-text1\r\n <a> \r\n this-is-a \r\n </a> \r\n\r\n elem2-text2\r\n e3;e4;<!-- elem2-comment1-->\r\n elem2-text3\r\n\r\n <b> \r\n this-is-b\r\n </b>\r\n\r\n elem2-text4\r\n <?elem2_PI elem2-PI?>\r\n elem2-text5\r\n\r\n </elem2></root>";
var xmlDocument = new XmlDocument();
xmlDocument.LoadXml(xml);
foreach (XmlNode node in xmlDocument.DocumentElement.ChildNodes)
Assert.Equal(node.Name, node.LocalName);
var documentFragment = xmlDocument.CreateDocumentFragment();
Assert.Equal(documentFragment.Name, documentFragment.LocalName);
}
[Fact]
public static void ElementWithPrefix()
{
var xmlDocument = new XmlDocument();
var elem = xmlDocument.CreateElement("elem");
elem.Prefix = "foo";
Assert.Equal("elem", elem.LocalName);
}
[Fact]
public static void ElementWithNamespaces()
{
var xmlDocument = new XmlDocument();
xmlDocument.LoadXml("<Root xmlns:aa=\"aa\" xmlns:bb=\"bb\"><aa:elem1><bb:elem2 /></aa:elem1></Root>");
Assert.Equal("elem1", xmlDocument.DocumentElement.FirstChild.LocalName);
Assert.Equal("elem2", xmlDocument.DocumentElement.FirstChild.FirstChild.LocalName);
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADStoreCtx_Query.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Globalization;
using System.Security.Principal;
using System.DirectoryServices;
using System.Collections.Specialized;
namespace System.DirectoryServices.AccountManagement
{
internal partial class ADStoreCtx : StoreCtx
{
//
// Query operations
//
// Returns true if this store has native support for search (and thus a wormhole).
// Returns true for everything but SAM (both reg-SAM and MSAM).
internal override bool SupportsSearchNatively { get { return true; } }
// Returns a type indicating the type of object that would be returned as the wormhole for the specified
// PrincipalSearcher.
internal override Type SearcherNativeType() { return typeof(DirectorySearcher); }
private void BuildExtensionPropertyList(Hashtable propertyList, Type p)
{
System.Reflection.PropertyInfo[] propertyInfoList = p.GetProperties();
foreach (System.Reflection.PropertyInfo pInfo in propertyInfoList)
{
DirectoryPropertyAttribute[] pAttributeList = (DirectoryPropertyAttribute[])(pInfo.GetCustomAttributes(typeof(DirectoryPropertyAttribute), true));
foreach (DirectoryPropertyAttribute pAttribute in pAttributeList)
{
if (!propertyList.Contains(pAttribute.SchemaAttributeName))
propertyList.Add(pAttribute.SchemaAttributeName, pAttribute.SchemaAttributeName);
}
}
}
protected void BuildPropertySet(Type p, StringCollection propertySet)
{
if (TypeToLdapPropListMap[this.MappingTableIndex].ContainsKey(p))
{
Debug.Assert(TypeToLdapPropListMap[this.MappingTableIndex].ContainsKey(p));
string[] props = new string[TypeToLdapPropListMap[this.MappingTableIndex][p].Count];
TypeToLdapPropListMap[this.MappingTableIndex][p].CopyTo(props, 0);
propertySet.AddRange(props);
}
else
{
Type baseType;
if (p.IsSubclassOf(typeof(UserPrincipal)))
{
baseType = typeof(UserPrincipal);
}
else if (p.IsSubclassOf(typeof(GroupPrincipal)))
{
baseType = typeof(GroupPrincipal);
}
else if (p.IsSubclassOf(typeof(ComputerPrincipal)))
{
baseType = typeof(ComputerPrincipal);
}
else if (p.IsSubclassOf(typeof(AuthenticablePrincipal)))
{
baseType = typeof(AuthenticablePrincipal);
}
else
{
baseType = typeof(Principal);
}
Hashtable propertyList = new Hashtable();
// Load the properties for the base types...
foreach (string s in TypeToLdapPropListMap[this.MappingTableIndex][baseType])
{
if (!propertyList.Contains(s))
{
propertyList.Add(s, s);
}
}
// Reflect the properties off the extension class and add them to the list.
BuildExtensionPropertyList(propertyList, p);
foreach (string property in propertyList.Values)
{
propertySet.Add(property);
}
// Cache the list for this property type so we don't need to reflect again in the future.
this.AddPropertySetToTypePropListMap(p, propertySet);
}
}
// Pushes the query represented by the QBE filter into the PrincipalSearcher's underlying native
// searcher object (creating a fresh native searcher and assigning it to the PrincipalSearcher if one
// doesn't already exist) and returns the native searcher.
// If the PrincipalSearcher does not have a query filter set (PrincipalSearcher.QueryFilter == null),
// produces a query that will match all principals in the store.
//
// For stores which don't have a native searcher (SAM), the StoreCtx
// is free to create any type of object it chooses to use as its internal representation of the query.
//
// Also adds in any clauses to the searcher to ensure that only principals, not mere
// contacts, are retrieved from the store.
internal override object PushFilterToNativeSearcher(PrincipalSearcher ps)
{
// This is the first time we're being called on this principal. Create a fresh searcher.
if (ps.UnderlyingSearcher == null)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: creating fresh DirectorySearcher");
ps.UnderlyingSearcher = new DirectorySearcher(this.ctxBase);
((DirectorySearcher)ps.UnderlyingSearcher).PageSize = ps.PageSize;
((DirectorySearcher)ps.UnderlyingSearcher).ServerTimeLimit = new TimeSpan(0, 0, 30); // 30 seconds
}
DirectorySearcher ds = (DirectorySearcher)ps.UnderlyingSearcher;
Principal qbeFilter = ps.QueryFilter;
StringBuilder ldapFilter = new StringBuilder();
if (qbeFilter == null)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: no qbeFilter specified");
// No filter specified. Search for all principals (all users, computers, groups).
ldapFilter.Append("(|(objectClass=user)(objectClass=computer)(objectClass=group))");
}
else
{
//
// Start by appending the appropriate objectClass given the Principal type
//
ldapFilter.Append(GetObjectClassPortion(qbeFilter.GetType()));
//
// Next, fill in the properties (if any)
//
QbeFilterDescription filters = BuildQbeFilterDescription(qbeFilter);
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: using {0} filters", filters.FiltersToApply.Count);
Hashtable filterTable = (Hashtable)s_filterPropertiesTable[this.MappingTableIndex];
foreach (FilterBase filter in filters.FiltersToApply)
{
FilterPropertyTableEntry entry = (FilterPropertyTableEntry)filterTable[filter.GetType()];
if (entry == null)
{
// Must be a property we don't support
throw new InvalidOperationException(
SR.Format(
SR.StoreCtxUnsupportedPropertyForQuery,
PropertyNamesExternal.GetExternalForm(filter.PropertyName)));
}
ldapFilter.Append(entry.converter(filter, entry.suggestedADPropertyName));
}
//
// Wrap off the filter
//
ldapFilter.Append(')');
}
// We don't need any attributes returned, since we're just going to get a DirectoryEntry
// for the result. Per RFC 2251, OID 1.1 == no attributes.
//ds.PropertiesToLoad.Add("1.1");
BuildPropertySet(qbeFilter.GetType(), ds.PropertiesToLoad);
ds.Filter = ldapFilter.ToString();
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: using LDAP filter {0}", ds.Filter);
return ds;
}
protected virtual string GetObjectClassPortion(Type principalType)
{
string ldapFilter;
if (principalType == typeof(UserPrincipal))
ldapFilter = "(&(objectCategory=user)(objectClass=user)"; // objCat because we don't want to match on computer accounts
else if (principalType == typeof(GroupPrincipal))
ldapFilter = "(&(objectClass=group)";
else if (principalType == typeof(ComputerPrincipal))
ldapFilter = "(&(objectClass=computer)";
else if (principalType == typeof(Principal))
ldapFilter = "(&(|(objectClass=user)(objectClass=group))";
else if (principalType == typeof(AuthenticablePrincipal))
ldapFilter = "(&(objectClass=user)";
else
{
string objClass = ExtensionHelper.ReadStructuralObjectClass(principalType);
if (null == objClass)
{
Debug.Fail($"ADStoreCtx.GetObjectClassPortion: fell off end looking for {principalType}");
throw new InvalidOperationException(SR.Format(SR.StoreCtxUnsupportedPrincipalTypeForQuery, principalType));
}
StringBuilder SB = new StringBuilder();
SB.Append("(&(objectClass=");
SB.Append(objClass);
SB.Append(')');
ldapFilter = SB.ToString();
}
return ldapFilter;
}
// The core query operation.
// Given a PrincipalSearcher containg a query filter, transforms it into the store schema
// and performs the query to get a collection of matching native objects (up to a maximum of sizeLimit,
// or uses the sizelimit already set on the DirectorySearcher if sizeLimit == -1).
// If the PrincipalSearcher does not have a query filter (PrincipalSearcher.QueryFilter == null),
// matches all principals in the store.
//
// The collection may not be complete, i.e., paging - the returned ResultSet will automatically
// page in additional results as needed.
internal override ResultSet Query(PrincipalSearcher ps, int sizeLimit)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "Query");
try
{
// Set up the DirectorySearcher
DirectorySearcher ds = (DirectorySearcher)PushFilterToNativeSearcher(ps);
int oldSizeLimit = ds.SizeLimit;
Debug.Assert(sizeLimit >= -1);
if (sizeLimit != -1)
ds.SizeLimit = sizeLimit;
// Perform the actual search
SearchResultCollection src = ds.FindAll();
Debug.Assert(src != null);
// Create a ResultSet for the search results
ADEntriesSet resultSet = new ADEntriesSet(src, this, ps.QueryFilter.GetType());
ds.SizeLimit = oldSizeLimit;
return resultSet;
}
catch (System.Runtime.InteropServices.COMException e)
{
throw ExceptionHelper.GetExceptionFromCOMException(e);
}
}
//
// Query tables
//
// We only list properties we support filtering on in this table. At run-time, if we detect they set a
// property that's not listed here, we throw an exception.
private static readonly object[,] s_filterPropertiesTableRaw =
{
// QbeType AD property Converter
{typeof(DescriptionFilter), "description", new FilterConverterDelegate(StringConverter)},
{typeof(DisplayNameFilter), "displayName", new FilterConverterDelegate(StringConverter)},
{typeof(IdentityClaimFilter), "", new FilterConverterDelegate(IdentityClaimConverter)},
{typeof(SamAccountNameFilter), "sAMAccountName", new FilterConverterDelegate(StringConverter)},
{typeof(DistinguishedNameFilter), "distinguishedName", new FilterConverterDelegate(StringConverter)},
{typeof(GuidFilter), "objectGuid", new FilterConverterDelegate(GuidConverter)},
{typeof(UserPrincipalNameFilter), "userPrincipalName", new FilterConverterDelegate(StringConverter)},
{typeof(StructuralObjectClassFilter), "objectClass", new FilterConverterDelegate(StringConverter)},
{typeof(NameFilter), "name", new FilterConverterDelegate(StringConverter)},
{typeof(CertificateFilter), "", new FilterConverterDelegate(CertificateConverter)},
{typeof(AuthPrincEnabledFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(PermittedWorkstationFilter), "userWorkstations", new FilterConverterDelegate(CommaStringConverter)},
{typeof(PermittedLogonTimesFilter), "logonHours", new FilterConverterDelegate(BinaryConverter)},
{typeof(ExpirationDateFilter), "accountExpires", new FilterConverterDelegate(ExpirationDateConverter)},
{typeof(SmartcardLogonRequiredFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(DelegationPermittedFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(HomeDirectoryFilter), "homeDirectory", new FilterConverterDelegate(StringConverter)},
{typeof(HomeDriveFilter), "homeDrive", new FilterConverterDelegate(StringConverter)},
{typeof(ScriptPathFilter), "scriptPath", new FilterConverterDelegate(StringConverter)},
{typeof(PasswordNotRequiredFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(PasswordNeverExpiresFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(CannotChangePasswordFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(AllowReversiblePasswordEncryptionFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(GivenNameFilter), "givenName", new FilterConverterDelegate(StringConverter)},
{typeof(MiddleNameFilter), "middleName", new FilterConverterDelegate(StringConverter)},
{typeof(SurnameFilter), "sn", new FilterConverterDelegate(StringConverter)},
{typeof(EmailAddressFilter), "mail", new FilterConverterDelegate(StringConverter)},
{typeof(VoiceTelephoneNumberFilter), "telephoneNumber", new FilterConverterDelegate(StringConverter)},
{typeof(EmployeeIDFilter), "employeeID", new FilterConverterDelegate(StringConverter)},
{typeof(GroupIsSecurityGroupFilter), "groupType", new FilterConverterDelegate(GroupTypeConverter)},
{typeof(GroupScopeFilter), "groupType", new FilterConverterDelegate(GroupTypeConverter)},
{typeof(ServicePrincipalNameFilter), "servicePrincipalName", new FilterConverterDelegate(StringConverter)},
{typeof(ExtensionCacheFilter), null, new FilterConverterDelegate(ExtensionCacheConverter)},
{typeof(BadPasswordAttemptFilter), "badPasswordTime", new FilterConverterDelegate(DefaultValutMatchingDateTimeConverter)},
{typeof(ExpiredAccountFilter), "accountExpires", new FilterConverterDelegate(MatchingDateTimeConverter)},
{typeof(LastLogonTimeFilter), "lastLogon", new FilterConverterDelegate(LastLogonConverter)},
{typeof(LockoutTimeFilter), "lockoutTime", new FilterConverterDelegate(MatchingDateTimeConverter)},
{typeof(PasswordSetTimeFilter), "pwdLastSet", new FilterConverterDelegate(DefaultValutMatchingDateTimeConverter)},
{typeof(BadLogonCountFilter), "badPwdCount", new FilterConverterDelegate(MatchingIntConverter)}
};
private static Hashtable s_filterPropertiesTable;
private sealed class FilterPropertyTableEntry
{
internal string suggestedADPropertyName;
internal FilterConverterDelegate converter;
}
//
// Conversion routines
//
// returns LDAP filter clause, e.g., "(description=foo*")
protected delegate string FilterConverterDelegate(FilterBase filter, string suggestedAdProperty);
protected static string StringConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append(ADUtils.PAPIQueryToLdapQueryString((string)filter.Value));
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
protected static string AcctDisabledConverter(FilterBase filter, string suggestedAdProperty)
{
// Principal property is AccountEnabled where TRUE = enabled FALSE = disabled. In ADAM
// this is stored as accountDisabled where TRUE = disabled and FALSE = enabled so here we need to revese the value.
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append(!(bool)filter.Value ? "TRUE" : "FALSE");
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
// Use this function when searching for an attribute where the absence of the attribute = a default setting.
// i.e. ms-DS-UserPasswordNotRequired in ADAM where non existence equals false.
protected static string DefaultValueBoolConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(NonPresentAttrDefaultStateMapping != null);
Debug.Assert(NonPresentAttrDefaultStateMapping.ContainsKey(suggestedAdProperty));
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
bool defaultState = NonPresentAttrDefaultStateMapping[suggestedAdProperty];
if (defaultState == (bool)filter.Value)
{
sb.Append("(|(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*)(");
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append((bool)filter.Value ? "TRUE" : "FALSE");
sb.Append(")))");
}
else
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append((bool)filter.Value ? "TRUE" : "FALSE");
sb.Append(')');
}
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
/*** If standard bool conversion is needed uncomment this function
protected static string BoolConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append( (bool)filter.Value ? "TRUE" : "FALSE" );
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
*****/
protected static string CommaStringConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append("=*");
sb.Append(ADUtils.PAPIQueryToLdapQueryString((string)filter.Value));
sb.Append('*');
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
protected static bool IdentityClaimToFilter(string identity, string identityFormat, ref string filter, bool throwOnFail)
{
if (identity == null)
identity = "";
StringBuilder sb = new StringBuilder();
switch (identityFormat)
{
case UrnScheme.GuidScheme:
// Transform from hex string ("1AFF") to LDAP hex string ("\1A\FF")
// The string passed is the string format of a GUID. We neeed to convert it into the ldap hex string
// to build a query
Guid g;
try
{
g = new Guid(identity);
}
catch (FormatException e)
{
if (throwOnFail)
// For now throw an exception to let the caller know the type was invalid.
throw new ArgumentException(e.Message, e);
else
return false;
}
byte[] gByte = g.ToByteArray();
StringBuilder stringguid = new StringBuilder();
foreach (byte b in gByte)
{
stringguid.Append(b.ToString("x2", CultureInfo.InvariantCulture));
}
string ldapHexGuid = ADUtils.HexStringToLdapHexString(stringguid.ToString());
if (ldapHexGuid == null)
{
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxGuidIdentityClaimBadFormat);
else
return false;
}
sb.Append("(objectGuid=");
sb.Append(ldapHexGuid);
sb.Append(')');
break;
case UrnScheme.DistinguishedNameScheme:
sb.Append("(distinguishedName=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(identity));
sb.Append(')');
break;
case UrnScheme.SidScheme:
if (false == SecurityIdentityClaimConverterHelper(identity, false, sb, throwOnFail))
{
return false;
}
break;
case UrnScheme.SamAccountScheme:
int index = identity.IndexOf('\\');
if (index == identity.Length - 1)
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxNT4IdentityClaimWrongForm);
else
return false;
string samAccountName = (index != -1) ? identity.Substring(index + 1) : // +1 to skip the '/'
identity;
sb.Append("(samAccountName=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(samAccountName));
sb.Append(')');
break;
case UrnScheme.NameScheme:
sb.Append("(name=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(identity));
sb.Append(')');
break;
case UrnScheme.UpnScheme:
sb.Append("(userPrincipalName=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(identity));
sb.Append(')');
break;
default:
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxUnsupportedIdentityClaimForQuery);
else
return false;
}
filter = sb.ToString();
return true;
}
protected static string IdentityClaimConverter(FilterBase filter, string suggestedAdProperty)
{
IdentityClaim ic = (IdentityClaim)filter.Value;
if (ic.UrnScheme == null)
throw new ArgumentException(SR.StoreCtxIdentityClaimMustHaveScheme);
string urnValue = ic.UrnValue;
if (urnValue == null)
urnValue = "";
string filterString = null;
IdentityClaimToFilter(urnValue, ic.UrnScheme, ref filterString, true);
return filterString;
}
// If useSidHistory == false, build a filter for objectSid.
// If useSidHistory == true, build a filter for objectSid and sidHistory.
protected static bool SecurityIdentityClaimConverterHelper(string urnValue, bool useSidHistory, StringBuilder filter, bool throwOnFail)
{
// String is in SDDL format. Translate it to ldap hex format
IntPtr pBytePtr = IntPtr.Zero;
byte[] sidB = null;
try
{
if (Interop.Advapi32.ConvertStringSidToSid(urnValue, out pBytePtr) != Interop.BOOL.FALSE)
{
// Now we convert the native SID to a byte[] SID
sidB = Utils.ConvertNativeSidToByteArray(pBytePtr);
if (null == sidB)
{
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat);
else
return false;
}
}
else
{
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat);
else
return false;
}
}
finally
{
if (IntPtr.Zero != pBytePtr)
Interop.Kernel32.LocalFree(pBytePtr);
}
StringBuilder stringizedBinarySid = new StringBuilder();
foreach (byte b in sidB)
{
stringizedBinarySid.Append(b.ToString("x2", CultureInfo.InvariantCulture));
}
string ldapHexSid = ADUtils.HexStringToLdapHexString(stringizedBinarySid.ToString());
if (ldapHexSid == null)
return false;
if (useSidHistory)
{
filter.Append("(|(objectSid=");
filter.Append(ldapHexSid);
filter.Append(")(sidHistory=");
filter.Append(ldapHexSid);
filter.Append("))");
}
else
{
filter.Append("(objectSid=");
filter.Append(ldapHexSid);
filter.Append(')');
}
return true;
}
protected static string CertificateConverter(FilterBase filter, string suggestedAdProperty)
{
System.Security.Cryptography.X509Certificates.X509Certificate2 certificate =
(System.Security.Cryptography.X509Certificates.X509Certificate2)filter.Value;
byte[] rawCertificate = certificate.RawData;
StringBuilder sb = new StringBuilder();
sb.Append("(userCertificate=");
sb.Append(ADUtils.EscapeBinaryValue(rawCertificate));
sb.Append(')');
return sb.ToString();
}
protected static string UserAccountControlConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "userAccountControl", StringComparison.OrdinalIgnoreCase));
StringBuilder sb = new StringBuilder();
// bitwise-AND
bool value = (bool)filter.Value;
switch (filter.PropertyName)
{
case AuthPrincEnabledFilter.PropertyNameStatic:
// UF_ACCOUNTDISABLE
// Note that the logic is inverted on this one. We expose "Enabled",
// but AD stores it as "Disabled".
if (value)
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=2))");
else
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=2)");
break;
case SmartcardLogonRequiredFilter.PropertyNameStatic:
// UF_SMARTCARD_REQUIRED
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=262144)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=262144))");
break;
case DelegationPermittedFilter.PropertyNameStatic:
// UF_NOT_DELEGATED
// Note that the logic is inverted on this one. That's because we expose
// "delegation allowed", but AD represents it as the inverse, "delegation NOT allowed"
if (value)
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=1048576))");
else
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=1048576)");
break;
case PasswordNotRequiredFilter.PropertyNameStatic:
// UF_PASSWD_NOTREQD
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=32)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=32))");
break;
case PasswordNeverExpiresFilter.PropertyNameStatic:
// UF_DONT_EXPIRE_PASSWD
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=65536)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=65536))");
break;
case CannotChangePasswordFilter.PropertyNameStatic:
// UF_PASSWD_CANT_CHANGE
// This bit doesn't work correctly in AD (AD models the "user can't change password"
// setting as special ACEs in the ntSecurityDescriptor).
throw new InvalidOperationException(
SR.Format(
SR.StoreCtxUnsupportedPropertyForQuery,
PropertyNamesExternal.GetExternalForm(filter.PropertyName)));
case AllowReversiblePasswordEncryptionFilter.PropertyNameStatic:
// UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=128)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=128))");
break;
default:
Debug.Fail("ADStoreCtx.UserAccountControlConverter: fell off end looking for " + filter.PropertyName);
break;
}
return sb.ToString();
}
protected static string BinaryConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append(ADUtils.EscapeBinaryValue((byte[])filter.Value));
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
sb.Append(')');
return sb.ToString();
}
protected static string ExpirationDateConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "accountExpires", StringComparison.OrdinalIgnoreCase));
Debug.Assert(filter is ExpirationDateFilter);
Nullable<DateTime> date = (Nullable<DateTime>)filter.Value;
StringBuilder sb = new StringBuilder();
if (!date.HasValue)
{
// Spoke with ColinBr. Both values are used to represent "no expiration date set".
sb.Append("(|(accountExpires=9223372036854775807)(accountExpires=0))");
}
else
{
sb.Append("(accountExpires=");
sb.Append(ADUtils.DateTimeToADString(date.Value));
sb.Append(')');
}
return sb.ToString();
}
protected static string GuidConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "objectGuid", StringComparison.OrdinalIgnoreCase));
Debug.Assert(filter is GuidFilter);
Nullable<Guid> guid = (Nullable<Guid>)filter.Value;
StringBuilder sb = new StringBuilder();
if (guid == null)
{
// Spoke with ColinBr. Both values are used to represent "no expiration date set".
// sb.Append("(|(accountExpires=9223372036854775807)(accountExpires=0))");
}
else
{
sb.Append("(objectGuid=");
// Transform from hex string ("1AFF") to LDAP hex string ("\1A\FF")
string ldapHexGuid = ADUtils.HexStringToLdapHexString(guid.ToString());
if (ldapHexGuid == null)
throw new InvalidOperationException(SR.StoreCtxGuidIdentityClaimBadFormat);
sb.Append(ldapHexGuid);
sb.Append(')');
}
return sb.ToString();
}
protected static string MatchingIntConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
return (ExtensionTypeConverter(suggestedAdProperty, qmt.Value.GetType(), qmt.Value, qmt.Match));
}
protected static string DefaultValutMatchingDateTimeConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
Debug.Assert(qmt.Value is DateTime);
return (DateTimeFilterBuilder(suggestedAdProperty, (DateTime)qmt.Value, LdapConstants.defaultUtcTime, false, qmt.Match));
}
protected static string MatchingDateTimeConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
Debug.Assert(qmt.Value is DateTime);
return (ExtensionTypeConverter(suggestedAdProperty, qmt.Value.GetType(), qmt.Value, qmt.Match));
}
protected static string LastLogonConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
Debug.Assert(qmt.Value is DateTime);
Debug.Assert((suggestedAdProperty == "lastLogon") || (suggestedAdProperty == "lastLogonTimestamp"));
StringBuilder sb = new StringBuilder();
sb.Append("(|");
sb.Append(DateTimeFilterBuilder("lastLogon", (DateTime)qmt.Value, LdapConstants.defaultUtcTime, false, qmt.Match));
sb.Append(DateTimeFilterBuilder("lastLogonTimestamp", (DateTime)qmt.Value, LdapConstants.defaultUtcTime, true, qmt.Match));
sb.Append(')');
return (sb.ToString());
}
protected static string GroupTypeConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "groupType", StringComparison.OrdinalIgnoreCase));
Debug.Assert(filter is GroupIsSecurityGroupFilter || filter is GroupScopeFilter);
// 1.2.840.113556.1.4.803 is like a bit-wise AND operator
switch (filter.PropertyName)
{
case GroupIsSecurityGroupFilter.PropertyNameStatic:
bool value = (bool)filter.Value;
// GROUP_TYPE_SECURITY_ENABLED
// If group is enabled, it IS security-enabled
if (value)
return "(groupType:1.2.840.113556.1.4.803:=2147483648)";
else
return "(!(groupType:1.2.840.113556.1.4.803:=2147483648))";
case GroupScopeFilter.PropertyNameStatic:
GroupScope value2 = (GroupScope)filter.Value;
switch (value2)
{
case GroupScope.Local:
// GROUP_TYPE_RESOURCE_GROUP, a.k.a. ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP
return "(groupType:1.2.840.113556.1.4.803:=4)";
case GroupScope.Global:
// GROUP_TYPE_ACCOUNT_GROUP, a.k.a. ADS_GROUP_TYPE_GLOBAL_GROUP
return "(groupType:1.2.840.113556.1.4.803:=2)";
default:
// GROUP_TYPE_UNIVERSAL_GROUP, a.k.a. ADS_GROUP_TYPE_UNIVERSAL_GROUP
Debug.Assert(value2 == GroupScope.Universal);
return "(groupType:1.2.840.113556.1.4.803:=8)";
}
default:
Debug.Fail("ADStoreCtx.GroupTypeConverter: fell off end looking for " + filter.PropertyName);
return "";
}
}
public static string DateTimeFilterBuilder(string attributeName, DateTime searchValue, DateTime defaultValue, bool requirePresence, MatchType mt)
{
string ldapSearchValue = null;
string ldapDefaultValue = null;
bool defaultNeeded = false;
ldapSearchValue = ADUtils.DateTimeToADString(searchValue);
ldapDefaultValue = ADUtils.DateTimeToADString(defaultValue);
StringBuilder ldapFilter = new StringBuilder("(");
if (mt != MatchType.Equals && mt != MatchType.NotEquals)
{
defaultNeeded = true;
}
if (defaultNeeded || (mt == MatchType.NotEquals && requirePresence))
{
ldapFilter.Append("&(");
}
switch (mt)
{
case MatchType.Equals:
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapSearchValue);
break;
case MatchType.NotEquals:
ldapFilter.Append("!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapSearchValue);
ldapFilter.Append(')');
break;
case MatchType.GreaterThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append(">=");
ldapFilter.Append(ldapSearchValue);
break;
case MatchType.LessThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append("<=");
ldapFilter.Append(ldapSearchValue);
break;
case MatchType.GreaterThan:
ldapFilter.Append('&');
// Greater-than-or-equals (or less-than-or-equals))
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append(mt == MatchType.GreaterThan ? ">=" : "<=");
ldapFilter.Append(ldapSearchValue);
ldapFilter.Append(')');
// And not-equal
ldapFilter.Append("(!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapSearchValue);
ldapFilter.Append("))");
// And exists (need to include because of tristate LDAP logic)
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append("=*)");
break;
case MatchType.LessThan:
goto case MatchType.GreaterThan;
}
ldapFilter.Append(')');
bool closeFilter = false;
if (defaultNeeded)
{
ldapFilter.Append("(!");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapDefaultValue);
ldapFilter.Append(')');
closeFilter = true;
}
if (mt == MatchType.NotEquals && requirePresence)
{
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append("=*)");
closeFilter = true;
}
if (closeFilter)
ldapFilter.Append(')');
return (ldapFilter.ToString());
}
public static string ExtensionTypeConverter(string attributeName, Type type, object value, MatchType mt)
{
StringBuilder ldapFilter = new StringBuilder("(");
string ldapValue;
if (typeof(bool) == type)
{
ldapValue = ((bool)value ? "TRUE" : "FALSE");
}
else if (type is ICollection)
{
StringBuilder collectionFilter = new StringBuilder();
ICollection collection = (ICollection)value;
foreach (object o in collection)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionTypeConverter collection filter type " + o.GetType().ToString());
collectionFilter.Append(ExtensionTypeConverter(attributeName, o.GetType(), o, mt));
}
return collectionFilter.ToString();
}
else if (typeof(DateTime) == type)
{
ldapValue = ADUtils.DateTimeToADString((DateTime)value);
}
else
{
ldapValue = ADUtils.PAPIQueryToLdapQueryString(value.ToString());
}
switch (mt)
{
case MatchType.Equals:
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapValue);
break;
case MatchType.NotEquals:
ldapFilter.Append("!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapValue);
ldapFilter.Append(')');
break;
case MatchType.GreaterThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append(">=");
ldapFilter.Append(ldapValue);
break;
case MatchType.LessThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append("<=");
ldapFilter.Append(ldapValue);
break;
case MatchType.GreaterThan:
ldapFilter.Append('&');
// Greater-than-or-equals (or less-than-or-equals))
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append(mt == MatchType.GreaterThan ? ">=" : "<=");
ldapFilter.Append(ldapValue);
ldapFilter.Append(')');
// And not-equal
ldapFilter.Append("(!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapValue);
ldapFilter.Append("))");
// And exists (need to include because of tristate LDAP logic)
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append("=*)");
break;
case MatchType.LessThan:
goto case MatchType.GreaterThan;
}
ldapFilter.Append(')');
return ldapFilter.ToString();
}
protected static string ExtensionCacheConverter(FilterBase filter, string suggestedAdProperty)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter ");
StringBuilder query = new StringBuilder();
if (filter.Value != null)
{
ExtensionCache ec = (ExtensionCache)filter.Value;
foreach (KeyValuePair<string, ExtensionCacheValue> kvp in ec.properties)
{
Type type = kvp.Value.Type == null ? kvp.Value.Value.GetType() : kvp.Value.Type;
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter filter type " + type.ToString());
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter match type " + kvp.Value.MatchType.ToString());
if (kvp.Value.Value is ICollection)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter encountered collection.");
ICollection collection = (ICollection)kvp.Value.Value;
foreach (object o in collection)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter collection filter type " + o.GetType().ToString());
query.Append(ExtensionTypeConverter(kvp.Key, o.GetType(), o, kvp.Value.MatchType));
}
}
else
{
query.Append(ExtensionTypeConverter(kvp.Key, type, kvp.Value.Value, kvp.Value.MatchType));
}
}
}
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter complete built filter " + query.ToString());
return query.ToString();
}
///
/// <summary>
/// Adds the specified Property set to the TypeToPropListMap data structure.
/// </summary>
///
private void AddPropertySetToTypePropListMap(Type principalType, StringCollection propertySet)
{
lock (TypeToLdapPropListMap)
{
if (!TypeToLdapPropListMap[this.MappingTableIndex].ContainsKey(principalType))
{
TypeToLdapPropListMap[this.MappingTableIndex].Add(principalType, propertySet);
}
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Globalization;
using System.Security.Principal;
using System.DirectoryServices;
using System.Collections.Specialized;
namespace System.DirectoryServices.AccountManagement
{
internal partial class ADStoreCtx : StoreCtx
{
//
// Query operations
//
// Returns true if this store has native support for search (and thus a wormhole).
// Returns true for everything but SAM (both reg-SAM and MSAM).
internal override bool SupportsSearchNatively { get { return true; } }
// Returns a type indicating the type of object that would be returned as the wormhole for the specified
// PrincipalSearcher.
internal override Type SearcherNativeType() { return typeof(DirectorySearcher); }
private void BuildExtensionPropertyList(Hashtable propertyList, Type p)
{
System.Reflection.PropertyInfo[] propertyInfoList = p.GetProperties();
foreach (System.Reflection.PropertyInfo pInfo in propertyInfoList)
{
DirectoryPropertyAttribute[] pAttributeList = (DirectoryPropertyAttribute[])(pInfo.GetCustomAttributes(typeof(DirectoryPropertyAttribute), true));
foreach (DirectoryPropertyAttribute pAttribute in pAttributeList)
{
if (!propertyList.Contains(pAttribute.SchemaAttributeName))
propertyList.Add(pAttribute.SchemaAttributeName, pAttribute.SchemaAttributeName);
}
}
}
protected void BuildPropertySet(Type p, StringCollection propertySet)
{
if (TypeToLdapPropListMap[this.MappingTableIndex].ContainsKey(p))
{
Debug.Assert(TypeToLdapPropListMap[this.MappingTableIndex].ContainsKey(p));
string[] props = new string[TypeToLdapPropListMap[this.MappingTableIndex][p].Count];
TypeToLdapPropListMap[this.MappingTableIndex][p].CopyTo(props, 0);
propertySet.AddRange(props);
}
else
{
Type baseType;
if (p.IsSubclassOf(typeof(UserPrincipal)))
{
baseType = typeof(UserPrincipal);
}
else if (p.IsSubclassOf(typeof(GroupPrincipal)))
{
baseType = typeof(GroupPrincipal);
}
else if (p.IsSubclassOf(typeof(ComputerPrincipal)))
{
baseType = typeof(ComputerPrincipal);
}
else if (p.IsSubclassOf(typeof(AuthenticablePrincipal)))
{
baseType = typeof(AuthenticablePrincipal);
}
else
{
baseType = typeof(Principal);
}
Hashtable propertyList = new Hashtable();
// Load the properties for the base types...
foreach (string s in TypeToLdapPropListMap[this.MappingTableIndex][baseType])
{
if (!propertyList.Contains(s))
{
propertyList.Add(s, s);
}
}
// Reflect the properties off the extension class and add them to the list.
BuildExtensionPropertyList(propertyList, p);
foreach (string property in propertyList.Values)
{
propertySet.Add(property);
}
// Cache the list for this property type so we don't need to reflect again in the future.
this.AddPropertySetToTypePropListMap(p, propertySet);
}
}
// Pushes the query represented by the QBE filter into the PrincipalSearcher's underlying native
// searcher object (creating a fresh native searcher and assigning it to the PrincipalSearcher if one
// doesn't already exist) and returns the native searcher.
// If the PrincipalSearcher does not have a query filter set (PrincipalSearcher.QueryFilter == null),
// produces a query that will match all principals in the store.
//
// For stores which don't have a native searcher (SAM), the StoreCtx
// is free to create any type of object it chooses to use as its internal representation of the query.
//
// Also adds in any clauses to the searcher to ensure that only principals, not mere
// contacts, are retrieved from the store.
internal override object PushFilterToNativeSearcher(PrincipalSearcher ps)
{
// This is the first time we're being called on this principal. Create a fresh searcher.
if (ps.UnderlyingSearcher == null)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: creating fresh DirectorySearcher");
ps.UnderlyingSearcher = new DirectorySearcher(this.ctxBase);
((DirectorySearcher)ps.UnderlyingSearcher).PageSize = ps.PageSize;
((DirectorySearcher)ps.UnderlyingSearcher).ServerTimeLimit = new TimeSpan(0, 0, 30); // 30 seconds
}
DirectorySearcher ds = (DirectorySearcher)ps.UnderlyingSearcher;
Principal qbeFilter = ps.QueryFilter;
StringBuilder ldapFilter = new StringBuilder();
if (qbeFilter == null)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: no qbeFilter specified");
// No filter specified. Search for all principals (all users, computers, groups).
ldapFilter.Append("(|(objectClass=user)(objectClass=computer)(objectClass=group))");
}
else
{
//
// Start by appending the appropriate objectClass given the Principal type
//
ldapFilter.Append(GetObjectClassPortion(qbeFilter.GetType()));
//
// Next, fill in the properties (if any)
//
QbeFilterDescription filters = BuildQbeFilterDescription(qbeFilter);
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: using {0} filters", filters.FiltersToApply.Count);
Hashtable filterTable = (Hashtable)s_filterPropertiesTable[this.MappingTableIndex];
foreach (FilterBase filter in filters.FiltersToApply)
{
FilterPropertyTableEntry entry = (FilterPropertyTableEntry)filterTable[filter.GetType()];
if (entry == null)
{
// Must be a property we don't support
throw new InvalidOperationException(
SR.Format(
SR.StoreCtxUnsupportedPropertyForQuery,
PropertyNamesExternal.GetExternalForm(filter.PropertyName)));
}
ldapFilter.Append(entry.converter(filter, entry.suggestedADPropertyName));
}
//
// Wrap off the filter
//
ldapFilter.Append(')');
}
// We don't need any attributes returned, since we're just going to get a DirectoryEntry
// for the result. Per RFC 2251, OID 1.1 == no attributes.
//ds.PropertiesToLoad.Add("1.1");
BuildPropertySet(qbeFilter.GetType(), ds.PropertiesToLoad);
ds.Filter = ldapFilter.ToString();
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "PushFilterToNativeSearcher: using LDAP filter {0}", ds.Filter);
return ds;
}
protected virtual string GetObjectClassPortion(Type principalType)
{
string ldapFilter;
if (principalType == typeof(UserPrincipal))
ldapFilter = "(&(objectCategory=user)(objectClass=user)"; // objCat because we don't want to match on computer accounts
else if (principalType == typeof(GroupPrincipal))
ldapFilter = "(&(objectClass=group)";
else if (principalType == typeof(ComputerPrincipal))
ldapFilter = "(&(objectClass=computer)";
else if (principalType == typeof(Principal))
ldapFilter = "(&(|(objectClass=user)(objectClass=group))";
else if (principalType == typeof(AuthenticablePrincipal))
ldapFilter = "(&(objectClass=user)";
else
{
string objClass = ExtensionHelper.ReadStructuralObjectClass(principalType);
if (null == objClass)
{
Debug.Fail($"ADStoreCtx.GetObjectClassPortion: fell off end looking for {principalType}");
throw new InvalidOperationException(SR.Format(SR.StoreCtxUnsupportedPrincipalTypeForQuery, principalType));
}
StringBuilder SB = new StringBuilder();
SB.Append("(&(objectClass=");
SB.Append(objClass);
SB.Append(')');
ldapFilter = SB.ToString();
}
return ldapFilter;
}
// The core query operation.
// Given a PrincipalSearcher containg a query filter, transforms it into the store schema
// and performs the query to get a collection of matching native objects (up to a maximum of sizeLimit,
// or uses the sizelimit already set on the DirectorySearcher if sizeLimit == -1).
// If the PrincipalSearcher does not have a query filter (PrincipalSearcher.QueryFilter == null),
// matches all principals in the store.
//
// The collection may not be complete, i.e., paging - the returned ResultSet will automatically
// page in additional results as needed.
internal override ResultSet Query(PrincipalSearcher ps, int sizeLimit)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "Query");
try
{
// Set up the DirectorySearcher
DirectorySearcher ds = (DirectorySearcher)PushFilterToNativeSearcher(ps);
int oldSizeLimit = ds.SizeLimit;
Debug.Assert(sizeLimit >= -1);
if (sizeLimit != -1)
ds.SizeLimit = sizeLimit;
// Perform the actual search
SearchResultCollection src = ds.FindAll();
Debug.Assert(src != null);
// Create a ResultSet for the search results
ADEntriesSet resultSet = new ADEntriesSet(src, this, ps.QueryFilter.GetType());
ds.SizeLimit = oldSizeLimit;
return resultSet;
}
catch (System.Runtime.InteropServices.COMException e)
{
throw ExceptionHelper.GetExceptionFromCOMException(e);
}
}
//
// Query tables
//
// We only list properties we support filtering on in this table. At run-time, if we detect they set a
// property that's not listed here, we throw an exception.
private static readonly object[,] s_filterPropertiesTableRaw =
{
// QbeType AD property Converter
{typeof(DescriptionFilter), "description", new FilterConverterDelegate(StringConverter)},
{typeof(DisplayNameFilter), "displayName", new FilterConverterDelegate(StringConverter)},
{typeof(IdentityClaimFilter), "", new FilterConverterDelegate(IdentityClaimConverter)},
{typeof(SamAccountNameFilter), "sAMAccountName", new FilterConverterDelegate(StringConverter)},
{typeof(DistinguishedNameFilter), "distinguishedName", new FilterConverterDelegate(StringConverter)},
{typeof(GuidFilter), "objectGuid", new FilterConverterDelegate(GuidConverter)},
{typeof(UserPrincipalNameFilter), "userPrincipalName", new FilterConverterDelegate(StringConverter)},
{typeof(StructuralObjectClassFilter), "objectClass", new FilterConverterDelegate(StringConverter)},
{typeof(NameFilter), "name", new FilterConverterDelegate(StringConverter)},
{typeof(CertificateFilter), "", new FilterConverterDelegate(CertificateConverter)},
{typeof(AuthPrincEnabledFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(PermittedWorkstationFilter), "userWorkstations", new FilterConverterDelegate(CommaStringConverter)},
{typeof(PermittedLogonTimesFilter), "logonHours", new FilterConverterDelegate(BinaryConverter)},
{typeof(ExpirationDateFilter), "accountExpires", new FilterConverterDelegate(ExpirationDateConverter)},
{typeof(SmartcardLogonRequiredFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(DelegationPermittedFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(HomeDirectoryFilter), "homeDirectory", new FilterConverterDelegate(StringConverter)},
{typeof(HomeDriveFilter), "homeDrive", new FilterConverterDelegate(StringConverter)},
{typeof(ScriptPathFilter), "scriptPath", new FilterConverterDelegate(StringConverter)},
{typeof(PasswordNotRequiredFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(PasswordNeverExpiresFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(CannotChangePasswordFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(AllowReversiblePasswordEncryptionFilter), "userAccountControl", new FilterConverterDelegate(UserAccountControlConverter)},
{typeof(GivenNameFilter), "givenName", new FilterConverterDelegate(StringConverter)},
{typeof(MiddleNameFilter), "middleName", new FilterConverterDelegate(StringConverter)},
{typeof(SurnameFilter), "sn", new FilterConverterDelegate(StringConverter)},
{typeof(EmailAddressFilter), "mail", new FilterConverterDelegate(StringConverter)},
{typeof(VoiceTelephoneNumberFilter), "telephoneNumber", new FilterConverterDelegate(StringConverter)},
{typeof(EmployeeIDFilter), "employeeID", new FilterConverterDelegate(StringConverter)},
{typeof(GroupIsSecurityGroupFilter), "groupType", new FilterConverterDelegate(GroupTypeConverter)},
{typeof(GroupScopeFilter), "groupType", new FilterConverterDelegate(GroupTypeConverter)},
{typeof(ServicePrincipalNameFilter), "servicePrincipalName", new FilterConverterDelegate(StringConverter)},
{typeof(ExtensionCacheFilter), null, new FilterConverterDelegate(ExtensionCacheConverter)},
{typeof(BadPasswordAttemptFilter), "badPasswordTime", new FilterConverterDelegate(DefaultValutMatchingDateTimeConverter)},
{typeof(ExpiredAccountFilter), "accountExpires", new FilterConverterDelegate(MatchingDateTimeConverter)},
{typeof(LastLogonTimeFilter), "lastLogon", new FilterConverterDelegate(LastLogonConverter)},
{typeof(LockoutTimeFilter), "lockoutTime", new FilterConverterDelegate(MatchingDateTimeConverter)},
{typeof(PasswordSetTimeFilter), "pwdLastSet", new FilterConverterDelegate(DefaultValutMatchingDateTimeConverter)},
{typeof(BadLogonCountFilter), "badPwdCount", new FilterConverterDelegate(MatchingIntConverter)}
};
private static Hashtable s_filterPropertiesTable;
private sealed class FilterPropertyTableEntry
{
internal string suggestedADPropertyName;
internal FilterConverterDelegate converter;
}
//
// Conversion routines
//
// returns LDAP filter clause, e.g., "(description=foo*")
protected delegate string FilterConverterDelegate(FilterBase filter, string suggestedAdProperty);
protected static string StringConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append(ADUtils.PAPIQueryToLdapQueryString((string)filter.Value));
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
protected static string AcctDisabledConverter(FilterBase filter, string suggestedAdProperty)
{
// Principal property is AccountEnabled where TRUE = enabled FALSE = disabled. In ADAM
// this is stored as accountDisabled where TRUE = disabled and FALSE = enabled so here we need to revese the value.
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append(!(bool)filter.Value ? "TRUE" : "FALSE");
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
// Use this function when searching for an attribute where the absence of the attribute = a default setting.
// i.e. ms-DS-UserPasswordNotRequired in ADAM where non existence equals false.
protected static string DefaultValueBoolConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(NonPresentAttrDefaultStateMapping != null);
Debug.Assert(NonPresentAttrDefaultStateMapping.ContainsKey(suggestedAdProperty));
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
bool defaultState = NonPresentAttrDefaultStateMapping[suggestedAdProperty];
if (defaultState == (bool)filter.Value)
{
sb.Append("(|(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*)(");
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append((bool)filter.Value ? "TRUE" : "FALSE");
sb.Append(")))");
}
else
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append((bool)filter.Value ? "TRUE" : "FALSE");
sb.Append(')');
}
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
/*** If standard bool conversion is needed uncomment this function
protected static string BoolConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append( (bool)filter.Value ? "TRUE" : "FALSE" );
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
*****/
protected static string CommaStringConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append("=*");
sb.Append(ADUtils.PAPIQueryToLdapQueryString((string)filter.Value));
sb.Append('*');
sb.Append(')');
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
return sb.ToString();
}
protected static bool IdentityClaimToFilter(string identity, string identityFormat, ref string filter, bool throwOnFail)
{
if (identity == null)
identity = "";
StringBuilder sb = new StringBuilder();
switch (identityFormat)
{
case UrnScheme.GuidScheme:
// Transform from hex string ("1AFF") to LDAP hex string ("\1A\FF")
// The string passed is the string format of a GUID. We neeed to convert it into the ldap hex string
// to build a query
Guid g;
try
{
g = new Guid(identity);
}
catch (FormatException e)
{
if (throwOnFail)
// For now throw an exception to let the caller know the type was invalid.
throw new ArgumentException(e.Message, e);
else
return false;
}
byte[] gByte = g.ToByteArray();
StringBuilder stringguid = new StringBuilder();
foreach (byte b in gByte)
{
stringguid.Append(b.ToString("x2", CultureInfo.InvariantCulture));
}
string ldapHexGuid = ADUtils.HexStringToLdapHexString(stringguid.ToString());
if (ldapHexGuid == null)
{
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxGuidIdentityClaimBadFormat);
else
return false;
}
sb.Append("(objectGuid=");
sb.Append(ldapHexGuid);
sb.Append(')');
break;
case UrnScheme.DistinguishedNameScheme:
sb.Append("(distinguishedName=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(identity));
sb.Append(')');
break;
case UrnScheme.SidScheme:
if (false == SecurityIdentityClaimConverterHelper(identity, false, sb, throwOnFail))
{
return false;
}
break;
case UrnScheme.SamAccountScheme:
int index = identity.IndexOf('\\');
if (index == identity.Length - 1)
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxNT4IdentityClaimWrongForm);
else
return false;
string samAccountName = (index != -1) ? identity.Substring(index + 1) : // +1 to skip the '/'
identity;
sb.Append("(samAccountName=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(samAccountName));
sb.Append(')');
break;
case UrnScheme.NameScheme:
sb.Append("(name=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(identity));
sb.Append(')');
break;
case UrnScheme.UpnScheme:
sb.Append("(userPrincipalName=");
sb.Append(ADUtils.EscapeRFC2254SpecialChars(identity));
sb.Append(')');
break;
default:
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxUnsupportedIdentityClaimForQuery);
else
return false;
}
filter = sb.ToString();
return true;
}
protected static string IdentityClaimConverter(FilterBase filter, string suggestedAdProperty)
{
IdentityClaim ic = (IdentityClaim)filter.Value;
if (ic.UrnScheme == null)
throw new ArgumentException(SR.StoreCtxIdentityClaimMustHaveScheme);
string urnValue = ic.UrnValue;
if (urnValue == null)
urnValue = "";
string filterString = null;
IdentityClaimToFilter(urnValue, ic.UrnScheme, ref filterString, true);
return filterString;
}
// If useSidHistory == false, build a filter for objectSid.
// If useSidHistory == true, build a filter for objectSid and sidHistory.
protected static bool SecurityIdentityClaimConverterHelper(string urnValue, bool useSidHistory, StringBuilder filter, bool throwOnFail)
{
// String is in SDDL format. Translate it to ldap hex format
IntPtr pBytePtr = IntPtr.Zero;
byte[] sidB = null;
try
{
if (Interop.Advapi32.ConvertStringSidToSid(urnValue, out pBytePtr) != Interop.BOOL.FALSE)
{
// Now we convert the native SID to a byte[] SID
sidB = Utils.ConvertNativeSidToByteArray(pBytePtr);
if (null == sidB)
{
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat);
else
return false;
}
}
else
{
if (throwOnFail)
throw new ArgumentException(SR.StoreCtxSecurityIdentityClaimBadFormat);
else
return false;
}
}
finally
{
if (IntPtr.Zero != pBytePtr)
Interop.Kernel32.LocalFree(pBytePtr);
}
StringBuilder stringizedBinarySid = new StringBuilder();
foreach (byte b in sidB)
{
stringizedBinarySid.Append(b.ToString("x2", CultureInfo.InvariantCulture));
}
string ldapHexSid = ADUtils.HexStringToLdapHexString(stringizedBinarySid.ToString());
if (ldapHexSid == null)
return false;
if (useSidHistory)
{
filter.Append("(|(objectSid=");
filter.Append(ldapHexSid);
filter.Append(")(sidHistory=");
filter.Append(ldapHexSid);
filter.Append("))");
}
else
{
filter.Append("(objectSid=");
filter.Append(ldapHexSid);
filter.Append(')');
}
return true;
}
protected static string CertificateConverter(FilterBase filter, string suggestedAdProperty)
{
System.Security.Cryptography.X509Certificates.X509Certificate2 certificate =
(System.Security.Cryptography.X509Certificates.X509Certificate2)filter.Value;
byte[] rawCertificate = certificate.RawData;
StringBuilder sb = new StringBuilder();
sb.Append("(userCertificate=");
sb.Append(ADUtils.EscapeBinaryValue(rawCertificate));
sb.Append(')');
return sb.ToString();
}
protected static string UserAccountControlConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "userAccountControl", StringComparison.OrdinalIgnoreCase));
StringBuilder sb = new StringBuilder();
// bitwise-AND
bool value = (bool)filter.Value;
switch (filter.PropertyName)
{
case AuthPrincEnabledFilter.PropertyNameStatic:
// UF_ACCOUNTDISABLE
// Note that the logic is inverted on this one. We expose "Enabled",
// but AD stores it as "Disabled".
if (value)
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=2))");
else
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=2)");
break;
case SmartcardLogonRequiredFilter.PropertyNameStatic:
// UF_SMARTCARD_REQUIRED
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=262144)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=262144))");
break;
case DelegationPermittedFilter.PropertyNameStatic:
// UF_NOT_DELEGATED
// Note that the logic is inverted on this one. That's because we expose
// "delegation allowed", but AD represents it as the inverse, "delegation NOT allowed"
if (value)
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=1048576))");
else
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=1048576)");
break;
case PasswordNotRequiredFilter.PropertyNameStatic:
// UF_PASSWD_NOTREQD
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=32)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=32))");
break;
case PasswordNeverExpiresFilter.PropertyNameStatic:
// UF_DONT_EXPIRE_PASSWD
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=65536)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=65536))");
break;
case CannotChangePasswordFilter.PropertyNameStatic:
// UF_PASSWD_CANT_CHANGE
// This bit doesn't work correctly in AD (AD models the "user can't change password"
// setting as special ACEs in the ntSecurityDescriptor).
throw new InvalidOperationException(
SR.Format(
SR.StoreCtxUnsupportedPropertyForQuery,
PropertyNamesExternal.GetExternalForm(filter.PropertyName)));
case AllowReversiblePasswordEncryptionFilter.PropertyNameStatic:
// UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED
if (value)
sb.Append("(userAccountControl:1.2.840.113556.1.4.803:=128)");
else
sb.Append("(!(userAccountControl:1.2.840.113556.1.4.803:=128))");
break;
default:
Debug.Fail("ADStoreCtx.UserAccountControlConverter: fell off end looking for " + filter.PropertyName);
break;
}
return sb.ToString();
}
protected static string BinaryConverter(FilterBase filter, string suggestedAdProperty)
{
StringBuilder sb = new StringBuilder();
if (filter.Value != null)
{
sb.Append('(');
sb.Append(suggestedAdProperty);
sb.Append('=');
sb.Append(ADUtils.EscapeBinaryValue((byte[])filter.Value));
}
else
{
sb.Append("(!(");
sb.Append(suggestedAdProperty);
sb.Append("=*))");
}
sb.Append(')');
return sb.ToString();
}
protected static string ExpirationDateConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "accountExpires", StringComparison.OrdinalIgnoreCase));
Debug.Assert(filter is ExpirationDateFilter);
Nullable<DateTime> date = (Nullable<DateTime>)filter.Value;
StringBuilder sb = new StringBuilder();
if (!date.HasValue)
{
// Spoke with ColinBr. Both values are used to represent "no expiration date set".
sb.Append("(|(accountExpires=9223372036854775807)(accountExpires=0))");
}
else
{
sb.Append("(accountExpires=");
sb.Append(ADUtils.DateTimeToADString(date.Value));
sb.Append(')');
}
return sb.ToString();
}
protected static string GuidConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "objectGuid", StringComparison.OrdinalIgnoreCase));
Debug.Assert(filter is GuidFilter);
Nullable<Guid> guid = (Nullable<Guid>)filter.Value;
StringBuilder sb = new StringBuilder();
if (guid == null)
{
// Spoke with ColinBr. Both values are used to represent "no expiration date set".
// sb.Append("(|(accountExpires=9223372036854775807)(accountExpires=0))");
}
else
{
sb.Append("(objectGuid=");
// Transform from hex string ("1AFF") to LDAP hex string ("\1A\FF")
string ldapHexGuid = ADUtils.HexStringToLdapHexString(guid.ToString());
if (ldapHexGuid == null)
throw new InvalidOperationException(SR.StoreCtxGuidIdentityClaimBadFormat);
sb.Append(ldapHexGuid);
sb.Append(')');
}
return sb.ToString();
}
protected static string MatchingIntConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
return (ExtensionTypeConverter(suggestedAdProperty, qmt.Value.GetType(), qmt.Value, qmt.Match));
}
protected static string DefaultValutMatchingDateTimeConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
Debug.Assert(qmt.Value is DateTime);
return (DateTimeFilterBuilder(suggestedAdProperty, (DateTime)qmt.Value, LdapConstants.defaultUtcTime, false, qmt.Match));
}
protected static string MatchingDateTimeConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
Debug.Assert(qmt.Value is DateTime);
return (ExtensionTypeConverter(suggestedAdProperty, qmt.Value.GetType(), qmt.Value, qmt.Match));
}
protected static string LastLogonConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(filter.Value is QbeMatchType);
QbeMatchType qmt = (QbeMatchType)filter.Value;
Debug.Assert(qmt.Value is DateTime);
Debug.Assert((suggestedAdProperty == "lastLogon") || (suggestedAdProperty == "lastLogonTimestamp"));
StringBuilder sb = new StringBuilder();
sb.Append("(|");
sb.Append(DateTimeFilterBuilder("lastLogon", (DateTime)qmt.Value, LdapConstants.defaultUtcTime, false, qmt.Match));
sb.Append(DateTimeFilterBuilder("lastLogonTimestamp", (DateTime)qmt.Value, LdapConstants.defaultUtcTime, true, qmt.Match));
sb.Append(')');
return (sb.ToString());
}
protected static string GroupTypeConverter(FilterBase filter, string suggestedAdProperty)
{
Debug.Assert(string.Equals(suggestedAdProperty, "groupType", StringComparison.OrdinalIgnoreCase));
Debug.Assert(filter is GroupIsSecurityGroupFilter || filter is GroupScopeFilter);
// 1.2.840.113556.1.4.803 is like a bit-wise AND operator
switch (filter.PropertyName)
{
case GroupIsSecurityGroupFilter.PropertyNameStatic:
bool value = (bool)filter.Value;
// GROUP_TYPE_SECURITY_ENABLED
// If group is enabled, it IS security-enabled
if (value)
return "(groupType:1.2.840.113556.1.4.803:=2147483648)";
else
return "(!(groupType:1.2.840.113556.1.4.803:=2147483648))";
case GroupScopeFilter.PropertyNameStatic:
GroupScope value2 = (GroupScope)filter.Value;
switch (value2)
{
case GroupScope.Local:
// GROUP_TYPE_RESOURCE_GROUP, a.k.a. ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP
return "(groupType:1.2.840.113556.1.4.803:=4)";
case GroupScope.Global:
// GROUP_TYPE_ACCOUNT_GROUP, a.k.a. ADS_GROUP_TYPE_GLOBAL_GROUP
return "(groupType:1.2.840.113556.1.4.803:=2)";
default:
// GROUP_TYPE_UNIVERSAL_GROUP, a.k.a. ADS_GROUP_TYPE_UNIVERSAL_GROUP
Debug.Assert(value2 == GroupScope.Universal);
return "(groupType:1.2.840.113556.1.4.803:=8)";
}
default:
Debug.Fail("ADStoreCtx.GroupTypeConverter: fell off end looking for " + filter.PropertyName);
return "";
}
}
public static string DateTimeFilterBuilder(string attributeName, DateTime searchValue, DateTime defaultValue, bool requirePresence, MatchType mt)
{
string ldapSearchValue = null;
string ldapDefaultValue = null;
bool defaultNeeded = false;
ldapSearchValue = ADUtils.DateTimeToADString(searchValue);
ldapDefaultValue = ADUtils.DateTimeToADString(defaultValue);
StringBuilder ldapFilter = new StringBuilder("(");
if (mt != MatchType.Equals && mt != MatchType.NotEquals)
{
defaultNeeded = true;
}
if (defaultNeeded || (mt == MatchType.NotEquals && requirePresence))
{
ldapFilter.Append("&(");
}
switch (mt)
{
case MatchType.Equals:
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapSearchValue);
break;
case MatchType.NotEquals:
ldapFilter.Append("!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapSearchValue);
ldapFilter.Append(')');
break;
case MatchType.GreaterThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append(">=");
ldapFilter.Append(ldapSearchValue);
break;
case MatchType.LessThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append("<=");
ldapFilter.Append(ldapSearchValue);
break;
case MatchType.GreaterThan:
ldapFilter.Append('&');
// Greater-than-or-equals (or less-than-or-equals))
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append(mt == MatchType.GreaterThan ? ">=" : "<=");
ldapFilter.Append(ldapSearchValue);
ldapFilter.Append(')');
// And not-equal
ldapFilter.Append("(!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapSearchValue);
ldapFilter.Append("))");
// And exists (need to include because of tristate LDAP logic)
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append("=*)");
break;
case MatchType.LessThan:
goto case MatchType.GreaterThan;
}
ldapFilter.Append(')');
bool closeFilter = false;
if (defaultNeeded)
{
ldapFilter.Append("(!");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapDefaultValue);
ldapFilter.Append(')');
closeFilter = true;
}
if (mt == MatchType.NotEquals && requirePresence)
{
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append("=*)");
closeFilter = true;
}
if (closeFilter)
ldapFilter.Append(')');
return (ldapFilter.ToString());
}
public static string ExtensionTypeConverter(string attributeName, Type type, object value, MatchType mt)
{
StringBuilder ldapFilter = new StringBuilder("(");
string ldapValue;
if (typeof(bool) == type)
{
ldapValue = ((bool)value ? "TRUE" : "FALSE");
}
else if (type is ICollection)
{
StringBuilder collectionFilter = new StringBuilder();
ICollection collection = (ICollection)value;
foreach (object o in collection)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionTypeConverter collection filter type " + o.GetType().ToString());
collectionFilter.Append(ExtensionTypeConverter(attributeName, o.GetType(), o, mt));
}
return collectionFilter.ToString();
}
else if (typeof(DateTime) == type)
{
ldapValue = ADUtils.DateTimeToADString((DateTime)value);
}
else
{
ldapValue = ADUtils.PAPIQueryToLdapQueryString(value.ToString());
}
switch (mt)
{
case MatchType.Equals:
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapValue);
break;
case MatchType.NotEquals:
ldapFilter.Append("!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapValue);
ldapFilter.Append(')');
break;
case MatchType.GreaterThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append(">=");
ldapFilter.Append(ldapValue);
break;
case MatchType.LessThanOrEquals:
ldapFilter.Append(attributeName);
ldapFilter.Append("<=");
ldapFilter.Append(ldapValue);
break;
case MatchType.GreaterThan:
ldapFilter.Append('&');
// Greater-than-or-equals (or less-than-or-equals))
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append(mt == MatchType.GreaterThan ? ">=" : "<=");
ldapFilter.Append(ldapValue);
ldapFilter.Append(')');
// And not-equal
ldapFilter.Append("(!(");
ldapFilter.Append(attributeName);
ldapFilter.Append('=');
ldapFilter.Append(ldapValue);
ldapFilter.Append("))");
// And exists (need to include because of tristate LDAP logic)
ldapFilter.Append('(');
ldapFilter.Append(attributeName);
ldapFilter.Append("=*)");
break;
case MatchType.LessThan:
goto case MatchType.GreaterThan;
}
ldapFilter.Append(')');
return ldapFilter.ToString();
}
protected static string ExtensionCacheConverter(FilterBase filter, string suggestedAdProperty)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter ");
StringBuilder query = new StringBuilder();
if (filter.Value != null)
{
ExtensionCache ec = (ExtensionCache)filter.Value;
foreach (KeyValuePair<string, ExtensionCacheValue> kvp in ec.properties)
{
Type type = kvp.Value.Type == null ? kvp.Value.Value.GetType() : kvp.Value.Type;
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter filter type " + type.ToString());
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter match type " + kvp.Value.MatchType.ToString());
if (kvp.Value.Value is ICollection)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter encountered collection.");
ICollection collection = (ICollection)kvp.Value.Value;
foreach (object o in collection)
{
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter collection filter type " + o.GetType().ToString());
query.Append(ExtensionTypeConverter(kvp.Key, o.GetType(), o, kvp.Value.MatchType));
}
}
else
{
query.Append(ExtensionTypeConverter(kvp.Key, type, kvp.Value.Value, kvp.Value.MatchType));
}
}
}
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "ExtensionCacheConverter complete built filter " + query.ToString());
return query.ToString();
}
///
/// <summary>
/// Adds the specified Property set to the TypeToPropListMap data structure.
/// </summary>
///
private void AddPropertySetToTypePropListMap(Type principalType, StringCollection propertySet)
{
lock (TypeToLdapPropListMap)
{
if (!TypeToLdapPropListMap[this.MappingTableIndex].ContainsKey(principalType))
{
TypeToLdapPropListMap[this.MappingTableIndex].Add(principalType, propertySet);
}
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/mono/mono/tests/verifier/valid_arglist.il | //
// vararg.il: Tests for varargs and refany instructions
//
.assembly extern mscorlib {
}
.assembly extern TestDriver {
}
.assembly 'vararg' {
}
.module 'vararg'
.class public auto ansi Tests extends [mscorlib]System.Object {
.method public static vararg int32 varargtest_refany (int32 last) cil managed {
.maxstack 16
.locals init (valuetype [mscorlib]System.ArgIterator it)
ldloca.s it
arglist
call instance void [mscorlib]System.ArgIterator::.ctor (valuetype [mscorlib]System.RuntimeArgumentHandle)
ldc.i4.0
ret
}
.method public static int32 Main () cil managed {
.maxstack 8
.entrypoint
ldc.i4.0
call int32 Tests::varargtest_refany(int32, ...)
ret
}
}
| //
// vararg.il: Tests for varargs and refany instructions
//
.assembly extern mscorlib {
}
.assembly extern TestDriver {
}
.assembly 'vararg' {
}
.module 'vararg'
.class public auto ansi Tests extends [mscorlib]System.Object {
.method public static vararg int32 varargtest_refany (int32 last) cil managed {
.maxstack 16
.locals init (valuetype [mscorlib]System.ArgIterator it)
ldloca.s it
arglist
call instance void [mscorlib]System.ArgIterator::.ctor (valuetype [mscorlib]System.RuntimeArgumentHandle)
ldc.i4.0
ret
}
.method public static int32 Main () cil managed {
.maxstack 8
.entrypoint
ldc.i4.0
call int32 Tests::varargtest_refany(int32, ...)
ret
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/Common/src/Interop/Linux/OpenLdap/Interop.Ber.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.DirectoryServices.Protocols;
using System.Diagnostics;
internal static partial class Interop
{
internal static partial class Ldap
{
public const int ber_default_successful_return_code = 0;
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_alloc_t")]
public static partial IntPtr ber_alloc(int option);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_init")]
public static partial IntPtr ber_init(BerVal value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_free")]
public static partial IntPtr ber_free(IntPtr berelement, int option);
public static int ber_printf_emptyarg(SafeBerHandle berElement, string format, nuint tag)
{
if (format == "{")
{
return ber_start_seq(berElement, tag);
}
else if (format == "}")
{
return ber_put_seq(berElement, tag);
}
else if (format == "[")
{
return ber_start_set(berElement, tag);
}
else if (format == "]")
{
return ber_put_set(berElement, tag);
}
else
{
Debug.Assert(format == "n");
return ber_put_null(berElement, tag);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_start_seq")]
public static partial int ber_start_seq(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_start_set")]
public static partial int ber_start_set(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_seq")]
public static partial int ber_put_seq(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_set")]
public static partial int ber_put_set(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_null")]
public static partial int ber_put_null(SafeBerHandle berElement, nuint tag);
public static int ber_printf_int(SafeBerHandle berElement, string format, int value, nuint tag)
{
if (format == "i")
{
return ber_put_int(berElement, value, tag);
}
else if (format == "e")
{
return ber_put_enum(berElement, value, tag);
}
else
{
Debug.Assert(format == "b");
return ber_put_boolean(berElement, value, tag);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_int")]
public static partial int ber_put_int(SafeBerHandle berElement, int value, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_enum")]
public static partial int ber_put_enum(SafeBerHandle berElement, int value, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_boolean")]
public static partial int ber_put_boolean(SafeBerHandle berElement, int value, nuint tag);
public static int ber_printf_bytearray(SafeBerHandle berElement, string format, HGlobalMemHandle value, nuint length, nuint tag)
{
if (format == "o")
{
return ber_put_ostring(berElement, value, length, tag);
}
else if (format == "s")
{
return ber_put_string(berElement, value, tag);
}
else
{
Debug.Assert(format == "X");
return ber_put_bitstring(berElement, value, length, tag);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_ostring")]
private static partial int ber_put_ostring(SafeBerHandle berElement, HGlobalMemHandle value, nuint length, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_string")]
private static partial int ber_put_string(SafeBerHandle berElement, HGlobalMemHandle value, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_bitstring")]
private static partial int ber_put_bitstring(SafeBerHandle berElement, HGlobalMemHandle value, nuint length, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_flatten")]
public static partial int ber_flatten(SafeBerHandle berElement, ref IntPtr value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_bvfree")]
public static partial int ber_bvfree(IntPtr value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_bvecfree")]
public static partial int ber_bvecfree(IntPtr value);
public static int ber_scanf_emptyarg(SafeBerHandle berElement, string format)
{
Debug.Assert(format == "{" || format == "}" || format == "[" || format == "]" || format == "n" || format == "x");
if (format == "{" || format == "[")
{
nuint len = 0;
return ber_skip_tag(berElement, ref len);
}
else if (format == "]" || format == "}")
{
return ber_default_successful_return_code;
}
else
{
Debug.Assert(format == "n" || format == "x");
return ber_get_null(berElement);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_skip_tag")]
private static partial int ber_skip_tag(SafeBerHandle berElement, ref nuint len);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_null")]
private static partial int ber_get_null(SafeBerHandle berElement);
public static int ber_scanf_int(SafeBerHandle berElement, string format, ref int value)
{
if (format == "i")
{
return ber_get_int(berElement, ref value);
}
else if (format == "e")
{
return ber_get_enum(berElement, ref value);
}
else
{
Debug.Assert(format == "b");
return ber_get_boolean(berElement, ref value);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_int")]
private static partial int ber_get_int(SafeBerHandle berElement, ref int value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_enum")]
private static partial int ber_get_enum(SafeBerHandle berElement, ref int value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_boolean")]
private static partial int ber_get_boolean(SafeBerHandle berElement, ref int value);
public static int ber_scanf_bitstring(SafeBerHandle berElement, string format, ref IntPtr value, ref uint bitLength)
{
Debug.Assert(format == "B");
nuint bitLengthAsNuint = 0;
int res = ber_get_stringb(berElement, ref value, ref bitLengthAsNuint);
bitLength = (uint)bitLengthAsNuint;
return res;
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_stringb")]
private static partial int ber_get_stringb(SafeBerHandle berElement, ref IntPtr value, ref nuint bitLength);
public static int ber_scanf_ptr(SafeBerHandle berElement, string format, ref IntPtr value)
{
Debug.Assert(format == "O");
return ber_get_stringal(berElement, ref value);
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_stringal")]
private static partial int ber_get_stringal(SafeBerHandle berElement, ref IntPtr value);
public static int ber_printf_berarray(SafeBerHandle berElement, string format, IntPtr value, nuint tag)
{
Debug.Assert(format == "v" || format == "V");
// V and v are not supported on Unix yet.
return -1;
}
public static int ber_scanf_multibytearray(SafeBerHandle berElement, string format, ref IntPtr value)
{
Debug.Assert(format == "v" || format == "V");
// V and v are not supported on Unix yet.
return -1;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
using System.DirectoryServices.Protocols;
using System.Diagnostics;
internal static partial class Interop
{
internal static partial class Ldap
{
public const int ber_default_successful_return_code = 0;
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_alloc_t")]
public static partial IntPtr ber_alloc(int option);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_init")]
public static partial IntPtr ber_init(BerVal value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_free")]
public static partial IntPtr ber_free(IntPtr berelement, int option);
public static int ber_printf_emptyarg(SafeBerHandle berElement, string format, nuint tag)
{
if (format == "{")
{
return ber_start_seq(berElement, tag);
}
else if (format == "}")
{
return ber_put_seq(berElement, tag);
}
else if (format == "[")
{
return ber_start_set(berElement, tag);
}
else if (format == "]")
{
return ber_put_set(berElement, tag);
}
else
{
Debug.Assert(format == "n");
return ber_put_null(berElement, tag);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_start_seq")]
public static partial int ber_start_seq(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_start_set")]
public static partial int ber_start_set(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_seq")]
public static partial int ber_put_seq(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_set")]
public static partial int ber_put_set(SafeBerHandle berElement, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_null")]
public static partial int ber_put_null(SafeBerHandle berElement, nuint tag);
public static int ber_printf_int(SafeBerHandle berElement, string format, int value, nuint tag)
{
if (format == "i")
{
return ber_put_int(berElement, value, tag);
}
else if (format == "e")
{
return ber_put_enum(berElement, value, tag);
}
else
{
Debug.Assert(format == "b");
return ber_put_boolean(berElement, value, tag);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_int")]
public static partial int ber_put_int(SafeBerHandle berElement, int value, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_enum")]
public static partial int ber_put_enum(SafeBerHandle berElement, int value, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_boolean")]
public static partial int ber_put_boolean(SafeBerHandle berElement, int value, nuint tag);
public static int ber_printf_bytearray(SafeBerHandle berElement, string format, HGlobalMemHandle value, nuint length, nuint tag)
{
if (format == "o")
{
return ber_put_ostring(berElement, value, length, tag);
}
else if (format == "s")
{
return ber_put_string(berElement, value, tag);
}
else
{
Debug.Assert(format == "X");
return ber_put_bitstring(berElement, value, length, tag);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_ostring")]
private static partial int ber_put_ostring(SafeBerHandle berElement, HGlobalMemHandle value, nuint length, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_string")]
private static partial int ber_put_string(SafeBerHandle berElement, HGlobalMemHandle value, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_put_bitstring")]
private static partial int ber_put_bitstring(SafeBerHandle berElement, HGlobalMemHandle value, nuint length, nuint tag);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_flatten")]
public static partial int ber_flatten(SafeBerHandle berElement, ref IntPtr value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_bvfree")]
public static partial int ber_bvfree(IntPtr value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_bvecfree")]
public static partial int ber_bvecfree(IntPtr value);
public static int ber_scanf_emptyarg(SafeBerHandle berElement, string format)
{
Debug.Assert(format == "{" || format == "}" || format == "[" || format == "]" || format == "n" || format == "x");
if (format == "{" || format == "[")
{
nuint len = 0;
return ber_skip_tag(berElement, ref len);
}
else if (format == "]" || format == "}")
{
return ber_default_successful_return_code;
}
else
{
Debug.Assert(format == "n" || format == "x");
return ber_get_null(berElement);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_skip_tag")]
private static partial int ber_skip_tag(SafeBerHandle berElement, ref nuint len);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_null")]
private static partial int ber_get_null(SafeBerHandle berElement);
public static int ber_scanf_int(SafeBerHandle berElement, string format, ref int value)
{
if (format == "i")
{
return ber_get_int(berElement, ref value);
}
else if (format == "e")
{
return ber_get_enum(berElement, ref value);
}
else
{
Debug.Assert(format == "b");
return ber_get_boolean(berElement, ref value);
}
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_int")]
private static partial int ber_get_int(SafeBerHandle berElement, ref int value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_enum")]
private static partial int ber_get_enum(SafeBerHandle berElement, ref int value);
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_boolean")]
private static partial int ber_get_boolean(SafeBerHandle berElement, ref int value);
public static int ber_scanf_bitstring(SafeBerHandle berElement, string format, ref IntPtr value, ref uint bitLength)
{
Debug.Assert(format == "B");
nuint bitLengthAsNuint = 0;
int res = ber_get_stringb(berElement, ref value, ref bitLengthAsNuint);
bitLength = (uint)bitLengthAsNuint;
return res;
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_stringb")]
private static partial int ber_get_stringb(SafeBerHandle berElement, ref IntPtr value, ref nuint bitLength);
public static int ber_scanf_ptr(SafeBerHandle berElement, string format, ref IntPtr value)
{
Debug.Assert(format == "O");
return ber_get_stringal(berElement, ref value);
}
[GeneratedDllImport(Libraries.OpenLdap, EntryPoint = "ber_get_stringal")]
private static partial int ber_get_stringal(SafeBerHandle berElement, ref IntPtr value);
public static int ber_printf_berarray(SafeBerHandle berElement, string format, IntPtr value, nuint tag)
{
Debug.Assert(format == "v" || format == "V");
// V and v are not supported on Unix yet.
return -1;
}
public static int ber_scanf_multibytearray(SafeBerHandle berElement, string format, ref IntPtr value)
{
Debug.Assert(format == "v" || format == "V");
// V and v are not supported on Unix yet.
return -1;
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/native/corehost/ijwhost/i386/bootstrap_thunk.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef IJW_BOOTSTRAP_THUNK_H
#define IJW_BOOTSTRAP_THUNK_H
#if !defined(TARGET_X86)
#error "This file should only be included on x86 builds."
#endif
#include "pal.h"
#include "corhdr.h"
extern "C" void STDMETHODCALLTYPE start_runtime_thunk_stub();
#include <pshpack1.h>
//=================================================================================
class bootstrap_thunk
{
private:
std::uint32_t m_token;
struct {
BYTE m_call; //0xe8
UINT32 m_thunkFcn; //bootstrapper function
} m_code;
pal::dll_t m_dll; // pal::dll_t of this module
std::uintptr_t *m_slot; // VTable slot for this thunk
public:
// Get thunk from the return address that the call instruction would have pushed
static bootstrap_thunk *get_thunk_from_cookie(std::uintptr_t cookie);
// Get thunk from the return address that the call instruction would have pushed
static bootstrap_thunk *get_thunk_from_entrypoint(std::uintptr_t entryAddr);
// Initializes the thunk to point to pThunkInitFcn that will load the
// runtime and perform the real thunk initialization.
void initialize(std::uintptr_t pThunkInitFcn,
pal::dll_t dll,
std::uint32_t token,
std::uintptr_t *pSlot);
// Returns the slot address of the vtable entry for this thunk
std::uintptr_t *get_slot_address();
// Returns the pal::dll_t for this thunk's module
pal::dll_t get_dll_handle();
// Returns the token of this thunk
std::uint32_t get_token();
std::uintptr_t get_entrypoint();
};
#include <poppack.h>
#endif
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef IJW_BOOTSTRAP_THUNK_H
#define IJW_BOOTSTRAP_THUNK_H
#if !defined(TARGET_X86)
#error "This file should only be included on x86 builds."
#endif
#include "pal.h"
#include "corhdr.h"
extern "C" void STDMETHODCALLTYPE start_runtime_thunk_stub();
#include <pshpack1.h>
//=================================================================================
class bootstrap_thunk
{
private:
std::uint32_t m_token;
struct {
BYTE m_call; //0xe8
UINT32 m_thunkFcn; //bootstrapper function
} m_code;
pal::dll_t m_dll; // pal::dll_t of this module
std::uintptr_t *m_slot; // VTable slot for this thunk
public:
// Get thunk from the return address that the call instruction would have pushed
static bootstrap_thunk *get_thunk_from_cookie(std::uintptr_t cookie);
// Get thunk from the return address that the call instruction would have pushed
static bootstrap_thunk *get_thunk_from_entrypoint(std::uintptr_t entryAddr);
// Initializes the thunk to point to pThunkInitFcn that will load the
// runtime and perform the real thunk initialization.
void initialize(std::uintptr_t pThunkInitFcn,
pal::dll_t dll,
std::uint32_t token,
std::uintptr_t *pSlot);
// Returns the slot address of the vtable entry for this thunk
std::uintptr_t *get_slot_address();
// Returns the pal::dll_t for this thunk's module
pal::dll_t get_dll_handle();
// Returns the token of this thunk
std::uint32_t get_token();
std::uintptr_t get_entrypoint();
};
#include <poppack.h>
#endif
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/coreclr/pal/src/arch/arm64/asmconstants.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef __PAL_ARM64_ASMCONSTANTS_H__
#define __PAL_ARM64_ASMCONSTANTS_H__
#define CONTEXT_ARM64 0x00400000L
#define CONTEXT_CONTROL_BIT (0)
#define CONTEXT_INTEGER_BIT (1)
#define CONTEXT_FLOATING_POINT_BIT (2)
#define CONTEXT_DEBUG_REGISTERS_BIT (3)
#define CONTEXT_CONTROL (CONTEXT_ARM64 | (1L << CONTEXT_CONTROL_BIT))
#define CONTEXT_INTEGER (CONTEXT_ARM64 | (1 << CONTEXT_INTEGER_BIT))
#define CONTEXT_FLOATING_POINT (CONTEXT_ARM64 | (1 << CONTEXT_FLOATING_POINT_BIT))
#define CONTEXT_DEBUG_REGISTERS (CONTEXT_ARM64 | (1 << CONTEXT_DEBUG_REGISTERS_BIT))
#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_FLOATING_POINT)
#define CONTEXT_ContextFlags 0
#define CONTEXT_Cpsr CONTEXT_ContextFlags+4
#define CONTEXT_X0 CONTEXT_Cpsr+4
#define CONTEXT_X1 CONTEXT_X0+8
#define CONTEXT_X2 CONTEXT_X1+8
#define CONTEXT_X3 CONTEXT_X2+8
#define CONTEXT_X4 CONTEXT_X3+8
#define CONTEXT_X5 CONTEXT_X4+8
#define CONTEXT_X6 CONTEXT_X5+8
#define CONTEXT_X7 CONTEXT_X6+8
#define CONTEXT_X8 CONTEXT_X7+8
#define CONTEXT_X9 CONTEXT_X8+8
#define CONTEXT_X10 CONTEXT_X9+8
#define CONTEXT_X11 CONTEXT_X10+8
#define CONTEXT_X12 CONTEXT_X11+8
#define CONTEXT_X13 CONTEXT_X12+8
#define CONTEXT_X14 CONTEXT_X13+8
#define CONTEXT_X15 CONTEXT_X14+8
#define CONTEXT_X16 CONTEXT_X15+8
#define CONTEXT_X17 CONTEXT_X16+8
#define CONTEXT_X18 CONTEXT_X17+8
#define CONTEXT_X19 CONTEXT_X18+8
#define CONTEXT_X20 CONTEXT_X19+8
#define CONTEXT_X21 CONTEXT_X20+8
#define CONTEXT_X22 CONTEXT_X21+8
#define CONTEXT_X23 CONTEXT_X22+8
#define CONTEXT_X24 CONTEXT_X23+8
#define CONTEXT_X25 CONTEXT_X24+8
#define CONTEXT_X26 CONTEXT_X25+8
#define CONTEXT_X27 CONTEXT_X26+8
#define CONTEXT_X28 CONTEXT_X27+8
#define CONTEXT_Fp CONTEXT_X28+8
#define CONTEXT_Lr CONTEXT_Fp+8
#define CONTEXT_Sp CONTEXT_Lr+8
#define CONTEXT_Pc CONTEXT_Sp+8
#define CONTEXT_NEON_OFFSET CONTEXT_Pc+8
#define CONTEXT_V0 0
#define CONTEXT_V1 CONTEXT_V0+16
#define CONTEXT_V2 CONTEXT_V1+16
#define CONTEXT_V3 CONTEXT_V2+16
#define CONTEXT_V4 CONTEXT_V3+16
#define CONTEXT_V5 CONTEXT_V4+16
#define CONTEXT_V6 CONTEXT_V5+16
#define CONTEXT_V7 CONTEXT_V6+16
#define CONTEXT_V8 CONTEXT_V7+16
#define CONTEXT_V9 CONTEXT_V8+16
#define CONTEXT_V10 CONTEXT_V9+16
#define CONTEXT_V11 CONTEXT_V10+16
#define CONTEXT_V12 CONTEXT_V11+16
#define CONTEXT_V13 CONTEXT_V12+16
#define CONTEXT_V14 CONTEXT_V13+16
#define CONTEXT_V15 CONTEXT_V14+16
#define CONTEXT_V16 CONTEXT_V15+16
#define CONTEXT_V17 CONTEXT_V16+16
#define CONTEXT_V18 CONTEXT_V17+16
#define CONTEXT_V19 CONTEXT_V18+16
#define CONTEXT_V20 CONTEXT_V19+16
#define CONTEXT_V21 CONTEXT_V20+16
#define CONTEXT_V22 CONTEXT_V21+16
#define CONTEXT_V23 CONTEXT_V22+16
#define CONTEXT_V24 CONTEXT_V23+16
#define CONTEXT_V25 CONTEXT_V24+16
#define CONTEXT_V26 CONTEXT_V25+16
#define CONTEXT_V27 CONTEXT_V26+16
#define CONTEXT_V28 CONTEXT_V27+16
#define CONTEXT_V29 CONTEXT_V28+16
#define CONTEXT_V30 CONTEXT_V29+16
#define CONTEXT_V31 CONTEXT_V30+16
#define CONTEXT_FLOAT_CONTROL_OFFSET CONTEXT_V31+16
#define CONTEXT_Fpcr 0
#define CONTEXT_Fpsr CONTEXT_Fpcr+8
#define CONTEXT_Size ((CONTEXT_NEON_OFFSET + CONTEXT_Fpsr + 8 + 0xf) & ~0xf)
#endif
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#ifndef __PAL_ARM64_ASMCONSTANTS_H__
#define __PAL_ARM64_ASMCONSTANTS_H__
#define CONTEXT_ARM64 0x00400000L
#define CONTEXT_CONTROL_BIT (0)
#define CONTEXT_INTEGER_BIT (1)
#define CONTEXT_FLOATING_POINT_BIT (2)
#define CONTEXT_DEBUG_REGISTERS_BIT (3)
#define CONTEXT_CONTROL (CONTEXT_ARM64 | (1L << CONTEXT_CONTROL_BIT))
#define CONTEXT_INTEGER (CONTEXT_ARM64 | (1 << CONTEXT_INTEGER_BIT))
#define CONTEXT_FLOATING_POINT (CONTEXT_ARM64 | (1 << CONTEXT_FLOATING_POINT_BIT))
#define CONTEXT_DEBUG_REGISTERS (CONTEXT_ARM64 | (1 << CONTEXT_DEBUG_REGISTERS_BIT))
#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_FLOATING_POINT)
#define CONTEXT_ContextFlags 0
#define CONTEXT_Cpsr CONTEXT_ContextFlags+4
#define CONTEXT_X0 CONTEXT_Cpsr+4
#define CONTEXT_X1 CONTEXT_X0+8
#define CONTEXT_X2 CONTEXT_X1+8
#define CONTEXT_X3 CONTEXT_X2+8
#define CONTEXT_X4 CONTEXT_X3+8
#define CONTEXT_X5 CONTEXT_X4+8
#define CONTEXT_X6 CONTEXT_X5+8
#define CONTEXT_X7 CONTEXT_X6+8
#define CONTEXT_X8 CONTEXT_X7+8
#define CONTEXT_X9 CONTEXT_X8+8
#define CONTEXT_X10 CONTEXT_X9+8
#define CONTEXT_X11 CONTEXT_X10+8
#define CONTEXT_X12 CONTEXT_X11+8
#define CONTEXT_X13 CONTEXT_X12+8
#define CONTEXT_X14 CONTEXT_X13+8
#define CONTEXT_X15 CONTEXT_X14+8
#define CONTEXT_X16 CONTEXT_X15+8
#define CONTEXT_X17 CONTEXT_X16+8
#define CONTEXT_X18 CONTEXT_X17+8
#define CONTEXT_X19 CONTEXT_X18+8
#define CONTEXT_X20 CONTEXT_X19+8
#define CONTEXT_X21 CONTEXT_X20+8
#define CONTEXT_X22 CONTEXT_X21+8
#define CONTEXT_X23 CONTEXT_X22+8
#define CONTEXT_X24 CONTEXT_X23+8
#define CONTEXT_X25 CONTEXT_X24+8
#define CONTEXT_X26 CONTEXT_X25+8
#define CONTEXT_X27 CONTEXT_X26+8
#define CONTEXT_X28 CONTEXT_X27+8
#define CONTEXT_Fp CONTEXT_X28+8
#define CONTEXT_Lr CONTEXT_Fp+8
#define CONTEXT_Sp CONTEXT_Lr+8
#define CONTEXT_Pc CONTEXT_Sp+8
#define CONTEXT_NEON_OFFSET CONTEXT_Pc+8
#define CONTEXT_V0 0
#define CONTEXT_V1 CONTEXT_V0+16
#define CONTEXT_V2 CONTEXT_V1+16
#define CONTEXT_V3 CONTEXT_V2+16
#define CONTEXT_V4 CONTEXT_V3+16
#define CONTEXT_V5 CONTEXT_V4+16
#define CONTEXT_V6 CONTEXT_V5+16
#define CONTEXT_V7 CONTEXT_V6+16
#define CONTEXT_V8 CONTEXT_V7+16
#define CONTEXT_V9 CONTEXT_V8+16
#define CONTEXT_V10 CONTEXT_V9+16
#define CONTEXT_V11 CONTEXT_V10+16
#define CONTEXT_V12 CONTEXT_V11+16
#define CONTEXT_V13 CONTEXT_V12+16
#define CONTEXT_V14 CONTEXT_V13+16
#define CONTEXT_V15 CONTEXT_V14+16
#define CONTEXT_V16 CONTEXT_V15+16
#define CONTEXT_V17 CONTEXT_V16+16
#define CONTEXT_V18 CONTEXT_V17+16
#define CONTEXT_V19 CONTEXT_V18+16
#define CONTEXT_V20 CONTEXT_V19+16
#define CONTEXT_V21 CONTEXT_V20+16
#define CONTEXT_V22 CONTEXT_V21+16
#define CONTEXT_V23 CONTEXT_V22+16
#define CONTEXT_V24 CONTEXT_V23+16
#define CONTEXT_V25 CONTEXT_V24+16
#define CONTEXT_V26 CONTEXT_V25+16
#define CONTEXT_V27 CONTEXT_V26+16
#define CONTEXT_V28 CONTEXT_V27+16
#define CONTEXT_V29 CONTEXT_V28+16
#define CONTEXT_V30 CONTEXT_V29+16
#define CONTEXT_V31 CONTEXT_V30+16
#define CONTEXT_FLOAT_CONTROL_OFFSET CONTEXT_V31+16
#define CONTEXT_Fpcr 0
#define CONTEXT_Fpsr CONTEXT_Fpcr+8
#define CONTEXT_Size ((CONTEXT_NEON_OFFSET + CONTEXT_Fpsr + 8 + 0xf) & ~0xf)
#endif
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest457/Generated457.ilproj | <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated457.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated457.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/mono/mono/tests/verifier/make_overlapped_test.sh | #! /bin/sh
SED="sed"
if [ `which gsed 2> /dev/null` ]; then
SED="gsed"
fi
TEST_NAME=$1
TEST_VALIDITY=$2
TEST_POS_0=$3
TEST_POS_1=$4
TEST_POS_2=$5
TEST_TYPE_0=$6
if [ "x$TEST_TYPE_0" = "x" ]; then
TEST_TYPE_0="int32";
fi
TEST_FILE=`echo ${TEST_VALIDITY}_${TEST_NAME} | $SED -e 's/ /_/g' -e 's/\./_/g' -e 's/&/mp/g' -e 's/\[/_/g' -e 's/\]/_/g'`_generated.il
echo $TEST_FILE
TEST_TYPE1=`echo $TEST_TYPE1 | $SED -s 's/&/\\\&/'`
$SED -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/TYPE_0/${TEST_TYPE_0}/g"> $TEST_FILE <<//EOF
// VALIDITY CIL which breaks the ECMA-335 rules.
// this CIL should fail verification by a conforming CLI verifier.
.assembly '${TEST_NAME}_generated'
{
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.class explicit sealed Overlapped extends [mscorlib]System.ValueType
{
.field [${TEST_POS_0}] public TYPE_0 intVal
.field [${TEST_POS_1}] public object objVal
.field [${TEST_POS_2}] public int32 intVal2
.method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
{
.maxstack 8
ret
}
}
.method public static int32 Main() cil managed
{
.entrypoint
.maxstack 2
.locals init (Overlapped val)
ldloca 0
initobj Overlapped
leave branch_target
branch_target:
ldc.i4.0
ret
}
//EOF
| #! /bin/sh
SED="sed"
if [ `which gsed 2> /dev/null` ]; then
SED="gsed"
fi
TEST_NAME=$1
TEST_VALIDITY=$2
TEST_POS_0=$3
TEST_POS_1=$4
TEST_POS_2=$5
TEST_TYPE_0=$6
if [ "x$TEST_TYPE_0" = "x" ]; then
TEST_TYPE_0="int32";
fi
TEST_FILE=`echo ${TEST_VALIDITY}_${TEST_NAME} | $SED -e 's/ /_/g' -e 's/\./_/g' -e 's/&/mp/g' -e 's/\[/_/g' -e 's/\]/_/g'`_generated.il
echo $TEST_FILE
TEST_TYPE1=`echo $TEST_TYPE1 | $SED -s 's/&/\\\&/'`
$SED -e "s/VALIDITY/${TEST_VALIDITY}/g" -e "s/TYPE_0/${TEST_TYPE_0}/g"> $TEST_FILE <<//EOF
// VALIDITY CIL which breaks the ECMA-335 rules.
// this CIL should fail verification by a conforming CLI verifier.
.assembly '${TEST_NAME}_generated'
{
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.class explicit sealed Overlapped extends [mscorlib]System.ValueType
{
.field [${TEST_POS_0}] public TYPE_0 intVal
.field [${TEST_POS_1}] public object objVal
.field [${TEST_POS_2}] public int32 intVal2
.method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
{
.maxstack 8
ret
}
}
.method public static int32 Main() cil managed
{
.entrypoint
.maxstack 2
.locals init (Overlapped val)
ldloca 0
initobj Overlapped
leave branch_target
branch_target:
ldc.i4.0
ret
}
//EOF
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
namespace Microsoft.NET.HostModel.Bundle
{
/// <summary>
/// FileEntry: Records information about embedded files.
///
/// The bundle manifest records the following meta-data for each
/// file embedded in the bundle:
/// * Type (1 byte)
/// * NameLength (7-bit extension encoding, typically 1 byte)
/// * Name ("NameLength" Bytes)
/// * Offset (Int64)
/// * Size (Int64)
/// === present only in bundle version 3+
/// * CompressedSize (Int64) 0 indicates No Compression
/// </summary>
public class FileEntry
{
public readonly uint BundleMajorVersion;
public readonly long Offset;
public readonly long Size;
public readonly long CompressedSize;
public readonly FileType Type;
public readonly string RelativePath; // Path of an embedded file, relative to the Bundle source-directory.
public const char DirectorySeparatorChar = '/';
public FileEntry(FileType fileType, string relativePath, long offset, long size, long compressedSize, uint bundleMajorVersion)
{
BundleMajorVersion = bundleMajorVersion;
Type = fileType;
RelativePath = relativePath.Replace('\\', DirectorySeparatorChar);
Offset = offset;
Size = size;
CompressedSize = compressedSize;
}
public void Write(BinaryWriter writer)
{
writer.Write(Offset);
writer.Write(Size);
// compression is used only in version 6.0+
if (BundleMajorVersion >= 6)
{
writer.Write(CompressedSize);
}
writer.Write((byte)Type);
writer.Write(RelativePath);
}
public override string ToString() => $"{RelativePath} [{Type}] @{Offset} Sz={Size} CompressedSz={CompressedSize}";
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
namespace Microsoft.NET.HostModel.Bundle
{
/// <summary>
/// FileEntry: Records information about embedded files.
///
/// The bundle manifest records the following meta-data for each
/// file embedded in the bundle:
/// * Type (1 byte)
/// * NameLength (7-bit extension encoding, typically 1 byte)
/// * Name ("NameLength" Bytes)
/// * Offset (Int64)
/// * Size (Int64)
/// === present only in bundle version 3+
/// * CompressedSize (Int64) 0 indicates No Compression
/// </summary>
public class FileEntry
{
public readonly uint BundleMajorVersion;
public readonly long Offset;
public readonly long Size;
public readonly long CompressedSize;
public readonly FileType Type;
public readonly string RelativePath; // Path of an embedded file, relative to the Bundle source-directory.
public const char DirectorySeparatorChar = '/';
public FileEntry(FileType fileType, string relativePath, long offset, long size, long compressedSize, uint bundleMajorVersion)
{
BundleMajorVersion = bundleMajorVersion;
Type = fileType;
RelativePath = relativePath.Replace('\\', DirectorySeparatorChar);
Offset = offset;
Size = size;
CompressedSize = compressedSize;
}
public void Write(BinaryWriter writer)
{
writer.Write(Offset);
writer.Write(Size);
// compression is used only in version 6.0+
if (BundleMajorVersion >= 6)
{
writer.Write(CompressedSize);
}
writer.Write((byte)Type);
writer.Write(RelativePath);
}
public override string ToString() => $"{RelativePath} [{Type}] @{Offset} Sz={Size} CompressedSz={CompressedSize}";
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Configuration.ConfigurationManager/tests/System/Configuration/StringValidatorAttributeTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Configuration;
using Xunit;
namespace System.ConfigurationTests
{
public class StringValidatorAttributeTests
{
[Fact]
public void MinLengthNotSpecified_Get()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
Assert.Equal(0, attribute.MinLength);
}
[Fact]
public void MinLength_GetAfterSet()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MinLength = 5;
Assert.Equal(5, attribute.MinLength);
}
[Fact]
public void MaxLengthNotSpecified_Get()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
Assert.Equal(int.MaxValue, attribute.MaxLength);
}
[Fact]
public void MaxLength_GetAfterSet()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MaxLength = 10;
Assert.Equal(10, attribute.MaxLength);
}
[Fact]
public void MinLength_SmallerThanMaxLength()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MaxLength = 10;
Assert.Throws<ArgumentOutOfRangeException>(() => attribute.MinLength = 11);
}
[Fact]
public void MaxLength_BiggerThanMinLength()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MinLength = 5;
Assert.Throws<ArgumentOutOfRangeException>(() => attribute.MaxLength = 4);
}
[Fact]
public void InvalidCharacters_GetAndSet()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.InvalidCharacters = "_-";
Assert.Equal("_-", attribute.InvalidCharacters);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Configuration;
using Xunit;
namespace System.ConfigurationTests
{
public class StringValidatorAttributeTests
{
[Fact]
public void MinLengthNotSpecified_Get()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
Assert.Equal(0, attribute.MinLength);
}
[Fact]
public void MinLength_GetAfterSet()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MinLength = 5;
Assert.Equal(5, attribute.MinLength);
}
[Fact]
public void MaxLengthNotSpecified_Get()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
Assert.Equal(int.MaxValue, attribute.MaxLength);
}
[Fact]
public void MaxLength_GetAfterSet()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MaxLength = 10;
Assert.Equal(10, attribute.MaxLength);
}
[Fact]
public void MinLength_SmallerThanMaxLength()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MaxLength = 10;
Assert.Throws<ArgumentOutOfRangeException>(() => attribute.MinLength = 11);
}
[Fact]
public void MaxLength_BiggerThanMinLength()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.MinLength = 5;
Assert.Throws<ArgumentOutOfRangeException>(() => attribute.MaxLength = 4);
}
[Fact]
public void InvalidCharacters_GetAndSet()
{
StringValidatorAttribute attribute = new StringValidatorAttribute();
attribute.InvalidCharacters = "_-";
Assert.Equal("_-", attribute.InvalidCharacters);
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Regression/CLR-x86-JIT/V1-M09/b15786/b15786.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/tests/JIT/Methodical/refany/gcreport_ro.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="gcreport.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="gcreport.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyDependencyResolver.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Text;
namespace System.Runtime.Loader
{
[UnsupportedOSPlatform("android")]
[UnsupportedOSPlatform("browser")]
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public sealed class AssemblyDependencyResolver
{
/// <summary>
/// The name of the neutral culture (same value as in Variables::Init in CoreCLR)
/// </summary>
private const string NeutralCultureName = "neutral";
/// <summary>
/// The extension of resource assembly (same as in BindSatelliteResourceByResourceRoots in CoreCLR)
/// </summary>
private const string ResourceAssemblyExtension = ".dll";
private readonly Dictionary<string, string> _assemblyPaths;
private readonly string[] _nativeSearchPaths;
private readonly string[] _resourceSearchPaths;
private readonly string[] _assemblyDirectorySearchPaths;
public AssemblyDependencyResolver(string componentAssemblyPath!!)
{
string? assemblyPathsList = null;
string? nativeSearchPathsList = null;
string? resourceSearchPathsList = null;
int returnCode = 0;
StringBuilder errorMessage = new StringBuilder();
try
{
// Setup error writer for this thread. This makes the hostpolicy redirect all error output
// to the writer specified. Have to store the previous writer to set it back once this is done.
var errorWriter = new Interop.HostPolicy.corehost_error_writer_fn(message => errorMessage.AppendLine(Marshal.PtrToStringAuto(message)));
IntPtr errorWriterPtr = Marshal.GetFunctionPointerForDelegate(errorWriter);
IntPtr previousErrorWriterPtr = Interop.HostPolicy.corehost_set_error_writer(errorWriterPtr);
try
{
// Call hostpolicy to do the actual work of finding .deps.json, parsing it and extracting
// information from it.
returnCode = Interop.HostPolicy.corehost_resolve_component_dependencies(
componentAssemblyPath,
(assemblyPaths, nativeSearchPaths, resourceSearchPaths) =>
{
assemblyPathsList = Marshal.PtrToStringAuto(assemblyPaths);
nativeSearchPathsList = Marshal.PtrToStringAuto(nativeSearchPaths);
resourceSearchPathsList = Marshal.PtrToStringAuto(resourceSearchPaths);
});
}
finally
{
// Reset the error write to the one used before
Interop.HostPolicy.corehost_set_error_writer(previousErrorWriterPtr);
GC.KeepAlive(errorWriter);
}
}
catch (EntryPointNotFoundException entryPointNotFoundException)
{
throw new InvalidOperationException(SR.AssemblyDependencyResolver_FailedToLoadHostpolicy, entryPointNotFoundException);
}
catch (DllNotFoundException dllNotFoundException)
{
throw new InvalidOperationException(SR.AssemblyDependencyResolver_FailedToLoadHostpolicy, dllNotFoundException);
}
if (returnCode != 0)
{
// Something went wrong - report a failure
throw new InvalidOperationException(SR.Format(
SR.AssemblyDependencyResolver_FailedToResolveDependencies,
componentAssemblyPath,
returnCode,
errorMessage));
}
string[] assemblyPaths = SplitPathsList(assemblyPathsList);
// Assembly simple names are case insensitive per the runtime behavior
// (see SimpleNameToFileNameMapTraits for the TPA lookup hash).
_assemblyPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
foreach (string assemblyPath in assemblyPaths)
{
// Add the first entry with the same simple assembly name if there are multiples
// and ignore others
_assemblyPaths.TryAdd(Path.GetFileNameWithoutExtension(assemblyPath), assemblyPath);
}
_nativeSearchPaths = SplitPathsList(nativeSearchPathsList);
_resourceSearchPaths = SplitPathsList(resourceSearchPathsList);
_assemblyDirectorySearchPaths = new string[1] { Path.GetDirectoryName(componentAssemblyPath)! };
}
public string? ResolveAssemblyToPath(AssemblyName assemblyName!!)
{
// Determine if the assembly name is for a satellite assembly or not
// This is the same logic as in AssemblyBinder::BindByTpaList in CoreCLR
// - If the culture name is non-empty and it's not 'neutral'
// - The culture name is the value of the AssemblyName.Culture.Name
// (CoreCLR gets this and stores it as the culture name in the internal assembly name)
// AssemblyName.CultureName is just a shortcut to AssemblyName.Culture.Name.
if (!string.IsNullOrEmpty(assemblyName.CultureName) &&
!string.Equals(assemblyName.CultureName, NeutralCultureName, StringComparison.OrdinalIgnoreCase))
{
// Load satellite assembly
// Search resource search paths by appending the culture name and the expected assembly file name.
// Copies the logic in BindSatelliteResourceByResourceRoots in CoreCLR.
// Note that the runtime will also probe APP_PATHS the same way, but that feature is effectively
// being deprecated, so we chose to not support the same behavior for components.
foreach (string searchPath in _resourceSearchPaths)
{
string assemblyPath = Path.Combine(
searchPath,
assemblyName.CultureName,
assemblyName.Name + ResourceAssemblyExtension);
if (File.Exists(assemblyPath))
{
return assemblyPath;
}
}
}
else if (assemblyName.Name != null)
{
// Load code assembly - simply look it up in the dictionary by its simple name.
if (_assemblyPaths.TryGetValue(assemblyName.Name, out string? assemblyPath))
{
// Only returnd the assembly if it exists on disk - this is to make the behavior of the API
// consistent. Resource and native resolutions will only return existing files
// so assembly resolution should do the same.
if (File.Exists(assemblyPath))
{
return assemblyPath;
}
}
}
return null;
}
public string? ResolveUnmanagedDllToPath(string unmanagedDllName!!)
{
string[] searchPaths;
if (unmanagedDllName.Contains(Path.DirectorySeparatorChar))
{
// Library names with absolute or relative path can't be resolved
// using the component .deps.json as that defines simple names.
// So instead use the component directory as the lookup path.
searchPaths = _assemblyDirectorySearchPaths;
}
else
{
searchPaths = _nativeSearchPaths;
}
bool isRelativePath = !Path.IsPathFullyQualified(unmanagedDllName);
foreach (LibraryNameVariation libraryNameVariation in LibraryNameVariation.DetermineLibraryNameVariations(unmanagedDllName, isRelativePath))
{
string libraryName = libraryNameVariation.Prefix + unmanagedDllName + libraryNameVariation.Suffix;
foreach (string searchPath in searchPaths)
{
string libraryPath = Path.Combine(searchPath, libraryName);
if (File.Exists(libraryPath))
{
return libraryPath;
}
}
}
return null;
}
private static string[] SplitPathsList(string? pathsList)
{
if (pathsList == null)
{
return Array.Empty<string>();
}
else
{
return pathsList.Split(Path.PathSeparator, StringSplitOptions.RemoveEmptyEntries);
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Text;
namespace System.Runtime.Loader
{
[UnsupportedOSPlatform("android")]
[UnsupportedOSPlatform("browser")]
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public sealed class AssemblyDependencyResolver
{
/// <summary>
/// The name of the neutral culture (same value as in Variables::Init in CoreCLR)
/// </summary>
private const string NeutralCultureName = "neutral";
/// <summary>
/// The extension of resource assembly (same as in BindSatelliteResourceByResourceRoots in CoreCLR)
/// </summary>
private const string ResourceAssemblyExtension = ".dll";
private readonly Dictionary<string, string> _assemblyPaths;
private readonly string[] _nativeSearchPaths;
private readonly string[] _resourceSearchPaths;
private readonly string[] _assemblyDirectorySearchPaths;
public AssemblyDependencyResolver(string componentAssemblyPath!!)
{
string? assemblyPathsList = null;
string? nativeSearchPathsList = null;
string? resourceSearchPathsList = null;
int returnCode = 0;
StringBuilder errorMessage = new StringBuilder();
try
{
// Setup error writer for this thread. This makes the hostpolicy redirect all error output
// to the writer specified. Have to store the previous writer to set it back once this is done.
var errorWriter = new Interop.HostPolicy.corehost_error_writer_fn(message => errorMessage.AppendLine(Marshal.PtrToStringAuto(message)));
IntPtr errorWriterPtr = Marshal.GetFunctionPointerForDelegate(errorWriter);
IntPtr previousErrorWriterPtr = Interop.HostPolicy.corehost_set_error_writer(errorWriterPtr);
try
{
// Call hostpolicy to do the actual work of finding .deps.json, parsing it and extracting
// information from it.
returnCode = Interop.HostPolicy.corehost_resolve_component_dependencies(
componentAssemblyPath,
(assemblyPaths, nativeSearchPaths, resourceSearchPaths) =>
{
assemblyPathsList = Marshal.PtrToStringAuto(assemblyPaths);
nativeSearchPathsList = Marshal.PtrToStringAuto(nativeSearchPaths);
resourceSearchPathsList = Marshal.PtrToStringAuto(resourceSearchPaths);
});
}
finally
{
// Reset the error write to the one used before
Interop.HostPolicy.corehost_set_error_writer(previousErrorWriterPtr);
GC.KeepAlive(errorWriter);
}
}
catch (EntryPointNotFoundException entryPointNotFoundException)
{
throw new InvalidOperationException(SR.AssemblyDependencyResolver_FailedToLoadHostpolicy, entryPointNotFoundException);
}
catch (DllNotFoundException dllNotFoundException)
{
throw new InvalidOperationException(SR.AssemblyDependencyResolver_FailedToLoadHostpolicy, dllNotFoundException);
}
if (returnCode != 0)
{
// Something went wrong - report a failure
throw new InvalidOperationException(SR.Format(
SR.AssemblyDependencyResolver_FailedToResolveDependencies,
componentAssemblyPath,
returnCode,
errorMessage));
}
string[] assemblyPaths = SplitPathsList(assemblyPathsList);
// Assembly simple names are case insensitive per the runtime behavior
// (see SimpleNameToFileNameMapTraits for the TPA lookup hash).
_assemblyPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
foreach (string assemblyPath in assemblyPaths)
{
// Add the first entry with the same simple assembly name if there are multiples
// and ignore others
_assemblyPaths.TryAdd(Path.GetFileNameWithoutExtension(assemblyPath), assemblyPath);
}
_nativeSearchPaths = SplitPathsList(nativeSearchPathsList);
_resourceSearchPaths = SplitPathsList(resourceSearchPathsList);
_assemblyDirectorySearchPaths = new string[1] { Path.GetDirectoryName(componentAssemblyPath)! };
}
public string? ResolveAssemblyToPath(AssemblyName assemblyName!!)
{
// Determine if the assembly name is for a satellite assembly or not
// This is the same logic as in AssemblyBinder::BindByTpaList in CoreCLR
// - If the culture name is non-empty and it's not 'neutral'
// - The culture name is the value of the AssemblyName.Culture.Name
// (CoreCLR gets this and stores it as the culture name in the internal assembly name)
// AssemblyName.CultureName is just a shortcut to AssemblyName.Culture.Name.
if (!string.IsNullOrEmpty(assemblyName.CultureName) &&
!string.Equals(assemblyName.CultureName, NeutralCultureName, StringComparison.OrdinalIgnoreCase))
{
// Load satellite assembly
// Search resource search paths by appending the culture name and the expected assembly file name.
// Copies the logic in BindSatelliteResourceByResourceRoots in CoreCLR.
// Note that the runtime will also probe APP_PATHS the same way, but that feature is effectively
// being deprecated, so we chose to not support the same behavior for components.
foreach (string searchPath in _resourceSearchPaths)
{
string assemblyPath = Path.Combine(
searchPath,
assemblyName.CultureName,
assemblyName.Name + ResourceAssemblyExtension);
if (File.Exists(assemblyPath))
{
return assemblyPath;
}
}
}
else if (assemblyName.Name != null)
{
// Load code assembly - simply look it up in the dictionary by its simple name.
if (_assemblyPaths.TryGetValue(assemblyName.Name, out string? assemblyPath))
{
// Only returnd the assembly if it exists on disk - this is to make the behavior of the API
// consistent. Resource and native resolutions will only return existing files
// so assembly resolution should do the same.
if (File.Exists(assemblyPath))
{
return assemblyPath;
}
}
}
return null;
}
public string? ResolveUnmanagedDllToPath(string unmanagedDllName!!)
{
string[] searchPaths;
if (unmanagedDllName.Contains(Path.DirectorySeparatorChar))
{
// Library names with absolute or relative path can't be resolved
// using the component .deps.json as that defines simple names.
// So instead use the component directory as the lookup path.
searchPaths = _assemblyDirectorySearchPaths;
}
else
{
searchPaths = _nativeSearchPaths;
}
bool isRelativePath = !Path.IsPathFullyQualified(unmanagedDllName);
foreach (LibraryNameVariation libraryNameVariation in LibraryNameVariation.DetermineLibraryNameVariations(unmanagedDllName, isRelativePath))
{
string libraryName = libraryNameVariation.Prefix + unmanagedDllName + libraryNameVariation.Suffix;
foreach (string searchPath in searchPaths)
{
string libraryPath = Path.Combine(searchPath, libraryName);
if (File.Exists(libraryPath))
{
return libraryPath;
}
}
}
return null;
}
private static string[] SplitPathsList(string? pathsList)
{
if (pathsList == null)
{
return Array.Empty<string>();
}
else
{
return pathsList.Split(Path.PathSeparator, StringSplitOptions.RemoveEmptyEntries);
}
}
}
}
| -1 |
dotnet/runtime | 66,006 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…" | Reverts this as x86 still uses it.
| vargaz | 2022-03-01T15:15:53Z | 2022-03-01T20:09:47Z | af71404d9a3b38e63408af47cc847ac1a1fcf4e1 | 2dd232a53c38ac874b15fe504df275b660988294 | Revert "[mono][jit] Remove support for -O=-float32, i.e. treating r4 values a…". Reverts this as x86 still uses it.
| ./src/libraries/System.Text.Encoding/tests/UTF7Encoding/UTF7EncodingGetEncoder.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Text.Tests
{
public class UTF7EncodingGetEncoder
{
[Fact]
public void GetEncoder()
{
Encoder encoder = new UTF7Encoding().GetEncoder();
Assert.NotNull(encoder);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Text.Tests
{
public class UTF7EncodingGetEncoder
{
[Fact]
public void GetEncoder()
{
Encoder encoder = new UTF7Encoding().GetEncoder();
Assert.NotNull(encoder);
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./docs/project/list-of-diagnostics.md | # List of Diagnostics Produced by .NET Libraries APIs
## Obsoletions
Per https://github.com/dotnet/designs/blob/master/accepted/2020/better-obsoletion/better-obsoletion.md, we now have a strategy for marking existing APIs as `[Obsolete]`. This takes advantage of the new diagnostic id and URL template mechanisms introduced to `ObsoleteAttribute` in .NET 5.
The diagnostic id values reserved for obsoletions are `SYSLIB0001` through `SYSLIB0999`. When obsoleting an API, claim the next three-digit identifier in the `SYSLIB0###` sequence and add it to the list below. The URL template for all obsoletions is `https://aka.ms/dotnet-warnings/{0}`. The `{0}` placeholder is replaced by the compiler with the `SYSLIB0###` identifier.
The acceptance criteria for adding an obsoletion includes:
* Add the obsoletion to the table below, claiming the next diagnostic id
* Ensure the description is meaningful within the context of this table, and without requiring the context of the calling code
* Add new constants to `src\libraries\Common\src\System\Obsoletions.cs`, following the existing conventions
* A `...Message` const using the same description added to the table below
* A `...DiagId` const for the `SYSLIB0###` id
* Annotate `src` files by referring to the constants defined from `Obsoletions.cs`
* Specify the `UrlFormat = Obsoletions.SharedUrlFormat`
* Example: `[Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]`
* If the `Obsoletions` type is not available in the project, link it into the project
* `<Compile Include="$(CommonPath)System\Obsoletions.cs" Link="Common\System\Obsoletions.cs" />`
* Annotate `ref` files using the hard-coded strings copied from `Obsoletions.cs`
* This matches our general pattern of `ref` files using hard-coded attribute strings
* Example: `[System.ObsoleteAttribute("The UTF-7 encoding is insecure and should not be used. Consider using UTF-8 instead.", DiagnosticId = "SYSLIB0001", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]`
* If the library builds against downlevel targets earlier than .NET 5.0, then add an internal copy of `ObsoleteAttribute`
* The compiler recognizes internal implementations of `ObsoleteAttribute` to enable the `DiagnosticId` and `UrlFormat` properties to light up downlevel
* An MSBuild property can be added to the project's first `<PropertyGroup>` to achieve this easily
* Example: `<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>`
* This will need to be specified in both the `src` and `ref` projects
* If the library contains types that are forwarded within a generated shim
* Errors will be received when running `build libs`, with obsoletion errors in `src/libraries/shims/generated` files
* This is resolved by adding the obsoletion's diagnostic id to the `<NoWarn>` property for partial facade assemblies
* That property is found in `src/libraries/Directory.Build.targets`
* Search for the "Ignore Obsolete errors within the generated shims that type-forward types" comment and add the appropriate diagnostic id to the comment and the `<NoWarn>` property (other SYSLIB diagnostics already exist there)
* Apply the `breaking-change` label to the PR that introduces the obsoletion
* A bot will automatically apply the `needs-breaking-change-doc-created` label when the `breaking-change` label is detected
* Follow up with the breaking change process to communicate and document the breaking change
* In the breaking-change issue filed in [dotnet/docs](https://github.com/dotnet/docs), specifically mention that this breaking change is an obsoletion with a `SYSLIB` diagnostic id
* The documentation team will produce a PR that adds the obsoletion to the [SYSLIB warnings](https://docs.microsoft.com/en-us/dotnet/core/compatibility/syslib-obsoletions) page
* That PR will also add a new URL specific to this diagnostic ID; e.g. [SYSLIB0001](https://docs.microsoft.com/en-us/dotnet/core/compatibility/syslib-warnings/syslib0001)
* Connect with `@gewarren` or `@BillWagner` with any questions
* Register the `SYSLIB0###` URL in `aka.ms`
* The vanity name will be `dotnet-warnings/syslib0###`
* Ensure the link's group owner matches the group owner of `dotnet-warnings/syslib0001`
* Connect with `@jeffhandley`, `@GrabYourPitchforks`, or `@gewarren` with any questions
An example obsoletion PR that can be referenced where each of the above criteria was met is:
* [Implement new GetContextAPI overloads (#49186)](https://github.com/dotnet/runtime/pull/49186/files)
The PR that reveals the implementation of the `<IncludeInternalObsoleteAttribute>` property was:
* [Mark DirectoryServices CAS APIs as Obsolete (#40756)](https://github.com/dotnet/runtime/pull/40756/files)
### Obsoletion Diagnostics (`SYSLIB0001` - `SYSLIB0999`)
| Diagnostic ID | Description |
| :---------------- | :---------- |
| __`SYSLIB0001`__ | The UTF-7 encoding is insecure and should not be used. Consider using UTF-8 instead. |
| __`SYSLIB0002`__ | PrincipalPermissionAttribute is not honored by the runtime and must not be used. |
| __`SYSLIB0003`__ | Code Access Security is not supported or honored by the runtime. |
| __`SYSLIB0004`__ | The Constrained Execution Region (CER) feature is not supported. |
| __`SYSLIB0005`__ | The Global Assembly Cache is not supported. |
| __`SYSLIB0006`__ | Thread.Abort is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0007`__ | The default implementation of this cryptography algorithm is not supported. |
| __`SYSLIB0008`__ | The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0009`__ | The AuthenticationManager Authenticate and PreAuthenticate methods are not supported and throw PlatformNotSupportedException. |
| __`SYSLIB0010`__ | This Remoting API is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0011`__ | `BinaryFormatter` serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for recommended alternatives. |
| __`SYSLIB0012`__ | Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead. |
| __`SYSLIB0013`__ | Uri.EscapeUriString can corrupt the Uri string in some cases. Consider using Uri.EscapeDataString for query string components instead. |
| __`SYSLIB0014`__ | WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead. |
| __`SYSLIB0015`__ | DisablePrivateReflectionAttribute has no effect in .NET 6.0+. |
| __`SYSLIB0016`__ | Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations. |
| __`SYSLIB0017`__ | Strong name signing is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0018`__ | ReflectionOnly loading is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0019`__ | RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException. |
| __`SYSLIB0020`__ | JsonSerializerOptions.IgnoreNullValues is obsolete. To ignore null values when serializing, set DefaultIgnoreCondition to JsonIgnoreCondition.WhenWritingNull. |
| __`SYSLIB0021`__ | Derived cryptographic types are obsolete. Use the Create method on the base type instead. |
| __`SYSLIB0022`__ | The Rijndael and RijndaelManaged types are obsolete. Use Aes instead. |
| __`SYSLIB0023`__ | RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead. |
| __`SYSLIB0024`__ | Creating and unloading AppDomains is not supported and throws an exception. |
| __`SYSLIB0025`__ | SuppressIldasmAttribute has no effect in .NET 6.0+. |
| __`SYSLIB0026`__ | X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate. |
| __`SYSLIB0027`__ | PublicKey.Key is obsolete. Use the appropriate method to get the public key, such as GetRSAPublicKey. |
| __`SYSLIB0028`__ | X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key. |
| __`SYSLIB0029`__ | ProduceLegacyHmacValues is obsolete. Producing legacy HMAC values is not supported. |
| __`SYSLIB0030`__ | HMACSHA1 always uses the algorithm implementation provided by the platform. Use a constructor without the useManagedSha1 parameter. |
| __`SYSLIB0031`__ | EncodeOID is obsolete. Use the ASN.1 functionality provided in System.Formats.Asn1. |
| __`SYSLIB0032`__ | Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored. |
| __`SYSLIB0033`__ | Rfc2898DeriveBytes.CryptDeriveKey is obsolete and is not supported. Use PasswordDeriveBytes.CryptDeriveKey instead. |
| __`SYSLIB0034`__ | CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead. |
| __`SYSLIB0035`__ | ComputeCounterSignature without specifying a CmsSigner is obsolete and is not supported. Use the overload that accepts a CmsSigner. |
| __`SYSLIB0036`__ | Regex.CompileToAssembly is obsolete and not supported. Use RegexGeneratorAttribute with the regular expression source generator instead. |
| __`SYSLIB0037`__ | AssemblyName members HashAlgorithm, ProcessorArchitecture, and VersionCompatibility are obsolete and not supported. |
## Analyzer Warnings
The diagnostic id values reserved for .NET Libraries analyzer warnings are `SYSLIB1001` through `SYSLIB1999`. When creating a new analyzer that ships as part of the Libraries (and not part of the SDK), claim the next three-digit identifier in the `SYSLIB1###` sequence and add it to the list below.
### Analyzer Diagnostics (`SYSLIB1001` - `SYSLIB1999`)
| Diagnostic ID | Description |
| :---------------- | :---------- |
| __`SYSLIB1001`__ | Logging method names cannot start with _ |
| __`SYSLIB1002`__ | Don't include log level parameters as templates in the logging message |
| __`SYSLIB1003`__ | InvalidLoggingMethodParameterNameTitle |
| __`SYSLIB1004`__ | Logging class cannot be in nested types |
| __`SYSLIB1005`__ | Could not find a required type definition |
| __`SYSLIB1006`__ | Multiple logging methods cannot use the same event id within a class |
| __`SYSLIB1007`__ | Logging methods must return void |
| __`SYSLIB1008`__ | One of the arguments to a logging method must implement the Microsoft.Extensions.Logging.ILogger interface |
| __`SYSLIB1009`__ | Logging methods must be static |
| __`SYSLIB1010`__ | Logging methods must be partial |
| __`SYSLIB1011`__ | Logging methods cannot be generic |
| __`SYSLIB1012`__ | Redundant qualifier in logging message |
| __`SYSLIB1013`__ | Don't include exception parameters as templates in the logging message |
| __`SYSLIB1014`__ | Logging template has no corresponding method argument |
| __`SYSLIB1015`__ | Argument is not referenced from the logging message |
| __`SYSLIB1016`__ | Logging methods cannot have a body |
| __`SYSLIB1017`__ | A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method |
| __`SYSLIB1018`__ | Don't include logger parameters as templates in the logging message |
| __`SYSLIB1019`__ | Couldn't find a field of type Microsoft.Extensions.Logging.ILogger |
| __`SYSLIB1020`__ | Found multiple fields of type Microsoft.Extensions.Logging.ILogger |
| __`SYSLIB1021`__ | Can't have the same template with different casing |
| __`SYSLIB1022`__ | Can't have malformed format strings (like dangling {, etc) |
| __`SYSLIB1023`__ | Generating more than 6 arguments is not supported |
| __`SYSLIB1024`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1025`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1026`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1027`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1028`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1029`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1030`__ | JsonSourceGenerator did not generate serialization metadata for type |
| __`SYSLIB1031`__ | JsonSourceGenerator encountered a duplicate JsonTypeInfo property name |
| __`SYSLIB1032`__ | JsonSourceGenerator encountered a context class that is not partial |
| __`SYSLIB1033`__ | JsonSourceGenerator encountered a type that has multiple [JsonConstructor] annotations|
| __`SYSLIB1034`__ | *_`SYSLIB1034` reserved for System.Text.Json.SourceGeneration._* |
| __`SYSLIB1035`__ | JsonSourceGenerator encountered a type that has multiple [JsonExtensionData] annotations |
| __`SYSLIB1036`__ | JsonSourceGenerator encountered an invalid [JsonExtensionData] annotation |
| __`SYSLIB1037`__ | JsonSourceGenerator encountered a type with init-only properties for which deserialization is not supported |
| __`SYSLIB1038`__ | JsonSourceGenerator encountered a property annotated with [JsonInclude] that has inaccessible accessors |
| __`SYSLIB1039`__ | *_`SYSLIB1039` reserved for System.Text.Json.SourceGeneration._* |
| __`SYSLIB1040`__ | Invalid RegexGenerator attribute |
| __`SYSLIB1041`__ | Multiple RegexGenerator attribute |
| __`SYSLIB1042`__ | Invalid RegexGenerator arguments |
| __`SYSLIB1043`__ | RegexGenerator method must have a valid signature |
| __`SYSLIB1044`__ | RegexGenerator only supports C# 10 and newer |
| __`SYSLIB1045`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1046`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1047`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1048`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1049`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| # List of Diagnostics Produced by .NET Libraries APIs
## Obsoletions
Per https://github.com/dotnet/designs/blob/master/accepted/2020/better-obsoletion/better-obsoletion.md, we now have a strategy for marking existing APIs as `[Obsolete]`. This takes advantage of the new diagnostic id and URL template mechanisms introduced to `ObsoleteAttribute` in .NET 5.
The diagnostic id values reserved for obsoletions are `SYSLIB0001` through `SYSLIB0999`. When obsoleting an API, claim the next three-digit identifier in the `SYSLIB0###` sequence and add it to the list below. The URL template for all obsoletions is `https://aka.ms/dotnet-warnings/{0}`. The `{0}` placeholder is replaced by the compiler with the `SYSLIB0###` identifier.
The acceptance criteria for adding an obsoletion includes:
* Add the obsoletion to the table below, claiming the next diagnostic id
* Ensure the description is meaningful within the context of this table, and without requiring the context of the calling code
* Add new constants to `src\libraries\Common\src\System\Obsoletions.cs`, following the existing conventions
* A `...Message` const using the same description added to the table below
* A `...DiagId` const for the `SYSLIB0###` id
* Annotate `src` files by referring to the constants defined from `Obsoletions.cs`
* Specify the `UrlFormat = Obsoletions.SharedUrlFormat`
* Example: `[Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]`
* If the `Obsoletions` type is not available in the project, link it into the project
* `<Compile Include="$(CommonPath)System\Obsoletions.cs" Link="Common\System\Obsoletions.cs" />`
* Annotate `ref` files using the hard-coded strings copied from `Obsoletions.cs`
* This matches our general pattern of `ref` files using hard-coded attribute strings
* Example: `[System.ObsoleteAttribute("The UTF-7 encoding is insecure and should not be used. Consider using UTF-8 instead.", DiagnosticId = "SYSLIB0001", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]`
* If the library builds against downlevel targets earlier than .NET 5.0, then add an internal copy of `ObsoleteAttribute`
* The compiler recognizes internal implementations of `ObsoleteAttribute` to enable the `DiagnosticId` and `UrlFormat` properties to light up downlevel
* An MSBuild property can be added to the project's first `<PropertyGroup>` to achieve this easily
* Example: `<IncludeInternalObsoleteAttribute>true</IncludeInternalObsoleteAttribute>`
* This will need to be specified in both the `src` and `ref` projects
* If the library contains types that are forwarded within a generated shim
* Errors will be received when running `build libs`, with obsoletion errors in `src/libraries/shims/generated` files
* This is resolved by adding the obsoletion's diagnostic id to the `<NoWarn>` property for partial facade assemblies
* That property is found in `src/libraries/Directory.Build.targets`
* Search for the "Ignore Obsolete errors within the generated shims that type-forward types" comment and add the appropriate diagnostic id to the comment and the `<NoWarn>` property (other SYSLIB diagnostics already exist there)
* Apply the `breaking-change` label to the PR that introduces the obsoletion
* A bot will automatically apply the `needs-breaking-change-doc-created` label when the `breaking-change` label is detected
* Follow up with the breaking change process to communicate and document the breaking change
* In the breaking-change issue filed in [dotnet/docs](https://github.com/dotnet/docs), specifically mention that this breaking change is an obsoletion with a `SYSLIB` diagnostic id
* The documentation team will produce a PR that adds the obsoletion to the [SYSLIB warnings](https://docs.microsoft.com/en-us/dotnet/core/compatibility/syslib-obsoletions) page
* That PR will also add a new URL specific to this diagnostic ID; e.g. [SYSLIB0001](https://docs.microsoft.com/en-us/dotnet/core/compatibility/syslib-warnings/syslib0001)
* Connect with `@gewarren` or `@BillWagner` with any questions
* Register the `SYSLIB0###` URL in `aka.ms`
* The vanity name will be `dotnet-warnings/syslib0###`
* Ensure the link's group owner matches the group owner of `dotnet-warnings/syslib0001`
* Connect with `@jeffhandley`, `@GrabYourPitchforks`, or `@gewarren` with any questions
An example obsoletion PR that can be referenced where each of the above criteria was met is:
* [Implement new GetContextAPI overloads (#49186)](https://github.com/dotnet/runtime/pull/49186/files)
The PR that reveals the implementation of the `<IncludeInternalObsoleteAttribute>` property was:
* [Mark DirectoryServices CAS APIs as Obsolete (#40756)](https://github.com/dotnet/runtime/pull/40756/files)
### Obsoletion Diagnostics (`SYSLIB0001` - `SYSLIB0999`)
| Diagnostic ID | Description |
| :---------------- | :---------- |
| __`SYSLIB0001`__ | The UTF-7 encoding is insecure and should not be used. Consider using UTF-8 instead. |
| __`SYSLIB0002`__ | PrincipalPermissionAttribute is not honored by the runtime and must not be used. |
| __`SYSLIB0003`__ | Code Access Security is not supported or honored by the runtime. |
| __`SYSLIB0004`__ | The Constrained Execution Region (CER) feature is not supported. |
| __`SYSLIB0005`__ | The Global Assembly Cache is not supported. |
| __`SYSLIB0006`__ | Thread.Abort is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0007`__ | The default implementation of this cryptography algorithm is not supported. |
| __`SYSLIB0008`__ | The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0009`__ | The AuthenticationManager Authenticate and PreAuthenticate methods are not supported and throw PlatformNotSupportedException. |
| __`SYSLIB0010`__ | This Remoting API is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0011`__ | `BinaryFormatter` serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for recommended alternatives. |
| __`SYSLIB0012`__ | Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead. |
| __`SYSLIB0013`__ | Uri.EscapeUriString can corrupt the Uri string in some cases. Consider using Uri.EscapeDataString for query string components instead. |
| __`SYSLIB0014`__ | WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead. |
| __`SYSLIB0015`__ | DisablePrivateReflectionAttribute has no effect in .NET 6.0+. |
| __`SYSLIB0016`__ | Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations. |
| __`SYSLIB0017`__ | Strong name signing is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0018`__ | ReflectionOnly loading is not supported and throws PlatformNotSupportedException. |
| __`SYSLIB0019`__ | RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException. |
| __`SYSLIB0020`__ | JsonSerializerOptions.IgnoreNullValues is obsolete. To ignore null values when serializing, set DefaultIgnoreCondition to JsonIgnoreCondition.WhenWritingNull. |
| __`SYSLIB0021`__ | Derived cryptographic types are obsolete. Use the Create method on the base type instead. |
| __`SYSLIB0022`__ | The Rijndael and RijndaelManaged types are obsolete. Use Aes instead. |
| __`SYSLIB0023`__ | RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead. |
| __`SYSLIB0024`__ | Creating and unloading AppDomains is not supported and throws an exception. |
| __`SYSLIB0025`__ | SuppressIldasmAttribute has no effect in .NET 6.0+. |
| __`SYSLIB0026`__ | X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate. |
| __`SYSLIB0027`__ | PublicKey.Key is obsolete. Use the appropriate method to get the public key, such as GetRSAPublicKey. |
| __`SYSLIB0028`__ | X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key. |
| __`SYSLIB0029`__ | ProduceLegacyHmacValues is obsolete. Producing legacy HMAC values is not supported. |
| __`SYSLIB0030`__ | HMACSHA1 always uses the algorithm implementation provided by the platform. Use a constructor without the useManagedSha1 parameter. |
| __`SYSLIB0031`__ | EncodeOID is obsolete. Use the ASN.1 functionality provided in System.Formats.Asn1. |
| __`SYSLIB0032`__ | Recovery from corrupted process state exceptions is not supported; HandleProcessCorruptedStateExceptionsAttribute is ignored. |
| __`SYSLIB0033`__ | Rfc2898DeriveBytes.CryptDeriveKey is obsolete and is not supported. Use PasswordDeriveBytes.CryptDeriveKey instead. |
| __`SYSLIB0034`__ | CmsSigner(CspParameters) is obsolete and is not supported. Use an alternative constructor instead. |
| __`SYSLIB0035`__ | ComputeCounterSignature without specifying a CmsSigner is obsolete and is not supported. Use the overload that accepts a CmsSigner. |
| __`SYSLIB0036`__ | Regex.CompileToAssembly is obsolete and not supported. Use RegexGeneratorAttribute with the regular expression source generator instead. |
| __`SYSLIB0037`__ | AssemblyName members HashAlgorithm, ProcessorArchitecture, and VersionCompatibility are obsolete and not supported. |
## Analyzer Warnings
The diagnostic id values reserved for .NET Libraries analyzer warnings are `SYSLIB1001` through `SYSLIB1999`. When creating a new analyzer that ships as part of the Libraries (and not part of the SDK), claim the next three-digit identifier in the `SYSLIB1###` sequence and add it to the list below.
### Analyzer Diagnostics (`SYSLIB1001` - `SYSLIB1999`)
| Diagnostic ID | Description |
| :---------------- | :---------- |
| __`SYSLIB1001`__ | Logging method names cannot start with _ |
| __`SYSLIB1002`__ | Don't include log level parameters as templates in the logging message |
| __`SYSLIB1003`__ | InvalidLoggingMethodParameterNameTitle |
| __`SYSLIB1004`__ | Logging class cannot be in nested types |
| __`SYSLIB1005`__ | Could not find a required type definition |
| __`SYSLIB1006`__ | Multiple logging methods cannot use the same event id within a class |
| __`SYSLIB1007`__ | Logging methods must return void |
| __`SYSLIB1008`__ | One of the arguments to a logging method must implement the Microsoft.Extensions.Logging.ILogger interface |
| __`SYSLIB1009`__ | Logging methods must be static |
| __`SYSLIB1010`__ | Logging methods must be partial |
| __`SYSLIB1011`__ | Logging methods cannot be generic |
| __`SYSLIB1012`__ | Redundant qualifier in logging message |
| __`SYSLIB1013`__ | Don't include exception parameters as templates in the logging message |
| __`SYSLIB1014`__ | Logging template has no corresponding method argument |
| __`SYSLIB1015`__ | Argument is not referenced from the logging message |
| __`SYSLIB1016`__ | Logging methods cannot have a body |
| __`SYSLIB1017`__ | A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method |
| __`SYSLIB1018`__ | Don't include logger parameters as templates in the logging message |
| __`SYSLIB1019`__ | Couldn't find a field of type Microsoft.Extensions.Logging.ILogger |
| __`SYSLIB1020`__ | Found multiple fields of type Microsoft.Extensions.Logging.ILogger |
| __`SYSLIB1021`__ | Can't have the same template with different casing |
| __`SYSLIB1022`__ | Can't have malformed format strings (like dangling {, etc) |
| __`SYSLIB1023`__ | Generating more than 6 arguments is not supported |
| __`SYSLIB1024`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1025`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1026`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1027`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1028`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1029`__ | *_`SYSLIB1024`-`SYSLIB1029` reserved for logging._* |
| __`SYSLIB1030`__ | JsonSourceGenerator did not generate serialization metadata for type |
| __`SYSLIB1031`__ | JsonSourceGenerator encountered a duplicate JsonTypeInfo property name |
| __`SYSLIB1032`__ | JsonSourceGenerator encountered a context class that is not partial |
| __`SYSLIB1033`__ | JsonSourceGenerator encountered a type that has multiple [JsonConstructor] annotations|
| __`SYSLIB1034`__ | *_`SYSLIB1034` reserved for System.Text.Json.SourceGeneration._* |
| __`SYSLIB1035`__ | JsonSourceGenerator encountered a type that has multiple [JsonExtensionData] annotations |
| __`SYSLIB1036`__ | JsonSourceGenerator encountered an invalid [JsonExtensionData] annotation |
| __`SYSLIB1037`__ | JsonSourceGenerator encountered a type with init-only properties for which deserialization is not supported |
| __`SYSLIB1038`__ | JsonSourceGenerator encountered a property annotated with [JsonInclude] that has inaccessible accessors |
| __`SYSLIB1039`__ | *_`SYSLIB1039` reserved for System.Text.Json.SourceGeneration._* |
| __`SYSLIB1040`__ | Invalid RegexGenerator attribute |
| __`SYSLIB1041`__ | Multiple RegexGenerator attribute |
| __`SYSLIB1042`__ | Invalid RegexGenerator arguments |
| __`SYSLIB1043`__ | RegexGenerator method must have a valid signature |
| __`SYSLIB1044`__ | RegexGenerator only supports C# 10 and newer |
| __`SYSLIB1045`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1046`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1047`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1048`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1049`__ | *_`SYSLIB1045`-`SYSLIB1049` reserved for System.Text.RegularExpressions.Generator._* |
| __`SYSLIB1050`__ | Invalid LibraryImportAttribute usage |
| __`SYSLIB1051`__ | Specified type is not supported by source-generated P/Invokes |
| __`SYSLIB1052`__ | Specified configuration is not supported by source-generated P/Invokes |
| __`SYSLIB1053`__ | Current target framework is not supported by source-generated P/Invokes |
| __`SYSLIB1054`__ | Specified LibraryImportAttribute arguments cannot be forwarded to DllImportAttribute |
| __`SYSLIB1055`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1056`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1057`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1058`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1059`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1060`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1061`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1062`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1063`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1064`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1065`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1066`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1067`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1068`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| __`SYSLIB1069`__ | *_`SYSLIB1055`-`SYSLIB1069` reserved for Microsoft.Interop.LibraryImportGenerator._* |
| 1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/coreclr/nativeaot/Test.CoreLib/src/Test.CoreLib.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<TargetFramework>netstandard2.0</TargetFramework>
<EnableDllImportGenerator>true</EnableDllImportGenerator>
<!--
DLLIMPORTGEN004: DllImportGenerator Target Framework Not Supported.
-->
<NoWarn>$(NoWarn);DLLIMPORTGEN004</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DefineConstants>FEATURE_GC_STRESS;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'arm'">
<DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'armel'">
<DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'wasm'">
<DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- For now, link Runtime.Base into Test.CoreLib until there is proper multifile build -->
<PropertyGroup>
<InPlaceRuntime>true</InPlaceRuntime>
</PropertyGroup>
<PropertyGroup Condition="'$(InPlaceRuntime)' == 'true'">
<DefineConstants>INPLACE_RUNTIME;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'arm'">FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'armel'">FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
<IntermediatesDir>$(ArtifactsObjDir)\coreclr\$(TargetOS).$(TargetArchitecture).$(CoreCLRConfiguration)</IntermediatesDir>
<IntermediatesDir Condition="'$(Ninja)' == 'false' and $([MSBuild]::IsOsPlatform('Windows'))">$(IntermediatesDir)\ide</IntermediatesDir>
</PropertyGroup>
<ItemGroup Condition="'$(InPlaceRuntime)' == 'true'">
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs">
<Link>Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\DispatchResolve.cs">
<Link>Runtime.Base\src\System\Runtime\DispatchResolve.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\GCStress.cs">
<Link>Runtime.Base\src\System\Runtime\GCStress.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\__Finalizer.cs">
<Link>Runtime.Base\src\System\Runtime\__Finalizer.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\MethodTable.Runtime.cs">
<Link>Runtime.Base\src\System\Runtime\MethodTable.Runtime.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\ExceptionHandling.cs">
<Link>Runtime.Base\src\System\Runtime\ExceptionHandling.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InternalCalls.cs">
<Link>Runtime.Base\src\System\Runtime\InternalCalls.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\RuntimeExports.cs">
<Link>Runtime.Base\src\System\Runtime\RuntimeExports.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\StackFrameIterator.cs">
<Link>Runtime.Base\src\System\Runtime\StackFrameIterator.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\ThunkPool.cs">
<Link>Runtime.Base\src\System\Runtime\ThunkPool.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\TypeCast.cs">
<Link>Runtime.Base\src\System\Runtime\TypeCast.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnsafeGCHandle.cs">
<Link>Runtime.Base\src\System\Runtime\InteropServices\UnsafeGCHandle.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnmanagedType.cs">
<Link>Runtime.Base\src\System\Runtime\InteropServices\UnmanagedType.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\RhBaseName.cs">
<Link>Runtime.Base\src\RhBaseName.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\TransitionBlock.cs">
<Link>Common\TransitionBlock.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(InPlaceRuntime)' == 'true'">
<Compile Include="$(IntermediatesDir)\nativeaot\Runtime\Full\AsmOffsets.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CompilerCommonPath)\Internal\NativeFormat\NativeFormatReader.Primitives.cs">
<Link>Internal\NativeFormat\NativeFormatReader.Primitives.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\CompilerHelpers\StartupCodeHelpers.cs">
<Link>Internal\Runtime\CompilerHelpers\StartupCodeHelpers.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\CompilerHelpers\StartupDebug.cs">
<Link>Internal\Runtime\CompilerHelpers\StartupDebug.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\MethodTable.Constants.cs">
<Link>System\Runtime\MethodTable.Constants.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\MethodTable.cs">
<Link>System\Runtime\MethodTable.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\ModuleHeaders.cs">
<Link>Internal\Runtime\ModuleHeaders.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\RuntimeConstants.cs">
<Link>Internal\Runtime\RuntimeConstants.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Array.cs">
<Link>System\Array.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Attribute.cs">
<Link>System\Attribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\AttributeTargets.cs">
<Link>System\AttributeTargets.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\AttributeUsageAttribute.cs">
<Link>System\AttributeUsageAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Delegate.cs">
<Link>System\Delegate.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Diagnostics\ConditionalAttribute.cs">
<Link>System\Diagnostics\ConditionalAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Diagnostics\Debug.cs">
<Link>System\Diagnostics\Debug.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Exception.cs">
<Link>System\Exception.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\FlagsAttribute.cs">
<Link>System\FlagsAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\GC.cs">
<Link>System\GC.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\MulticastDelegate.cs">
<Link>System\MulticastDelegate.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Nullable.cs">
<Link>System\Nullable.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\ParamArrayAttribute.cs">
<Link>System\ParamArrayAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Primitives.cs">
<Link>System\Primitives.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\RuntimeHandles.cs">
<Link>System\RuntimeHandles.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs">
<Link>System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IntrinsicAttribute.cs">
<Link>System\Runtime\CompilerServices\IntrinsicAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IsVolatile.cs">
<Link>System\Runtime\CompilerServices\IsVolatile.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\MethodImplAttribute.cs">
<Link>System\Runtime\CompilerServices\MethodImplAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IsByRefLikeAttribute.cs">
<Link>Runtime.Base\src\System\Runtime\CompilerServices\IsByRefLikeAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\EETypePtr.cs">
<Link>System\EETypePtr.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\ExceptionIDs.cs">
<Link>System\Runtime\ExceptionIDs.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\CallingConvention.cs">
<Link>System\Runtime\InteropServices\CallingConvention.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\CharSet.cs">
<Link>System\Runtime\InteropServices\CharSet.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\DllImportAttribute.cs">
<Link>System\Runtime\InteropServices\DllImportAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\FieldOffsetAttribute.cs">
<Link>System\Runtime\InteropServices\FieldOffsetAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\GCHandleType.cs">
<Link>System\Runtime\InteropServices\GCHandleType.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\LayoutKind.cs">
<Link>System\Runtime\InteropServices\LayoutKind.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnmanagedCallConvAttribute.cs">
<Link>System\Runtime\InteropServices\UnmanagedCallConvAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs">
<Link>System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\OutAttribute.cs">
<Link>System\Runtime\InteropServices\OutAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\StructLayoutAttribute.cs">
<Link>System\Runtime\InteropServices\StructLayoutAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\RuntimeExportAttribute.cs">
<Link>System\Runtime\RuntimeExportAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\RuntimeImportAttribute.cs">
<Link>System\Runtime\RuntimeImportAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\String.cs">
<Link>System\String.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\ThrowHelpers.cs">
<Link>System\ThrowHelpers.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Void.cs">
<Link>System\Void.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\Unsafe.cs">
<Link>System\Runtime\CompilerServices\Unsafe.cs</Link>
</Compile>
<Compile Include="Internal\Runtime\IDynamicInterfaceCastableSupport.cs" />
<Compile Include="System\Runtime\CompilerServices\ClassConstructorRunner.cs" />
<Compile Include="System\Runtime\CompilerServices\StaticClassConstructionContext.cs" />
<Compile Include="System\Runtime\InteropServices\InAttribute.cs" />
<Compile Include="System\Runtime\RuntimeImports.cs" />
<Compile Include="System\Runtime\RuntimeHelpers.cs" />
<Compile Include="System\Runtime\InitializeFinalizerThread.cs" />
<Compile Include="System\Threading\Interlocked.cs" />
<Compile Include="System\Array.cs" />
<Compile Include="System\RuntimeExceptionHelpers.cs" />
<Compile Include="System\Object.cs" />
<Compile Include="System\Type.cs" />
<Compile Include="System\RuntimeTypeHandle.cs" />
<Compile Include="$(AotCommonPath)\Internal\Runtime\TypeManagerHandle.cs">
<Link>Internal\Runtime\TypeManagerHandle.cs</Link>
</Compile>
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<TargetFramework>netstandard2.0</TargetFramework>
<EnableDllImportGenerator>true</EnableDllImportGenerator>
<!--
SYSLIB1053: LibraryImportGenerator Target Framework Not Supported.
-->
<NoWarn>$(NoWarn);SYSLIB1053</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DefineConstants>FEATURE_GC_STRESS;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'arm'">
<DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'armel'">
<DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'wasm'">
<DefineConstants>FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
</PropertyGroup>
<!-- For now, link Runtime.Base into Test.CoreLib until there is proper multifile build -->
<PropertyGroup>
<InPlaceRuntime>true</InPlaceRuntime>
</PropertyGroup>
<PropertyGroup Condition="'$(InPlaceRuntime)' == 'true'">
<DefineConstants>INPLACE_RUNTIME;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'arm'">FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
<DefineConstants Condition="'$(Platform)' == 'armel'">FEATURE_64BIT_ALIGNMENT;$(DefineConstants)</DefineConstants>
<IntermediatesDir>$(ArtifactsObjDir)\coreclr\$(TargetOS).$(TargetArchitecture).$(CoreCLRConfiguration)</IntermediatesDir>
<IntermediatesDir Condition="'$(Ninja)' == 'false' and $([MSBuild]::IsOsPlatform('Windows'))">$(IntermediatesDir)\ide</IntermediatesDir>
</PropertyGroup>
<ItemGroup Condition="'$(InPlaceRuntime)' == 'true'">
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs">
<Link>Runtime.Base\src\System\Runtime\CachedInterfaceDispatch.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\DispatchResolve.cs">
<Link>Runtime.Base\src\System\Runtime\DispatchResolve.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\GCStress.cs">
<Link>Runtime.Base\src\System\Runtime\GCStress.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\__Finalizer.cs">
<Link>Runtime.Base\src\System\Runtime\__Finalizer.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\MethodTable.Runtime.cs">
<Link>Runtime.Base\src\System\Runtime\MethodTable.Runtime.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\ExceptionHandling.cs">
<Link>Runtime.Base\src\System\Runtime\ExceptionHandling.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InternalCalls.cs">
<Link>Runtime.Base\src\System\Runtime\InternalCalls.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\RuntimeExports.cs">
<Link>Runtime.Base\src\System\Runtime\RuntimeExports.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\StackFrameIterator.cs">
<Link>Runtime.Base\src\System\Runtime\StackFrameIterator.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\ThunkPool.cs">
<Link>Runtime.Base\src\System\Runtime\ThunkPool.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\TypeCast.cs">
<Link>Runtime.Base\src\System\Runtime\TypeCast.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnsafeGCHandle.cs">
<Link>Runtime.Base\src\System\Runtime\InteropServices\UnsafeGCHandle.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnmanagedType.cs">
<Link>Runtime.Base\src\System\Runtime\InteropServices\UnmanagedType.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\RhBaseName.cs">
<Link>Runtime.Base\src\RhBaseName.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\TransitionBlock.cs">
<Link>Common\TransitionBlock.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(InPlaceRuntime)' == 'true'">
<Compile Include="$(IntermediatesDir)\nativeaot\Runtime\Full\AsmOffsets.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(CompilerCommonPath)\Internal\NativeFormat\NativeFormatReader.Primitives.cs">
<Link>Internal\NativeFormat\NativeFormatReader.Primitives.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\CompilerHelpers\StartupCodeHelpers.cs">
<Link>Internal\Runtime\CompilerHelpers\StartupCodeHelpers.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\CompilerHelpers\StartupDebug.cs">
<Link>Internal\Runtime\CompilerHelpers\StartupDebug.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\MethodTable.Constants.cs">
<Link>System\Runtime\MethodTable.Constants.cs</Link>
</Compile>
<Compile Include="$(AotCommonPath)\Internal\Runtime\MethodTable.cs">
<Link>System\Runtime\MethodTable.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\ModuleHeaders.cs">
<Link>Internal\Runtime\ModuleHeaders.cs</Link>
</Compile>
<Compile Include="$(CompilerCommonPath)\Internal\Runtime\RuntimeConstants.cs">
<Link>Internal\Runtime\RuntimeConstants.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Array.cs">
<Link>System\Array.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Attribute.cs">
<Link>System\Attribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\AttributeTargets.cs">
<Link>System\AttributeTargets.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\AttributeUsageAttribute.cs">
<Link>System\AttributeUsageAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Delegate.cs">
<Link>System\Delegate.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Diagnostics\ConditionalAttribute.cs">
<Link>System\Diagnostics\ConditionalAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Diagnostics\Debug.cs">
<Link>System\Diagnostics\Debug.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Exception.cs">
<Link>System\Exception.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\FlagsAttribute.cs">
<Link>System\FlagsAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\GC.cs">
<Link>System\GC.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\MulticastDelegate.cs">
<Link>System\MulticastDelegate.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Nullable.cs">
<Link>System\Nullable.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\ParamArrayAttribute.cs">
<Link>System\ParamArrayAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Primitives.cs">
<Link>System\Primitives.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\RuntimeHandles.cs">
<Link>System\RuntimeHandles.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs">
<Link>System\Runtime\CompilerServices\EagerStaticClassConstructionAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IntrinsicAttribute.cs">
<Link>System\Runtime\CompilerServices\IntrinsicAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IsVolatile.cs">
<Link>System\Runtime\CompilerServices\IsVolatile.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\MethodImplAttribute.cs">
<Link>System\Runtime\CompilerServices\MethodImplAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\IsByRefLikeAttribute.cs">
<Link>Runtime.Base\src\System\Runtime\CompilerServices\IsByRefLikeAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\EETypePtr.cs">
<Link>System\EETypePtr.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\ExceptionIDs.cs">
<Link>System\Runtime\ExceptionIDs.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\CallingConvention.cs">
<Link>System\Runtime\InteropServices\CallingConvention.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\CharSet.cs">
<Link>System\Runtime\InteropServices\CharSet.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\DllImportAttribute.cs">
<Link>System\Runtime\InteropServices\DllImportAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\FieldOffsetAttribute.cs">
<Link>System\Runtime\InteropServices\FieldOffsetAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\GCHandleType.cs">
<Link>System\Runtime\InteropServices\GCHandleType.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\LayoutKind.cs">
<Link>System\Runtime\InteropServices\LayoutKind.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnmanagedCallConvAttribute.cs">
<Link>System\Runtime\InteropServices\UnmanagedCallConvAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs">
<Link>System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\OutAttribute.cs">
<Link>System\Runtime\InteropServices\OutAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\InteropServices\StructLayoutAttribute.cs">
<Link>System\Runtime\InteropServices\StructLayoutAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\RuntimeExportAttribute.cs">
<Link>System\Runtime\RuntimeExportAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\RuntimeImportAttribute.cs">
<Link>System\Runtime\RuntimeImportAttribute.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\String.cs">
<Link>System\String.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\ThrowHelpers.cs">
<Link>System\ThrowHelpers.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Void.cs">
<Link>System\Void.cs</Link>
</Compile>
<Compile Include="..\..\Runtime.Base\src\System\Runtime\CompilerServices\Unsafe.cs">
<Link>System\Runtime\CompilerServices\Unsafe.cs</Link>
</Compile>
<Compile Include="Internal\Runtime\IDynamicInterfaceCastableSupport.cs" />
<Compile Include="System\Runtime\CompilerServices\ClassConstructorRunner.cs" />
<Compile Include="System\Runtime\CompilerServices\StaticClassConstructionContext.cs" />
<Compile Include="System\Runtime\InteropServices\InAttribute.cs" />
<Compile Include="System\Runtime\RuntimeImports.cs" />
<Compile Include="System\Runtime\RuntimeHelpers.cs" />
<Compile Include="System\Runtime\InitializeFinalizerThread.cs" />
<Compile Include="System\Threading\Interlocked.cs" />
<Compile Include="System\Array.cs" />
<Compile Include="System\RuntimeExceptionHelpers.cs" />
<Compile Include="System\Object.cs" />
<Compile Include="System\Type.cs" />
<Compile Include="System\RuntimeTypeHandle.cs" />
<Compile Include="$(AotCommonPath)\Internal\Runtime\TypeManagerHandle.cs">
<Link>Internal\Runtime\TypeManagerHandle.cs</Link>
</Compile>
</ItemGroup>
</Project>
| 1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/Analyzers/AnalyzerDiagnostics.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.CodeAnalysis;
namespace Microsoft.Interop.Analyzers
{
internal static class AnalyzerDiagnostics
{
/// <summary>
/// Analyzer rule IDs
/// </summary>
public static class Ids
{
public const string Prefix = "DLLIMPORTGENANALYZER";
// ManualTypeMarshalling
public const string BlittableTypeMustBeBlittable = Prefix + "001";
public const string CannotHaveMultipleMarshallingAttributes = Prefix + "002";
public const string NativeTypeMustBeNonNull = Prefix + "003";
public const string NativeTypeMustBeBlittable = Prefix + "004";
public const string GetPinnableReferenceReturnTypeBlittable = Prefix + "005";
public const string NativeTypeMustBePointerSized = Prefix + "006";
public const string NativeTypeMustHaveRequiredShape = Prefix + "007";
public const string ValuePropertyMustHaveSetter = Prefix + "008";
public const string ValuePropertyMustHaveGetter = Prefix + "009";
public const string GetPinnableReferenceShouldSupportAllocatingMarshallingFallback = Prefix + "010";
public const string CallerAllocMarshallingShouldSupportAllocatingMarshallingFallback = Prefix + "011";
public const string CallerAllocConstructorMustHaveStackBufferSizeConstant = Prefix + "012";
public const string RefValuePropertyUnsupported = Prefix + "014";
public const string NativeGenericTypeMustBeClosedOrMatchArity = Prefix + "016";
public const string MarshallerGetPinnableReferenceRequiresValueProperty = Prefix + "018";
// GeneratedDllImport
public const string GeneratedDllImportMissingRequiredModifiers = Prefix + "013";
public const string GeneratedDllImportContaiingTypeMissingRequiredModifiers = Prefix + "017";
// Migration from DllImport to GeneratedDllImport
public const string ConvertToGeneratedDllImport = Prefix + "015";
}
internal static LocalizableResourceString GetResourceString(string resourceName)
{
return new LocalizableResourceString(resourceName, Resources.ResourceManager, typeof(Resources));
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.CodeAnalysis;
namespace Microsoft.Interop.Analyzers
{
internal static class AnalyzerDiagnostics
{
/// <summary>
/// Analyzer rule IDs
/// </summary>
public static class Ids
{
public const string Prefix = "DLLIMPORTGENANALYZER";
// ManualTypeMarshalling
public const string BlittableTypeMustBeBlittable = Prefix + "001";
public const string CannotHaveMultipleMarshallingAttributes = Prefix + "002";
public const string NativeTypeMustBeNonNull = Prefix + "003";
public const string NativeTypeMustBeBlittable = Prefix + "004";
public const string GetPinnableReferenceReturnTypeBlittable = Prefix + "005";
public const string NativeTypeMustBePointerSized = Prefix + "006";
public const string NativeTypeMustHaveRequiredShape = Prefix + "007";
public const string ValuePropertyMustHaveSetter = Prefix + "008";
public const string ValuePropertyMustHaveGetter = Prefix + "009";
public const string GetPinnableReferenceShouldSupportAllocatingMarshallingFallback = Prefix + "010";
public const string CallerAllocMarshallingShouldSupportAllocatingMarshallingFallback = Prefix + "011";
public const string CallerAllocConstructorMustHaveStackBufferSizeConstant = Prefix + "012";
public const string RefValuePropertyUnsupported = Prefix + "014";
public const string NativeGenericTypeMustBeClosedOrMatchArity = Prefix + "016";
public const string MarshallerGetPinnableReferenceRequiresValueProperty = Prefix + "018";
// Migration from DllImport to GeneratedDllImport
public const string ConvertToGeneratedDllImport = Prefix + "015";
}
internal static LocalizableResourceString GetResourceString(string resourceName)
{
return new LocalizableResourceString(resourceName, Resources.ResourceManager, typeof(Resources));
}
}
}
| 1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/DllImportGenerator.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Interop.DllImportGenerator</AssemblyName>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>Preview</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Microsoft.Interop</RootNamespace>
<IsRoslynComponent>true</IsRoslynComponent>
<RunAnalyzers>true</RunAnalyzers>
<!-- Disable RS2008: Enable analyzer release tracking
Diagnostics in runtime use a different mechanism (docs/project/list-of-diagnostics.md) -->
<NoWarn>RS2008;$(NoWarn)</NoWarn>
<!-- Packaging properties -->
<!-- In the future DllImportGenerator might ship as part of a package, but meanwhile disable packaging. -->
<IsPackable>false</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<PackageProjectUrl>https://github.com/dotnet/runtime/tree/main/src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator</PackageProjectUrl>
<Description>DllImportGenerator</Description>
<PackageTags>DllImportGenerator, analyzers</PackageTags>
<!-- TODO: Enable when this package shipped. -->
<DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
</PropertyGroup>
<ItemGroup>
<!-- Code included from System.Runtime.InteropServices -->
<Compile Include="$(CommonPath)System\Runtime\InteropServices\StringMarshalling.cs" Link="Production\StringMarshalling.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs"
DesignTime="True"
AutoGen="True"
DependentUpon="Resources.resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx"
Generator="ResXFileCodeGenerator"
LastGenOutput="Resources.Designer.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="$(TargetPath)" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(AssemblyName).props" Pack="true" PackagePath="build" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" Pack="true" PackagePath="analyzers/dotnet/cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Interop.LibraryImportGenerator</AssemblyName>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>Preview</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Microsoft.Interop</RootNamespace>
<IsRoslynComponent>true</IsRoslynComponent>
<RunAnalyzers>true</RunAnalyzers>
<!-- Disable RS2008: Enable analyzer release tracking
Diagnostics in runtime use a different mechanism (docs/project/list-of-diagnostics.md) -->
<NoWarn>RS2008;$(NoWarn)</NoWarn>
<!-- Packaging properties -->
<!-- In the future DllImportGenerator might ship as part of a package, but meanwhile disable packaging. -->
<IsPackable>false</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<PackageProjectUrl>https://github.com/dotnet/runtime/tree/main/src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator</PackageProjectUrl>
<Description>DllImportGenerator</Description>
<PackageTags>DllImportGenerator, analyzers</PackageTags>
<!-- TODO: Enable when this package shipped. -->
<DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
</PropertyGroup>
<ItemGroup>
<!-- Code included from System.Runtime.InteropServices -->
<Compile Include="$(CommonPath)System\Runtime\InteropServices\StringMarshalling.cs" Link="Production\StringMarshalling.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="Resources.Designer.cs"
DesignTime="True"
AutoGen="True"
DependentUpon="Resources.resx" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx"
Generator="ResXFileCodeGenerator"
LastGenOutput="Resources.Designer.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersVersion)" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="$(TargetPath)" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(AssemblyName).props" Pack="true" PackagePath="build" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" Pack="true" PackagePath="analyzers/dotnet/cs" />
</ItemGroup>
</Project>
| 1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/GeneratorDiagnostics.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Text;
namespace Microsoft.Interop
{
/// <summary>
/// Class for reporting diagnostics in the DLL import generator
/// </summary>
public class GeneratorDiagnostics : IGeneratorDiagnostics
{
public class Ids
{
public const string Prefix = "DLLIMPORTGEN";
public const string InvalidGeneratedDllImportAttributeUsage = Prefix + "001";
public const string TypeNotSupported = Prefix + "002";
public const string ConfigurationNotSupported = Prefix + "003";
public const string TargetFrameworkNotSupported = Prefix + "004";
public const string CannotForwardToDllImport = Prefix + "005";
}
private const string Category = "SourceGeneration";
public static readonly DiagnosticDescriptor InvalidAttributedMethodSignature =
new DiagnosticDescriptor(
Ids.InvalidGeneratedDllImportAttributeUsage,
GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)),
GetResourceString(nameof(Resources.InvalidAttributedMethodSignatureMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.InvalidAttributedMethodDescription)));
public static readonly DiagnosticDescriptor InvalidAttributedMethodContainingTypeMissingModifiers =
new DiagnosticDescriptor(
Ids.InvalidGeneratedDllImportAttributeUsage,
GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)),
GetResourceString(nameof(Resources.InvalidAttributedMethodContainingTypeMissingModifiersMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.InvalidAttributedMethodDescription)));
public static readonly DiagnosticDescriptor InvalidStringMarshallingConfiguration =
new DiagnosticDescriptor(
Ids.InvalidGeneratedDllImportAttributeUsage,
GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)),
GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationDescription)));
public static readonly DiagnosticDescriptor ParameterTypeNotSupported =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageParameter)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ReturnTypeNotSupported =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageReturn)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ParameterTypeNotSupportedWithDetails =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageParameterWithDetails)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ReturnTypeNotSupportedWithDetails =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageReturnWithDetails)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ParameterConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageParameter)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor ReturnConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageReturn)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor ConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor ConfigurationValueNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageValue)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor MarshallingAttributeConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageMarshallingInfo)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor TargetFrameworkNotSupported =
new DiagnosticDescriptor(
Ids.TargetFrameworkNotSupported,
GetResourceString(nameof(Resources.TargetFrameworkNotSupportedTitle)),
GetResourceString(nameof(Resources.TargetFrameworkNotSupportedMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TargetFrameworkNotSupportedDescription)));
public static readonly DiagnosticDescriptor CannotForwardToDllImport =
new DiagnosticDescriptor(
Ids.CannotForwardToDllImport,
GetResourceString(nameof(Resources.CannotForwardToDllImportTitle)),
GetResourceString(nameof(Resources.CannotForwardToDllImportMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.CannotForwardToDllImportDescription)));
private readonly List<Diagnostic> _diagnostics = new List<Diagnostic>();
public IEnumerable<Diagnostic> Diagnostics => _diagnostics;
/// <summary>
/// Report diagnostic for invalid configuration for string marshalling.
/// </summary>
/// <param name="attributeData">Attribute specifying the invalid configuration</param>
/// <param name="methodName">Name of the method</param>
/// <param name="detailsMessage">Specific reason the configuration is invalid</param>
public void ReportInvalidStringMarshallingConfiguration(
AttributeData attributeData,
string methodName,
string detailsMessage)
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.InvalidStringMarshallingConfiguration,
methodName,
detailsMessage));
}
/// <summary>
/// Report diagnostic for configuration that is not supported by the DLL import source generator
/// </summary>
/// <param name="attributeData">Attribute specifying the unsupported configuration</param>
/// <param name="configurationName">Name of the configuration</param>
/// <param name="unsupportedValue">[Optiona] Unsupported configuration value</param>
public void ReportConfigurationNotSupported(
AttributeData attributeData,
string configurationName,
string? unsupportedValue = null)
{
if (unsupportedValue == null)
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.ConfigurationNotSupported,
configurationName));
}
else
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.ConfigurationValueNotSupported,
unsupportedValue,
configurationName));
}
}
/// <summary>
/// Report diagnostic for marshalling of a parameter/return that is not supported
/// </summary>
/// <param name="method">Method with the parameter/return</param>
/// <param name="info">Type info for the parameter/return</param>
/// <param name="notSupportedDetails">[Optional] Specific reason for lack of support</param>
public void ReportMarshallingNotSupported(
MethodDeclarationSyntax method,
TypePositionInfo info,
string? notSupportedDetails)
{
Location diagnosticLocation = Location.None;
string elementName = string.Empty;
if (info.IsManagedReturnPosition)
{
diagnosticLocation = Location.Create(method.SyntaxTree, method.Identifier.Span);
elementName = method.Identifier.ValueText;
}
else
{
Debug.Assert(info.ManagedIndex <= method.ParameterList.Parameters.Count);
ParameterSyntax param = method.ParameterList.Parameters[info.ManagedIndex];
diagnosticLocation = Location.Create(param.SyntaxTree, param.Identifier.Span);
elementName = param.Identifier.ValueText;
}
if (!string.IsNullOrEmpty(notSupportedDetails))
{
// Report the specific not-supported reason.
if (info.IsManagedReturnPosition)
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
notSupportedDetails!,
elementName));
}
else
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
notSupportedDetails!,
elementName));
}
}
else if (info.MarshallingAttributeInfo is MarshalAsInfo)
{
// Report that the specified marshalling configuration is not supported.
// We don't forward marshalling attributes, so this is reported differently
// than when there is no attribute and the type itself is not supported.
if (info.IsManagedReturnPosition)
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ReturnConfigurationNotSupported,
nameof(System.Runtime.InteropServices.MarshalAsAttribute),
elementName));
}
else
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ParameterConfigurationNotSupported,
nameof(System.Runtime.InteropServices.MarshalAsAttribute),
elementName));
}
}
else
{
// Report that the type is not supported
if (info.IsManagedReturnPosition)
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ReturnTypeNotSupported,
info.ManagedType.DiagnosticFormattedName,
elementName));
}
else
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ParameterTypeNotSupported,
info.ManagedType.DiagnosticFormattedName,
elementName));
}
}
}
public void ReportInvalidMarshallingAttributeInfo(
AttributeData attributeData,
string reasonResourceName,
params string[] reasonArgs)
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.MarshallingAttributeConfigurationNotSupported,
new LocalizableResourceString(reasonResourceName, Resources.ResourceManager, typeof(Resources), reasonArgs)));
}
/// <summary>
/// Report diagnostic for targeting a framework that is not supported
/// </summary>
/// <param name="minimumSupportedVersion">Minimum supported version of .NET</param>
public void ReportTargetFrameworkNotSupported(Version minimumSupportedVersion)
{
_diagnostics.Add(
Diagnostic.Create(
TargetFrameworkNotSupported,
Location.None,
minimumSupportedVersion.ToString(2)));
}
/// <summary>
/// Report diagnostic for configuration that cannot be forwarded to <see cref="DllImportAttribute" />
/// </summary>
/// <param name="method">Method with the configuration that cannot be forwarded</param>
/// <param name="name">Configuration name</param>
/// <param name="value">Configuration value</param>
public void ReportCannotForwardToDllImport(MethodDeclarationSyntax method, string name, string? value = null)
{
_diagnostics.Add(
Diagnostic.Create(
CannotForwardToDllImport,
Location.Create(method.SyntaxTree, method.Identifier.Span),
value is null ? name : $"{name}={value}"));
}
private static LocalizableResourceString GetResourceString(string resourceName)
{
return new LocalizableResourceString(resourceName, Resources.ResourceManager, typeof(Resources));
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Microsoft.Interop
{
/// <summary>
/// Class for reporting diagnostics in the library import generator
/// </summary>
public class GeneratorDiagnostics : IGeneratorDiagnostics
{
public class Ids
{
// SYSLIB1050-SYSLIB1059 are reserved for LibraryImportGenerator
public const string Prefix = "SYSLIB";
public const string InvalidLibraryImportAttributeUsage = Prefix + "1050";
public const string TypeNotSupported = Prefix + "1051";
public const string ConfigurationNotSupported = Prefix + "1052";
public const string TargetFrameworkNotSupported = Prefix + "1053";
public const string CannotForwardToDllImport = Prefix + "1054";
}
private const string Category = "LibraryImportGenerator";
public static readonly DiagnosticDescriptor InvalidAttributedMethodSignature =
new DiagnosticDescriptor(
Ids.InvalidLibraryImportAttributeUsage,
GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)),
GetResourceString(nameof(Resources.InvalidAttributedMethodSignatureMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.InvalidAttributedMethodDescription)));
public static readonly DiagnosticDescriptor InvalidAttributedMethodContainingTypeMissingModifiers =
new DiagnosticDescriptor(
Ids.InvalidLibraryImportAttributeUsage,
GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)),
GetResourceString(nameof(Resources.InvalidAttributedMethodContainingTypeMissingModifiersMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.InvalidAttributedMethodDescription)));
public static readonly DiagnosticDescriptor InvalidStringMarshallingConfiguration =
new DiagnosticDescriptor(
Ids.InvalidLibraryImportAttributeUsage,
GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)),
GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationDescription)));
public static readonly DiagnosticDescriptor ParameterTypeNotSupported =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageParameter)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ReturnTypeNotSupported =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageReturn)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ParameterTypeNotSupportedWithDetails =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageParameterWithDetails)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ReturnTypeNotSupportedWithDetails =
new DiagnosticDescriptor(
Ids.TypeNotSupported,
GetResourceString(nameof(Resources.TypeNotSupportedTitle)),
GetResourceString(nameof(Resources.TypeNotSupportedMessageReturnWithDetails)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TypeNotSupportedDescription)));
public static readonly DiagnosticDescriptor ParameterConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageParameter)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor ReturnConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageReturn)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor ConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor ConfigurationValueNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageValue)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor MarshallingAttributeConfigurationNotSupported =
new DiagnosticDescriptor(
Ids.ConfigurationNotSupported,
GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)),
GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageMarshallingInfo)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription)));
public static readonly DiagnosticDescriptor TargetFrameworkNotSupported =
new DiagnosticDescriptor(
Ids.TargetFrameworkNotSupported,
GetResourceString(nameof(Resources.TargetFrameworkNotSupportedTitle)),
GetResourceString(nameof(Resources.TargetFrameworkNotSupportedMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.TargetFrameworkNotSupportedDescription)));
public static readonly DiagnosticDescriptor CannotForwardToDllImport =
new DiagnosticDescriptor(
Ids.CannotForwardToDllImport,
GetResourceString(nameof(Resources.CannotForwardToDllImportTitle)),
GetResourceString(nameof(Resources.CannotForwardToDllImportMessage)),
Category,
DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: GetResourceString(nameof(Resources.CannotForwardToDllImportDescription)));
private readonly List<Diagnostic> _diagnostics = new List<Diagnostic>();
public IEnumerable<Diagnostic> Diagnostics => _diagnostics;
/// <summary>
/// Report diagnostic for invalid configuration for string marshalling.
/// </summary>
/// <param name="attributeData">Attribute specifying the invalid configuration</param>
/// <param name="methodName">Name of the method</param>
/// <param name="detailsMessage">Specific reason the configuration is invalid</param>
public void ReportInvalidStringMarshallingConfiguration(
AttributeData attributeData,
string methodName,
string detailsMessage)
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.InvalidStringMarshallingConfiguration,
methodName,
detailsMessage));
}
/// <summary>
/// Report diagnostic for configuration that is not supported by the DLL import source generator
/// </summary>
/// <param name="attributeData">Attribute specifying the unsupported configuration</param>
/// <param name="configurationName">Name of the configuration</param>
/// <param name="unsupportedValue">[Optiona] Unsupported configuration value</param>
public void ReportConfigurationNotSupported(
AttributeData attributeData,
string configurationName,
string? unsupportedValue = null)
{
if (unsupportedValue == null)
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.ConfigurationNotSupported,
configurationName));
}
else
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.ConfigurationValueNotSupported,
unsupportedValue,
configurationName));
}
}
/// <summary>
/// Report diagnostic for marshalling of a parameter/return that is not supported
/// </summary>
/// <param name="method">Method with the parameter/return</param>
/// <param name="info">Type info for the parameter/return</param>
/// <param name="notSupportedDetails">[Optional] Specific reason for lack of support</param>
public void ReportMarshallingNotSupported(
MethodDeclarationSyntax method,
TypePositionInfo info,
string? notSupportedDetails)
{
Location diagnosticLocation = Location.None;
string elementName = string.Empty;
if (info.IsManagedReturnPosition)
{
diagnosticLocation = Location.Create(method.SyntaxTree, method.Identifier.Span);
elementName = method.Identifier.ValueText;
}
else
{
Debug.Assert(info.ManagedIndex <= method.ParameterList.Parameters.Count);
ParameterSyntax param = method.ParameterList.Parameters[info.ManagedIndex];
diagnosticLocation = Location.Create(param.SyntaxTree, param.Identifier.Span);
elementName = param.Identifier.ValueText;
}
if (!string.IsNullOrEmpty(notSupportedDetails))
{
// Report the specific not-supported reason.
if (info.IsManagedReturnPosition)
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
notSupportedDetails!,
elementName));
}
else
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
notSupportedDetails!,
elementName));
}
}
else if (info.MarshallingAttributeInfo is MarshalAsInfo)
{
// Report that the specified marshalling configuration is not supported.
// We don't forward marshalling attributes, so this is reported differently
// than when there is no attribute and the type itself is not supported.
if (info.IsManagedReturnPosition)
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ReturnConfigurationNotSupported,
nameof(System.Runtime.InteropServices.MarshalAsAttribute),
elementName));
}
else
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ParameterConfigurationNotSupported,
nameof(System.Runtime.InteropServices.MarshalAsAttribute),
elementName));
}
}
else
{
// Report that the type is not supported
if (info.IsManagedReturnPosition)
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ReturnTypeNotSupported,
info.ManagedType.DiagnosticFormattedName,
elementName));
}
else
{
_diagnostics.Add(
diagnosticLocation.CreateDiagnostic(
GeneratorDiagnostics.ParameterTypeNotSupported,
info.ManagedType.DiagnosticFormattedName,
elementName));
}
}
}
public void ReportInvalidMarshallingAttributeInfo(
AttributeData attributeData,
string reasonResourceName,
params string[] reasonArgs)
{
_diagnostics.Add(
attributeData.CreateDiagnostic(
GeneratorDiagnostics.MarshallingAttributeConfigurationNotSupported,
new LocalizableResourceString(reasonResourceName, Resources.ResourceManager, typeof(Resources), reasonArgs)));
}
/// <summary>
/// Report diagnostic for targeting a framework that is not supported
/// </summary>
/// <param name="minimumSupportedVersion">Minimum supported version of .NET</param>
public void ReportTargetFrameworkNotSupported(Version minimumSupportedVersion)
{
_diagnostics.Add(
Diagnostic.Create(
TargetFrameworkNotSupported,
Location.None,
minimumSupportedVersion.ToString(2)));
}
/// <summary>
/// Report diagnostic for configuration that cannot be forwarded to <see cref="DllImportAttribute" />
/// </summary>
/// <param name="method">Method with the configuration that cannot be forwarded</param>
/// <param name="name">Configuration name</param>
/// <param name="value">Configuration value</param>
public void ReportCannotForwardToDllImport(MethodDeclarationSyntax method, string name, string? value = null)
{
_diagnostics.Add(
Diagnostic.Create(
CannotForwardToDllImport,
Location.Create(method.SyntaxTree, method.Identifier.Span),
value is null ? name : $"{name}={value}"));
}
private static LocalizableResourceString GetResourceString(string resourceName)
{
return new LocalizableResourceString(resourceName, Resources.ResourceManager, typeof(Resources));
}
}
}
| 1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XsltFunctions.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable disable
using System.IO;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System.ComponentModel;
using System.Globalization;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Xml.Schema;
using System.Xml.XPath;
using System.Xml.Xsl.Xslt;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
namespace System.Xml.Xsl.Runtime
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static class XsltFunctions
{
private static readonly CompareInfo s_compareInfo = CultureInfo.InvariantCulture.CompareInfo;
//------------------------------------------------
// Xslt/XPath functions
//------------------------------------------------
public static bool StartsWith(string s1, string s2)
{
//return collation.IsPrefix(s1, s2);
return s1.Length >= s2.Length && string.CompareOrdinal(s1, 0, s2, 0, s2.Length) == 0;
}
public static bool Contains(string s1, string s2)
{
//return collation.IndexOf(s1, s2) >= 0;
return s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal) >= 0;
}
public static string SubstringBefore(string s1, string s2)
{
if (s2.Length == 0) { return s2; }
//int idx = collation.IndexOf(s1, s2);
int idx = s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal);
return (idx < 1) ? string.Empty : s1.Substring(0, idx);
}
public static string SubstringAfter(string s1, string s2)
{
if (s2.Length == 0) { return s1; }
//int idx = collation.IndexOf(s1, s2);
int idx = s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal);
return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length);
}
public static string Substring(string value, double startIndex)
{
startIndex = Round(startIndex);
if (startIndex <= 0)
{
return value;
}
else if (startIndex <= value.Length)
{
return value.Substring((int)startIndex - 1);
}
else
{
Debug.Assert(value.Length < startIndex || double.IsNaN(startIndex));
return string.Empty;
}
}
public static string Substring(string value, double startIndex, double length)
{
startIndex = Round(startIndex) - 1; // start index
if (startIndex >= value.Length)
{
return string.Empty;
}
double endIndex = startIndex + Round(length); // end index
startIndex = (startIndex <= 0) ? 0 : startIndex;
if (startIndex < endIndex)
{
if (endIndex > value.Length)
{
endIndex = value.Length;
}
Debug.Assert(0 <= startIndex && startIndex <= endIndex && endIndex <= value.Length);
return value.Substring((int)startIndex, (int)(endIndex - startIndex));
}
else
{
Debug.Assert(endIndex <= startIndex || double.IsNaN(endIndex));
return string.Empty;
}
}
public static string NormalizeSpace(string value)
{
StringBuilder sb = null;
int idx, idxStart = 0, idxSpace = 0;
for (idx = 0; idx < value.Length; idx++)
{
if (XmlCharType.IsWhiteSpace(value[idx]))
{
if (idx == idxStart)
{
// Previous character was a whitespace character, so discard this character
idxStart++;
}
else if (value[idx] != ' ' || idxSpace == idx)
{
// Space was previous character or this is a non-space character
if (sb == null)
sb = new StringBuilder(value.Length);
else
sb.Append(' ');
// Copy non-space characters into string builder
if (idxSpace == idx)
sb.Append(value, idxStart, idx - idxStart - 1);
else
sb.Append(value, idxStart, idx - idxStart);
idxStart = idx + 1;
}
else
{
// Single whitespace character doesn't cause normalization, but mark its position
idxSpace = idx + 1;
}
}
}
if (sb == null)
{
// Check for string that is entirely composed of whitespace
if (idxStart == idx) return string.Empty;
// If string does not end with a space, then it must already be normalized
if (idxStart == 0 && idxSpace != idx) return value;
sb = new StringBuilder(value.Length);
}
else if (idx != idxStart)
{
sb.Append(' ');
}
// Copy non-space characters into string builder
if (idxSpace == idx)
sb.Append(value, idxStart, idx - idxStart - 1);
else
sb.Append(value, idxStart, idx - idxStart);
return sb.ToString();
}
public static string Translate(string arg, string mapString, string transString)
{
if (mapString.Length == 0)
{
return arg;
}
StringBuilder sb = new StringBuilder(arg.Length);
for (int i = 0; i < arg.Length; i++)
{
int index = mapString.IndexOf(arg[i]);
if (index < 0)
{
// Keep the character
sb.Append(arg[i]);
}
else if (index < transString.Length)
{
// Replace the character
sb.Append(transString[index]);
}
else
{
// Remove the character
}
}
return sb.ToString();
}
public static bool Lang(string value, XPathNavigator context)
{
string lang = context.XmlLang;
if (!lang.StartsWith(value, StringComparison.OrdinalIgnoreCase))
{
return false;
}
return (lang.Length == value.Length || lang[value.Length] == '-');
}
// Round value using XPath rounding rules (round towards positive infinity).
// Values between -0.5 and -0.0 are rounded to -0.0 (negative zero).
public static double Round(double value)
{
double temp = Math.Round(value);
return (value - temp == 0.5) ? temp + 1 : temp;
}
// Spec: http://www.w3.org/TR/xslt.html#function-system-property
public static XPathItem SystemProperty(XmlQualifiedName name)
{
if (name.Namespace == XmlReservedNs.NsXslt)
{
// "xsl:version" must return 1.0 as a number, see http://www.w3.org/TR/xslt20/#incompatility-without-schema
switch (name.Name)
{
case "version": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), 1.0);
case "vendor": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "Microsoft");
case "vendor-url": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "http://www.microsoft.com");
}
}
else if (name.Namespace == XmlReservedNs.NsMsxsl && name.Name == "version")
{
// msxsl:version
return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion);
}
// If the property name is not recognized, return the empty string
return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), string.Empty);
}
//------------------------------------------------
// Navigator functions
//------------------------------------------------
public static string BaseUri(XPathNavigator navigator)
{
return navigator.BaseURI;
}
public static string OuterXml(XPathNavigator navigator)
{
RtfNavigator rtf = navigator as RtfNavigator;
if (rtf == null)
{
return navigator.OuterXml;
}
StringBuilder sb = new StringBuilder();
XmlWriterSettings settings = new XmlWriterSettings();
settings.OmitXmlDeclaration = true;
settings.ConformanceLevel = ConformanceLevel.Fragment;
settings.CheckCharacters = false;
XmlWriter xw = XmlWriter.Create(sb, settings);
rtf.CopyToWriter(xw);
xw.Close();
return sb.ToString();
}
//------------------------------------------------
// EXslt Functions
//------------------------------------------------
public static string EXslObjectType(IList<XPathItem> value)
{
if (value.Count != 1)
{
XsltLibrary.CheckXsltValue(value);
return "node-set";
}
XPathItem item = value[0];
if (item is RtfNavigator)
{
return "RTF";
}
else if (item.IsNode)
{
Debug.Assert(item is XPathNavigator);
return "node-set";
}
object o = item.TypedValue;
if (o is string)
{
return "string";
}
else if (o is double)
{
return "number";
}
else if (o is bool)
{
return "boolean";
}
else
{
Debug.Fail($"Unexpected type: {o.GetType()}");
return "external";
}
}
//------------------------------------------------
// Msxml Extension Functions
//------------------------------------------------
public static double MSNumber(IList<XPathItem> value)
{
XsltLibrary.CheckXsltValue(value);
if (value.Count == 0)
{
return double.NaN;
}
XPathItem item = value[0];
string stringValue;
if (item.IsNode)
{
stringValue = item.Value;
}
else
{
Type itemType = item.ValueType;
if (itemType == XsltConvert.StringType)
{
stringValue = item.Value;
}
else if (itemType == XsltConvert.DoubleType)
{
return item.ValueAsDouble;
}
else
{
Debug.Assert(itemType == XsltConvert.BooleanType, $"Unexpected type of atomic value {itemType}");
return item.ValueAsBoolean ? 1d : 0d;
}
}
Debug.Assert(stringValue != null);
double d;
if (XmlConvert.TryToDouble(stringValue, out d) != null)
{
d = double.NaN;
}
return d;
}
// string ms:format-date(string datetime[, string format[, string language]])
// string ms:format-time(string datetime[, string format[, string language]])
//
// Format xsd:dateTime as a date/time string for a given language using a given format string.
// * Datetime contains a lexical representation of xsd:dateTime. If datetime is not valid, the
// empty string is returned.
// * Format specifies a format string in the same way as for GetDateFormat/GetTimeFormat system
// functions. If format is the empty string or not passed, the default date/time format for the
// given culture is used.
// * Language specifies a culture used for formatting. If language is the empty string or not
// passed, the current culture is used. If language is not recognized, a runtime error happens.
public static string MSFormatDateTime(string dateTime, string format, string lang, bool isDate)
{
try
{
string locale = GetCultureInfo(lang).Name;
XsdDateTime xdt;
if (!XsdDateTime.TryParse(dateTime, XsdDateTimeFlags.AllXsd | XsdDateTimeFlags.XdrDateTime | XsdDateTimeFlags.XdrTimeNoTz, out xdt))
{
return string.Empty;
}
DateTime dt = xdt.ToZulu();
// If format is the empty string or not specified, use the default format for the given locale
if (format.Length == 0)
{
format = null;
}
return dt.ToString(format, new CultureInfo(locale));
}
catch (ArgumentException)
{ // Operations with DateTime can throw this exception eventualy
return string.Empty;
}
}
public static double MSStringCompare(string s1, string s2, string lang, string options)
{
CultureInfo cultinfo = GetCultureInfo(lang);
CompareOptions opts = CompareOptions.None;
bool upperFirst = false;
for (int idx = 0; idx < options.Length; idx++)
{
switch (options[idx])
{
case 'i':
opts = CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth;
break;
case 'u':
upperFirst = true;
break;
default:
upperFirst = true;
opts = CompareOptions.IgnoreCase;
break;
}
}
if (upperFirst)
{
if (opts != CompareOptions.None)
{
throw new XslTransformException(SR.Xslt_InvalidCompareOption, options);
}
opts = CompareOptions.IgnoreCase;
}
int result = cultinfo.CompareInfo.Compare(s1, s2, opts);
if (upperFirst && result == 0)
{
result = -cultinfo.CompareInfo.Compare(s1, s2, CompareOptions.None);
}
return result;
}
public static string MSUtc(string dateTime)
{
XsdDateTime xdt;
DateTime dt;
try
{
if (!XsdDateTime.TryParse(dateTime, XsdDateTimeFlags.AllXsd | XsdDateTimeFlags.XdrDateTime | XsdDateTimeFlags.XdrTimeNoTz, out xdt))
{
return string.Empty;
}
dt = xdt.ToZulu();
}
catch (ArgumentException)
{ // Operations with DateTime can throw this exception eventualy
return string.Empty;
}
char[] text = "----------T00:00:00.000".ToCharArray();
// "YYYY-MM-DDTHH:NN:SS.III"
// 0 1 2
// 01234567890123456789012
switch (xdt.TypeCode)
{
case XmlTypeCode.DateTime:
PrintDate(text, dt);
PrintTime(text, dt);
break;
case XmlTypeCode.Time:
PrintTime(text, dt);
break;
case XmlTypeCode.Date:
PrintDate(text, dt);
break;
case XmlTypeCode.GYearMonth:
PrintYear(text, dt.Year);
ShortToCharArray(text, 5, dt.Month);
break;
case XmlTypeCode.GYear:
PrintYear(text, dt.Year);
break;
case XmlTypeCode.GMonthDay:
ShortToCharArray(text, 5, dt.Month);
ShortToCharArray(text, 8, dt.Day);
break;
case XmlTypeCode.GDay:
ShortToCharArray(text, 8, dt.Day);
break;
case XmlTypeCode.GMonth:
ShortToCharArray(text, 5, dt.Month);
break;
}
return new string(text);
}
public static string MSLocalName(string name)
{
int colonOffset;
int len = ValidateNames.ParseQName(name, 0, out colonOffset);
if (len != name.Length)
{
return string.Empty;
}
if (colonOffset == 0)
{
return name;
}
else
{
return name.Substring(colonOffset + 1);
}
}
public static string MSNamespaceUri(string name, XPathNavigator currentNode)
{
int colonOffset;
int len = ValidateNames.ParseQName(name, 0, out colonOffset);
if (len != name.Length)
{
return string.Empty;
}
string prefix = name.Substring(0, colonOffset);
if (prefix == "xmlns")
{
return string.Empty;
}
string ns = currentNode.LookupNamespace(prefix);
if (ns != null)
{
return ns;
}
if (prefix == "xml")
{
return XmlReservedNs.NsXml;
}
return string.Empty;
}
//------------------------------------------------
// Helper Functions
//------------------------------------------------
private static CultureInfo GetCultureInfo(string lang)
{
Debug.Assert(lang != null);
if (lang.Length == 0)
{
return CultureInfo.CurrentCulture;
}
else
{
try
{
return new CultureInfo(lang);
}
catch (System.ArgumentException)
{
throw new XslTransformException(SR.Xslt_InvalidLanguage, lang);
}
}
}
private static void PrintDate(char[] text, DateTime dt)
{
PrintYear(text, dt.Year);
ShortToCharArray(text, 5, dt.Month);
ShortToCharArray(text, 8, dt.Day);
}
private static void PrintTime(char[] text, DateTime dt)
{
ShortToCharArray(text, 11, dt.Hour);
ShortToCharArray(text, 14, dt.Minute);
ShortToCharArray(text, 17, dt.Second);
PrintMsec(text, dt.Millisecond);
}
private static void PrintYear(char[] text, int value)
{
text[0] = (char)((value / 1000) % 10 + '0');
text[1] = (char)((value / 100) % 10 + '0');
text[2] = (char)((value / 10) % 10 + '0');
text[3] = (char)((value / 1) % 10 + '0');
}
private static void PrintMsec(char[] text, int value)
{
if (value == 0)
{
return;
}
text[20] = (char)((value / 100) % 10 + '0');
text[21] = (char)((value / 10) % 10 + '0');
text[22] = (char)((value / 1) % 10 + '0');
}
private static void ShortToCharArray(char[] text, int start, int value)
{
text[start] = (char)(value / 10 + '0');
text[start + 1] = (char)(value % 10 + '0');
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#nullable disable
using System.IO;
using System.Text;
using System.Reflection;
using System.Diagnostics;
using System.ComponentModel;
using System.Globalization;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Xml.Schema;
using System.Xml.XPath;
using System.Xml.Xsl.Xslt;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
namespace System.Xml.Xsl.Runtime
{
[EditorBrowsable(EditorBrowsableState.Never)]
public static class XsltFunctions
{
private static readonly CompareInfo s_compareInfo = CultureInfo.InvariantCulture.CompareInfo;
//------------------------------------------------
// Xslt/XPath functions
//------------------------------------------------
public static bool StartsWith(string s1, string s2)
{
//return collation.IsPrefix(s1, s2);
return s1.Length >= s2.Length && string.CompareOrdinal(s1, 0, s2, 0, s2.Length) == 0;
}
public static bool Contains(string s1, string s2)
{
//return collation.IndexOf(s1, s2) >= 0;
return s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal) >= 0;
}
public static string SubstringBefore(string s1, string s2)
{
if (s2.Length == 0) { return s2; }
//int idx = collation.IndexOf(s1, s2);
int idx = s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal);
return (idx < 1) ? string.Empty : s1.Substring(0, idx);
}
public static string SubstringAfter(string s1, string s2)
{
if (s2.Length == 0) { return s1; }
//int idx = collation.IndexOf(s1, s2);
int idx = s_compareInfo.IndexOf(s1, s2, CompareOptions.Ordinal);
return (idx < 0) ? string.Empty : s1.Substring(idx + s2.Length);
}
public static string Substring(string value, double startIndex)
{
startIndex = Round(startIndex);
if (startIndex <= 0)
{
return value;
}
else if (startIndex <= value.Length)
{
return value.Substring((int)startIndex - 1);
}
else
{
Debug.Assert(value.Length < startIndex || double.IsNaN(startIndex));
return string.Empty;
}
}
public static string Substring(string value, double startIndex, double length)
{
startIndex = Round(startIndex) - 1; // start index
if (startIndex >= value.Length)
{
return string.Empty;
}
double endIndex = startIndex + Round(length); // end index
startIndex = (startIndex <= 0) ? 0 : startIndex;
if (startIndex < endIndex)
{
if (endIndex > value.Length)
{
endIndex = value.Length;
}
Debug.Assert(0 <= startIndex && startIndex <= endIndex && endIndex <= value.Length);
return value.Substring((int)startIndex, (int)(endIndex - startIndex));
}
else
{
Debug.Assert(endIndex <= startIndex || double.IsNaN(endIndex));
return string.Empty;
}
}
public static string NormalizeSpace(string value)
{
StringBuilder sb = null;
int idx, idxStart = 0, idxSpace = 0;
for (idx = 0; idx < value.Length; idx++)
{
if (XmlCharType.IsWhiteSpace(value[idx]))
{
if (idx == idxStart)
{
// Previous character was a whitespace character, so discard this character
idxStart++;
}
else if (value[idx] != ' ' || idxSpace == idx)
{
// Space was previous character or this is a non-space character
if (sb == null)
sb = new StringBuilder(value.Length);
else
sb.Append(' ');
// Copy non-space characters into string builder
if (idxSpace == idx)
sb.Append(value, idxStart, idx - idxStart - 1);
else
sb.Append(value, idxStart, idx - idxStart);
idxStart = idx + 1;
}
else
{
// Single whitespace character doesn't cause normalization, but mark its position
idxSpace = idx + 1;
}
}
}
if (sb == null)
{
// Check for string that is entirely composed of whitespace
if (idxStart == idx) return string.Empty;
// If string does not end with a space, then it must already be normalized
if (idxStart == 0 && idxSpace != idx) return value;
sb = new StringBuilder(value.Length);
}
else if (idx != idxStart)
{
sb.Append(' ');
}
// Copy non-space characters into string builder
if (idxSpace == idx)
sb.Append(value, idxStart, idx - idxStart - 1);
else
sb.Append(value, idxStart, idx - idxStart);
return sb.ToString();
}
public static string Translate(string arg, string mapString, string transString)
{
if (mapString.Length == 0)
{
return arg;
}
StringBuilder sb = new StringBuilder(arg.Length);
for (int i = 0; i < arg.Length; i++)
{
int index = mapString.IndexOf(arg[i]);
if (index < 0)
{
// Keep the character
sb.Append(arg[i]);
}
else if (index < transString.Length)
{
// Replace the character
sb.Append(transString[index]);
}
else
{
// Remove the character
}
}
return sb.ToString();
}
public static bool Lang(string value, XPathNavigator context)
{
string lang = context.XmlLang;
if (!lang.StartsWith(value, StringComparison.OrdinalIgnoreCase))
{
return false;
}
return (lang.Length == value.Length || lang[value.Length] == '-');
}
// Round value using XPath rounding rules (round towards positive infinity).
// Values between -0.5 and -0.0 are rounded to -0.0 (negative zero).
public static double Round(double value)
{
double temp = Math.Round(value);
return (value - temp == 0.5) ? temp + 1 : temp;
}
// Spec: http://www.w3.org/TR/xslt.html#function-system-property
public static XPathItem SystemProperty(XmlQualifiedName name)
{
if (name.Namespace == XmlReservedNs.NsXslt)
{
// "xsl:version" must return 1.0 as a number, see http://www.w3.org/TR/xslt20/#incompatility-without-schema
switch (name.Name)
{
case "version": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), 1.0);
case "vendor": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "Microsoft");
case "vendor-url": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "http://www.microsoft.com");
}
}
else if (name.Namespace == XmlReservedNs.NsMsxsl && name.Name == "version")
{
// msxsl:version
return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion);
}
// If the property name is not recognized, return the empty string
return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), string.Empty);
}
//------------------------------------------------
// Navigator functions
//------------------------------------------------
public static string BaseUri(XPathNavigator navigator)
{
return navigator.BaseURI;
}
public static string OuterXml(XPathNavigator navigator)
{
RtfNavigator rtf = navigator as RtfNavigator;
if (rtf == null)
{
return navigator.OuterXml;
}
StringBuilder sb = new StringBuilder();
XmlWriterSettings settings = new XmlWriterSettings();
settings.OmitXmlDeclaration = true;
settings.ConformanceLevel = ConformanceLevel.Fragment;
settings.CheckCharacters = false;
XmlWriter xw = XmlWriter.Create(sb, settings);
rtf.CopyToWriter(xw);
xw.Close();
return sb.ToString();
}
//------------------------------------------------
// EXslt Functions
//------------------------------------------------
public static string EXslObjectType(IList<XPathItem> value)
{
if (value.Count != 1)
{
XsltLibrary.CheckXsltValue(value);
return "node-set";
}
XPathItem item = value[0];
if (item is RtfNavigator)
{
return "RTF";
}
else if (item.IsNode)
{
Debug.Assert(item is XPathNavigator);
return "node-set";
}
object o = item.TypedValue;
if (o is string)
{
return "string";
}
else if (o is double)
{
return "number";
}
else if (o is bool)
{
return "boolean";
}
else
{
Debug.Fail($"Unexpected type: {o.GetType()}");
return "external";
}
}
//------------------------------------------------
// Msxml Extension Functions
//------------------------------------------------
public static double MSNumber(IList<XPathItem> value)
{
XsltLibrary.CheckXsltValue(value);
if (value.Count == 0)
{
return double.NaN;
}
XPathItem item = value[0];
string stringValue;
if (item.IsNode)
{
stringValue = item.Value;
}
else
{
Type itemType = item.ValueType;
if (itemType == XsltConvert.StringType)
{
stringValue = item.Value;
}
else if (itemType == XsltConvert.DoubleType)
{
return item.ValueAsDouble;
}
else
{
Debug.Assert(itemType == XsltConvert.BooleanType, $"Unexpected type of atomic value {itemType}");
return item.ValueAsBoolean ? 1d : 0d;
}
}
Debug.Assert(stringValue != null);
double d;
if (XmlConvert.TryToDouble(stringValue, out d) != null)
{
d = double.NaN;
}
return d;
}
// string ms:format-date(string datetime[, string format[, string language]])
// string ms:format-time(string datetime[, string format[, string language]])
//
// Format xsd:dateTime as a date/time string for a given language using a given format string.
// * Datetime contains a lexical representation of xsd:dateTime. If datetime is not valid, the
// empty string is returned.
// * Format specifies a format string in the same way as for GetDateFormat/GetTimeFormat system
// functions. If format is the empty string or not passed, the default date/time format for the
// given culture is used.
// * Language specifies a culture used for formatting. If language is the empty string or not
// passed, the current culture is used. If language is not recognized, a runtime error happens.
public static string MSFormatDateTime(string dateTime, string format, string lang, bool isDate)
{
try
{
string locale = GetCultureInfo(lang).Name;
XsdDateTime xdt;
if (!XsdDateTime.TryParse(dateTime, XsdDateTimeFlags.AllXsd | XsdDateTimeFlags.XdrDateTime | XsdDateTimeFlags.XdrTimeNoTz, out xdt))
{
return string.Empty;
}
DateTime dt = xdt.ToZulu();
// If format is the empty string or not specified, use the default format for the given locale
if (format.Length == 0)
{
format = null;
}
return dt.ToString(format, new CultureInfo(locale));
}
catch (ArgumentException)
{ // Operations with DateTime can throw this exception eventualy
return string.Empty;
}
}
public static double MSStringCompare(string s1, string s2, string lang, string options)
{
CultureInfo cultinfo = GetCultureInfo(lang);
CompareOptions opts = CompareOptions.None;
bool upperFirst = false;
for (int idx = 0; idx < options.Length; idx++)
{
switch (options[idx])
{
case 'i':
opts = CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth;
break;
case 'u':
upperFirst = true;
break;
default:
upperFirst = true;
opts = CompareOptions.IgnoreCase;
break;
}
}
if (upperFirst)
{
if (opts != CompareOptions.None)
{
throw new XslTransformException(SR.Xslt_InvalidCompareOption, options);
}
opts = CompareOptions.IgnoreCase;
}
int result = cultinfo.CompareInfo.Compare(s1, s2, opts);
if (upperFirst && result == 0)
{
result = -cultinfo.CompareInfo.Compare(s1, s2, CompareOptions.None);
}
return result;
}
public static string MSUtc(string dateTime)
{
XsdDateTime xdt;
DateTime dt;
try
{
if (!XsdDateTime.TryParse(dateTime, XsdDateTimeFlags.AllXsd | XsdDateTimeFlags.XdrDateTime | XsdDateTimeFlags.XdrTimeNoTz, out xdt))
{
return string.Empty;
}
dt = xdt.ToZulu();
}
catch (ArgumentException)
{ // Operations with DateTime can throw this exception eventualy
return string.Empty;
}
char[] text = "----------T00:00:00.000".ToCharArray();
// "YYYY-MM-DDTHH:NN:SS.III"
// 0 1 2
// 01234567890123456789012
switch (xdt.TypeCode)
{
case XmlTypeCode.DateTime:
PrintDate(text, dt);
PrintTime(text, dt);
break;
case XmlTypeCode.Time:
PrintTime(text, dt);
break;
case XmlTypeCode.Date:
PrintDate(text, dt);
break;
case XmlTypeCode.GYearMonth:
PrintYear(text, dt.Year);
ShortToCharArray(text, 5, dt.Month);
break;
case XmlTypeCode.GYear:
PrintYear(text, dt.Year);
break;
case XmlTypeCode.GMonthDay:
ShortToCharArray(text, 5, dt.Month);
ShortToCharArray(text, 8, dt.Day);
break;
case XmlTypeCode.GDay:
ShortToCharArray(text, 8, dt.Day);
break;
case XmlTypeCode.GMonth:
ShortToCharArray(text, 5, dt.Month);
break;
}
return new string(text);
}
public static string MSLocalName(string name)
{
int colonOffset;
int len = ValidateNames.ParseQName(name, 0, out colonOffset);
if (len != name.Length)
{
return string.Empty;
}
if (colonOffset == 0)
{
return name;
}
else
{
return name.Substring(colonOffset + 1);
}
}
public static string MSNamespaceUri(string name, XPathNavigator currentNode)
{
int colonOffset;
int len = ValidateNames.ParseQName(name, 0, out colonOffset);
if (len != name.Length)
{
return string.Empty;
}
string prefix = name.Substring(0, colonOffset);
if (prefix == "xmlns")
{
return string.Empty;
}
string ns = currentNode.LookupNamespace(prefix);
if (ns != null)
{
return ns;
}
if (prefix == "xml")
{
return XmlReservedNs.NsXml;
}
return string.Empty;
}
//------------------------------------------------
// Helper Functions
//------------------------------------------------
private static CultureInfo GetCultureInfo(string lang)
{
Debug.Assert(lang != null);
if (lang.Length == 0)
{
return CultureInfo.CurrentCulture;
}
else
{
try
{
return new CultureInfo(lang);
}
catch (System.ArgumentException)
{
throw new XslTransformException(SR.Xslt_InvalidLanguage, lang);
}
}
}
private static void PrintDate(char[] text, DateTime dt)
{
PrintYear(text, dt.Year);
ShortToCharArray(text, 5, dt.Month);
ShortToCharArray(text, 8, dt.Day);
}
private static void PrintTime(char[] text, DateTime dt)
{
ShortToCharArray(text, 11, dt.Hour);
ShortToCharArray(text, 14, dt.Minute);
ShortToCharArray(text, 17, dt.Second);
PrintMsec(text, dt.Millisecond);
}
private static void PrintYear(char[] text, int value)
{
text[0] = (char)((value / 1000) % 10 + '0');
text[1] = (char)((value / 100) % 10 + '0');
text[2] = (char)((value / 10) % 10 + '0');
text[3] = (char)((value / 1) % 10 + '0');
}
private static void PrintMsec(char[] text, int value)
{
if (value == 0)
{
return;
}
text[20] = (char)((value / 100) % 10 + '0');
text[21] = (char)((value / 10) % 10 + '0');
text[22] = (char)((value / 1) % 10 + '0');
}
private static void ShortToCharArray(char[] text, int start, int value)
{
text[start] = (char)(value / 10 + '0');
text[start + 1] = (char)(value % 10 + '0');
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.CoreLib/src/System/Random.Xoshiro256StarStarImpl.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System
{
public partial class Random
{
/// <summary>
/// Provides an implementation of the xoshiro256** algorithm. This implementation is used
/// on 64-bit when no seed is specified and an instance of the base Random class is constructed.
/// As such, we are free to implement however we see fit, without back compat concerns around
/// the sequence of numbers generated or what methods call what other methods.
/// </summary>
internal sealed class XoshiroImpl : ImplBase
{
// NextUInt64 is based on the algorithm from http://prng.di.unimi.it/xoshiro256starstar.c:
//
// Written in 2018 by David Blackman and Sebastiano Vigna ([email protected])
//
// To the extent possible under law, the author has dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
//
// See <http://creativecommons.org/publicdomain/zero/1.0/>.
private ulong _s0, _s1, _s2, _s3;
public unsafe XoshiroImpl()
{
ulong* ptr = stackalloc ulong[4];
do
{
Interop.GetRandomBytes((byte*)ptr, 4 * sizeof(ulong));
_s0 = ptr[0];
_s1 = ptr[1];
_s2 = ptr[2];
_s3 = ptr[3];
}
while ((_s0 | _s1 | _s2 | _s3) == 0); // at least one value must be non-zero
}
/// <summary>Produces a value in the range [0, uint.MaxValue].</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)] // small-ish hot path used by very few call sites
internal uint NextUInt32() => (uint)(NextUInt64() >> 32);
/// <summary>Produces a value in the range [0, ulong.MaxValue].</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)] // small-ish hot path used by a handful of "next" methods
internal ulong NextUInt64()
{
ulong s0 = _s0, s1 = _s1, s2 = _s2, s3 = _s3;
ulong result = BitOperations.RotateLeft(s1 * 5, 7) * 9;
ulong t = s1 << 17;
s2 ^= s0;
s3 ^= s1;
s1 ^= s2;
s0 ^= s3;
s2 ^= t;
s3 = BitOperations.RotateLeft(s3, 45);
_s0 = s0;
_s1 = s1;
_s2 = s2;
_s3 = s3;
return result;
}
public override int Next()
{
while (true)
{
// Get top 31 bits to get a value in the range [0, int.MaxValue], but try again
// if the value is actually int.MaxValue, as the method is defined to return a value
// in the range [0, int.MaxValue).
ulong result = NextUInt64() >> 33;
if (result != int.MaxValue)
{
return (int)result;
}
}
}
public override int Next(int maxValue)
{
if (maxValue > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling((uint)maxValue);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < (uint)maxValue)
{
return (int)result;
}
}
}
Debug.Assert(maxValue == 0 || maxValue == 1);
return 0;
}
public override int Next(int minValue, int maxValue)
{
ulong exclusiveRange = (ulong)((long)maxValue - minValue);
if (exclusiveRange > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling(exclusiveRange);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < exclusiveRange)
{
return (int)result + minValue;
}
}
}
Debug.Assert(minValue == maxValue || minValue + 1 == maxValue);
return minValue;
}
public override long NextInt64()
{
while (true)
{
// Get top 63 bits to get a value in the range [0, long.MaxValue], but try again
// if the value is actually long.MaxValue, as the method is defined to return a value
// in the range [0, long.MaxValue).
ulong result = NextUInt64() >> 1;
if (result != long.MaxValue)
{
return (long)result;
}
}
}
public override long NextInt64(long maxValue)
{
if (maxValue > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling((ulong)maxValue);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < (ulong)maxValue)
{
return (long)result;
}
}
}
Debug.Assert(maxValue == 0 || maxValue == 1);
return 0;
}
public override long NextInt64(long minValue, long maxValue)
{
ulong exclusiveRange = (ulong)(maxValue - minValue);
if (exclusiveRange > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling(exclusiveRange);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < exclusiveRange)
{
return (long)result + minValue;
}
}
}
Debug.Assert(minValue == maxValue || minValue + 1 == maxValue);
return minValue;
}
public override void NextBytes(byte[] buffer) => NextBytes((Span<byte>)buffer);
public override unsafe void NextBytes(Span<byte> buffer)
{
ulong s0 = _s0, s1 = _s1, s2 = _s2, s3 = _s3;
while (buffer.Length >= sizeof(ulong))
{
Unsafe.WriteUnaligned(
ref MemoryMarshal.GetReference(buffer),
BitOperations.RotateLeft(s1 * 5, 7) * 9);
// Update PRNG state.
ulong t = s1 << 17;
s2 ^= s0;
s3 ^= s1;
s1 ^= s2;
s0 ^= s3;
s2 ^= t;
s3 = BitOperations.RotateLeft(s3, 45);
buffer = buffer.Slice(sizeof(ulong));
}
if (!buffer.IsEmpty)
{
ulong next = BitOperations.RotateLeft(s1 * 5, 7) * 9;
byte* remainingBytes = (byte*)&next;
Debug.Assert(buffer.Length < sizeof(ulong));
for (int i = 0; i < buffer.Length; i++)
{
buffer[i] = remainingBytes[i];
}
// Update PRNG state.
ulong t = s1 << 17;
s2 ^= s0;
s3 ^= s1;
s1 ^= s2;
s0 ^= s3;
s2 ^= t;
s3 = BitOperations.RotateLeft(s3, 45);
}
_s0 = s0;
_s1 = s1;
_s2 = s2;
_s3 = s3;
}
public override double NextDouble() =>
// As described in http://prng.di.unimi.it/:
// "A standard double (64-bit) floating-point number in IEEE floating point format has 52 bits of significand,
// plus an implicit bit at the left of the significand. Thus, the representation can actually store numbers with
// 53 significant binary digits. Because of this fact, in C99 a 64-bit unsigned integer x should be converted to
// a 64-bit double using the expression
// (x >> 11) * 0x1.0p-53"
(NextUInt64() >> 11) * (1.0 / (1ul << 53));
public override float NextSingle() =>
// Same as above, but with 24 bits instead of 53.
(NextUInt64() >> 40) * (1.0f / (1u << 24));
public override double Sample()
{
Debug.Fail("Not used or called for this implementation.");
throw new NotSupportedException();
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System
{
public partial class Random
{
/// <summary>
/// Provides an implementation of the xoshiro256** algorithm. This implementation is used
/// on 64-bit when no seed is specified and an instance of the base Random class is constructed.
/// As such, we are free to implement however we see fit, without back compat concerns around
/// the sequence of numbers generated or what methods call what other methods.
/// </summary>
internal sealed class XoshiroImpl : ImplBase
{
// NextUInt64 is based on the algorithm from http://prng.di.unimi.it/xoshiro256starstar.c:
//
// Written in 2018 by David Blackman and Sebastiano Vigna ([email protected])
//
// To the extent possible under law, the author has dedicated all copyright
// and related and neighboring rights to this software to the public domain
// worldwide. This software is distributed without any warranty.
//
// See <http://creativecommons.org/publicdomain/zero/1.0/>.
private ulong _s0, _s1, _s2, _s3;
public unsafe XoshiroImpl()
{
ulong* ptr = stackalloc ulong[4];
do
{
Interop.GetRandomBytes((byte*)ptr, 4 * sizeof(ulong));
_s0 = ptr[0];
_s1 = ptr[1];
_s2 = ptr[2];
_s3 = ptr[3];
}
while ((_s0 | _s1 | _s2 | _s3) == 0); // at least one value must be non-zero
}
/// <summary>Produces a value in the range [0, uint.MaxValue].</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)] // small-ish hot path used by very few call sites
internal uint NextUInt32() => (uint)(NextUInt64() >> 32);
/// <summary>Produces a value in the range [0, ulong.MaxValue].</summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)] // small-ish hot path used by a handful of "next" methods
internal ulong NextUInt64()
{
ulong s0 = _s0, s1 = _s1, s2 = _s2, s3 = _s3;
ulong result = BitOperations.RotateLeft(s1 * 5, 7) * 9;
ulong t = s1 << 17;
s2 ^= s0;
s3 ^= s1;
s1 ^= s2;
s0 ^= s3;
s2 ^= t;
s3 = BitOperations.RotateLeft(s3, 45);
_s0 = s0;
_s1 = s1;
_s2 = s2;
_s3 = s3;
return result;
}
public override int Next()
{
while (true)
{
// Get top 31 bits to get a value in the range [0, int.MaxValue], but try again
// if the value is actually int.MaxValue, as the method is defined to return a value
// in the range [0, int.MaxValue).
ulong result = NextUInt64() >> 33;
if (result != int.MaxValue)
{
return (int)result;
}
}
}
public override int Next(int maxValue)
{
if (maxValue > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling((uint)maxValue);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < (uint)maxValue)
{
return (int)result;
}
}
}
Debug.Assert(maxValue == 0 || maxValue == 1);
return 0;
}
public override int Next(int minValue, int maxValue)
{
ulong exclusiveRange = (ulong)((long)maxValue - minValue);
if (exclusiveRange > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling(exclusiveRange);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < exclusiveRange)
{
return (int)result + minValue;
}
}
}
Debug.Assert(minValue == maxValue || minValue + 1 == maxValue);
return minValue;
}
public override long NextInt64()
{
while (true)
{
// Get top 63 bits to get a value in the range [0, long.MaxValue], but try again
// if the value is actually long.MaxValue, as the method is defined to return a value
// in the range [0, long.MaxValue).
ulong result = NextUInt64() >> 1;
if (result != long.MaxValue)
{
return (long)result;
}
}
}
public override long NextInt64(long maxValue)
{
if (maxValue > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling((ulong)maxValue);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < (ulong)maxValue)
{
return (long)result;
}
}
}
Debug.Assert(maxValue == 0 || maxValue == 1);
return 0;
}
public override long NextInt64(long minValue, long maxValue)
{
ulong exclusiveRange = (ulong)(maxValue - minValue);
if (exclusiveRange > 1)
{
// Narrow down to the smallest range [0, 2^bits] that contains maxValue.
// Then repeatedly generate a value in that outer range until we get one within the inner range.
int bits = BitOperations.Log2Ceiling(exclusiveRange);
while (true)
{
ulong result = NextUInt64() >> (sizeof(ulong) * 8 - bits);
if (result < exclusiveRange)
{
return (long)result + minValue;
}
}
}
Debug.Assert(minValue == maxValue || minValue + 1 == maxValue);
return minValue;
}
public override void NextBytes(byte[] buffer) => NextBytes((Span<byte>)buffer);
public override unsafe void NextBytes(Span<byte> buffer)
{
ulong s0 = _s0, s1 = _s1, s2 = _s2, s3 = _s3;
while (buffer.Length >= sizeof(ulong))
{
Unsafe.WriteUnaligned(
ref MemoryMarshal.GetReference(buffer),
BitOperations.RotateLeft(s1 * 5, 7) * 9);
// Update PRNG state.
ulong t = s1 << 17;
s2 ^= s0;
s3 ^= s1;
s1 ^= s2;
s0 ^= s3;
s2 ^= t;
s3 = BitOperations.RotateLeft(s3, 45);
buffer = buffer.Slice(sizeof(ulong));
}
if (!buffer.IsEmpty)
{
ulong next = BitOperations.RotateLeft(s1 * 5, 7) * 9;
byte* remainingBytes = (byte*)&next;
Debug.Assert(buffer.Length < sizeof(ulong));
for (int i = 0; i < buffer.Length; i++)
{
buffer[i] = remainingBytes[i];
}
// Update PRNG state.
ulong t = s1 << 17;
s2 ^= s0;
s3 ^= s1;
s1 ^= s2;
s0 ^= s3;
s2 ^= t;
s3 = BitOperations.RotateLeft(s3, 45);
}
_s0 = s0;
_s1 = s1;
_s2 = s2;
_s3 = s3;
}
public override double NextDouble() =>
// As described in http://prng.di.unimi.it/:
// "A standard double (64-bit) floating-point number in IEEE floating point format has 52 bits of significand,
// plus an implicit bit at the left of the significand. Thus, the representation can actually store numbers with
// 53 significant binary digits. Because of this fact, in C99 a 64-bit unsigned integer x should be converted to
// a 64-bit double using the expression
// (x >> 11) * 0x1.0p-53"
(NextUInt64() >> 11) * (1.0 / (1ul << 53));
public override float NextSingle() =>
// Same as above, but with 24 bits instead of 53.
(NextUInt64() >> 40) * (1.0f / (1u << 24));
public override double Sample()
{
Debug.Fail("Not used or called for this implementation.");
throw new NotSupportedException();
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/SByteConverter.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Text.Json.Serialization.Converters
{
internal sealed class SByteConverter : JsonConverter<sbyte>
{
public SByteConverter()
{
IsInternalConverterForNumberType = true;
}
public override sbyte Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
return reader.GetSByte();
}
public override void Write(Utf8JsonWriter writer, sbyte value, JsonSerializerOptions options)
{
writer.WriteNumberValue(value);
}
internal override sbyte ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
return reader.GetSByteWithQuotes();
}
internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, sbyte value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
{
writer.WritePropertyName(value);
}
internal override sbyte ReadNumberWithCustomHandling(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
{
if (reader.TokenType == JsonTokenType.String &&
(JsonNumberHandling.AllowReadingFromString & handling) != 0)
{
return reader.GetSByteWithQuotes();
}
return reader.GetSByte();
}
internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, sbyte value, JsonNumberHandling handling)
{
if ((JsonNumberHandling.WriteAsString & handling) != 0)
{
writer.WriteNumberValueAsString(value);
}
else
{
writer.WriteNumberValue(value);
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Text.Json.Serialization.Converters
{
internal sealed class SByteConverter : JsonConverter<sbyte>
{
public SByteConverter()
{
IsInternalConverterForNumberType = true;
}
public override sbyte Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
return reader.GetSByte();
}
public override void Write(Utf8JsonWriter writer, sbyte value, JsonSerializerOptions options)
{
writer.WriteNumberValue(value);
}
internal override sbyte ReadAsPropertyNameCore(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
return reader.GetSByteWithQuotes();
}
internal override void WriteAsPropertyNameCore(Utf8JsonWriter writer, sbyte value, JsonSerializerOptions options, bool isWritingExtensionDataProperty)
{
writer.WritePropertyName(value);
}
internal override sbyte ReadNumberWithCustomHandling(ref Utf8JsonReader reader, JsonNumberHandling handling, JsonSerializerOptions options)
{
if (reader.TokenType == JsonTokenType.String &&
(JsonNumberHandling.AllowReadingFromString & handling) != 0)
{
return reader.GetSByteWithQuotes();
}
return reader.GetSByte();
}
internal override void WriteNumberWithCustomHandling(Utf8JsonWriter writer, sbyte value, JsonNumberHandling handling)
{
if ((JsonNumberHandling.WriteAsString & handling) != 0)
{
writer.WriteNumberValueAsString(value);
}
else
{
writer.WriteNumberValue(value);
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.Tests/ArrayTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using SharedTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using Xunit;
namespace DllImportGenerator.IntegrationTests
{
partial class NativeExportsNE
{
public partial class Arrays
{
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_int_array")]
public static partial int Sum(int[] values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_int_array")]
public static partial int Sum(ref int values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_int_array_ref")]
public static partial int SumInArray(in int[] values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "duplicate_int_array")]
public static partial void Duplicate([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] ref int[] values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "create_range_array")]
[return:MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]
public static partial int[] CreateRange(int start, int end, out int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "create_range_array_out")]
public static partial void CreateRange_Out(int start, int end, out int numValues, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] out int[] res);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_char_array", StringMarshalling = StringMarshalling.Utf16)]
public static partial int SumChars(char[] chars, int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "fill_char_array", StringMarshalling = StringMarshalling.Utf16)]
public static partial void FillChars([Out] char[] chars, int length, ushort start);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_char_array", StringMarshalling = StringMarshalling.Utf16)]
public static partial void ReverseChars([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] ref char[] chars, int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_string_lengths")]
public static partial int SumStringLengths([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] strArray);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_strings_replace")]
public static partial void ReverseStrings_Ref([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)] ref string[] strArray, out int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_strings_return")]
[return: MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)]
public static partial string[] ReverseStrings_Return([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] strArray, out int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_strings_out")]
public static partial void ReverseStrings_Out([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] strArray, out int numElements, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)] out string[] res);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "get_long_bytes")]
[return:MarshalAs(UnmanagedType.LPArray, SizeConst = sizeof(long))]
public static partial byte[] GetLongBytes(long l);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "append_int_to_array")]
public static partial void Append([MarshalAs(UnmanagedType.LPArray, SizeConst = 1, SizeParamIndex = 1)] ref int[] values, int numOriginalValues, int newValue);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "fill_range_array")]
[return: MarshalAs(UnmanagedType.U1)]
public static partial bool FillRangeArray([Out] IntStructWrapper[] array, int length, int start);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "double_values")]
public static partial bool DoubleValues([In, Out] IntStructWrapper[] array, int length);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "and_all_members")]
[return:MarshalAs(UnmanagedType.U1)]
public static partial bool AndAllMembers(BoolStruct[] pArray, int length);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "transpose_matrix")]
[return: MarshalUsing(CountElementName = "numColumns")]
[return: MarshalUsing(CountElementName = "numRows", ElementIndirectionLevel = 1)]
public static partial int[][] TransposeMatrix(int[][] matrix, int[] numRows, int numColumns);
}
}
public class ArrayTests
{
[Fact]
public void IntArrayMarshalledToNativeAsExpected()
{
var array = new[] { 1, 5, 79, 165, 32, 3 };
Assert.Equal(array.Sum(), NativeExportsNE.Arrays.Sum(array, array.Length));
}
[Fact]
public void IntArrayRefToFirstElementMarshalledToNativeAsExpected()
{
var array = new[] { 1, 5, 79, 165, 32, 3 };
Assert.Equal(array.Sum(), NativeExportsNE.Arrays.Sum(ref array[0], array.Length));
}
[Fact]
public void NullIntArrayMarshalledToNativeAsExpected()
{
Assert.Equal(-1, NativeExportsNE.Arrays.Sum(null, 0));
}
[Fact]
public void ZeroLengthArrayMarshalledAsNonNull()
{
var array = new int[0];
Assert.Equal(0, NativeExportsNE.Arrays.Sum(array, array.Length));
}
[Fact]
public void IntArrayInParameter()
{
var array = new[] { 1, 5, 79, 165, 32, 3 };
Assert.Equal(array.Sum(), NativeExportsNE.Arrays.SumInArray(array, array.Length));
}
[Fact]
public void IntArrayRefParameter()
{
var array = new [] { 1, 5, 79, 165, 32, 3 };
var newArray = array;
NativeExportsNE.Arrays.Duplicate(ref newArray, array.Length);
Assert.Equal((IEnumerable<int>)array, newArray);
}
[Fact]
public void CharArrayMarshalledToNativeAsExpected()
{
char[] array = CharacterTests.CharacterMappings().Select(o => (char)o[0]).ToArray();
Assert.Equal(array.Sum(c => c), NativeExportsNE.Arrays.SumChars(array, array.Length));
}
[Fact]
public void CharArrayRefParameter()
{
char[] array = CharacterTests.CharacterMappings().Select(o => (char)o[0]).ToArray();
var newArray = array;
NativeExportsNE.Arrays.ReverseChars(ref newArray, array.Length);
Assert.Equal(array.Reverse(), newArray);
}
[Fact]
public void ArraysReturnedFromNative()
{
int start = 5;
int end = 20;
IEnumerable<int> expected = Enumerable.Range(start, end - start);
Assert.Equal(expected, NativeExportsNE.Arrays.CreateRange(start, end, out _));
int[] res;
NativeExportsNE.Arrays.CreateRange_Out(start, end, out _, out res);
Assert.Equal(expected, res);
}
[Fact]
public void NullArrayReturnedFromNative()
{
Assert.Null(NativeExportsNE.Arrays.CreateRange(1, 0, out _));
int[] res;
NativeExportsNE.Arrays.CreateRange_Out(1, 0, out _, out res);
Assert.Null(res);
}
private static string[] GetStringArray()
{
return new []
{
"ABCdef 123$%^",
"🍜 !! 🍜 !!",
"🌲 木 🔥 火 🌾 土 🛡 金 🌊 水" ,
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae posuere mauris, sed ultrices leo. Suspendisse potenti. Mauris enim enim, blandit tincidunt consequat in, varius sit amet neque. Morbi eget porttitor ex. Duis mattis aliquet ante quis imperdiet. Duis sit.",
string.Empty,
null
};
}
[Fact]
public void ByValueArrayWithElementMarshalling()
{
var strings = GetStringArray();
Assert.Equal(strings.Sum(str => str?.Length ?? 0), NativeExportsNE.Arrays.SumStringLengths(strings));
}
[Fact]
public void ByValueNullArrayWithElementMarshalling()
{
Assert.Equal(0, NativeExportsNE.Arrays.SumStringLengths(null));
}
[Fact]
public void ByRefArrayWithElementMarshalling()
{
var strings = GetStringArray();
var expectedStrings = strings.Select(s => ReverseChars(s)).ToArray();
NativeExportsNE.Arrays.ReverseStrings_Ref(ref strings, out _);
Assert.Equal((IEnumerable<string>)expectedStrings, strings);
}
[Fact]
public void ReturnArrayWithElementMarshalling()
{
var strings = GetStringArray();
var expectedStrings = strings.Select(s => ReverseChars(s)).ToArray();
Assert.Equal(expectedStrings, NativeExportsNE.Arrays.ReverseStrings_Return(strings, out _));
string[] res;
NativeExportsNE.Arrays.ReverseStrings_Out(strings, out _, out res);
Assert.Equal(expectedStrings, res);
}
[Fact]
public void ByRefNullArrayWithElementMarshalling()
{
string[] strings = null;
NativeExportsNE.Arrays.ReverseStrings_Ref(ref strings, out _);
Assert.Null(strings);
}
[Fact]
public void ReturnNullArrayWithElementMarshalling()
{
string[] strings = null;
Assert.Null(NativeExportsNE.Arrays.ReverseStrings_Return(strings, out _));
string[] res;
NativeExportsNE.Arrays.ReverseStrings_Out(strings, out _, out res);
Assert.Null(res);
}
[Fact]
public void ConstantSizeArray()
{
var longVal = 0x12345678ABCDEF10L;
Assert.Equal(longVal, MemoryMarshal.Read<long>(NativeExportsNE.Arrays.GetLongBytes(longVal)));
}
[Fact]
public void DynamicSizedArrayWithConstantComponent()
{
var array = new [] { 1, 5, 79, 165, 32, 3 };
int newValue = 42;
var newArray = array;
NativeExportsNE.Arrays.Append(ref newArray, array.Length, newValue);
Assert.Equal(array.Concat(new [] { newValue }), newArray);
}
[Fact]
public void ArrayByValueOutParameter()
{
{
var testArray = new IntStructWrapper[10];
int start = 5;
NativeExportsNE.Arrays.FillRangeArray(testArray, testArray.Length, start);
Assert.Equal(Enumerable.Range(start, testArray.Length), testArray.Select(wrapper => wrapper.Value));
// Any items not populated by the invoke target should be initialized to default
testArray = new IntStructWrapper[10];
int lengthToFill = testArray.Length / 2;
NativeExportsNE.Arrays.FillRangeArray(testArray, lengthToFill, start);
Assert.Equal(Enumerable.Range(start, lengthToFill), testArray[..lengthToFill].Select(wrapper => wrapper.Value));
Assert.All(testArray[lengthToFill..], wrapper => Assert.Equal(0, wrapper.Value));
}
{
var testArray = new char[10];
ushort start = 65;
NativeExportsNE.Arrays.FillChars(testArray, testArray.Length, start);
Assert.Equal(Enumerable.Range(start, testArray.Length), testArray.Select(c => (int)c));
// Any items not populated by the invoke target should be initialized to default
testArray = new char[10];
int lengthToFill = testArray.Length / 2;
NativeExportsNE.Arrays.FillChars(testArray, lengthToFill, start);
Assert.Equal(Enumerable.Range(start, lengthToFill), testArray[..lengthToFill].Select(c => (int)c));
Assert.All(testArray[lengthToFill..], c => Assert.Equal(0, c));
}
}
[Fact]
public void ArrayByValueInOutParameter()
{
var testValues = Enumerable.Range(42, 15).Select(i => new IntStructWrapper { Value = i });
var testArray = testValues.ToArray();
NativeExportsNE.Arrays.DoubleValues(testArray, testArray.Length);
Assert.Equal(testValues.Select(wrapper => wrapper.Value * 2), testArray.Select(wrapper => wrapper.Value));
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void ArrayWithSimpleNonBlittableTypeMarshalling(bool result)
{
var boolValues = new[]
{
new BoolStruct
{
b1 = true,
b2 = true,
b3 = true,
},
new BoolStruct
{
b1 = true,
b2 = true,
b3 = true,
},
new BoolStruct
{
b1 = true,
b2 = true,
b3 = result,
},
};
Assert.Equal(result, NativeExportsNE.Arrays.AndAllMembers(boolValues, boolValues.Length));
}
[Fact]
public void ArraysOfArrays()
{
var random = new Random(42);
int numRows = random.Next(1, 5);
int numColumns = random.Next(1, 5);
int[][] matrix = new int[numRows][];
for (int i = 0; i < numRows; i++)
{
matrix[i] = new int[numColumns];
for (int j = 0; j < numColumns; j++)
{
matrix[i][j] = random.Next();
}
}
int[] numRowsArray = new int[numColumns];
numRowsArray.AsSpan().Fill(numRows);
int[][] transposed = NativeExportsNE.Arrays.TransposeMatrix(matrix, numRowsArray, numColumns);
for (int i = 0; i < numRows; i++)
{
for (int j = 0; j < numColumns; j++)
{
Assert.Equal(matrix[i][j], transposed[j][i]);
}
}
}
private static string ReverseChars(string value)
{
if (value == null)
return null;
var chars = value.ToCharArray();
Array.Reverse(chars);
return new string(chars);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using SharedTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using Xunit;
namespace DllImportGenerator.IntegrationTests
{
partial class NativeExportsNE
{
public partial class Arrays
{
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_int_array")]
public static partial int Sum(int[] values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_int_array")]
public static partial int Sum(ref int values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_int_array_ref")]
public static partial int SumInArray(in int[] values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "duplicate_int_array")]
public static partial void Duplicate([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] ref int[] values, int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "create_range_array")]
[return:MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]
public static partial int[] CreateRange(int start, int end, out int numValues);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "create_range_array_out")]
public static partial void CreateRange_Out(int start, int end, out int numValues, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] out int[] res);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_char_array", StringMarshalling = StringMarshalling.Utf16)]
public static partial int SumChars(char[] chars, int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "fill_char_array", StringMarshalling = StringMarshalling.Utf16)]
public static partial void FillChars([Out] char[] chars, int length, ushort start);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_char_array", StringMarshalling = StringMarshalling.Utf16)]
public static partial void ReverseChars([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] ref char[] chars, int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "sum_string_lengths")]
public static partial int SumStringLengths([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] strArray);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_strings_replace")]
public static partial void ReverseStrings_Ref([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)] ref string[] strArray, out int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_strings_return")]
[return: MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)]
public static partial string[] ReverseStrings_Return([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] strArray, out int numElements);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "reverse_strings_out")]
public static partial void ReverseStrings_Out([MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr)] string[] strArray, out int numElements, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPWStr, SizeParamIndex = 1)] out string[] res);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "get_long_bytes")]
[return:MarshalAs(UnmanagedType.LPArray, SizeConst = sizeof(long))]
public static partial byte[] GetLongBytes(long l);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "append_int_to_array")]
public static partial void Append([MarshalAs(UnmanagedType.LPArray, SizeConst = 1, SizeParamIndex = 1)] ref int[] values, int numOriginalValues, int newValue);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "fill_range_array")]
[return: MarshalAs(UnmanagedType.U1)]
public static partial bool FillRangeArray([Out] IntStructWrapper[] array, int length, int start);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "double_values")]
public static partial bool DoubleValues([In, Out] IntStructWrapper[] array, int length);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "and_all_members")]
[return:MarshalAs(UnmanagedType.U1)]
public static partial bool AndAllMembers(BoolStruct[] pArray, int length);
[GeneratedDllImport(NativeExportsNE_Binary, EntryPoint = "transpose_matrix")]
[return: MarshalUsing(CountElementName = "numColumns")]
[return: MarshalUsing(CountElementName = "numRows", ElementIndirectionLevel = 1)]
public static partial int[][] TransposeMatrix(int[][] matrix, int[] numRows, int numColumns);
}
}
public class ArrayTests
{
[Fact]
public void IntArrayMarshalledToNativeAsExpected()
{
var array = new[] { 1, 5, 79, 165, 32, 3 };
Assert.Equal(array.Sum(), NativeExportsNE.Arrays.Sum(array, array.Length));
}
[Fact]
public void IntArrayRefToFirstElementMarshalledToNativeAsExpected()
{
var array = new[] { 1, 5, 79, 165, 32, 3 };
Assert.Equal(array.Sum(), NativeExportsNE.Arrays.Sum(ref array[0], array.Length));
}
[Fact]
public void NullIntArrayMarshalledToNativeAsExpected()
{
Assert.Equal(-1, NativeExportsNE.Arrays.Sum(null, 0));
}
[Fact]
public void ZeroLengthArrayMarshalledAsNonNull()
{
var array = new int[0];
Assert.Equal(0, NativeExportsNE.Arrays.Sum(array, array.Length));
}
[Fact]
public void IntArrayInParameter()
{
var array = new[] { 1, 5, 79, 165, 32, 3 };
Assert.Equal(array.Sum(), NativeExportsNE.Arrays.SumInArray(array, array.Length));
}
[Fact]
public void IntArrayRefParameter()
{
var array = new [] { 1, 5, 79, 165, 32, 3 };
var newArray = array;
NativeExportsNE.Arrays.Duplicate(ref newArray, array.Length);
Assert.Equal((IEnumerable<int>)array, newArray);
}
[Fact]
public void CharArrayMarshalledToNativeAsExpected()
{
char[] array = CharacterTests.CharacterMappings().Select(o => (char)o[0]).ToArray();
Assert.Equal(array.Sum(c => c), NativeExportsNE.Arrays.SumChars(array, array.Length));
}
[Fact]
public void CharArrayRefParameter()
{
char[] array = CharacterTests.CharacterMappings().Select(o => (char)o[0]).ToArray();
var newArray = array;
NativeExportsNE.Arrays.ReverseChars(ref newArray, array.Length);
Assert.Equal(array.Reverse(), newArray);
}
[Fact]
public void ArraysReturnedFromNative()
{
int start = 5;
int end = 20;
IEnumerable<int> expected = Enumerable.Range(start, end - start);
Assert.Equal(expected, NativeExportsNE.Arrays.CreateRange(start, end, out _));
int[] res;
NativeExportsNE.Arrays.CreateRange_Out(start, end, out _, out res);
Assert.Equal(expected, res);
}
[Fact]
public void NullArrayReturnedFromNative()
{
Assert.Null(NativeExportsNE.Arrays.CreateRange(1, 0, out _));
int[] res;
NativeExportsNE.Arrays.CreateRange_Out(1, 0, out _, out res);
Assert.Null(res);
}
private static string[] GetStringArray()
{
return new []
{
"ABCdef 123$%^",
"🍜 !! 🍜 !!",
"🌲 木 🔥 火 🌾 土 🛡 金 🌊 水" ,
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae posuere mauris, sed ultrices leo. Suspendisse potenti. Mauris enim enim, blandit tincidunt consequat in, varius sit amet neque. Morbi eget porttitor ex. Duis mattis aliquet ante quis imperdiet. Duis sit.",
string.Empty,
null
};
}
[Fact]
public void ByValueArrayWithElementMarshalling()
{
var strings = GetStringArray();
Assert.Equal(strings.Sum(str => str?.Length ?? 0), NativeExportsNE.Arrays.SumStringLengths(strings));
}
[Fact]
public void ByValueNullArrayWithElementMarshalling()
{
Assert.Equal(0, NativeExportsNE.Arrays.SumStringLengths(null));
}
[Fact]
public void ByRefArrayWithElementMarshalling()
{
var strings = GetStringArray();
var expectedStrings = strings.Select(s => ReverseChars(s)).ToArray();
NativeExportsNE.Arrays.ReverseStrings_Ref(ref strings, out _);
Assert.Equal((IEnumerable<string>)expectedStrings, strings);
}
[Fact]
public void ReturnArrayWithElementMarshalling()
{
var strings = GetStringArray();
var expectedStrings = strings.Select(s => ReverseChars(s)).ToArray();
Assert.Equal(expectedStrings, NativeExportsNE.Arrays.ReverseStrings_Return(strings, out _));
string[] res;
NativeExportsNE.Arrays.ReverseStrings_Out(strings, out _, out res);
Assert.Equal(expectedStrings, res);
}
[Fact]
public void ByRefNullArrayWithElementMarshalling()
{
string[] strings = null;
NativeExportsNE.Arrays.ReverseStrings_Ref(ref strings, out _);
Assert.Null(strings);
}
[Fact]
public void ReturnNullArrayWithElementMarshalling()
{
string[] strings = null;
Assert.Null(NativeExportsNE.Arrays.ReverseStrings_Return(strings, out _));
string[] res;
NativeExportsNE.Arrays.ReverseStrings_Out(strings, out _, out res);
Assert.Null(res);
}
[Fact]
public void ConstantSizeArray()
{
var longVal = 0x12345678ABCDEF10L;
Assert.Equal(longVal, MemoryMarshal.Read<long>(NativeExportsNE.Arrays.GetLongBytes(longVal)));
}
[Fact]
public void DynamicSizedArrayWithConstantComponent()
{
var array = new [] { 1, 5, 79, 165, 32, 3 };
int newValue = 42;
var newArray = array;
NativeExportsNE.Arrays.Append(ref newArray, array.Length, newValue);
Assert.Equal(array.Concat(new [] { newValue }), newArray);
}
[Fact]
public void ArrayByValueOutParameter()
{
{
var testArray = new IntStructWrapper[10];
int start = 5;
NativeExportsNE.Arrays.FillRangeArray(testArray, testArray.Length, start);
Assert.Equal(Enumerable.Range(start, testArray.Length), testArray.Select(wrapper => wrapper.Value));
// Any items not populated by the invoke target should be initialized to default
testArray = new IntStructWrapper[10];
int lengthToFill = testArray.Length / 2;
NativeExportsNE.Arrays.FillRangeArray(testArray, lengthToFill, start);
Assert.Equal(Enumerable.Range(start, lengthToFill), testArray[..lengthToFill].Select(wrapper => wrapper.Value));
Assert.All(testArray[lengthToFill..], wrapper => Assert.Equal(0, wrapper.Value));
}
{
var testArray = new char[10];
ushort start = 65;
NativeExportsNE.Arrays.FillChars(testArray, testArray.Length, start);
Assert.Equal(Enumerable.Range(start, testArray.Length), testArray.Select(c => (int)c));
// Any items not populated by the invoke target should be initialized to default
testArray = new char[10];
int lengthToFill = testArray.Length / 2;
NativeExportsNE.Arrays.FillChars(testArray, lengthToFill, start);
Assert.Equal(Enumerable.Range(start, lengthToFill), testArray[..lengthToFill].Select(c => (int)c));
Assert.All(testArray[lengthToFill..], c => Assert.Equal(0, c));
}
}
[Fact]
public void ArrayByValueInOutParameter()
{
var testValues = Enumerable.Range(42, 15).Select(i => new IntStructWrapper { Value = i });
var testArray = testValues.ToArray();
NativeExportsNE.Arrays.DoubleValues(testArray, testArray.Length);
Assert.Equal(testValues.Select(wrapper => wrapper.Value * 2), testArray.Select(wrapper => wrapper.Value));
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void ArrayWithSimpleNonBlittableTypeMarshalling(bool result)
{
var boolValues = new[]
{
new BoolStruct
{
b1 = true,
b2 = true,
b3 = true,
},
new BoolStruct
{
b1 = true,
b2 = true,
b3 = true,
},
new BoolStruct
{
b1 = true,
b2 = true,
b3 = result,
},
};
Assert.Equal(result, NativeExportsNE.Arrays.AndAllMembers(boolValues, boolValues.Length));
}
[Fact]
public void ArraysOfArrays()
{
var random = new Random(42);
int numRows = random.Next(1, 5);
int numColumns = random.Next(1, 5);
int[][] matrix = new int[numRows][];
for (int i = 0; i < numRows; i++)
{
matrix[i] = new int[numColumns];
for (int j = 0; j < numColumns; j++)
{
matrix[i][j] = random.Next();
}
}
int[] numRowsArray = new int[numColumns];
numRowsArray.AsSpan().Fill(numRows);
int[][] transposed = NativeExportsNE.Arrays.TransposeMatrix(matrix, numRowsArray, numColumns);
for (int i = 0; i < numRows; i++)
{
for (int j = 0; j < numColumns; j++)
{
Assert.Equal(matrix[i][j], transposed[j][i]);
}
}
}
private static string ReverseChars(string value)
{
if (value == null)
return null;
var chars = value.ToCharArray();
Array.Reverse(chars);
return new string(chars);
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/ColorMatrix.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System.Drawing.Imaging
{
/// <summary>
/// Defines a 5 x 5 matrix that contains the homogeneous coordinates for the RGBA space.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public sealed class ColorMatrix
{
private float _matrix00;
private float _matrix01;
private float _matrix02;
private float _matrix03;
private float _matrix04;
private float _matrix10;
private float _matrix11;
private float _matrix12;
private float _matrix13;
private float _matrix14;
private float _matrix20;
private float _matrix21;
private float _matrix22;
private float _matrix23;
private float _matrix24;
private float _matrix30;
private float _matrix31;
private float _matrix32;
private float _matrix33;
private float _matrix34;
private float _matrix40;
private float _matrix41;
private float _matrix42;
private float _matrix43;
private float _matrix44;
/// <summary>
/// Initializes a new instance of the <see cref='ColorMatrix'/> class.
/// </summary>
public ColorMatrix()
{
/*
* Setup identity matrix by default
*/
_matrix00 = 1.0f;
//matrix01 = 0.0f;
//matrix02 = 0.0f;
//matrix03 = 0.0f;
//matrix04 = 0.0f;
//matrix10 = 0.0f;
_matrix11 = 1.0f;
//matrix12 = 0.0f;
//matrix13 = 0.0f;
//matrix14 = 0.0f;
//matrix20 = 0.0f;
//matrix21 = 0.0f;
_matrix22 = 1.0f;
// matrix23 = 0.0f;
// matrix24 = 0.0f;
// matrix30 = 0.0f;
//matrix31 = 0.0f;
// matrix32 = 0.0f;
_matrix33 = 1.0f;
// matrix34 = 0.0f;
// matrix40 = 0.0f;
// matrix41 = 0.0f;
// matrix42 = 0.0f;
// matrix43 = 0.0f;
_matrix44 = 1.0f;
}
/// <summary>
/// Represents the element at the 0th row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix00
{
get { return _matrix00; }
set { _matrix00 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix01
{
get { return _matrix01; }
set { _matrix01 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix02
{
get { return _matrix02; }
set { _matrix02 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix03
{
get { return _matrix03; }
set { _matrix03 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix04
{
get { return _matrix04; }
set { _matrix04 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix10
{
get { return _matrix10; }
set { _matrix10 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix11
{
get { return _matrix11; }
set { _matrix11 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix12
{
get { return _matrix12; }
set { _matrix12 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix13
{
get { return _matrix13; }
set { _matrix13 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix14
{
get { return _matrix14; }
set { _matrix14 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix20
{
get { return _matrix20; }
set { _matrix20 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix21
{
get { return _matrix21; }
set { _matrix21 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix22
{
get { return _matrix22; }
set { _matrix22 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix23
{
get { return _matrix23; }
set { _matrix23 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix24
{
get { return _matrix24; }
set { _matrix24 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix30
{
get { return _matrix30; }
set { _matrix30 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix31
{
get { return _matrix31; }
set { _matrix31 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix32
{
get { return _matrix32; }
set { _matrix32 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix33
{
get { return _matrix33; }
set { _matrix33 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix34
{
get { return _matrix34; }
set { _matrix34 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix40
{
get { return _matrix40; }
set { _matrix40 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix41
{
get { return _matrix41; }
set { _matrix41 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix42
{
get { return _matrix42; }
set { _matrix42 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix43
{
get { return _matrix43; }
set { _matrix43 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix44
{
get { return _matrix44; }
set { _matrix44 = value; }
}
/// <summary>
/// Initializes a new instance of the <see cref='ColorMatrix'/> class with the elements in the specified matrix.
/// </summary>
[CLSCompliant(false)]
public ColorMatrix(float[][] newColorMatrix)
{
SetMatrix(newColorMatrix);
}
internal void SetMatrix(float[][] newColorMatrix)
{
_matrix00 = newColorMatrix[0][0];
_matrix01 = newColorMatrix[0][1];
_matrix02 = newColorMatrix[0][2];
_matrix03 = newColorMatrix[0][3];
_matrix04 = newColorMatrix[0][4];
_matrix10 = newColorMatrix[1][0];
_matrix11 = newColorMatrix[1][1];
_matrix12 = newColorMatrix[1][2];
_matrix13 = newColorMatrix[1][3];
_matrix14 = newColorMatrix[1][4];
_matrix20 = newColorMatrix[2][0];
_matrix21 = newColorMatrix[2][1];
_matrix22 = newColorMatrix[2][2];
_matrix23 = newColorMatrix[2][3];
_matrix24 = newColorMatrix[2][4];
_matrix30 = newColorMatrix[3][0];
_matrix31 = newColorMatrix[3][1];
_matrix32 = newColorMatrix[3][2];
_matrix33 = newColorMatrix[3][3];
_matrix34 = newColorMatrix[3][4];
_matrix40 = newColorMatrix[4][0];
_matrix41 = newColorMatrix[4][1];
_matrix42 = newColorMatrix[4][2];
_matrix43 = newColorMatrix[4][3];
_matrix44 = newColorMatrix[4][4];
}
internal float[][] GetMatrix()
{
float[][] returnMatrix = new float[5][];
for (int i = 0; i < 5; i++)
returnMatrix[i] = new float[5];
returnMatrix[0][0] = _matrix00;
returnMatrix[0][1] = _matrix01;
returnMatrix[0][2] = _matrix02;
returnMatrix[0][3] = _matrix03;
returnMatrix[0][4] = _matrix04;
returnMatrix[1][0] = _matrix10;
returnMatrix[1][1] = _matrix11;
returnMatrix[1][2] = _matrix12;
returnMatrix[1][3] = _matrix13;
returnMatrix[1][4] = _matrix14;
returnMatrix[2][0] = _matrix20;
returnMatrix[2][1] = _matrix21;
returnMatrix[2][2] = _matrix22;
returnMatrix[2][3] = _matrix23;
returnMatrix[2][4] = _matrix24;
returnMatrix[3][0] = _matrix30;
returnMatrix[3][1] = _matrix31;
returnMatrix[3][2] = _matrix32;
returnMatrix[3][3] = _matrix33;
returnMatrix[3][4] = _matrix34;
returnMatrix[4][0] = _matrix40;
returnMatrix[4][1] = _matrix41;
returnMatrix[4][2] = _matrix42;
returnMatrix[4][3] = _matrix43;
returnMatrix[4][4] = _matrix44;
return returnMatrix;
}
/// <summary>
/// Gets or sets the value of the specified element of this <see cref='ColorMatrix'/>.
/// </summary>
public float this[int row, int column]
{
get
{
return GetMatrix()[row][column];
}
set
{
float[][] tempMatrix = GetMatrix();
tempMatrix[row][column] = value;
SetMatrix(tempMatrix);
}
}
internal ref float GetPinnableReference() => ref _matrix00;
#if NET7_0_OR_GREATER
internal unsafe struct PinningMarshaller
{
private readonly ColorMatrix _managed;
public PinningMarshaller(ColorMatrix managed)
{
_managed = managed;
}
public ref float GetPinnableReference() => ref (_managed is null ? ref Unsafe.NullRef<float>() : ref _managed.GetPinnableReference());
public void* Value => Unsafe.AsPointer(ref GetPinnableReference());
}
#endif
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace System.Drawing.Imaging
{
/// <summary>
/// Defines a 5 x 5 matrix that contains the homogeneous coordinates for the RGBA space.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public sealed class ColorMatrix
{
private float _matrix00;
private float _matrix01;
private float _matrix02;
private float _matrix03;
private float _matrix04;
private float _matrix10;
private float _matrix11;
private float _matrix12;
private float _matrix13;
private float _matrix14;
private float _matrix20;
private float _matrix21;
private float _matrix22;
private float _matrix23;
private float _matrix24;
private float _matrix30;
private float _matrix31;
private float _matrix32;
private float _matrix33;
private float _matrix34;
private float _matrix40;
private float _matrix41;
private float _matrix42;
private float _matrix43;
private float _matrix44;
/// <summary>
/// Initializes a new instance of the <see cref='ColorMatrix'/> class.
/// </summary>
public ColorMatrix()
{
/*
* Setup identity matrix by default
*/
_matrix00 = 1.0f;
//matrix01 = 0.0f;
//matrix02 = 0.0f;
//matrix03 = 0.0f;
//matrix04 = 0.0f;
//matrix10 = 0.0f;
_matrix11 = 1.0f;
//matrix12 = 0.0f;
//matrix13 = 0.0f;
//matrix14 = 0.0f;
//matrix20 = 0.0f;
//matrix21 = 0.0f;
_matrix22 = 1.0f;
// matrix23 = 0.0f;
// matrix24 = 0.0f;
// matrix30 = 0.0f;
//matrix31 = 0.0f;
// matrix32 = 0.0f;
_matrix33 = 1.0f;
// matrix34 = 0.0f;
// matrix40 = 0.0f;
// matrix41 = 0.0f;
// matrix42 = 0.0f;
// matrix43 = 0.0f;
_matrix44 = 1.0f;
}
/// <summary>
/// Represents the element at the 0th row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix00
{
get { return _matrix00; }
set { _matrix00 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix01
{
get { return _matrix01; }
set { _matrix01 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix02
{
get { return _matrix02; }
set { _matrix02 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix03
{
get { return _matrix03; }
set { _matrix03 = value; }
}
/// <summary>
/// Represents the element at the 0th row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix04
{
get { return _matrix04; }
set { _matrix04 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix10
{
get { return _matrix10; }
set { _matrix10 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix11
{
get { return _matrix11; }
set { _matrix11 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix12
{
get { return _matrix12; }
set { _matrix12 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix13
{
get { return _matrix13; }
set { _matrix13 = value; }
}
/// <summary>
/// Represents the element at the 1st row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix14
{
get { return _matrix14; }
set { _matrix14 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix20
{
get { return _matrix20; }
set { _matrix20 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix21
{
get { return _matrix21; }
set { _matrix21 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix22
{
get { return _matrix22; }
set { _matrix22 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix23
{
get { return _matrix23; }
set { _matrix23 = value; }
}
/// <summary>
/// Represents the element at the 2nd row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix24
{
get { return _matrix24; }
set { _matrix24 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix30
{
get { return _matrix30; }
set { _matrix30 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix31
{
get { return _matrix31; }
set { _matrix31 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix32
{
get { return _matrix32; }
set { _matrix32 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix33
{
get { return _matrix33; }
set { _matrix33 = value; }
}
/// <summary>
/// Represents the element at the 3rd row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix34
{
get { return _matrix34; }
set { _matrix34 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 0th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix40
{
get { return _matrix40; }
set { _matrix40 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 1st column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix41
{
get { return _matrix41; }
set { _matrix41 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 2nd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix42
{
get { return _matrix42; }
set { _matrix42 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 3rd column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix43
{
get { return _matrix43; }
set { _matrix43 = value; }
}
/// <summary>
/// Represents the element at the 4th row and 4th column of this <see cref='ColorMatrix'/>.
/// </summary>
public float Matrix44
{
get { return _matrix44; }
set { _matrix44 = value; }
}
/// <summary>
/// Initializes a new instance of the <see cref='ColorMatrix'/> class with the elements in the specified matrix.
/// </summary>
[CLSCompliant(false)]
public ColorMatrix(float[][] newColorMatrix)
{
SetMatrix(newColorMatrix);
}
internal void SetMatrix(float[][] newColorMatrix)
{
_matrix00 = newColorMatrix[0][0];
_matrix01 = newColorMatrix[0][1];
_matrix02 = newColorMatrix[0][2];
_matrix03 = newColorMatrix[0][3];
_matrix04 = newColorMatrix[0][4];
_matrix10 = newColorMatrix[1][0];
_matrix11 = newColorMatrix[1][1];
_matrix12 = newColorMatrix[1][2];
_matrix13 = newColorMatrix[1][3];
_matrix14 = newColorMatrix[1][4];
_matrix20 = newColorMatrix[2][0];
_matrix21 = newColorMatrix[2][1];
_matrix22 = newColorMatrix[2][2];
_matrix23 = newColorMatrix[2][3];
_matrix24 = newColorMatrix[2][4];
_matrix30 = newColorMatrix[3][0];
_matrix31 = newColorMatrix[3][1];
_matrix32 = newColorMatrix[3][2];
_matrix33 = newColorMatrix[3][3];
_matrix34 = newColorMatrix[3][4];
_matrix40 = newColorMatrix[4][0];
_matrix41 = newColorMatrix[4][1];
_matrix42 = newColorMatrix[4][2];
_matrix43 = newColorMatrix[4][3];
_matrix44 = newColorMatrix[4][4];
}
internal float[][] GetMatrix()
{
float[][] returnMatrix = new float[5][];
for (int i = 0; i < 5; i++)
returnMatrix[i] = new float[5];
returnMatrix[0][0] = _matrix00;
returnMatrix[0][1] = _matrix01;
returnMatrix[0][2] = _matrix02;
returnMatrix[0][3] = _matrix03;
returnMatrix[0][4] = _matrix04;
returnMatrix[1][0] = _matrix10;
returnMatrix[1][1] = _matrix11;
returnMatrix[1][2] = _matrix12;
returnMatrix[1][3] = _matrix13;
returnMatrix[1][4] = _matrix14;
returnMatrix[2][0] = _matrix20;
returnMatrix[2][1] = _matrix21;
returnMatrix[2][2] = _matrix22;
returnMatrix[2][3] = _matrix23;
returnMatrix[2][4] = _matrix24;
returnMatrix[3][0] = _matrix30;
returnMatrix[3][1] = _matrix31;
returnMatrix[3][2] = _matrix32;
returnMatrix[3][3] = _matrix33;
returnMatrix[3][4] = _matrix34;
returnMatrix[4][0] = _matrix40;
returnMatrix[4][1] = _matrix41;
returnMatrix[4][2] = _matrix42;
returnMatrix[4][3] = _matrix43;
returnMatrix[4][4] = _matrix44;
return returnMatrix;
}
/// <summary>
/// Gets or sets the value of the specified element of this <see cref='ColorMatrix'/>.
/// </summary>
public float this[int row, int column]
{
get
{
return GetMatrix()[row][column];
}
set
{
float[][] tempMatrix = GetMatrix();
tempMatrix[row][column] = value;
SetMatrix(tempMatrix);
}
}
internal ref float GetPinnableReference() => ref _matrix00;
#if NET7_0_OR_GREATER
internal unsafe struct PinningMarshaller
{
private readonly ColorMatrix _managed;
public PinningMarshaller(ColorMatrix managed)
{
_managed = managed;
}
public ref float GetPinnableReference() => ref (_managed is null ? ref Unsafe.NullRef<float>() : ref _managed.GetPinnableReference());
public void* Value => Unsafe.AsPointer(ref GetPinnableReference());
}
#endif
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/ShiftRightLogical.Vector64.Byte.1.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void ShiftRightLogical_Vector64_Byte_1()
{
var test = new ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1
{
private struct DataTable
{
private byte[] inArray;
private byte[] outArray;
private GCHandle inHandle;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Byte[] inArray, Byte[] outArray, int alignment)
{
int sizeOfinArray = inArray.Length * Unsafe.SizeOf<Byte>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Byte>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle = GCHandle.Alloc(this.inArray, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArrayPtr), ref Unsafe.As<Byte, byte>(ref inArray[0]), (uint)sizeOfinArray);
}
public void* inArrayPtr => Align((byte*)(inHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector64<Byte> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Byte>, byte>(ref testStruct._fld), ref Unsafe.As<Byte, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector64<Byte>>());
return testStruct;
}
public void RunStructFldScenario(ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1 testClass)
{
var result = AdvSimd.ShiftRightLogical(_fld, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1 testClass)
{
fixed (Vector64<Byte>* pFld = &_fld)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pFld)),
1
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 8;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Byte>>() / sizeof(Byte);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Byte>>() / sizeof(Byte);
private static readonly byte Imm = 1;
private static Byte[] _data = new Byte[Op1ElementCount];
private static Vector64<Byte> _clsVar;
private Vector64<Byte> _fld;
private DataTable _dataTable;
static ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Byte>, byte>(ref _clsVar), ref Unsafe.As<Byte, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector64<Byte>>());
}
public ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Byte>, byte>(ref _fld), ref Unsafe.As<Byte, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector64<Byte>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
_dataTable = new DataTable(_data, new Byte[RetElementCount], LargestVectorSize);
}
public bool IsSupported => AdvSimd.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = AdvSimd.ShiftRightLogical(
Unsafe.Read<Vector64<Byte>>(_dataTable.inArrayPtr),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(_dataTable.inArrayPtr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogical), new Type[] { typeof(Vector64<Byte>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector64<Byte>>(_dataTable.inArrayPtr),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogical), new Type[] { typeof(Vector64<Byte>), typeof(byte) })
.Invoke(null, new object[] {
AdvSimd.LoadVector64((Byte*)(_dataTable.inArrayPtr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = AdvSimd.ShiftRightLogical(
_clsVar,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector64<Byte>* pClsVar = &_clsVar)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pClsVar)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var firstOp = Unsafe.Read<Vector64<Byte>>(_dataTable.inArrayPtr);
var result = AdvSimd.ShiftRightLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var firstOp = AdvSimd.LoadVector64((Byte*)(_dataTable.inArrayPtr));
var result = AdvSimd.ShiftRightLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1();
var result = AdvSimd.ShiftRightLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1();
fixed (Vector64<Byte>* pFld = &test._fld)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pFld)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = AdvSimd.ShiftRightLogical(_fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector64<Byte>* pFld = &_fld)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pFld)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = AdvSimd.ShiftRightLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(&test._fld)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector64<Byte> firstOp, void* result, [CallerMemberName] string method = "")
{
Byte[] inArray = new Byte[Op1ElementCount];
Byte[] outArray = new Byte[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Byte, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
Byte[] inArray = new Byte[Op1ElementCount];
Byte[] outArray = new Byte[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector64<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(Byte[] firstOp, Byte[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
for (var i = 0; i < RetElementCount; i++)
{
if (Helpers.ShiftRightLogical(firstOp[i], Imm) != result[i])
{
succeeded = false;
break;
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.ShiftRightLogical)}<Byte>(Vector64<Byte>, 1): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void ShiftRightLogical_Vector64_Byte_1()
{
var test = new ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1
{
private struct DataTable
{
private byte[] inArray;
private byte[] outArray;
private GCHandle inHandle;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Byte[] inArray, Byte[] outArray, int alignment)
{
int sizeOfinArray = inArray.Length * Unsafe.SizeOf<Byte>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Byte>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle = GCHandle.Alloc(this.inArray, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArrayPtr), ref Unsafe.As<Byte, byte>(ref inArray[0]), (uint)sizeOfinArray);
}
public void* inArrayPtr => Align((byte*)(inHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector64<Byte> _fld;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Byte>, byte>(ref testStruct._fld), ref Unsafe.As<Byte, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector64<Byte>>());
return testStruct;
}
public void RunStructFldScenario(ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1 testClass)
{
var result = AdvSimd.ShiftRightLogical(_fld, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1 testClass)
{
fixed (Vector64<Byte>* pFld = &_fld)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pFld)),
1
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 8;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Byte>>() / sizeof(Byte);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Byte>>() / sizeof(Byte);
private static readonly byte Imm = 1;
private static Byte[] _data = new Byte[Op1ElementCount];
private static Vector64<Byte> _clsVar;
private Vector64<Byte> _fld;
private DataTable _dataTable;
static ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1()
{
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Byte>, byte>(ref _clsVar), ref Unsafe.As<Byte, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector64<Byte>>());
}
public ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Byte>, byte>(ref _fld), ref Unsafe.As<Byte, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector64<Byte>>());
for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetByte(); }
_dataTable = new DataTable(_data, new Byte[RetElementCount], LargestVectorSize);
}
public bool IsSupported => AdvSimd.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = AdvSimd.ShiftRightLogical(
Unsafe.Read<Vector64<Byte>>(_dataTable.inArrayPtr),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(_dataTable.inArrayPtr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogical), new Type[] { typeof(Vector64<Byte>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector64<Byte>>(_dataTable.inArrayPtr),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ShiftRightLogical), new Type[] { typeof(Vector64<Byte>), typeof(byte) })
.Invoke(null, new object[] {
AdvSimd.LoadVector64((Byte*)(_dataTable.inArrayPtr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result));
ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = AdvSimd.ShiftRightLogical(
_clsVar,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector64<Byte>* pClsVar = &_clsVar)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pClsVar)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var firstOp = Unsafe.Read<Vector64<Byte>>(_dataTable.inArrayPtr);
var result = AdvSimd.ShiftRightLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var firstOp = AdvSimd.LoadVector64((Byte*)(_dataTable.inArrayPtr));
var result = AdvSimd.ShiftRightLogical(firstOp, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(firstOp, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1();
var result = AdvSimd.ShiftRightLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new ImmUnaryOpTest__ShiftRightLogical_Vector64_Byte_1();
fixed (Vector64<Byte>* pFld = &test._fld)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pFld)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = AdvSimd.ShiftRightLogical(_fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector64<Byte>* pFld = &_fld)
{
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(pFld)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = AdvSimd.ShiftRightLogical(test._fld, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = AdvSimd.ShiftRightLogical(
AdvSimd.LoadVector64((Byte*)(&test._fld)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector64<Byte> firstOp, void* result, [CallerMemberName] string method = "")
{
Byte[] inArray = new Byte[Op1ElementCount];
Byte[] outArray = new Byte[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Byte, byte>(ref inArray[0]), firstOp);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "")
{
Byte[] inArray = new Byte[Op1ElementCount];
Byte[] outArray = new Byte[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector64<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>());
ValidateResult(inArray, outArray, method);
}
private void ValidateResult(Byte[] firstOp, Byte[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
for (var i = 0; i < RetElementCount; i++)
{
if (Helpers.ShiftRightLogical(firstOp[i], Imm) != result[i])
{
succeeded = false;
break;
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.ShiftRightLogical)}<Byte>(Vector64<Byte>, 1): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeClientStream.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.Win32.SafeHandles;
using System.Security;
using System.Security.Principal;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics;
namespace System.IO.Pipes
{
/// <summary>
/// Named pipe client. Use this to open the client end of a named pipes created with
/// NamedPipeServerStream.
/// </summary>
public sealed partial class NamedPipeClientStream : PipeStream
{
// Maximum interval in milliseconds between which cancellation is checked.
// Used by ConnectInternal. 50ms is fairly responsive time but really long time for processor.
private const int CancellationCheckInterval = 50;
private readonly string? _normalizedPipePath;
private readonly TokenImpersonationLevel _impersonationLevel;
private readonly PipeOptions _pipeOptions;
private readonly HandleInheritability _inheritability;
private readonly PipeDirection _direction;
// Creates a named pipe client using default server (same machine, or "."), and PipeDirection.InOut
public NamedPipeClientStream(string pipeName)
: this(".", pipeName, PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName)
: this(serverName, pipeName, PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction)
: this(serverName, pipeName, direction, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction, PipeOptions options)
: this(serverName, pipeName, direction, options, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction,
PipeOptions options, TokenImpersonationLevel impersonationLevel)
: this(serverName, pipeName, direction, options, impersonationLevel, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction,
PipeOptions options, TokenImpersonationLevel impersonationLevel, HandleInheritability inheritability)
: base(direction, 0)
{
ArgumentException.ThrowIfNullOrEmpty(pipeName);
ArgumentNullException.ThrowIfNull(serverName);
if (serverName.Length == 0)
{
throw new ArgumentException(SR.Argument_EmptyServerName);
}
if ((options & ~(PipeOptions.WriteThrough | PipeOptions.Asynchronous | PipeOptions.CurrentUserOnly)) != 0)
{
throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid);
}
if (impersonationLevel < TokenImpersonationLevel.None || impersonationLevel > TokenImpersonationLevel.Delegation)
{
throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid);
}
if (inheritability < HandleInheritability.None || inheritability > HandleInheritability.Inheritable)
{
throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
}
if ((options & PipeOptions.CurrentUserOnly) != 0)
{
IsCurrentUserOnly = true;
}
_normalizedPipePath = GetPipePath(serverName, pipeName);
_direction = direction;
_inheritability = inheritability;
_impersonationLevel = impersonationLevel;
_pipeOptions = options;
}
// Create a NamedPipeClientStream from an existing server pipe handle.
public NamedPipeClientStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle!!)
: base(direction, 0)
{
if (safePipeHandle.IsInvalid)
{
throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle));
}
ValidateHandleIsPipe(safePipeHandle);
InitializeHandle(safePipeHandle, true, isAsync);
if (isConnected)
{
State = PipeState.Connected;
}
}
~NamedPipeClientStream()
{
Dispose(false);
}
public void Connect()
{
Connect(Timeout.Infinite);
}
public void Connect(int timeout)
{
CheckConnectOperationsClient();
if (timeout < 0 && timeout != Timeout.Infinite)
{
throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_InvalidTimeout);
}
ConnectInternal(timeout, CancellationToken.None, Environment.TickCount);
}
private void ConnectInternal(int timeout, CancellationToken cancellationToken, int startTime)
{
// This is the main connection loop. It will loop until the timeout expires.
int elapsed = 0;
SpinWait sw = default;
do
{
cancellationToken.ThrowIfCancellationRequested();
// Determine how long we should wait in this connection attempt
int waitTime = timeout - elapsed;
if (cancellationToken.CanBeCanceled && waitTime > CancellationCheckInterval)
{
waitTime = CancellationCheckInterval;
}
// Try to connect.
if (TryConnect(waitTime, cancellationToken))
{
return;
}
// Some platforms may return immediately from TryConnect if the connection could not be made,
// e.g. WaitNamedPipe on Win32 will return immediately if the pipe hasn't yet been created,
// and open on Unix will fail if the file isn't yet available. Rather than just immediately
// looping around again, do slightly smarter busy waiting.
sw.SpinOnce();
}
while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout);
throw new TimeoutException();
}
public Task ConnectAsync()
{
// We cannot avoid creating lambda here by using Connect method
// unless we don't care about start time to be measured before the thread is started
return ConnectAsync(Timeout.Infinite, CancellationToken.None);
}
public Task ConnectAsync(int timeout)
{
return ConnectAsync(timeout, CancellationToken.None);
}
public Task ConnectAsync(CancellationToken cancellationToken)
{
return ConnectAsync(Timeout.Infinite, cancellationToken);
}
public Task ConnectAsync(int timeout, CancellationToken cancellationToken)
{
CheckConnectOperationsClient();
if (timeout < 0 && timeout != Timeout.Infinite)
{
throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_InvalidTimeout);
}
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
int startTime = Environment.TickCount; // We need to measure time here, not in the lambda
return Task.Run(() => ConnectInternal(timeout, cancellationToken, startTime), cancellationToken);
}
// override because named pipe clients can't get/set properties when waiting to connect
// or broken
protected internal override void CheckPipePropertyOperations()
{
base.CheckPipePropertyOperations();
if (State == PipeState.WaitingToConnect)
{
throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected);
}
if (State == PipeState.Broken)
{
throw new IOException(SR.IO_PipeBroken);
}
}
// named client is allowed to connect from broken
private void CheckConnectOperationsClient()
{
if (State == PipeState.Connected)
{
throw new InvalidOperationException(SR.InvalidOperation_PipeAlreadyConnected);
}
if (State == PipeState.Closed)
{
throw Error.GetPipeNotOpen();
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.Win32.SafeHandles;
using System.Security;
using System.Security.Principal;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics;
namespace System.IO.Pipes
{
/// <summary>
/// Named pipe client. Use this to open the client end of a named pipes created with
/// NamedPipeServerStream.
/// </summary>
public sealed partial class NamedPipeClientStream : PipeStream
{
// Maximum interval in milliseconds between which cancellation is checked.
// Used by ConnectInternal. 50ms is fairly responsive time but really long time for processor.
private const int CancellationCheckInterval = 50;
private readonly string? _normalizedPipePath;
private readonly TokenImpersonationLevel _impersonationLevel;
private readonly PipeOptions _pipeOptions;
private readonly HandleInheritability _inheritability;
private readonly PipeDirection _direction;
// Creates a named pipe client using default server (same machine, or "."), and PipeDirection.InOut
public NamedPipeClientStream(string pipeName)
: this(".", pipeName, PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName)
: this(serverName, pipeName, PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction)
: this(serverName, pipeName, direction, PipeOptions.None, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction, PipeOptions options)
: this(serverName, pipeName, direction, options, TokenImpersonationLevel.None, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction,
PipeOptions options, TokenImpersonationLevel impersonationLevel)
: this(serverName, pipeName, direction, options, impersonationLevel, HandleInheritability.None)
{
}
public NamedPipeClientStream(string serverName, string pipeName, PipeDirection direction,
PipeOptions options, TokenImpersonationLevel impersonationLevel, HandleInheritability inheritability)
: base(direction, 0)
{
ArgumentException.ThrowIfNullOrEmpty(pipeName);
ArgumentNullException.ThrowIfNull(serverName);
if (serverName.Length == 0)
{
throw new ArgumentException(SR.Argument_EmptyServerName);
}
if ((options & ~(PipeOptions.WriteThrough | PipeOptions.Asynchronous | PipeOptions.CurrentUserOnly)) != 0)
{
throw new ArgumentOutOfRangeException(nameof(options), SR.ArgumentOutOfRange_OptionsInvalid);
}
if (impersonationLevel < TokenImpersonationLevel.None || impersonationLevel > TokenImpersonationLevel.Delegation)
{
throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid);
}
if (inheritability < HandleInheritability.None || inheritability > HandleInheritability.Inheritable)
{
throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
}
if ((options & PipeOptions.CurrentUserOnly) != 0)
{
IsCurrentUserOnly = true;
}
_normalizedPipePath = GetPipePath(serverName, pipeName);
_direction = direction;
_inheritability = inheritability;
_impersonationLevel = impersonationLevel;
_pipeOptions = options;
}
// Create a NamedPipeClientStream from an existing server pipe handle.
public NamedPipeClientStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle!!)
: base(direction, 0)
{
if (safePipeHandle.IsInvalid)
{
throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle));
}
ValidateHandleIsPipe(safePipeHandle);
InitializeHandle(safePipeHandle, true, isAsync);
if (isConnected)
{
State = PipeState.Connected;
}
}
~NamedPipeClientStream()
{
Dispose(false);
}
public void Connect()
{
Connect(Timeout.Infinite);
}
public void Connect(int timeout)
{
CheckConnectOperationsClient();
if (timeout < 0 && timeout != Timeout.Infinite)
{
throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_InvalidTimeout);
}
ConnectInternal(timeout, CancellationToken.None, Environment.TickCount);
}
private void ConnectInternal(int timeout, CancellationToken cancellationToken, int startTime)
{
// This is the main connection loop. It will loop until the timeout expires.
int elapsed = 0;
SpinWait sw = default;
do
{
cancellationToken.ThrowIfCancellationRequested();
// Determine how long we should wait in this connection attempt
int waitTime = timeout - elapsed;
if (cancellationToken.CanBeCanceled && waitTime > CancellationCheckInterval)
{
waitTime = CancellationCheckInterval;
}
// Try to connect.
if (TryConnect(waitTime, cancellationToken))
{
return;
}
// Some platforms may return immediately from TryConnect if the connection could not be made,
// e.g. WaitNamedPipe on Win32 will return immediately if the pipe hasn't yet been created,
// and open on Unix will fail if the file isn't yet available. Rather than just immediately
// looping around again, do slightly smarter busy waiting.
sw.SpinOnce();
}
while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout);
throw new TimeoutException();
}
public Task ConnectAsync()
{
// We cannot avoid creating lambda here by using Connect method
// unless we don't care about start time to be measured before the thread is started
return ConnectAsync(Timeout.Infinite, CancellationToken.None);
}
public Task ConnectAsync(int timeout)
{
return ConnectAsync(timeout, CancellationToken.None);
}
public Task ConnectAsync(CancellationToken cancellationToken)
{
return ConnectAsync(Timeout.Infinite, cancellationToken);
}
public Task ConnectAsync(int timeout, CancellationToken cancellationToken)
{
CheckConnectOperationsClient();
if (timeout < 0 && timeout != Timeout.Infinite)
{
throw new ArgumentOutOfRangeException(nameof(timeout), SR.ArgumentOutOfRange_InvalidTimeout);
}
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
int startTime = Environment.TickCount; // We need to measure time here, not in the lambda
return Task.Run(() => ConnectInternal(timeout, cancellationToken, startTime), cancellationToken);
}
// override because named pipe clients can't get/set properties when waiting to connect
// or broken
protected internal override void CheckPipePropertyOperations()
{
base.CheckPipePropertyOperations();
if (State == PipeState.WaitingToConnect)
{
throw new InvalidOperationException(SR.InvalidOperation_PipeNotYetConnected);
}
if (State == PipeState.Broken)
{
throw new IOException(SR.IO_PipeBroken);
}
}
// named client is allowed to connect from broken
private void CheckConnectOperationsClient()
{
if (State == PipeState.Connected)
{
throw new InvalidOperationException(SR.InvalidOperation_PipeAlreadyConnected);
}
if (State == PipeState.Closed)
{
throw Error.GetPipeNotOpen();
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/ComEventsInfo.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.Versioning;
namespace System.Runtime.InteropServices
{
[SupportedOSPlatform("windows")]
internal sealed class ComEventsInfo
{
private ComEventsSink? _sinks;
private readonly object _rcw;
private ComEventsInfo(object rcw)
{
_rcw = rcw;
}
~ComEventsInfo()
{
// see notes in ComEventsHelper.cs regarding ComEventsFinalization
_sinks = ComEventsSink.RemoveAll(_sinks);
}
public static ComEventsInfo? Find(object rcw)
{
return (ComEventsInfo?)Marshal.GetComObjectData(rcw, typeof(ComEventsInfo));
}
// it is caller's responsibility to call this method under lock(rcw)
public static ComEventsInfo FromObject(object rcw)
{
ComEventsInfo? eventsInfo = Find(rcw);
if (eventsInfo == null)
{
eventsInfo = new ComEventsInfo(rcw);
Marshal.SetComObjectData(rcw, typeof(ComEventsInfo), eventsInfo);
}
return eventsInfo;
}
public ComEventsSink? FindSink(ref Guid iid)
{
return ComEventsSink.Find(_sinks, ref iid);
}
// it is caller's responsibility to call this method under lock(rcw)
public ComEventsSink AddSink(ref Guid iid)
{
ComEventsSink sink = new ComEventsSink(_rcw, iid);
_sinks = ComEventsSink.Add(_sinks, sink);
return _sinks;
}
// it is caller's responsibility to call this method under lock(rcw)
internal ComEventsSink RemoveSink(ComEventsSink sink)
{
_sinks = ComEventsSink.Remove(_sinks!, sink);
return _sinks!;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.Versioning;
namespace System.Runtime.InteropServices
{
[SupportedOSPlatform("windows")]
internal sealed class ComEventsInfo
{
private ComEventsSink? _sinks;
private readonly object _rcw;
private ComEventsInfo(object rcw)
{
_rcw = rcw;
}
~ComEventsInfo()
{
// see notes in ComEventsHelper.cs regarding ComEventsFinalization
_sinks = ComEventsSink.RemoveAll(_sinks);
}
public static ComEventsInfo? Find(object rcw)
{
return (ComEventsInfo?)Marshal.GetComObjectData(rcw, typeof(ComEventsInfo));
}
// it is caller's responsibility to call this method under lock(rcw)
public static ComEventsInfo FromObject(object rcw)
{
ComEventsInfo? eventsInfo = Find(rcw);
if (eventsInfo == null)
{
eventsInfo = new ComEventsInfo(rcw);
Marshal.SetComObjectData(rcw, typeof(ComEventsInfo), eventsInfo);
}
return eventsInfo;
}
public ComEventsSink? FindSink(ref Guid iid)
{
return ComEventsSink.Find(_sinks, ref iid);
}
// it is caller's responsibility to call this method under lock(rcw)
public ComEventsSink AddSink(ref Guid iid)
{
ComEventsSink sink = new ComEventsSink(_rcw, iid);
_sinks = ComEventsSink.Add(_sinks, sink);
return _sinks;
}
// it is caller's responsibility to call this method under lock(rcw)
internal ComEventsSink RemoveSink(ComEventsSink sink)
{
_sinks = ComEventsSink.Remove(_sinks!, sink);
return _sinks!;
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/Common/src/Interop/Unix/System.Native/Interop.SchedGetCpu.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal unsafe partial class Sys
{
[GeneratedDllImport(Interop.Libraries.SystemNative, EntryPoint = "SystemNative_SchedGetCpu")]
internal static partial int SchedGetCpu();
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal unsafe partial class Sys
{
[GeneratedDllImport(Interop.Libraries.SystemNative, EntryPoint = "SystemNative_SchedGetCpu")]
internal static partial int SchedGetCpu();
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.Xml/tests/XmlReaderLib/TCReadOuterXml.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using OLEDB.Test.ModuleCore;
namespace System.Xml.Tests
{
public partial class TCReadOuterXml : TCXMLReaderBaseGeneral
{
// Type is System.Xml.Tests.TCReadOuterXml
// Test Case
public override void AddChildren()
{
// for function ReadOuterXml1
{
this.AddChild(new CVariation(ReadOuterXml1) { Attribute = new Variation("ReadOuterXml on empty element w/o attributes") { Pri = 0 } });
}
// for function ReadOuterXml2
{
this.AddChild(new CVariation(ReadOuterXml2) { Attribute = new Variation("ReadOuterXml on empty element w/ attributes") { Pri = 0 } });
}
// for function ReadOuterXml3
{
this.AddChild(new CVariation(ReadOuterXml3) { Attribute = new Variation("ReadOuterXml on full empty element w/o attributes") });
}
// for function ReadOuterXml4
{
this.AddChild(new CVariation(ReadOuterXml4) { Attribute = new Variation("ReadOuterXml on full empty element w/ attributes") });
}
// for function ReadOuterXml5
{
this.AddChild(new CVariation(ReadOuterXml5) { Attribute = new Variation("ReadOuterXml on element with text content") { Pri = 0 } });
}
// for function ReadOuterXml6
{
this.AddChild(new CVariation(ReadOuterXml6) { Attribute = new Variation("ReadOuterXml on element with attributes") { Pri = 0 } });
}
// for function ReadOuterXml7
{
this.AddChild(new CVariation(ReadOuterXml7) { Attribute = new Variation("ReadOuterXml on element with text and markup content") });
}
// for function ReadOuterXml8
{
this.AddChild(new CVariation(ReadOuterXml8) { Attribute = new Variation("ReadOuterXml with multiple level of elements") });
}
// for function ReadOuterXml9
{
this.AddChild(new CVariation(ReadOuterXml9) { Attribute = new Variation("ReadOuterXml with multiple level of elements, text and attributes") { Pri = 0 } });
}
// for function ReadOuterXml10
{
this.AddChild(new CVariation(ReadOuterXml10) { Attribute = new Variation("ReadOuterXml on element with complex content (CDATA, PIs, Comments)") { Pri = 0 } });
}
// for function ReadOuterXml11
{
this.AddChild(new CVariation(ReadOuterXml11) { Attribute = new Variation("ReadOuterXml on element with entities, EntityHandling = ExpandEntities") });
}
// for function ReadOuterXml12
{
this.AddChild(new CVariation(ReadOuterXml12) { Attribute = new Variation("ReadOuterXml on attribute node of empty element") });
}
// for function ReadOuterXml13
{
this.AddChild(new CVariation(ReadOuterXml13) { Attribute = new Variation("ReadOuterXml on attribute node of full empty element") });
}
// for function ReadOuterXml14
{
this.AddChild(new CVariation(ReadOuterXml14) { Attribute = new Variation("ReadOuterXml on attribute node") { Pri = 0 } });
}
// for function ReadOuterXml15
{
this.AddChild(new CVariation(ReadOuterXml15) { Attribute = new Variation("ReadOuterXml on attribute with entities, EntityHandling = ExpandEntities") { Pri = 0 } });
}
// for function ReadOuterXml16
{
this.AddChild(new CVariation(ReadOuterXml16) { Attribute = new Variation("ReadOuterXml on Comment") });
}
// for function ReadOuterXml17
{
this.AddChild(new CVariation(ReadOuterXml17) { Attribute = new Variation("ReadOuterXml on ProcessingInstruction") });
}
// for function ReadOuterXml19
{
this.AddChild(new CVariation(ReadOuterXml19) { Attribute = new Variation("ReadOuterXml on XmlDeclaration") });
}
// for function ReadOuterXml20
{
this.AddChild(new CVariation(ReadOuterXml20) { Attribute = new Variation("ReadOuterXml on EndElement") });
}
// for function ReadOuterXml21
{
this.AddChild(new CVariation(ReadOuterXml21) { Attribute = new Variation("ReadOuterXml on Text") });
}
// for function ReadOuterXml22
{
this.AddChild(new CVariation(ReadOuterXml22) { Attribute = new Variation("ReadOuterXml on EntityReference") });
}
// for function ReadOuterXml23
{
this.AddChild(new CVariation(ReadOuterXml23) { Attribute = new Variation("ReadOuterXml on EndEntity") });
}
// for function ReadOuterXml24
{
this.AddChild(new CVariation(ReadOuterXml24) { Attribute = new Variation("ReadOuterXml on CDATA") });
}
// for function ReadOuterXml25
{
this.AddChild(new CVariation(ReadOuterXml25) { Attribute = new Variation("ReadOuterXml on XmlDeclaration attributes") });
}
// for function TRReadOuterXml27
{
this.AddChild(new CVariation(TRReadOuterXml27) { Attribute = new Variation("ReadOuterXml on element with entities, EntityHandling = ExpandCharEntities") });
}
// for function TRReadOuterXml28
{
this.AddChild(new CVariation(TRReadOuterXml28) { Attribute = new Variation("ReadOuterXml on attribute with entities, EntityHandling = ExpandCharEntites") });
}
// for function TestTextReadOuterXml29
{
this.AddChild(new CVariation(TestTextReadOuterXml29) { Attribute = new Variation("One large element") });
}
// for function ReadOuterXmlWhenNamespacesIgnoredWorksWithXmlns
{
this.AddChild(new CVariation(ReadOuterXmlWhenNamespacesIgnoredWorksWithXmlns) { Attribute = new Variation("Read OuterXml when Namespaces=false and has an attribute xmlns") });
}
// for function SubtreeXmlReaderOutputsSingleNamespaceDeclaration
{
this.AddChild(new CVariation(SubtreeXmlReaderOutputsSingleNamespaceDeclaration) { Attribute = new Variation("XmlReader.ReadOuterXml outputs multiple namespace declarations if called within multiple XmlReader.ReadSubtree() calls") });
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using OLEDB.Test.ModuleCore;
namespace System.Xml.Tests
{
public partial class TCReadOuterXml : TCXMLReaderBaseGeneral
{
// Type is System.Xml.Tests.TCReadOuterXml
// Test Case
public override void AddChildren()
{
// for function ReadOuterXml1
{
this.AddChild(new CVariation(ReadOuterXml1) { Attribute = new Variation("ReadOuterXml on empty element w/o attributes") { Pri = 0 } });
}
// for function ReadOuterXml2
{
this.AddChild(new CVariation(ReadOuterXml2) { Attribute = new Variation("ReadOuterXml on empty element w/ attributes") { Pri = 0 } });
}
// for function ReadOuterXml3
{
this.AddChild(new CVariation(ReadOuterXml3) { Attribute = new Variation("ReadOuterXml on full empty element w/o attributes") });
}
// for function ReadOuterXml4
{
this.AddChild(new CVariation(ReadOuterXml4) { Attribute = new Variation("ReadOuterXml on full empty element w/ attributes") });
}
// for function ReadOuterXml5
{
this.AddChild(new CVariation(ReadOuterXml5) { Attribute = new Variation("ReadOuterXml on element with text content") { Pri = 0 } });
}
// for function ReadOuterXml6
{
this.AddChild(new CVariation(ReadOuterXml6) { Attribute = new Variation("ReadOuterXml on element with attributes") { Pri = 0 } });
}
// for function ReadOuterXml7
{
this.AddChild(new CVariation(ReadOuterXml7) { Attribute = new Variation("ReadOuterXml on element with text and markup content") });
}
// for function ReadOuterXml8
{
this.AddChild(new CVariation(ReadOuterXml8) { Attribute = new Variation("ReadOuterXml with multiple level of elements") });
}
// for function ReadOuterXml9
{
this.AddChild(new CVariation(ReadOuterXml9) { Attribute = new Variation("ReadOuterXml with multiple level of elements, text and attributes") { Pri = 0 } });
}
// for function ReadOuterXml10
{
this.AddChild(new CVariation(ReadOuterXml10) { Attribute = new Variation("ReadOuterXml on element with complex content (CDATA, PIs, Comments)") { Pri = 0 } });
}
// for function ReadOuterXml11
{
this.AddChild(new CVariation(ReadOuterXml11) { Attribute = new Variation("ReadOuterXml on element with entities, EntityHandling = ExpandEntities") });
}
// for function ReadOuterXml12
{
this.AddChild(new CVariation(ReadOuterXml12) { Attribute = new Variation("ReadOuterXml on attribute node of empty element") });
}
// for function ReadOuterXml13
{
this.AddChild(new CVariation(ReadOuterXml13) { Attribute = new Variation("ReadOuterXml on attribute node of full empty element") });
}
// for function ReadOuterXml14
{
this.AddChild(new CVariation(ReadOuterXml14) { Attribute = new Variation("ReadOuterXml on attribute node") { Pri = 0 } });
}
// for function ReadOuterXml15
{
this.AddChild(new CVariation(ReadOuterXml15) { Attribute = new Variation("ReadOuterXml on attribute with entities, EntityHandling = ExpandEntities") { Pri = 0 } });
}
// for function ReadOuterXml16
{
this.AddChild(new CVariation(ReadOuterXml16) { Attribute = new Variation("ReadOuterXml on Comment") });
}
// for function ReadOuterXml17
{
this.AddChild(new CVariation(ReadOuterXml17) { Attribute = new Variation("ReadOuterXml on ProcessingInstruction") });
}
// for function ReadOuterXml19
{
this.AddChild(new CVariation(ReadOuterXml19) { Attribute = new Variation("ReadOuterXml on XmlDeclaration") });
}
// for function ReadOuterXml20
{
this.AddChild(new CVariation(ReadOuterXml20) { Attribute = new Variation("ReadOuterXml on EndElement") });
}
// for function ReadOuterXml21
{
this.AddChild(new CVariation(ReadOuterXml21) { Attribute = new Variation("ReadOuterXml on Text") });
}
// for function ReadOuterXml22
{
this.AddChild(new CVariation(ReadOuterXml22) { Attribute = new Variation("ReadOuterXml on EntityReference") });
}
// for function ReadOuterXml23
{
this.AddChild(new CVariation(ReadOuterXml23) { Attribute = new Variation("ReadOuterXml on EndEntity") });
}
// for function ReadOuterXml24
{
this.AddChild(new CVariation(ReadOuterXml24) { Attribute = new Variation("ReadOuterXml on CDATA") });
}
// for function ReadOuterXml25
{
this.AddChild(new CVariation(ReadOuterXml25) { Attribute = new Variation("ReadOuterXml on XmlDeclaration attributes") });
}
// for function TRReadOuterXml27
{
this.AddChild(new CVariation(TRReadOuterXml27) { Attribute = new Variation("ReadOuterXml on element with entities, EntityHandling = ExpandCharEntities") });
}
// for function TRReadOuterXml28
{
this.AddChild(new CVariation(TRReadOuterXml28) { Attribute = new Variation("ReadOuterXml on attribute with entities, EntityHandling = ExpandCharEntites") });
}
// for function TestTextReadOuterXml29
{
this.AddChild(new CVariation(TestTextReadOuterXml29) { Attribute = new Variation("One large element") });
}
// for function ReadOuterXmlWhenNamespacesIgnoredWorksWithXmlns
{
this.AddChild(new CVariation(ReadOuterXmlWhenNamespacesIgnoredWorksWithXmlns) { Attribute = new Variation("Read OuterXml when Namespaces=false and has an attribute xmlns") });
}
// for function SubtreeXmlReaderOutputsSingleNamespaceDeclaration
{
this.AddChild(new CVariation(SubtreeXmlReaderOutputsSingleNamespaceDeclaration) { Attribute = new Variation("XmlReader.ReadOuterXml outputs multiple namespace declarations if called within multiple XmlReader.ReadSubtree() calls") });
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/HardwareIntrinsics/X86/Avx2/Xor.UInt16.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void XorUInt16()
{
var test = new SimpleBinaryOpTest__XorUInt16();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (Avx.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleBinaryOpTest__XorUInt16
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>();
if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<UInt16> _fld1;
public Vector256<UInt16> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
return testStruct;
}
public void RunStructFldScenario(SimpleBinaryOpTest__XorUInt16 testClass)
{
var result = Avx2.Xor(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleBinaryOpTest__XorUInt16 testClass)
{
fixed (Vector256<UInt16>* pFld1 = &_fld1)
fixed (Vector256<UInt16>* pFld2 = &_fld2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pFld1)),
Avx.LoadVector256((UInt16*)(pFld2))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static UInt16[] _data1 = new UInt16[Op1ElementCount];
private static UInt16[] _data2 = new UInt16[Op2ElementCount];
private static Vector256<UInt16> _clsVar1;
private static Vector256<UInt16> _clsVar2;
private Vector256<UInt16> _fld1;
private Vector256<UInt16> _fld2;
private DataTable _dataTable;
static SimpleBinaryOpTest__XorUInt16()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
}
public SimpleBinaryOpTest__XorUInt16()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
_dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.Xor(
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((UInt16*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.Xor(
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.Xor), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.Xor), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Avx.LoadVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((UInt16*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.Xor), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.Xor(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector256<UInt16>* pClsVar1 = &_clsVar1)
fixed (Vector256<UInt16>* pClsVar2 = &_clsVar2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pClsVar1)),
Avx.LoadVector256((UInt16*)(pClsVar2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr);
var result = Avx2.Xor(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = Avx.LoadVector256((UInt16*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadVector256((UInt16*)(_dataTable.inArray2Ptr));
var result = Avx2.Xor(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var op1 = Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray2Ptr));
var result = Avx2.Xor(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleBinaryOpTest__XorUInt16();
var result = Avx2.Xor(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleBinaryOpTest__XorUInt16();
fixed (Vector256<UInt16>* pFld1 = &test._fld1)
fixed (Vector256<UInt16>* pFld2 = &test._fld2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pFld1)),
Avx.LoadVector256((UInt16*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.Xor(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector256<UInt16>* pFld1 = &_fld1)
fixed (Vector256<UInt16>* pFld2 = &_fld2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pFld1)),
Avx.LoadVector256((UInt16*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.Xor(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(&test._fld1)),
Avx.LoadVector256((UInt16*)(&test._fld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector256<UInt16> op1, Vector256<UInt16> op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if ((ushort)(left[0] ^ right[0]) != result[0])
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if ((ushort)(left[i] ^ right[i]) != result[i])
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.Xor)}<UInt16>(Vector256<UInt16>, Vector256<UInt16>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void XorUInt16()
{
var test = new SimpleBinaryOpTest__XorUInt16();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (Avx.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Avx.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (Avx.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (Avx.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleBinaryOpTest__XorUInt16
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>();
if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector256<UInt16> _fld1;
public Vector256<UInt16> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
return testStruct;
}
public void RunStructFldScenario(SimpleBinaryOpTest__XorUInt16 testClass)
{
var result = Avx2.Xor(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleBinaryOpTest__XorUInt16 testClass)
{
fixed (Vector256<UInt16>* pFld1 = &_fld1)
fixed (Vector256<UInt16>* pFld2 = &_fld2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pFld1)),
Avx.LoadVector256((UInt16*)(pFld2))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 32;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16);
private static UInt16[] _data1 = new UInt16[Op1ElementCount];
private static UInt16[] _data2 = new UInt16[Op2ElementCount];
private static Vector256<UInt16> _clsVar1;
private static Vector256<UInt16> _clsVar2;
private Vector256<UInt16> _fld1;
private Vector256<UInt16> _fld2;
private DataTable _dataTable;
static SimpleBinaryOpTest__XorUInt16()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
}
public SimpleBinaryOpTest__XorUInt16()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); }
_dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.Xor(
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((UInt16*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.Xor(
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.Xor), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.Xor), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Avx.LoadVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadVector256((UInt16*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.Xor), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) })
.Invoke(null, new object[] {
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray1Ptr)),
Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.Xor(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector256<UInt16>* pClsVar1 = &_clsVar1)
fixed (Vector256<UInt16>* pClsVar2 = &_clsVar2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pClsVar1)),
Avx.LoadVector256((UInt16*)(pClsVar2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr);
var result = Avx2.Xor(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = Avx.LoadVector256((UInt16*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadVector256((UInt16*)(_dataTable.inArray2Ptr));
var result = Avx2.Xor(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var op1 = Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray1Ptr));
var op2 = Avx.LoadAlignedVector256((UInt16*)(_dataTable.inArray2Ptr));
var result = Avx2.Xor(op1, op2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleBinaryOpTest__XorUInt16();
var result = Avx2.Xor(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleBinaryOpTest__XorUInt16();
fixed (Vector256<UInt16>* pFld1 = &test._fld1)
fixed (Vector256<UInt16>* pFld2 = &test._fld2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pFld1)),
Avx.LoadVector256((UInt16*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.Xor(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector256<UInt16>* pFld1 = &_fld1)
fixed (Vector256<UInt16>* pFld2 = &_fld2)
{
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(pFld1)),
Avx.LoadVector256((UInt16*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.Xor(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = Avx2.Xor(
Avx.LoadVector256((UInt16*)(&test._fld1)),
Avx.LoadVector256((UInt16*)(&test._fld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector256<UInt16> op1, Vector256<UInt16> op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "")
{
UInt16[] inArray1 = new UInt16[Op1ElementCount];
UInt16[] inArray2 = new UInt16[Op2ElementCount];
UInt16[] outArray = new UInt16[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if ((ushort)(left[0] ^ right[0]) != result[0])
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if ((ushort)(left[i] ^ right[i]) != result[i])
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.Xor)}<UInt16>(Vector256<UInt16>, Vector256<UInt16>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Security.AccessControl/tests/SystemAcl/SystemAcl_AceCount.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Security.Principal;
using Xunit;
namespace System.Security.AccessControl.Tests
{
public class SystemAcl_AceCount
{
[Fact]
public static void BasicValidationTestCases()
{
RawAcl rawAcl = null;
GenericAce gAce = null;
SystemAcl systemAcl = null;
bool isContainer = false;
bool isDS = false;
byte revision = 0;
int capacity = 0;
string sid = "BA";
//case 1, empty SystemAcl
revision = 0;
capacity = 1;
rawAcl = new RawAcl(revision, capacity);
isContainer = false;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(0 == systemAcl.Count);
//case 2, SystemAcl with one Ace
revision = 0;
capacity = 1;
rawAcl = new RawAcl(revision, capacity);
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, 1, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid(sid)), false, null);
rawAcl.InsertAce(0, gAce);
isContainer = false;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(1 == systemAcl.Count);
//case 3, SystemAcl with two Aces
revision = 0;
capacity = 1;
rawAcl = new RawAcl(revision, capacity);
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, 1, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid("BG")), false, null);
rawAcl.InsertAce(0, gAce);
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, 2, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid("BA")), false, null);
rawAcl.InsertAce(0, gAce);
isContainer = true;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(2 == systemAcl.Count);
}
[Fact]
public static void AdditionalTestCases()
{
RawAcl rawAcl = null;
GenericAce gAce = null;
byte revision = 0;
int capacity = 0;
string sid = "BA";
SystemAcl systemAcl = null;
bool isContainer = false;
bool isDS = false;
//case 1, SysemAcl with huge number of Aces
revision = 0;
capacity = 1;
sid = new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid(sid)).ToString();
rawAcl = new RawAcl(revision, capacity);
for (int i = 0; i < 1820; i++)
{
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, i + 1, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid(sid + i.ToString())), false, null);
rawAcl.InsertAce(0, gAce);
}
isContainer = true;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(1820 == systemAcl.Count);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Security.Principal;
using Xunit;
namespace System.Security.AccessControl.Tests
{
public class SystemAcl_AceCount
{
[Fact]
public static void BasicValidationTestCases()
{
RawAcl rawAcl = null;
GenericAce gAce = null;
SystemAcl systemAcl = null;
bool isContainer = false;
bool isDS = false;
byte revision = 0;
int capacity = 0;
string sid = "BA";
//case 1, empty SystemAcl
revision = 0;
capacity = 1;
rawAcl = new RawAcl(revision, capacity);
isContainer = false;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(0 == systemAcl.Count);
//case 2, SystemAcl with one Ace
revision = 0;
capacity = 1;
rawAcl = new RawAcl(revision, capacity);
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, 1, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid(sid)), false, null);
rawAcl.InsertAce(0, gAce);
isContainer = false;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(1 == systemAcl.Count);
//case 3, SystemAcl with two Aces
revision = 0;
capacity = 1;
rawAcl = new RawAcl(revision, capacity);
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, 1, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid("BG")), false, null);
rawAcl.InsertAce(0, gAce);
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, 2, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid("BA")), false, null);
rawAcl.InsertAce(0, gAce);
isContainer = true;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(2 == systemAcl.Count);
}
[Fact]
public static void AdditionalTestCases()
{
RawAcl rawAcl = null;
GenericAce gAce = null;
byte revision = 0;
int capacity = 0;
string sid = "BA";
SystemAcl systemAcl = null;
bool isContainer = false;
bool isDS = false;
//case 1, SysemAcl with huge number of Aces
revision = 0;
capacity = 1;
sid = new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid(sid)).ToString();
rawAcl = new RawAcl(revision, capacity);
for (int i = 0; i < 1820; i++)
{
gAce = new CommonAce(AceFlags.SuccessfulAccess, AceQualifier.SystemAudit, i + 1, new SecurityIdentifier(Utils.TranslateStringConstFormatSidToStandardFormatSid(sid + i.ToString())), false, null);
rawAcl.InsertAce(0, gAce);
}
isContainer = true;
isDS = false;
systemAcl = new SystemAcl(isContainer, isDS, rawAcl);
Assert.True(1820 == systemAcl.Count);
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Security.Cryptography.Pkcs/src/Internal/Cryptography/Pal/AnyOS/AsnHelpers.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics;
using System.Formats.Asn1;
using System.Security.Cryptography;
using System.Security.Cryptography.Asn1;
using System.Security.Cryptography.Pkcs;
using System.Security.Cryptography.Pkcs.Asn1;
using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml;
namespace Internal.Cryptography.Pal.AnyOS
{
internal static class AsnHelpers
{
internal static SubjectIdentifierOrKey ToSubjectIdentifierOrKey(
this OriginatorIdentifierOrKeyAsn originator)
{
if (originator.IssuerAndSerialNumber.HasValue)
{
var name = new X500DistinguishedName(originator.IssuerAndSerialNumber.Value.Issuer.ToArray());
return new SubjectIdentifierOrKey(
SubjectIdentifierOrKeyType.IssuerAndSerialNumber,
new X509IssuerSerial(
name.Name,
originator.IssuerAndSerialNumber.Value.SerialNumber.Span.ToBigEndianHex()));
}
if (originator.SubjectKeyIdentifier.HasValue)
{
return new SubjectIdentifierOrKey(
SubjectIdentifierOrKeyType.SubjectKeyIdentifier,
originator.SubjectKeyIdentifier.Value.Span.ToBigEndianHex());
}
if (originator.OriginatorKey.HasValue)
{
OriginatorPublicKeyAsn originatorKey = originator.OriginatorKey.Value;
return new SubjectIdentifierOrKey(
SubjectIdentifierOrKeyType.PublicKeyInfo,
new PublicKeyInfo(
originatorKey.Algorithm.ToPresentationObject(),
originatorKey.PublicKey.ToArray()));
}
Debug.Fail("Unknown SubjectIdentifierOrKey state");
return new SubjectIdentifierOrKey(SubjectIdentifierOrKeyType.Unknown, string.Empty);
}
internal static AlgorithmIdentifier ToPresentationObject(this AlgorithmIdentifierAsn asn)
{
int keyLength;
byte[] parameters = Array.Empty<byte>();
switch (asn.Algorithm)
{
case Oids.Rc2Cbc:
{
if (asn.Parameters == null)
{
keyLength = 0;
break;
}
Rc2CbcParameters rc2Params = Rc2CbcParameters.Decode(
asn.Parameters.Value,
AsnEncodingRules.BER);
int keySize = rc2Params.GetEffectiveKeyBits();
// These are the only values .NET Framework would set.
switch (keySize)
{
case 40:
case 56:
case 64:
case 128:
keyLength = keySize;
break;
default:
keyLength = 0;
break;
}
break;
}
case Oids.Rc4:
{
if (asn.Parameters == null)
{
keyLength = 0;
break;
}
int saltLen = 0;
try
{
AsnReader reader = new AsnReader(asn.Parameters.Value, AsnEncodingRules.BER);
// DER NULL is considered the same as not present.
// No call to ReadNull() is necessary because the serializer already verified that
// there's no data after the [AnyValue] value.
if (reader.PeekTag() != Asn1Tag.Null)
{
if (reader.TryReadPrimitiveOctetString(out ReadOnlyMemory<byte> contents))
{
saltLen = contents.Length;
}
else
{
Span<byte> salt = stackalloc byte[KeyLengths.Rc4Max_128Bit / 8];
if (!reader.TryReadOctetString(salt, out saltLen))
{
throw new CryptographicException();
}
}
}
}
catch (AsnContentException e)
{
throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
}
keyLength = KeyLengths.Rc4Max_128Bit - 8 * saltLen;
break;
}
case Oids.DesCbc:
keyLength = KeyLengths.Des_64Bit;
break;
case Oids.TripleDesCbc:
keyLength = KeyLengths.TripleDes_192Bit;
break;
case Oids.RsaOaep when !asn.HasNullEquivalentParameters():
keyLength = 0;
Debug.Assert(asn.Parameters != null);
parameters = asn.Parameters.Value.ToArray();
break;
default:
// .NET Framework doesn't set a keylength for AES, or any other algorithm than the ones
// listed here.
keyLength = 0;
break;
}
return new AlgorithmIdentifier(new Oid(asn.Algorithm), keyLength)
{
Parameters = parameters
};
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics;
using System.Formats.Asn1;
using System.Security.Cryptography;
using System.Security.Cryptography.Asn1;
using System.Security.Cryptography.Pkcs;
using System.Security.Cryptography.Pkcs.Asn1;
using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml;
namespace Internal.Cryptography.Pal.AnyOS
{
internal static class AsnHelpers
{
internal static SubjectIdentifierOrKey ToSubjectIdentifierOrKey(
this OriginatorIdentifierOrKeyAsn originator)
{
if (originator.IssuerAndSerialNumber.HasValue)
{
var name = new X500DistinguishedName(originator.IssuerAndSerialNumber.Value.Issuer.ToArray());
return new SubjectIdentifierOrKey(
SubjectIdentifierOrKeyType.IssuerAndSerialNumber,
new X509IssuerSerial(
name.Name,
originator.IssuerAndSerialNumber.Value.SerialNumber.Span.ToBigEndianHex()));
}
if (originator.SubjectKeyIdentifier.HasValue)
{
return new SubjectIdentifierOrKey(
SubjectIdentifierOrKeyType.SubjectKeyIdentifier,
originator.SubjectKeyIdentifier.Value.Span.ToBigEndianHex());
}
if (originator.OriginatorKey.HasValue)
{
OriginatorPublicKeyAsn originatorKey = originator.OriginatorKey.Value;
return new SubjectIdentifierOrKey(
SubjectIdentifierOrKeyType.PublicKeyInfo,
new PublicKeyInfo(
originatorKey.Algorithm.ToPresentationObject(),
originatorKey.PublicKey.ToArray()));
}
Debug.Fail("Unknown SubjectIdentifierOrKey state");
return new SubjectIdentifierOrKey(SubjectIdentifierOrKeyType.Unknown, string.Empty);
}
internal static AlgorithmIdentifier ToPresentationObject(this AlgorithmIdentifierAsn asn)
{
int keyLength;
byte[] parameters = Array.Empty<byte>();
switch (asn.Algorithm)
{
case Oids.Rc2Cbc:
{
if (asn.Parameters == null)
{
keyLength = 0;
break;
}
Rc2CbcParameters rc2Params = Rc2CbcParameters.Decode(
asn.Parameters.Value,
AsnEncodingRules.BER);
int keySize = rc2Params.GetEffectiveKeyBits();
// These are the only values .NET Framework would set.
switch (keySize)
{
case 40:
case 56:
case 64:
case 128:
keyLength = keySize;
break;
default:
keyLength = 0;
break;
}
break;
}
case Oids.Rc4:
{
if (asn.Parameters == null)
{
keyLength = 0;
break;
}
int saltLen = 0;
try
{
AsnReader reader = new AsnReader(asn.Parameters.Value, AsnEncodingRules.BER);
// DER NULL is considered the same as not present.
// No call to ReadNull() is necessary because the serializer already verified that
// there's no data after the [AnyValue] value.
if (reader.PeekTag() != Asn1Tag.Null)
{
if (reader.TryReadPrimitiveOctetString(out ReadOnlyMemory<byte> contents))
{
saltLen = contents.Length;
}
else
{
Span<byte> salt = stackalloc byte[KeyLengths.Rc4Max_128Bit / 8];
if (!reader.TryReadOctetString(salt, out saltLen))
{
throw new CryptographicException();
}
}
}
}
catch (AsnContentException e)
{
throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e);
}
keyLength = KeyLengths.Rc4Max_128Bit - 8 * saltLen;
break;
}
case Oids.DesCbc:
keyLength = KeyLengths.Des_64Bit;
break;
case Oids.TripleDesCbc:
keyLength = KeyLengths.TripleDes_192Bit;
break;
case Oids.RsaOaep when !asn.HasNullEquivalentParameters():
keyLength = 0;
Debug.Assert(asn.Parameters != null);
parameters = asn.Parameters.Value.ToArray();
break;
default:
// .NET Framework doesn't set a keylength for AES, or any other algorithm than the ones
// listed here.
keyLength = 0;
break;
}
return new AlgorithmIdentifier(new Oid(asn.Algorithm), keyLength)
{
Parameters = parameters
};
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/InheritanceLevel.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel
{
/// <summary>
/// Specifies numeric IDs for different inheritance levels.
/// </summary>
public enum InheritanceLevel
{
/// <summary>
/// Indicates that the object is inherited.
/// </summary>
Inherited = 1,
/// <summary>
/// Indicates that the object is inherited, but has read-only access.
/// </summary>
InheritedReadOnly = 2,
/// <summary>
/// Indicates that the object is not inherited.
/// </summary>
NotInherited = 3,
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel
{
/// <summary>
/// Specifies numeric IDs for different inheritance levels.
/// </summary>
public enum InheritanceLevel
{
/// <summary>
/// Indicates that the object is inherited.
/// </summary>
Inherited = 1,
/// <summary>
/// Indicates that the object is inherited, but has read-only access.
/// </summary>
InheritedReadOnly = 2,
/// <summary>
/// Indicates that the object is not inherited.
/// </summary>
NotInherited = 3,
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/Loader/classloader/generics/regressions/vsw237932/repro237932.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// This is regression test for VSWhidbey 237932
// The issue here was that the ThreadStatic field was previously shared for all C1<objref> types
// and so when we created C1<System.OverflowException> and C1<System.InvalidCastException> the ThreadStatic
// field got incremented to 2, which is wrong.
using System;
using System.Threading;
public class Test_repro237932
{
public static int Main()
{
C1<System.OverflowException> cOverflow = new C1<System.OverflowException>();
C1<System.InvalidCastException> cCast = new C1<System.InvalidCastException>();
if (C1<System.OverflowException>.x == 1 && C1<System.InvalidCastException>.x == 1)
{
Console.WriteLine("PASS");
return 100;
}
else
{
Console.WriteLine("FAIL: Expected ThreadStatic field of both objects to be 1");
return 101;
}
}
}
public class C1<T>
{
[ThreadStatic]
public static int x;
public C1()
{
x +=1;
Console.WriteLine(x);
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// This is regression test for VSWhidbey 237932
// The issue here was that the ThreadStatic field was previously shared for all C1<objref> types
// and so when we created C1<System.OverflowException> and C1<System.InvalidCastException> the ThreadStatic
// field got incremented to 2, which is wrong.
using System;
using System.Threading;
public class Test_repro237932
{
public static int Main()
{
C1<System.OverflowException> cOverflow = new C1<System.OverflowException>();
C1<System.InvalidCastException> cCast = new C1<System.InvalidCastException>();
if (C1<System.OverflowException>.x == 1 && C1<System.InvalidCastException>.x == 1)
{
Console.WriteLine("PASS");
return 100;
}
else
{
Console.WriteLine("FAIL: Expected ThreadStatic field of both objects to be 1");
return 101;
}
}
}
public class C1<T>
{
[ThreadStatic]
public static int x;
public C1()
{
x +=1;
Console.WriteLine(x);
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.ComponentModel.TypeConverter/tests/DataObjectAttributeTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using Xunit;
namespace System.ComponentModel.Tests
{
public class DataObjectAttributeTests
{
[Fact]
public void Ctor_Default()
{
var attribute = new DataObjectAttribute();
Assert.True(attribute.IsDataObject);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Ctor_IsDataObject(bool isDataObject)
{
var attribute = new DataObjectAttribute(isDataObject);
Assert.Equal(isDataObject, attribute.IsDataObject);
}
public static IEnumerable<object[]> Equals_TestData()
{
var attribute = new DataObjectAttribute(true);
yield return new object[] { attribute, attribute, true };
yield return new object[] { attribute, new DataObjectAttribute(true), true };
yield return new object[] { attribute, new DataObjectAttribute(false), false };
yield return new object[] { attribute, new object(), false };
yield return new object[] { attribute, null, false };
}
[Theory]
[MemberData(nameof(Equals_TestData))]
public void Equals_Other_ReturnsExpected(DataObjectAttribute attribute, object other, bool expected)
{
Assert.Equal(expected, attribute.Equals(other));
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void GetHashCode_Invoke_ReturnsExpected(bool isDataObject)
{
var attribute = new DataObjectAttribute(isDataObject);
Assert.Equal(isDataObject.GetHashCode(), attribute.GetHashCode());
}
[Fact]
public void DataObject_Get_ReturnsExpected()
{
DataObjectAttribute attribute = DataObjectAttribute.DataObject;
Assert.Same(attribute, DataObjectAttribute.DataObject);
Assert.True(attribute.IsDataObject);
Assert.False(attribute.IsDefaultAttribute());
}
[Fact]
public void NonDataObject_Get_ReturnsExpected()
{
DataObjectAttribute attribute = DataObjectAttribute.NonDataObject;
Assert.Same(attribute, DataObjectAttribute.NonDataObject);
Assert.False(attribute.IsDataObject);
Assert.True(attribute.IsDefaultAttribute());
}
[Fact]
public void Default_Get_ReturnsExpected()
{
DataObjectAttribute attribute = DataObjectAttribute.Default;
Assert.Same(attribute, DataObjectAttribute.NonDataObject);
Assert.False(attribute.IsDataObject);
Assert.True(attribute.IsDefaultAttribute());
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using Xunit;
namespace System.ComponentModel.Tests
{
public class DataObjectAttributeTests
{
[Fact]
public void Ctor_Default()
{
var attribute = new DataObjectAttribute();
Assert.True(attribute.IsDataObject);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void Ctor_IsDataObject(bool isDataObject)
{
var attribute = new DataObjectAttribute(isDataObject);
Assert.Equal(isDataObject, attribute.IsDataObject);
}
public static IEnumerable<object[]> Equals_TestData()
{
var attribute = new DataObjectAttribute(true);
yield return new object[] { attribute, attribute, true };
yield return new object[] { attribute, new DataObjectAttribute(true), true };
yield return new object[] { attribute, new DataObjectAttribute(false), false };
yield return new object[] { attribute, new object(), false };
yield return new object[] { attribute, null, false };
}
[Theory]
[MemberData(nameof(Equals_TestData))]
public void Equals_Other_ReturnsExpected(DataObjectAttribute attribute, object other, bool expected)
{
Assert.Equal(expected, attribute.Equals(other));
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void GetHashCode_Invoke_ReturnsExpected(bool isDataObject)
{
var attribute = new DataObjectAttribute(isDataObject);
Assert.Equal(isDataObject.GetHashCode(), attribute.GetHashCode());
}
[Fact]
public void DataObject_Get_ReturnsExpected()
{
DataObjectAttribute attribute = DataObjectAttribute.DataObject;
Assert.Same(attribute, DataObjectAttribute.DataObject);
Assert.True(attribute.IsDataObject);
Assert.False(attribute.IsDefaultAttribute());
}
[Fact]
public void NonDataObject_Get_ReturnsExpected()
{
DataObjectAttribute attribute = DataObjectAttribute.NonDataObject;
Assert.Same(attribute, DataObjectAttribute.NonDataObject);
Assert.False(attribute.IsDataObject);
Assert.True(attribute.IsDefaultAttribute());
}
[Fact]
public void Default_Get_ReturnsExpected()
{
DataObjectAttribute attribute = DataObjectAttribute.Default;
Assert.Same(attribute, DataObjectAttribute.NonDataObject);
Assert.False(attribute.IsDataObject);
Assert.True(attribute.IsDefaultAttribute());
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.CoreLib/src/System/IO/StreamWriter.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace System.IO
{
// This class implements a TextWriter for writing characters to a Stream.
// This is designed for character output in a particular Encoding,
// whereas the Stream class is designed for byte input and output.
public class StreamWriter : TextWriter
{
// For UTF-8, the values of 1K for the default buffer size and 4K for the
// file stream buffer size are reasonable & give very reasonable
// performance for in terms of construction time for the StreamWriter and
// write perf. Note that for UTF-8, we end up allocating a 4K byte buffer,
// which means we take advantage of adaptive buffering code.
// The performance using UnicodeEncoding is acceptable.
private const int DefaultBufferSize = 1024; // char[]
private const int DefaultFileStreamBufferSize = 4096;
private const int MinBufferSize = 128;
// Bit bucket - Null has no backing store. Non closable.
public static new readonly StreamWriter Null = new StreamWriter(Stream.Null, UTF8NoBOM, MinBufferSize, leaveOpen: true);
private readonly Stream _stream;
private readonly Encoding _encoding;
private readonly Encoder _encoder;
private byte[]? _byteBuffer;
private readonly char[] _charBuffer;
private int _charPos;
private int _charLen;
private bool _autoFlush;
private bool _haveWrittenPreamble;
private readonly bool _closable;
private bool _disposed;
// We don't guarantee thread safety on StreamWriter, but we should at
// least prevent users from trying to write anything while an Async
// write from the same thread is in progress.
private Task _asyncWriteTask = Task.CompletedTask;
private void CheckAsyncTaskInProgress()
{
// We are not locking the access to _asyncWriteTask because this is not meant to guarantee thread safety.
// We are simply trying to deter calling any Write APIs while an async Write from the same thread is in progress.
if (!_asyncWriteTask.IsCompleted)
{
ThrowAsyncIOInProgress();
}
}
[DoesNotReturn]
private static void ThrowAsyncIOInProgress() =>
throw new InvalidOperationException(SR.InvalidOperation_AsyncIOInProgress);
// The high level goal is to be tolerant of encoding errors when we read and very strict
// when we write. Hence, default StreamWriter encoding will throw on encoding error.
// Note: when StreamWriter throws on invalid encoding chars (for ex, high surrogate character
// D800-DBFF without a following low surrogate character DC00-DFFF), it will cause the
// internal StreamWriter's state to be irrecoverable as it would have buffered the
// illegal chars and any subsequent call to Flush() would hit the encoding error again.
// Even Close() will hit the exception as it would try to flush the unwritten data.
// Maybe we can add a DiscardBufferedData() method to get out of such situation (like
// StreamReader though for different reason). Either way, the buffered data will be lost!
private static Encoding UTF8NoBOM => EncodingCache.UTF8NoBOM;
public StreamWriter(Stream stream)
: this(stream, UTF8NoBOM, DefaultBufferSize, false)
{
}
public StreamWriter(Stream stream, Encoding encoding)
: this(stream, encoding, DefaultBufferSize, false)
{
}
// Creates a new StreamWriter for the given stream. The
// character encoding is set by encoding and the buffer size,
// in number of 16-bit characters, is set by bufferSize.
//
public StreamWriter(Stream stream, Encoding encoding, int bufferSize)
: this(stream, encoding, bufferSize, false)
{
}
public StreamWriter(Stream stream, Encoding? encoding = null, int bufferSize = -1, bool leaveOpen = false)
: base(null) // Ask for CurrentCulture all the time
{
if (stream == null)
{
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.stream);
}
if (encoding == null)
{
encoding = UTF8NoBOM;
}
if (!stream.CanWrite)
{
throw new ArgumentException(SR.Argument_StreamNotWritable);
}
if (bufferSize == -1)
{
bufferSize = DefaultBufferSize;
}
else if (bufferSize <= 0)
{
throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.ArgumentOutOfRange_NeedPosNum);
}
_stream = stream;
_encoding = encoding;
_encoder = _encoding.GetEncoder();
if (bufferSize < MinBufferSize)
{
bufferSize = MinBufferSize;
}
_charBuffer = new char[bufferSize];
_charLen = bufferSize;
// If we're appending to a Stream that already has data, don't write
// the preamble.
if (_stream.CanSeek && _stream.Position > 0)
{
_haveWrittenPreamble = true;
}
_closable = !leaveOpen;
}
public StreamWriter(string path)
: this(path, false, UTF8NoBOM, DefaultBufferSize)
{
}
public StreamWriter(string path, bool append)
: this(path, append, UTF8NoBOM, DefaultBufferSize)
{
}
public StreamWriter(string path, bool append, Encoding encoding)
: this(path, append, encoding, DefaultBufferSize)
{
}
public StreamWriter(string path, bool append, Encoding encoding, int bufferSize) :
this(ValidateArgsAndOpenPath(path, append, encoding, bufferSize), encoding, bufferSize, leaveOpen: false)
{
}
public StreamWriter(string path, FileStreamOptions options)
: this(path, UTF8NoBOM, options)
{
}
public StreamWriter(string path, Encoding encoding, FileStreamOptions options)
: this(ValidateArgsAndOpenPath(path, encoding, options), encoding, DefaultFileStreamBufferSize)
{
}
private static Stream ValidateArgsAndOpenPath(string path, Encoding encoding, FileStreamOptions options)
{
ArgumentException.ThrowIfNullOrEmpty(path);
ArgumentNullException.ThrowIfNull(encoding);
ArgumentNullException.ThrowIfNull(options);
if ((options.Access & FileAccess.Write) == 0)
{
throw new ArgumentException(SR.Argument_StreamNotWritable, nameof(options));
}
return new FileStream(path, options);
}
private static Stream ValidateArgsAndOpenPath(string path, bool append, Encoding encoding, int bufferSize)
{
ArgumentException.ThrowIfNullOrEmpty(path);
ArgumentNullException.ThrowIfNull(encoding);
if (bufferSize <= 0)
{
throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.ArgumentOutOfRange_NeedPosNum);
}
return new FileStream(path, append ? FileMode.Append : FileMode.Create, FileAccess.Write, FileShare.Read, DefaultFileStreamBufferSize);
}
public override void Close()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected override void Dispose(bool disposing)
{
try
{
// We need to flush any buffered data if we are being closed/disposed.
// Also, we never close the handles for stdout & friends. So we can safely
// write any buffered data to those streams even during finalization, which
// is generally the right thing to do.
if (!_disposed && disposing)
{
// Note: flush on the underlying stream can throw (ex., low disk space)
CheckAsyncTaskInProgress();
Flush(flushStream: true, flushEncoder: true);
}
}
finally
{
CloseStreamFromDispose(disposing);
}
}
private void CloseStreamFromDispose(bool disposing)
{
// Dispose of our resources if this StreamWriter is closable.
if (_closable && !_disposed)
{
try
{
// Attempt to close the stream even if there was an IO error from Flushing.
// Note that Stream.Close() can potentially throw here (may or may not be
// due to the same Flush error). In this case, we still need to ensure
// cleaning up internal resources, hence the finally block.
if (disposing)
{
_stream.Close();
}
}
finally
{
_disposed = true;
_charLen = 0;
base.Dispose(disposing);
}
}
}
public override ValueTask DisposeAsync() =>
GetType() != typeof(StreamWriter) ?
base.DisposeAsync() :
DisposeAsyncCore();
private async ValueTask DisposeAsyncCore()
{
// Same logic as in Dispose(), but with async flushing.
Debug.Assert(GetType() == typeof(StreamWriter));
try
{
if (!_disposed)
{
await FlushAsync().ConfigureAwait(false);
}
}
finally
{
CloseStreamFromDispose(disposing: true);
}
GC.SuppressFinalize(this);
}
public override void Flush()
{
CheckAsyncTaskInProgress();
Flush(true, true);
}
private void Flush(bool flushStream, bool flushEncoder)
{
// flushEncoder should be true at the end of the file and if
// the user explicitly calls Flush (though not if AutoFlush is true).
// This is required to flush any dangling characters from our UTF-7
// and UTF-8 encoders.
ThrowIfDisposed();
// Perf boost for Flush on non-dirty writers.
if (_charPos == 0 && !flushStream && !flushEncoder)
{
return;
}
if (!_haveWrittenPreamble)
{
_haveWrittenPreamble = true;
ReadOnlySpan<byte> preamble = _encoding.Preamble;
if (preamble.Length > 0)
{
_stream.Write(preamble);
}
}
// For sufficiently small char data being flushed, try to encode to the stack.
// For anything else, fall back to allocating the byte[] buffer.
Span<byte> byteBuffer = stackalloc byte[0];
if (_byteBuffer is not null)
{
byteBuffer = _byteBuffer;
}
else
{
int maxBytesForCharPos = _encoding.GetMaxByteCount(_charPos);
byteBuffer = maxBytesForCharPos <= 1024 ? // arbitrary threshold
stackalloc byte[1024] :
(_byteBuffer = new byte[_encoding.GetMaxByteCount(_charBuffer.Length)]);
}
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
_charPos = 0;
if (count > 0)
{
_stream.Write(byteBuffer.Slice(0, count));
}
if (flushStream)
{
_stream.Flush();
}
}
public virtual bool AutoFlush
{
get => _autoFlush;
set
{
CheckAsyncTaskInProgress();
_autoFlush = value;
if (value)
{
Flush(true, false);
}
}
}
public virtual Stream BaseStream => _stream;
public override Encoding Encoding => _encoding;
public override void Write(char value)
{
CheckAsyncTaskInProgress();
if (_charPos == _charLen)
{
Flush(false, false);
}
_charBuffer[_charPos] = value;
_charPos++;
if (_autoFlush)
{
Flush(true, false);
}
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(char[]? buffer)
{
WriteSpan(buffer, appendNewLine: false);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(char[] buffer!!, int index, int count)
{
if (index < 0)
{
throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (count < 0)
{
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (buffer.Length - index < count)
{
throw new ArgumentException(SR.Argument_InvalidOffLen);
}
WriteSpan(buffer.AsSpan(index, count), appendNewLine: false);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(ReadOnlySpan<char> buffer)
{
if (GetType() == typeof(StreamWriter))
{
WriteSpan(buffer, appendNewLine: false);
}
else
{
// If a derived class may have overridden existing Write behavior,
// we need to make sure we use it.
base.Write(buffer);
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private unsafe void WriteSpan(ReadOnlySpan<char> buffer, bool appendNewLine)
{
CheckAsyncTaskInProgress();
if (buffer.Length <= 4 && // Threshold of 4 chosen based on perf experimentation
buffer.Length <= _charLen - _charPos)
{
// For very short buffers and when we don't need to worry about running out of space
// in the char buffer, just copy the chars individually.
for (int i = 0; i < buffer.Length; i++)
{
_charBuffer[_charPos++] = buffer[i];
}
}
else
{
// For larger buffers or when we may run out of room in the internal char buffer, copy in chunks.
// Use unsafe code until https://github.com/dotnet/runtime/issues/8890 is addressed, as spans are
// resulting in significant overhead (even when the if branch above is taken rather than this
// else) due to temporaries that need to be cleared. Given the use of unsafe code, we also
// make local copies of instance state to protect against potential concurrent misuse.
ThrowIfDisposed();
char[] charBuffer = _charBuffer;
fixed (char* bufferPtr = &MemoryMarshal.GetReference(buffer))
fixed (char* dstPtr = &charBuffer[0])
{
char* srcPtr = bufferPtr;
int count = buffer.Length;
int dstPos = _charPos; // use a local copy of _charPos for safety
while (count > 0)
{
if (dstPos == charBuffer.Length)
{
Flush(false, false);
dstPos = 0;
}
int n = Math.Min(charBuffer.Length - dstPos, count);
int bytesToCopy = n * sizeof(char);
Buffer.MemoryCopy(srcPtr, dstPtr + dstPos, bytesToCopy, bytesToCopy);
_charPos += n;
dstPos += n;
srcPtr += n;
count -= n;
}
}
}
if (appendNewLine)
{
char[] coreNewLine = CoreNewLine;
for (int i = 0; i < coreNewLine.Length; i++) // Generally 1 (\n) or 2 (\r\n) iterations
{
if (_charPos == _charLen)
{
Flush(false, false);
}
_charBuffer[_charPos] = coreNewLine[i];
_charPos++;
}
}
if (_autoFlush)
{
Flush(true, false);
}
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(string? value)
{
WriteSpan(value, appendNewLine: false);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void WriteLine(string? value)
{
CheckAsyncTaskInProgress();
WriteSpan(value, appendNewLine: true);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void WriteLine(ReadOnlySpan<char> buffer)
{
if (GetType() == typeof(StreamWriter))
{
CheckAsyncTaskInProgress();
WriteSpan(buffer, appendNewLine: true);
}
else
{
// If a derived class may have overridden existing WriteLine behavior,
// we need to make sure we use it.
base.WriteLine(buffer);
}
}
private void WriteFormatHelper(string format, ParamsArray args, bool appendNewLine)
{
int estimatedLength = (format?.Length ?? 0) + args.Length * 8;
var vsb = estimatedLength <= 256 ?
new ValueStringBuilder(stackalloc char[256]) :
new ValueStringBuilder(estimatedLength);
vsb.AppendFormatHelper(null, format!, args); // AppendFormatHelper will appropriately throw ArgumentNullException for a null format
WriteSpan(vsb.AsSpan(), appendNewLine);
vsb.Dispose();
}
public override void Write(string format, object? arg0)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0), appendNewLine: false);
}
else
{
base.Write(format, arg0);
}
}
public override void Write(string format, object? arg0, object? arg1)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1), appendNewLine: false);
}
else
{
base.Write(format, arg0, arg1);
}
}
public override void Write(string format, object? arg0, object? arg1, object? arg2)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1, arg2), appendNewLine: false);
}
else
{
base.Write(format, arg0, arg1, arg2);
}
}
public override void Write(string format, params object?[] arg)
{
if (GetType() == typeof(StreamWriter))
{
if (arg == null)
{
ArgumentNullException.Throw(format is null ? nameof(format) : nameof(arg)); // same as base logic
}
WriteFormatHelper(format, new ParamsArray(arg), appendNewLine: false);
}
else
{
base.Write(format, arg);
}
}
public override void WriteLine(string format, object? arg0)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0), appendNewLine: true);
}
else
{
base.WriteLine(format, arg0);
}
}
public override void WriteLine(string format, object? arg0, object? arg1)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1), appendNewLine: true);
}
else
{
base.WriteLine(format, arg0, arg1);
}
}
public override void WriteLine(string format, object? arg0, object? arg1, object? arg2)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1, arg2), appendNewLine: true);
}
else
{
base.WriteLine(format, arg0, arg1, arg2);
}
}
public override void WriteLine(string format, params object?[] arg)
{
if (GetType() == typeof(StreamWriter))
{
ArgumentNullException.ThrowIfNull(arg);
WriteFormatHelper(format, new ParamsArray(arg), appendNewLine: true);
}
else
{
base.WriteLine(format, arg);
}
}
public override Task WriteAsync(char value)
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteAsync(value);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value, appendNewLine: false);
_asyncWriteTask = task;
return task;
}
private async Task WriteAsyncInternal(char value, bool appendNewLine)
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false);
}
_charBuffer[_charPos++] = value;
if (appendNewLine)
{
for (int i = 0; i < CoreNewLine.Length; i++) // Generally 1 (\n) or 2 (\r\n) iterations
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false);
}
_charBuffer[_charPos++] = CoreNewLine[i];
}
}
if (_autoFlush)
{
await FlushAsyncInternal(flushStream: true, flushEncoder: false).ConfigureAwait(false);
}
}
public override Task WriteAsync(string? value)
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteAsync(value);
}
if (value != null)
{
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value.AsMemory(), appendNewLine: false, default);
_asyncWriteTask = task;
return task;
}
else
{
return Task.CompletedTask;
}
}
public override Task WriteAsync(char[] buffer!!, int index, int count)
{
if (index < 0)
{
throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (count < 0)
{
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (buffer.Length - index < count)
{
throw new ArgumentException(SR.Argument_InvalidOffLen);
}
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteAsync(buffer, index, count);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(new ReadOnlyMemory<char>(buffer, index, count), appendNewLine: false, cancellationToken: default);
_asyncWriteTask = task;
return task;
}
public override Task WriteAsync(ReadOnlyMemory<char> buffer, CancellationToken cancellationToken = default)
{
if (GetType() != typeof(StreamWriter))
{
// If a derived type may have overridden existing WriteASync(char[], ...) behavior, make sure we use it.
return base.WriteAsync(buffer, cancellationToken);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
Task task = WriteAsyncInternal(buffer, appendNewLine: false, cancellationToken: cancellationToken);
_asyncWriteTask = task;
return task;
}
private async Task WriteAsyncInternal(ReadOnlyMemory<char> source, bool appendNewLine, CancellationToken cancellationToken)
{
int copied = 0;
while (copied < source.Length)
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false);
}
int n = Math.Min(_charLen - _charPos, source.Length - copied);
Debug.Assert(n > 0, "StreamWriter::Write(char[], int, int) isn't making progress! This is most likely a race condition in user code.");
source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer, _charPos, n));
_charPos += n;
copied += n;
}
if (appendNewLine)
{
for (int i = 0; i < CoreNewLine.Length; i++) // Generally 1 (\n) or 2 (\r\n) iterations
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false);
}
_charBuffer[_charPos++] = CoreNewLine[i];
}
}
if (_autoFlush)
{
await FlushAsyncInternal(flushStream: true, flushEncoder: false, cancellationToken).ConfigureAwait(false);
}
}
public override Task WriteLineAsync()
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync();
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(ReadOnlyMemory<char>.Empty, appendNewLine: true, cancellationToken: default);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(char value)
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(value);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value, appendNewLine: true);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(string? value)
{
if (value == null)
{
return WriteLineAsync();
}
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(value);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value.AsMemory(), appendNewLine: true, default);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(char[] buffer!!, int index, int count)
{
if (index < 0)
{
throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (count < 0)
{
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (buffer.Length - index < count)
{
throw new ArgumentException(SR.Argument_InvalidOffLen);
}
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(buffer, index, count);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(new ReadOnlyMemory<char>(buffer, index, count), appendNewLine: true, cancellationToken: default);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(ReadOnlyMemory<char> buffer, CancellationToken cancellationToken = default)
{
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(buffer, cancellationToken);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
Task task = WriteAsyncInternal(buffer, appendNewLine: true, cancellationToken: cancellationToken);
_asyncWriteTask = task;
return task;
}
public override Task FlushAsync()
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Flush() which a subclass might have overridden. To be safe
// we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Flush) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.FlushAsync();
}
// flushEncoder should be true at the end of the file and if
// the user explicitly calls Flush (though not if AutoFlush is true).
// This is required to flush any dangling characters from our UTF-7
// and UTF-8 encoders.
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = FlushAsyncInternal(flushStream: true, flushEncoder: true);
_asyncWriteTask = task;
return task;
}
private Task FlushAsyncInternal(bool flushStream, bool flushEncoder, CancellationToken cancellationToken = default)
{
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
// Perf boost for Flush on non-dirty writers.
if (_charPos == 0 && !flushStream && !flushEncoder)
{
return Task.CompletedTask;
}
return Core(flushStream, flushEncoder, cancellationToken);
async Task Core(bool flushStream, bool flushEncoder, CancellationToken cancellationToken)
{
if (!_haveWrittenPreamble)
{
_haveWrittenPreamble = true;
byte[] preamble = _encoding.GetPreamble();
if (preamble.Length > 0)
{
await _stream.WriteAsync(new ReadOnlyMemory<byte>(preamble), cancellationToken).ConfigureAwait(false);
}
}
byte[] byteBuffer = _byteBuffer ??= new byte[_encoding.GetMaxByteCount(_charBuffer.Length)];
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
_charPos = 0;
if (count > 0)
{
await _stream.WriteAsync(new ReadOnlyMemory<byte>(byteBuffer, 0, count), cancellationToken).ConfigureAwait(false);
}
// By definition, calling Flush should flush the stream, but this is
// only necessary if we passed in true for flushStream. The Web
// Services guys have some perf tests where flushing needlessly hurts.
if (flushStream)
{
await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
}
}
}
private void ThrowIfDisposed()
{
if (_disposed)
{
ThrowObjectDisposedException();
}
void ThrowObjectDisposedException() => throw new ObjectDisposedException(GetType().Name, SR.ObjectDisposed_WriterClosed);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace System.IO
{
// This class implements a TextWriter for writing characters to a Stream.
// This is designed for character output in a particular Encoding,
// whereas the Stream class is designed for byte input and output.
public class StreamWriter : TextWriter
{
// For UTF-8, the values of 1K for the default buffer size and 4K for the
// file stream buffer size are reasonable & give very reasonable
// performance for in terms of construction time for the StreamWriter and
// write perf. Note that for UTF-8, we end up allocating a 4K byte buffer,
// which means we take advantage of adaptive buffering code.
// The performance using UnicodeEncoding is acceptable.
private const int DefaultBufferSize = 1024; // char[]
private const int DefaultFileStreamBufferSize = 4096;
private const int MinBufferSize = 128;
// Bit bucket - Null has no backing store. Non closable.
public static new readonly StreamWriter Null = new StreamWriter(Stream.Null, UTF8NoBOM, MinBufferSize, leaveOpen: true);
private readonly Stream _stream;
private readonly Encoding _encoding;
private readonly Encoder _encoder;
private byte[]? _byteBuffer;
private readonly char[] _charBuffer;
private int _charPos;
private int _charLen;
private bool _autoFlush;
private bool _haveWrittenPreamble;
private readonly bool _closable;
private bool _disposed;
// We don't guarantee thread safety on StreamWriter, but we should at
// least prevent users from trying to write anything while an Async
// write from the same thread is in progress.
private Task _asyncWriteTask = Task.CompletedTask;
private void CheckAsyncTaskInProgress()
{
// We are not locking the access to _asyncWriteTask because this is not meant to guarantee thread safety.
// We are simply trying to deter calling any Write APIs while an async Write from the same thread is in progress.
if (!_asyncWriteTask.IsCompleted)
{
ThrowAsyncIOInProgress();
}
}
[DoesNotReturn]
private static void ThrowAsyncIOInProgress() =>
throw new InvalidOperationException(SR.InvalidOperation_AsyncIOInProgress);
// The high level goal is to be tolerant of encoding errors when we read and very strict
// when we write. Hence, default StreamWriter encoding will throw on encoding error.
// Note: when StreamWriter throws on invalid encoding chars (for ex, high surrogate character
// D800-DBFF without a following low surrogate character DC00-DFFF), it will cause the
// internal StreamWriter's state to be irrecoverable as it would have buffered the
// illegal chars and any subsequent call to Flush() would hit the encoding error again.
// Even Close() will hit the exception as it would try to flush the unwritten data.
// Maybe we can add a DiscardBufferedData() method to get out of such situation (like
// StreamReader though for different reason). Either way, the buffered data will be lost!
private static Encoding UTF8NoBOM => EncodingCache.UTF8NoBOM;
public StreamWriter(Stream stream)
: this(stream, UTF8NoBOM, DefaultBufferSize, false)
{
}
public StreamWriter(Stream stream, Encoding encoding)
: this(stream, encoding, DefaultBufferSize, false)
{
}
// Creates a new StreamWriter for the given stream. The
// character encoding is set by encoding and the buffer size,
// in number of 16-bit characters, is set by bufferSize.
//
public StreamWriter(Stream stream, Encoding encoding, int bufferSize)
: this(stream, encoding, bufferSize, false)
{
}
public StreamWriter(Stream stream, Encoding? encoding = null, int bufferSize = -1, bool leaveOpen = false)
: base(null) // Ask for CurrentCulture all the time
{
if (stream == null)
{
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.stream);
}
if (encoding == null)
{
encoding = UTF8NoBOM;
}
if (!stream.CanWrite)
{
throw new ArgumentException(SR.Argument_StreamNotWritable);
}
if (bufferSize == -1)
{
bufferSize = DefaultBufferSize;
}
else if (bufferSize <= 0)
{
throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.ArgumentOutOfRange_NeedPosNum);
}
_stream = stream;
_encoding = encoding;
_encoder = _encoding.GetEncoder();
if (bufferSize < MinBufferSize)
{
bufferSize = MinBufferSize;
}
_charBuffer = new char[bufferSize];
_charLen = bufferSize;
// If we're appending to a Stream that already has data, don't write
// the preamble.
if (_stream.CanSeek && _stream.Position > 0)
{
_haveWrittenPreamble = true;
}
_closable = !leaveOpen;
}
public StreamWriter(string path)
: this(path, false, UTF8NoBOM, DefaultBufferSize)
{
}
public StreamWriter(string path, bool append)
: this(path, append, UTF8NoBOM, DefaultBufferSize)
{
}
public StreamWriter(string path, bool append, Encoding encoding)
: this(path, append, encoding, DefaultBufferSize)
{
}
public StreamWriter(string path, bool append, Encoding encoding, int bufferSize) :
this(ValidateArgsAndOpenPath(path, append, encoding, bufferSize), encoding, bufferSize, leaveOpen: false)
{
}
public StreamWriter(string path, FileStreamOptions options)
: this(path, UTF8NoBOM, options)
{
}
public StreamWriter(string path, Encoding encoding, FileStreamOptions options)
: this(ValidateArgsAndOpenPath(path, encoding, options), encoding, DefaultFileStreamBufferSize)
{
}
private static Stream ValidateArgsAndOpenPath(string path, Encoding encoding, FileStreamOptions options)
{
ArgumentException.ThrowIfNullOrEmpty(path);
ArgumentNullException.ThrowIfNull(encoding);
ArgumentNullException.ThrowIfNull(options);
if ((options.Access & FileAccess.Write) == 0)
{
throw new ArgumentException(SR.Argument_StreamNotWritable, nameof(options));
}
return new FileStream(path, options);
}
private static Stream ValidateArgsAndOpenPath(string path, bool append, Encoding encoding, int bufferSize)
{
ArgumentException.ThrowIfNullOrEmpty(path);
ArgumentNullException.ThrowIfNull(encoding);
if (bufferSize <= 0)
{
throw new ArgumentOutOfRangeException(nameof(bufferSize), SR.ArgumentOutOfRange_NeedPosNum);
}
return new FileStream(path, append ? FileMode.Append : FileMode.Create, FileAccess.Write, FileShare.Read, DefaultFileStreamBufferSize);
}
public override void Close()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected override void Dispose(bool disposing)
{
try
{
// We need to flush any buffered data if we are being closed/disposed.
// Also, we never close the handles for stdout & friends. So we can safely
// write any buffered data to those streams even during finalization, which
// is generally the right thing to do.
if (!_disposed && disposing)
{
// Note: flush on the underlying stream can throw (ex., low disk space)
CheckAsyncTaskInProgress();
Flush(flushStream: true, flushEncoder: true);
}
}
finally
{
CloseStreamFromDispose(disposing);
}
}
private void CloseStreamFromDispose(bool disposing)
{
// Dispose of our resources if this StreamWriter is closable.
if (_closable && !_disposed)
{
try
{
// Attempt to close the stream even if there was an IO error from Flushing.
// Note that Stream.Close() can potentially throw here (may or may not be
// due to the same Flush error). In this case, we still need to ensure
// cleaning up internal resources, hence the finally block.
if (disposing)
{
_stream.Close();
}
}
finally
{
_disposed = true;
_charLen = 0;
base.Dispose(disposing);
}
}
}
public override ValueTask DisposeAsync() =>
GetType() != typeof(StreamWriter) ?
base.DisposeAsync() :
DisposeAsyncCore();
private async ValueTask DisposeAsyncCore()
{
// Same logic as in Dispose(), but with async flushing.
Debug.Assert(GetType() == typeof(StreamWriter));
try
{
if (!_disposed)
{
await FlushAsync().ConfigureAwait(false);
}
}
finally
{
CloseStreamFromDispose(disposing: true);
}
GC.SuppressFinalize(this);
}
public override void Flush()
{
CheckAsyncTaskInProgress();
Flush(true, true);
}
private void Flush(bool flushStream, bool flushEncoder)
{
// flushEncoder should be true at the end of the file and if
// the user explicitly calls Flush (though not if AutoFlush is true).
// This is required to flush any dangling characters from our UTF-7
// and UTF-8 encoders.
ThrowIfDisposed();
// Perf boost for Flush on non-dirty writers.
if (_charPos == 0 && !flushStream && !flushEncoder)
{
return;
}
if (!_haveWrittenPreamble)
{
_haveWrittenPreamble = true;
ReadOnlySpan<byte> preamble = _encoding.Preamble;
if (preamble.Length > 0)
{
_stream.Write(preamble);
}
}
// For sufficiently small char data being flushed, try to encode to the stack.
// For anything else, fall back to allocating the byte[] buffer.
Span<byte> byteBuffer = stackalloc byte[0];
if (_byteBuffer is not null)
{
byteBuffer = _byteBuffer;
}
else
{
int maxBytesForCharPos = _encoding.GetMaxByteCount(_charPos);
byteBuffer = maxBytesForCharPos <= 1024 ? // arbitrary threshold
stackalloc byte[1024] :
(_byteBuffer = new byte[_encoding.GetMaxByteCount(_charBuffer.Length)]);
}
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
_charPos = 0;
if (count > 0)
{
_stream.Write(byteBuffer.Slice(0, count));
}
if (flushStream)
{
_stream.Flush();
}
}
public virtual bool AutoFlush
{
get => _autoFlush;
set
{
CheckAsyncTaskInProgress();
_autoFlush = value;
if (value)
{
Flush(true, false);
}
}
}
public virtual Stream BaseStream => _stream;
public override Encoding Encoding => _encoding;
public override void Write(char value)
{
CheckAsyncTaskInProgress();
if (_charPos == _charLen)
{
Flush(false, false);
}
_charBuffer[_charPos] = value;
_charPos++;
if (_autoFlush)
{
Flush(true, false);
}
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(char[]? buffer)
{
WriteSpan(buffer, appendNewLine: false);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(char[] buffer!!, int index, int count)
{
if (index < 0)
{
throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (count < 0)
{
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (buffer.Length - index < count)
{
throw new ArgumentException(SR.Argument_InvalidOffLen);
}
WriteSpan(buffer.AsSpan(index, count), appendNewLine: false);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(ReadOnlySpan<char> buffer)
{
if (GetType() == typeof(StreamWriter))
{
WriteSpan(buffer, appendNewLine: false);
}
else
{
// If a derived class may have overridden existing Write behavior,
// we need to make sure we use it.
base.Write(buffer);
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private unsafe void WriteSpan(ReadOnlySpan<char> buffer, bool appendNewLine)
{
CheckAsyncTaskInProgress();
if (buffer.Length <= 4 && // Threshold of 4 chosen based on perf experimentation
buffer.Length <= _charLen - _charPos)
{
// For very short buffers and when we don't need to worry about running out of space
// in the char buffer, just copy the chars individually.
for (int i = 0; i < buffer.Length; i++)
{
_charBuffer[_charPos++] = buffer[i];
}
}
else
{
// For larger buffers or when we may run out of room in the internal char buffer, copy in chunks.
// Use unsafe code until https://github.com/dotnet/runtime/issues/8890 is addressed, as spans are
// resulting in significant overhead (even when the if branch above is taken rather than this
// else) due to temporaries that need to be cleared. Given the use of unsafe code, we also
// make local copies of instance state to protect against potential concurrent misuse.
ThrowIfDisposed();
char[] charBuffer = _charBuffer;
fixed (char* bufferPtr = &MemoryMarshal.GetReference(buffer))
fixed (char* dstPtr = &charBuffer[0])
{
char* srcPtr = bufferPtr;
int count = buffer.Length;
int dstPos = _charPos; // use a local copy of _charPos for safety
while (count > 0)
{
if (dstPos == charBuffer.Length)
{
Flush(false, false);
dstPos = 0;
}
int n = Math.Min(charBuffer.Length - dstPos, count);
int bytesToCopy = n * sizeof(char);
Buffer.MemoryCopy(srcPtr, dstPtr + dstPos, bytesToCopy, bytesToCopy);
_charPos += n;
dstPos += n;
srcPtr += n;
count -= n;
}
}
}
if (appendNewLine)
{
char[] coreNewLine = CoreNewLine;
for (int i = 0; i < coreNewLine.Length; i++) // Generally 1 (\n) or 2 (\r\n) iterations
{
if (_charPos == _charLen)
{
Flush(false, false);
}
_charBuffer[_charPos] = coreNewLine[i];
_charPos++;
}
}
if (_autoFlush)
{
Flush(true, false);
}
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void Write(string? value)
{
WriteSpan(value, appendNewLine: false);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void WriteLine(string? value)
{
CheckAsyncTaskInProgress();
WriteSpan(value, appendNewLine: true);
}
[MethodImpl(MethodImplOptions.NoInlining)] // prevent WriteSpan from bloating call sites
public override void WriteLine(ReadOnlySpan<char> buffer)
{
if (GetType() == typeof(StreamWriter))
{
CheckAsyncTaskInProgress();
WriteSpan(buffer, appendNewLine: true);
}
else
{
// If a derived class may have overridden existing WriteLine behavior,
// we need to make sure we use it.
base.WriteLine(buffer);
}
}
private void WriteFormatHelper(string format, ParamsArray args, bool appendNewLine)
{
int estimatedLength = (format?.Length ?? 0) + args.Length * 8;
var vsb = estimatedLength <= 256 ?
new ValueStringBuilder(stackalloc char[256]) :
new ValueStringBuilder(estimatedLength);
vsb.AppendFormatHelper(null, format!, args); // AppendFormatHelper will appropriately throw ArgumentNullException for a null format
WriteSpan(vsb.AsSpan(), appendNewLine);
vsb.Dispose();
}
public override void Write(string format, object? arg0)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0), appendNewLine: false);
}
else
{
base.Write(format, arg0);
}
}
public override void Write(string format, object? arg0, object? arg1)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1), appendNewLine: false);
}
else
{
base.Write(format, arg0, arg1);
}
}
public override void Write(string format, object? arg0, object? arg1, object? arg2)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1, arg2), appendNewLine: false);
}
else
{
base.Write(format, arg0, arg1, arg2);
}
}
public override void Write(string format, params object?[] arg)
{
if (GetType() == typeof(StreamWriter))
{
if (arg == null)
{
ArgumentNullException.Throw(format is null ? nameof(format) : nameof(arg)); // same as base logic
}
WriteFormatHelper(format, new ParamsArray(arg), appendNewLine: false);
}
else
{
base.Write(format, arg);
}
}
public override void WriteLine(string format, object? arg0)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0), appendNewLine: true);
}
else
{
base.WriteLine(format, arg0);
}
}
public override void WriteLine(string format, object? arg0, object? arg1)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1), appendNewLine: true);
}
else
{
base.WriteLine(format, arg0, arg1);
}
}
public override void WriteLine(string format, object? arg0, object? arg1, object? arg2)
{
if (GetType() == typeof(StreamWriter))
{
WriteFormatHelper(format, new ParamsArray(arg0, arg1, arg2), appendNewLine: true);
}
else
{
base.WriteLine(format, arg0, arg1, arg2);
}
}
public override void WriteLine(string format, params object?[] arg)
{
if (GetType() == typeof(StreamWriter))
{
ArgumentNullException.ThrowIfNull(arg);
WriteFormatHelper(format, new ParamsArray(arg), appendNewLine: true);
}
else
{
base.WriteLine(format, arg);
}
}
public override Task WriteAsync(char value)
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteAsync(value);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value, appendNewLine: false);
_asyncWriteTask = task;
return task;
}
private async Task WriteAsyncInternal(char value, bool appendNewLine)
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false);
}
_charBuffer[_charPos++] = value;
if (appendNewLine)
{
for (int i = 0; i < CoreNewLine.Length; i++) // Generally 1 (\n) or 2 (\r\n) iterations
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(false);
}
_charBuffer[_charPos++] = CoreNewLine[i];
}
}
if (_autoFlush)
{
await FlushAsyncInternal(flushStream: true, flushEncoder: false).ConfigureAwait(false);
}
}
public override Task WriteAsync(string? value)
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteAsync(value);
}
if (value != null)
{
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value.AsMemory(), appendNewLine: false, default);
_asyncWriteTask = task;
return task;
}
else
{
return Task.CompletedTask;
}
}
public override Task WriteAsync(char[] buffer!!, int index, int count)
{
if (index < 0)
{
throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (count < 0)
{
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (buffer.Length - index < count)
{
throw new ArgumentException(SR.Argument_InvalidOffLen);
}
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteAsync(buffer, index, count);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(new ReadOnlyMemory<char>(buffer, index, count), appendNewLine: false, cancellationToken: default);
_asyncWriteTask = task;
return task;
}
public override Task WriteAsync(ReadOnlyMemory<char> buffer, CancellationToken cancellationToken = default)
{
if (GetType() != typeof(StreamWriter))
{
// If a derived type may have overridden existing WriteASync(char[], ...) behavior, make sure we use it.
return base.WriteAsync(buffer, cancellationToken);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
Task task = WriteAsyncInternal(buffer, appendNewLine: false, cancellationToken: cancellationToken);
_asyncWriteTask = task;
return task;
}
private async Task WriteAsyncInternal(ReadOnlyMemory<char> source, bool appendNewLine, CancellationToken cancellationToken)
{
int copied = 0;
while (copied < source.Length)
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false);
}
int n = Math.Min(_charLen - _charPos, source.Length - copied);
Debug.Assert(n > 0, "StreamWriter::Write(char[], int, int) isn't making progress! This is most likely a race condition in user code.");
source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer, _charPos, n));
_charPos += n;
copied += n;
}
if (appendNewLine)
{
for (int i = 0; i < CoreNewLine.Length; i++) // Generally 1 (\n) or 2 (\r\n) iterations
{
if (_charPos == _charLen)
{
await FlushAsyncInternal(flushStream: false, flushEncoder: false, cancellationToken).ConfigureAwait(false);
}
_charBuffer[_charPos++] = CoreNewLine[i];
}
}
if (_autoFlush)
{
await FlushAsyncInternal(flushStream: true, flushEncoder: false, cancellationToken).ConfigureAwait(false);
}
}
public override Task WriteLineAsync()
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync();
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(ReadOnlyMemory<char>.Empty, appendNewLine: true, cancellationToken: default);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(char value)
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(value);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value, appendNewLine: true);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(string? value)
{
if (value == null)
{
return WriteLineAsync();
}
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(value);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(value.AsMemory(), appendNewLine: true, default);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(char[] buffer!!, int index, int count)
{
if (index < 0)
{
throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (count < 0)
{
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
}
if (buffer.Length - index < count)
{
throw new ArgumentException(SR.Argument_InvalidOffLen);
}
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Write() which a subclass might have overridden.
// To be safe we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Write) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(buffer, index, count);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = WriteAsyncInternal(new ReadOnlyMemory<char>(buffer, index, count), appendNewLine: true, cancellationToken: default);
_asyncWriteTask = task;
return task;
}
public override Task WriteLineAsync(ReadOnlyMemory<char> buffer, CancellationToken cancellationToken = default)
{
if (GetType() != typeof(StreamWriter))
{
return base.WriteLineAsync(buffer, cancellationToken);
}
ThrowIfDisposed();
CheckAsyncTaskInProgress();
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
Task task = WriteAsyncInternal(buffer, appendNewLine: true, cancellationToken: cancellationToken);
_asyncWriteTask = task;
return task;
}
public override Task FlushAsync()
{
// If we have been inherited into a subclass, the following implementation could be incorrect
// since it does not call through to Flush() which a subclass might have overridden. To be safe
// we will only use this implementation in cases where we know it is safe to do so,
// and delegate to our base class (which will call into Flush) when we are not sure.
if (GetType() != typeof(StreamWriter))
{
return base.FlushAsync();
}
// flushEncoder should be true at the end of the file and if
// the user explicitly calls Flush (though not if AutoFlush is true).
// This is required to flush any dangling characters from our UTF-7
// and UTF-8 encoders.
ThrowIfDisposed();
CheckAsyncTaskInProgress();
Task task = FlushAsyncInternal(flushStream: true, flushEncoder: true);
_asyncWriteTask = task;
return task;
}
private Task FlushAsyncInternal(bool flushStream, bool flushEncoder, CancellationToken cancellationToken = default)
{
if (cancellationToken.IsCancellationRequested)
{
return Task.FromCanceled(cancellationToken);
}
// Perf boost for Flush on non-dirty writers.
if (_charPos == 0 && !flushStream && !flushEncoder)
{
return Task.CompletedTask;
}
return Core(flushStream, flushEncoder, cancellationToken);
async Task Core(bool flushStream, bool flushEncoder, CancellationToken cancellationToken)
{
if (!_haveWrittenPreamble)
{
_haveWrittenPreamble = true;
byte[] preamble = _encoding.GetPreamble();
if (preamble.Length > 0)
{
await _stream.WriteAsync(new ReadOnlyMemory<byte>(preamble), cancellationToken).ConfigureAwait(false);
}
}
byte[] byteBuffer = _byteBuffer ??= new byte[_encoding.GetMaxByteCount(_charBuffer.Length)];
int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
_charPos = 0;
if (count > 0)
{
await _stream.WriteAsync(new ReadOnlyMemory<byte>(byteBuffer, 0, count), cancellationToken).ConfigureAwait(false);
}
// By definition, calling Flush should flush the stream, but this is
// only necessary if we passed in true for flushStream. The Web
// Services guys have some perf tests where flushing needlessly hurts.
if (flushStream)
{
await _stream.FlushAsync(cancellationToken).ConfigureAwait(false);
}
}
}
private void ThrowIfDisposed()
{
if (_disposed)
{
ThrowObjectDisposedException();
}
void ThrowObjectDisposedException() => throw new ObjectDisposedException(GetType().Name, SR.ObjectDisposed_WriterClosed);
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Net.Mail/tests/Functional/SmtpClientTest.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// SmtpClientTest.cs - Unit Test Cases for System.Net.Mail.SmtpClient
//
// Authors:
// John Luke ([email protected])
//
// (C) 2006 John Luke
//
using System.IO;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Systen.Net.Mail.Tests;
using Xunit;
namespace System.Net.Mail.Tests
{
[SkipOnPlatform(TestPlatforms.Browser, "SmtpClient is not supported on Browser")]
public class SmtpClientTest : FileCleanupTestBase
{
private SmtpClient _smtp;
private SmtpClient Smtp
{
get
{
return _smtp ?? (_smtp = new SmtpClient());
}
}
private string TempFolder
{
get
{
return TestDirectory;
}
}
protected override void Dispose(bool disposing)
{
if (_smtp != null)
{
_smtp.Dispose();
}
base.Dispose(disposing);
}
[Theory]
[InlineData(SmtpDeliveryMethod.SpecifiedPickupDirectory)]
[InlineData(SmtpDeliveryMethod.PickupDirectoryFromIis)]
public void DeliveryMethodTest(SmtpDeliveryMethod method)
{
Smtp.DeliveryMethod = method;
Assert.Equal(method, Smtp.DeliveryMethod);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void EnableSslTest(bool value)
{
Smtp.EnableSsl = value;
Assert.Equal(value, Smtp.EnableSsl);
}
[Theory]
[InlineData("127.0.0.1")]
[InlineData("smtp.ximian.com")]
public void HostTest(string host)
{
Smtp.Host = host;
Assert.Equal(host, Smtp.Host);
}
[Fact]
public void InvalidHostTest()
{
Assert.Throws<ArgumentNullException>(() => Smtp.Host = null);
AssertExtensions.Throws<ArgumentException>("value", () => Smtp.Host = "");
}
[Fact]
public void ServicePoint_GetsCachedInstanceSpecificToHostPort()
{
using (var smtp1 = new SmtpClient("localhost1", 25))
using (var smtp2 = new SmtpClient("localhost1", 25))
using (var smtp3 = new SmtpClient("localhost2", 25))
using (var smtp4 = new SmtpClient("localhost2", 26))
{
ServicePoint s1 = smtp1.ServicePoint;
ServicePoint s2 = smtp2.ServicePoint;
ServicePoint s3 = smtp3.ServicePoint;
ServicePoint s4 = smtp4.ServicePoint;
Assert.NotNull(s1);
Assert.NotNull(s2);
Assert.NotNull(s3);
Assert.NotNull(s4);
Assert.Same(s1, s2);
Assert.NotSame(s2, s3);
Assert.NotSame(s2, s4);
Assert.NotSame(s3, s4);
}
}
[Fact]
public void ServicePoint_NetCoreApp_AddressIsAccessible()
{
using (var smtp = new SmtpClient("localhost", 25))
{
Assert.Equal("mailto", smtp.ServicePoint.Address.Scheme);
Assert.Equal("localhost", smtp.ServicePoint.Address.Host);
Assert.Equal(25, smtp.ServicePoint.Address.Port);
}
}
[Fact]
public void ServicePoint_ReflectsHostAndPortChange()
{
using (var smtp = new SmtpClient("localhost1", 25))
{
ServicePoint s1 = smtp.ServicePoint;
smtp.Host = "localhost2";
ServicePoint s2 = smtp.ServicePoint;
smtp.Host = "localhost2";
ServicePoint s3 = smtp.ServicePoint;
Assert.NotSame(s1, s2);
Assert.Same(s2, s3);
smtp.Port = 26;
ServicePoint s4 = smtp.ServicePoint;
smtp.Port = 26;
ServicePoint s5 = smtp.ServicePoint;
Assert.NotSame(s3, s4);
Assert.Same(s4, s5);
}
}
[Theory]
[InlineData("")]
[InlineData(null)]
[InlineData("shouldnotexist")]
[InlineData("\0")]
[InlineData("C:\\some\\path\\like\\string")]
public void PickupDirectoryLocationTest(string folder)
{
Smtp.PickupDirectoryLocation = folder;
Assert.Equal(folder, Smtp.PickupDirectoryLocation);
}
[Theory]
[InlineData(25)]
[InlineData(1)]
[InlineData(int.MaxValue)]
public void PortTest(int value)
{
Smtp.Port = value;
Assert.Equal(value, Smtp.Port);
}
[Fact]
public void TestDefaultsOnProperties()
{
Assert.Equal(25, Smtp.Port);
Assert.Equal(100000, Smtp.Timeout);
Assert.Null(Smtp.Host);
Assert.Null(Smtp.Credentials);
Assert.False(Smtp.EnableSsl);
Assert.False(Smtp.UseDefaultCredentials);
Assert.Equal(SmtpDeliveryMethod.Network, Smtp.DeliveryMethod);
Assert.Null(Smtp.PickupDirectoryLocation);
}
[Theory]
[InlineData(0)]
[InlineData(-1)]
[InlineData(int.MinValue)]
public void Port_Value_Invalid(int value)
{
Assert.Throws<ArgumentOutOfRangeException>(() => Smtp.Port = value);
}
[Fact]
public void Send_Message_Null()
{
Assert.Throws<ArgumentNullException>(() => Smtp.Send(null));
}
[Fact]
public void Send_Network_Host_Null()
{
Assert.Throws<InvalidOperationException>(() => Smtp.Send("[email protected]", "[email protected]", "introduction", "hello"));
}
[Fact]
public void Send_Network_Host_Whitespace()
{
Smtp.Host = " \r\n ";
Assert.Throws<InvalidOperationException>(() => Smtp.Send("[email protected]", "[email protected]", "introduction", "hello"));
}
[Fact]
public void Send_SpecifiedPickupDirectory()
{
Smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
Smtp.PickupDirectoryLocation = TempFolder;
Smtp.Send("[email protected]", "[email protected]", "introduction", "hello");
string[] files = Directory.GetFiles(TempFolder, "*");
Assert.Equal(1, files.Length);
Assert.Equal(".eml", Path.GetExtension(files[0]));
}
[Fact]
public void Send_SpecifiedPickupDirectory_MessageBodyDoesNotEncodeForTransport()
{
// This test verifies that a line fold which results in a dot appearing as the first character of
// a new line does not get dot-stuffed when the delivery method is pickup. To do so, it relies on
// folding happening at a precise location. If folding implementation details change, this test will
// likely fail and need to be updated accordingly.
string padding = new string('a', 65);
Smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
Smtp.PickupDirectoryLocation = TempFolder;
Smtp.Send("[email protected]", "[email protected]", "introduction", padding + ".");
string[] files = Directory.GetFiles(TempFolder, "*");
Assert.Equal(1, files.Length);
Assert.Equal(".eml", Path.GetExtension(files[0]));
string message = File.ReadAllText(files[0]);
Assert.EndsWith($"{padding}=\r\n.\r\n", message);
}
[Theory]
[InlineData("some_path_not_exist")]
[InlineData("")]
[InlineData(null)]
[InlineData("\0abc")]
public void Send_SpecifiedPickupDirectoryInvalid(string location)
{
Smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
Smtp.PickupDirectoryLocation = location;
Assert.Throws<SmtpException>(() => Smtp.Send("[email protected]", "[email protected]", "introduction", "hello"));
}
[Theory]
[InlineData(0)]
[InlineData(50)]
[InlineData(int.MaxValue)]
[InlineData(int.MinValue)]
[InlineData(-1)]
public void TestTimeout(int value)
{
if (value < 0)
{
Assert.Throws<ArgumentOutOfRangeException>(() => Smtp.Timeout = value);
return;
}
Smtp.Timeout = value;
Assert.Equal(value, Smtp.Timeout);
}
[Fact]
public void Send_ServerDoesntExist_Throws()
{
using (var smtp = new SmtpClient(Guid.NewGuid().ToString("N")))
{
Assert.Throws<SmtpException>(() => smtp.Send("[email protected]", "[email protected]", "subject", "body"));
}
}
[Fact]
public async Task SendAsync_ServerDoesntExist_Throws()
{
using (var smtp = new SmtpClient(Guid.NewGuid().ToString("N")))
{
await Assert.ThrowsAsync<SmtpException>(() => smtp.SendMailAsync("[email protected]", "[email protected]", "subject", "body"));
}
}
[Fact]
public void TestMailDelivery()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
client.Credentials = new NetworkCredential("foo", "bar");
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "howdydoo");
client.Send(msg);
Assert.Equal("<[email protected]>", server.MailFrom);
Assert.Equal("<[email protected]>", server.MailTo);
Assert.Equal("hello", server.Message.Subject);
Assert.Equal("howdydoo", server.Message.Body);
Assert.Equal(GetClientDomain(), server.ClientDomain);
Assert.Equal("foo", server.Username);
Assert.Equal("bar", server.Password);
Assert.Equal("LOGIN", server.AuthMethodUsed, StringComparer.OrdinalIgnoreCase);
}
[Fact]
// [ActiveIssue("https://github.com/dotnet/runtime/issues/31719")]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework has a bug and may not time out for low values")]
[SkipOnPlatform(TestPlatforms.OSX, "on OSX, not all synchronous operations (e.g. connect) can be aborted by closing the socket.")]
public void TestZeroTimeout()
{
var testTask = Task.Run(() =>
{
using (Socket serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
{
serverSocket.Bind(new IPEndPoint(IPAddress.Loopback, 0));
serverSocket.Listen(1);
SmtpClient smtpClient = new SmtpClient("localhost", (serverSocket.LocalEndPoint as IPEndPoint).Port);
smtpClient.Timeout = 0;
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "test");
Assert.Throws<SmtpException>(() => smtpClient.Send(msg));
}
});
// Abort in order to get a coredump if this test takes too long.
if (!testTask.Wait(TimeSpan.FromMinutes(5)))
{
Environment.FailFast(nameof(TestZeroTimeout));
}
}
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework has a bug and could hang in case of null or empty body")]
[Theory]
[InlineData("howdydoo")]
[InlineData("")]
[InlineData(null)]
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131", ~RuntimeConfiguration.Release)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/131", TestRuntimes.Mono)] // System.Net.Tests are flaky and/or long running
public async Task TestMailDeliveryAsync(string body)
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", body);
await client.SendMailAsync(msg).WaitAsync(TimeSpan.FromSeconds(30));
Assert.Equal("<[email protected]>", server.MailFrom);
Assert.Equal("<[email protected]>", server.MailTo);
Assert.Equal("hello", server.Message.Subject);
Assert.Equal(body ?? "", server.Message.Body);
Assert.Equal(GetClientDomain(), server.ClientDomain);
}
[Fact]
[PlatformSpecific(TestPlatforms.Windows)] // NTLM support required, see https://github.com/dotnet/runtime/issues/25827
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131", ~RuntimeConfiguration.Release)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/131", TestRuntimes.Mono)] // System.Net.Tests are flaky and/or long running
public async Task TestCredentialsCopyInAsyncContext()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "howdydoo");
CredentialCache cache = new CredentialCache();
cache.Add("localhost", server.Port, "NTLM", CredentialCache.DefaultNetworkCredentials);
client.Credentials = cache;
// The mock server doesn't actually understand NTLM, but still advertises support for it
server.AdvertiseNtlmAuthSupport = true;
await Assert.ThrowsAsync<SmtpException>(async () => await client.SendMailAsync(msg));
Assert.Equal("NTLM", server.AuthMethodUsed, StringComparer.OrdinalIgnoreCase);
}
[Theory]
[InlineData(false, false, false)]
[InlineData(false, false, true)] // Received subjectText.
[InlineData(false, true, false)]
[InlineData(false, true, true)]
[InlineData(true, false, false)]
[InlineData(true, false, true)] // Received subjectText.
[InlineData(true, true, false)]
[InlineData(true, true, true)] // Received subjectBase64. If subjectText is received, the test fails, and the results are inconsistent with those of synchronous methods.
public void SendMail_DeliveryFormat_SubjectEncoded(bool useAsyncSend, bool useSevenBit, bool useSmtpUTF8)
{
// If the server support `SMTPUTF8` and use `SmtpDeliveryFormat.International`, the server should received this subject.
const string subjectText = "Test \u6d4b\u8bd5 Contain \u5305\u542b UTF8";
// If the server does not support `SMTPUTF8` or use `SmtpDeliveryFormat.SevenBit`, the server should received this subject.
const string subjectBase64 = "=?utf-8?B?VGVzdCDmtYvor5UgQ29udGFpbiDljIXlkKsgVVRGOA==?=";
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
// Setting up Server Support for `SMTPUTF8`.
server.SupportSmtpUTF8 = useSmtpUTF8;
if (useSevenBit)
{
// Subject will be encoded by Base64.
client.DeliveryFormat = SmtpDeliveryFormat.SevenBit;
}
else
{
// If the server supports `SMTPUTF8`, subject will not be encoded. Otherwise, subject will be encoded by Base64.
client.DeliveryFormat = SmtpDeliveryFormat.International;
}
MailMessage msg = new MailMessage("[email protected]", "[email protected]", subjectText, "hello \u9ad8\u575a\u679c");
msg.HeadersEncoding = msg.BodyEncoding = msg.SubjectEncoding = System.Text.Encoding.UTF8;
if (useAsyncSend)
{
client.SendMailAsync(msg).Wait();
}
else
{
client.Send(msg);
}
if (useSevenBit || !useSmtpUTF8)
{
Assert.Equal(subjectBase64, server.Message.Subject);
}
else
{
Assert.Equal(subjectText, server.Message.Subject);
}
}
[Fact]
public void SendMailAsync_CanBeCanceled_CancellationToken_SetAlready()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
CancellationTokenSource cts = new CancellationTokenSource();
cts.Cancel();
var message = new MailMessage("[email protected]", "[email protected]", "Foo", "Bar");
Task sendTask = client.SendMailAsync(message, cts.Token);
// Tests an implementation detail - if a CT is already set a canceled task will be returned
Assert.True(sendTask.IsCanceled);
}
[Fact]
public async Task SendMailAsync_CanBeCanceled_CancellationToken()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
server.ReceiveMultipleConnections = true;
// The server will introduce some fake latency so that the operation can be canceled before the request completes
ManualResetEvent serverMre = new ManualResetEvent(false);
server.OnConnected += _ => serverMre.WaitOne();
CancellationTokenSource cts = new CancellationTokenSource();
var message = new MailMessage("[email protected]", "[email protected]", "Foo", "Bar");
Task sendTask = client.SendMailAsync(message, cts.Token);
cts.Cancel();
await Task.Delay(500);
serverMre.Set();
await Assert.ThrowsAsync<TaskCanceledException>(async () => await sendTask);
// We should still be able to send mail on the SmtpClient instance
await client.SendMailAsync(message);
Assert.Equal("<[email protected]>", server.MailFrom);
Assert.Equal("<[email protected]>", server.MailTo);
Assert.Equal("Foo", server.Message.Subject);
Assert.Equal("Bar", server.Message.Body);
Assert.Equal(GetClientDomain(), server.ClientDomain);
}
private static string GetClientDomain() => IPGlobalProperties.GetIPGlobalProperties().HostName.Trim().ToLower();
[Theory]
[InlineData(false)]
[InlineData(true)]
public async Task SendMail_SendQUITOnDispose(bool asyncSend)
{
bool quitMessageReceived = false;
using ManualResetEventSlim quitReceived = new ManualResetEventSlim();
using var server = new LoopbackSmtpServer();
server.OnQuitReceived += _ =>
{
quitMessageReceived = true;
quitReceived.Set();
};
using (SmtpClient client = server.CreateClient())
{
client.Credentials = new NetworkCredential("Foo", "Bar");
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "howdydoo");
if (asyncSend)
{
await client.SendMailAsync(msg).WaitAsync(TimeSpan.FromSeconds(30));
}
else
{
client.Send(msg);
}
Assert.False(quitMessageReceived, "QUIT received");
}
// There is a latency between send/receive.
quitReceived.Wait(TimeSpan.FromSeconds(30));
Assert.True(quitMessageReceived, "QUIT message not received");
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// SmtpClientTest.cs - Unit Test Cases for System.Net.Mail.SmtpClient
//
// Authors:
// John Luke ([email protected])
//
// (C) 2006 John Luke
//
using System.IO;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Systen.Net.Mail.Tests;
using Xunit;
namespace System.Net.Mail.Tests
{
[SkipOnPlatform(TestPlatforms.Browser, "SmtpClient is not supported on Browser")]
public class SmtpClientTest : FileCleanupTestBase
{
private SmtpClient _smtp;
private SmtpClient Smtp
{
get
{
return _smtp ?? (_smtp = new SmtpClient());
}
}
private string TempFolder
{
get
{
return TestDirectory;
}
}
protected override void Dispose(bool disposing)
{
if (_smtp != null)
{
_smtp.Dispose();
}
base.Dispose(disposing);
}
[Theory]
[InlineData(SmtpDeliveryMethod.SpecifiedPickupDirectory)]
[InlineData(SmtpDeliveryMethod.PickupDirectoryFromIis)]
public void DeliveryMethodTest(SmtpDeliveryMethod method)
{
Smtp.DeliveryMethod = method;
Assert.Equal(method, Smtp.DeliveryMethod);
}
[Theory]
[InlineData(true)]
[InlineData(false)]
public void EnableSslTest(bool value)
{
Smtp.EnableSsl = value;
Assert.Equal(value, Smtp.EnableSsl);
}
[Theory]
[InlineData("127.0.0.1")]
[InlineData("smtp.ximian.com")]
public void HostTest(string host)
{
Smtp.Host = host;
Assert.Equal(host, Smtp.Host);
}
[Fact]
public void InvalidHostTest()
{
Assert.Throws<ArgumentNullException>(() => Smtp.Host = null);
AssertExtensions.Throws<ArgumentException>("value", () => Smtp.Host = "");
}
[Fact]
public void ServicePoint_GetsCachedInstanceSpecificToHostPort()
{
using (var smtp1 = new SmtpClient("localhost1", 25))
using (var smtp2 = new SmtpClient("localhost1", 25))
using (var smtp3 = new SmtpClient("localhost2", 25))
using (var smtp4 = new SmtpClient("localhost2", 26))
{
ServicePoint s1 = smtp1.ServicePoint;
ServicePoint s2 = smtp2.ServicePoint;
ServicePoint s3 = smtp3.ServicePoint;
ServicePoint s4 = smtp4.ServicePoint;
Assert.NotNull(s1);
Assert.NotNull(s2);
Assert.NotNull(s3);
Assert.NotNull(s4);
Assert.Same(s1, s2);
Assert.NotSame(s2, s3);
Assert.NotSame(s2, s4);
Assert.NotSame(s3, s4);
}
}
[Fact]
public void ServicePoint_NetCoreApp_AddressIsAccessible()
{
using (var smtp = new SmtpClient("localhost", 25))
{
Assert.Equal("mailto", smtp.ServicePoint.Address.Scheme);
Assert.Equal("localhost", smtp.ServicePoint.Address.Host);
Assert.Equal(25, smtp.ServicePoint.Address.Port);
}
}
[Fact]
public void ServicePoint_ReflectsHostAndPortChange()
{
using (var smtp = new SmtpClient("localhost1", 25))
{
ServicePoint s1 = smtp.ServicePoint;
smtp.Host = "localhost2";
ServicePoint s2 = smtp.ServicePoint;
smtp.Host = "localhost2";
ServicePoint s3 = smtp.ServicePoint;
Assert.NotSame(s1, s2);
Assert.Same(s2, s3);
smtp.Port = 26;
ServicePoint s4 = smtp.ServicePoint;
smtp.Port = 26;
ServicePoint s5 = smtp.ServicePoint;
Assert.NotSame(s3, s4);
Assert.Same(s4, s5);
}
}
[Theory]
[InlineData("")]
[InlineData(null)]
[InlineData("shouldnotexist")]
[InlineData("\0")]
[InlineData("C:\\some\\path\\like\\string")]
public void PickupDirectoryLocationTest(string folder)
{
Smtp.PickupDirectoryLocation = folder;
Assert.Equal(folder, Smtp.PickupDirectoryLocation);
}
[Theory]
[InlineData(25)]
[InlineData(1)]
[InlineData(int.MaxValue)]
public void PortTest(int value)
{
Smtp.Port = value;
Assert.Equal(value, Smtp.Port);
}
[Fact]
public void TestDefaultsOnProperties()
{
Assert.Equal(25, Smtp.Port);
Assert.Equal(100000, Smtp.Timeout);
Assert.Null(Smtp.Host);
Assert.Null(Smtp.Credentials);
Assert.False(Smtp.EnableSsl);
Assert.False(Smtp.UseDefaultCredentials);
Assert.Equal(SmtpDeliveryMethod.Network, Smtp.DeliveryMethod);
Assert.Null(Smtp.PickupDirectoryLocation);
}
[Theory]
[InlineData(0)]
[InlineData(-1)]
[InlineData(int.MinValue)]
public void Port_Value_Invalid(int value)
{
Assert.Throws<ArgumentOutOfRangeException>(() => Smtp.Port = value);
}
[Fact]
public void Send_Message_Null()
{
Assert.Throws<ArgumentNullException>(() => Smtp.Send(null));
}
[Fact]
public void Send_Network_Host_Null()
{
Assert.Throws<InvalidOperationException>(() => Smtp.Send("[email protected]", "[email protected]", "introduction", "hello"));
}
[Fact]
public void Send_Network_Host_Whitespace()
{
Smtp.Host = " \r\n ";
Assert.Throws<InvalidOperationException>(() => Smtp.Send("[email protected]", "[email protected]", "introduction", "hello"));
}
[Fact]
public void Send_SpecifiedPickupDirectory()
{
Smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
Smtp.PickupDirectoryLocation = TempFolder;
Smtp.Send("[email protected]", "[email protected]", "introduction", "hello");
string[] files = Directory.GetFiles(TempFolder, "*");
Assert.Equal(1, files.Length);
Assert.Equal(".eml", Path.GetExtension(files[0]));
}
[Fact]
public void Send_SpecifiedPickupDirectory_MessageBodyDoesNotEncodeForTransport()
{
// This test verifies that a line fold which results in a dot appearing as the first character of
// a new line does not get dot-stuffed when the delivery method is pickup. To do so, it relies on
// folding happening at a precise location. If folding implementation details change, this test will
// likely fail and need to be updated accordingly.
string padding = new string('a', 65);
Smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
Smtp.PickupDirectoryLocation = TempFolder;
Smtp.Send("[email protected]", "[email protected]", "introduction", padding + ".");
string[] files = Directory.GetFiles(TempFolder, "*");
Assert.Equal(1, files.Length);
Assert.Equal(".eml", Path.GetExtension(files[0]));
string message = File.ReadAllText(files[0]);
Assert.EndsWith($"{padding}=\r\n.\r\n", message);
}
[Theory]
[InlineData("some_path_not_exist")]
[InlineData("")]
[InlineData(null)]
[InlineData("\0abc")]
public void Send_SpecifiedPickupDirectoryInvalid(string location)
{
Smtp.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
Smtp.PickupDirectoryLocation = location;
Assert.Throws<SmtpException>(() => Smtp.Send("[email protected]", "[email protected]", "introduction", "hello"));
}
[Theory]
[InlineData(0)]
[InlineData(50)]
[InlineData(int.MaxValue)]
[InlineData(int.MinValue)]
[InlineData(-1)]
public void TestTimeout(int value)
{
if (value < 0)
{
Assert.Throws<ArgumentOutOfRangeException>(() => Smtp.Timeout = value);
return;
}
Smtp.Timeout = value;
Assert.Equal(value, Smtp.Timeout);
}
[Fact]
public void Send_ServerDoesntExist_Throws()
{
using (var smtp = new SmtpClient(Guid.NewGuid().ToString("N")))
{
Assert.Throws<SmtpException>(() => smtp.Send("[email protected]", "[email protected]", "subject", "body"));
}
}
[Fact]
public async Task SendAsync_ServerDoesntExist_Throws()
{
using (var smtp = new SmtpClient(Guid.NewGuid().ToString("N")))
{
await Assert.ThrowsAsync<SmtpException>(() => smtp.SendMailAsync("[email protected]", "[email protected]", "subject", "body"));
}
}
[Fact]
public void TestMailDelivery()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
client.Credentials = new NetworkCredential("foo", "bar");
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "howdydoo");
client.Send(msg);
Assert.Equal("<[email protected]>", server.MailFrom);
Assert.Equal("<[email protected]>", server.MailTo);
Assert.Equal("hello", server.Message.Subject);
Assert.Equal("howdydoo", server.Message.Body);
Assert.Equal(GetClientDomain(), server.ClientDomain);
Assert.Equal("foo", server.Username);
Assert.Equal("bar", server.Password);
Assert.Equal("LOGIN", server.AuthMethodUsed, StringComparer.OrdinalIgnoreCase);
}
[Fact]
// [ActiveIssue("https://github.com/dotnet/runtime/issues/31719")]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework has a bug and may not time out for low values")]
[SkipOnPlatform(TestPlatforms.OSX, "on OSX, not all synchronous operations (e.g. connect) can be aborted by closing the socket.")]
public void TestZeroTimeout()
{
var testTask = Task.Run(() =>
{
using (Socket serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
{
serverSocket.Bind(new IPEndPoint(IPAddress.Loopback, 0));
serverSocket.Listen(1);
SmtpClient smtpClient = new SmtpClient("localhost", (serverSocket.LocalEndPoint as IPEndPoint).Port);
smtpClient.Timeout = 0;
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "test");
Assert.Throws<SmtpException>(() => smtpClient.Send(msg));
}
});
// Abort in order to get a coredump if this test takes too long.
if (!testTask.Wait(TimeSpan.FromMinutes(5)))
{
Environment.FailFast(nameof(TestZeroTimeout));
}
}
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, ".NET Framework has a bug and could hang in case of null or empty body")]
[Theory]
[InlineData("howdydoo")]
[InlineData("")]
[InlineData(null)]
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131", ~RuntimeConfiguration.Release)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/131", TestRuntimes.Mono)] // System.Net.Tests are flaky and/or long running
public async Task TestMailDeliveryAsync(string body)
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", body);
await client.SendMailAsync(msg).WaitAsync(TimeSpan.FromSeconds(30));
Assert.Equal("<[email protected]>", server.MailFrom);
Assert.Equal("<[email protected]>", server.MailTo);
Assert.Equal("hello", server.Message.Subject);
Assert.Equal(body ?? "", server.Message.Body);
Assert.Equal(GetClientDomain(), server.ClientDomain);
}
[Fact]
[PlatformSpecific(TestPlatforms.Windows)] // NTLM support required, see https://github.com/dotnet/runtime/issues/25827
[SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131", ~RuntimeConfiguration.Release)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/131", TestRuntimes.Mono)] // System.Net.Tests are flaky and/or long running
public async Task TestCredentialsCopyInAsyncContext()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "howdydoo");
CredentialCache cache = new CredentialCache();
cache.Add("localhost", server.Port, "NTLM", CredentialCache.DefaultNetworkCredentials);
client.Credentials = cache;
// The mock server doesn't actually understand NTLM, but still advertises support for it
server.AdvertiseNtlmAuthSupport = true;
await Assert.ThrowsAsync<SmtpException>(async () => await client.SendMailAsync(msg));
Assert.Equal("NTLM", server.AuthMethodUsed, StringComparer.OrdinalIgnoreCase);
}
[Theory]
[InlineData(false, false, false)]
[InlineData(false, false, true)] // Received subjectText.
[InlineData(false, true, false)]
[InlineData(false, true, true)]
[InlineData(true, false, false)]
[InlineData(true, false, true)] // Received subjectText.
[InlineData(true, true, false)]
[InlineData(true, true, true)] // Received subjectBase64. If subjectText is received, the test fails, and the results are inconsistent with those of synchronous methods.
public void SendMail_DeliveryFormat_SubjectEncoded(bool useAsyncSend, bool useSevenBit, bool useSmtpUTF8)
{
// If the server support `SMTPUTF8` and use `SmtpDeliveryFormat.International`, the server should received this subject.
const string subjectText = "Test \u6d4b\u8bd5 Contain \u5305\u542b UTF8";
// If the server does not support `SMTPUTF8` or use `SmtpDeliveryFormat.SevenBit`, the server should received this subject.
const string subjectBase64 = "=?utf-8?B?VGVzdCDmtYvor5UgQ29udGFpbiDljIXlkKsgVVRGOA==?=";
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
// Setting up Server Support for `SMTPUTF8`.
server.SupportSmtpUTF8 = useSmtpUTF8;
if (useSevenBit)
{
// Subject will be encoded by Base64.
client.DeliveryFormat = SmtpDeliveryFormat.SevenBit;
}
else
{
// If the server supports `SMTPUTF8`, subject will not be encoded. Otherwise, subject will be encoded by Base64.
client.DeliveryFormat = SmtpDeliveryFormat.International;
}
MailMessage msg = new MailMessage("[email protected]", "[email protected]", subjectText, "hello \u9ad8\u575a\u679c");
msg.HeadersEncoding = msg.BodyEncoding = msg.SubjectEncoding = System.Text.Encoding.UTF8;
if (useAsyncSend)
{
client.SendMailAsync(msg).Wait();
}
else
{
client.Send(msg);
}
if (useSevenBit || !useSmtpUTF8)
{
Assert.Equal(subjectBase64, server.Message.Subject);
}
else
{
Assert.Equal(subjectText, server.Message.Subject);
}
}
[Fact]
public void SendMailAsync_CanBeCanceled_CancellationToken_SetAlready()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
CancellationTokenSource cts = new CancellationTokenSource();
cts.Cancel();
var message = new MailMessage("[email protected]", "[email protected]", "Foo", "Bar");
Task sendTask = client.SendMailAsync(message, cts.Token);
// Tests an implementation detail - if a CT is already set a canceled task will be returned
Assert.True(sendTask.IsCanceled);
}
[Fact]
public async Task SendMailAsync_CanBeCanceled_CancellationToken()
{
using var server = new LoopbackSmtpServer();
using SmtpClient client = server.CreateClient();
server.ReceiveMultipleConnections = true;
// The server will introduce some fake latency so that the operation can be canceled before the request completes
ManualResetEvent serverMre = new ManualResetEvent(false);
server.OnConnected += _ => serverMre.WaitOne();
CancellationTokenSource cts = new CancellationTokenSource();
var message = new MailMessage("[email protected]", "[email protected]", "Foo", "Bar");
Task sendTask = client.SendMailAsync(message, cts.Token);
cts.Cancel();
await Task.Delay(500);
serverMre.Set();
await Assert.ThrowsAsync<TaskCanceledException>(async () => await sendTask);
// We should still be able to send mail on the SmtpClient instance
await client.SendMailAsync(message);
Assert.Equal("<[email protected]>", server.MailFrom);
Assert.Equal("<[email protected]>", server.MailTo);
Assert.Equal("Foo", server.Message.Subject);
Assert.Equal("Bar", server.Message.Body);
Assert.Equal(GetClientDomain(), server.ClientDomain);
}
private static string GetClientDomain() => IPGlobalProperties.GetIPGlobalProperties().HostName.Trim().ToLower();
[Theory]
[InlineData(false)]
[InlineData(true)]
public async Task SendMail_SendQUITOnDispose(bool asyncSend)
{
bool quitMessageReceived = false;
using ManualResetEventSlim quitReceived = new ManualResetEventSlim();
using var server = new LoopbackSmtpServer();
server.OnQuitReceived += _ =>
{
quitMessageReceived = true;
quitReceived.Set();
};
using (SmtpClient client = server.CreateClient())
{
client.Credentials = new NetworkCredential("Foo", "Bar");
MailMessage msg = new MailMessage("[email protected]", "[email protected]", "hello", "howdydoo");
if (asyncSend)
{
await client.SendMailAsync(msg).WaitAsync(TimeSpan.FromSeconds(30));
}
else
{
client.Send(msg);
}
Assert.False(quitMessageReceived, "QUIT received");
}
// There is a latency between send/receive.
quitReceived.Wait(TimeSpan.FromSeconds(30));
Assert.True(quitMessageReceived, "QUIT message not received");
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/Microsoft.Extensions.FileSystemGlobbing/tests/TestUtility/MockDirectoryInfo.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
namespace Microsoft.Extensions.FileSystemGlobbing.Tests.TestUtility
{
internal class MockDirectoryInfo : DirectoryInfoBase
{
public MockDirectoryInfo(
FileSystemOperationRecorder recorder,
DirectoryInfoBase parentDirectory,
string fullName,
string name,
string[] paths)
{
ParentDirectory = parentDirectory;
Recorder = recorder;
FullName = fullName;
Name = name;
Paths = paths;
}
public FileSystemOperationRecorder Recorder { get; }
public override string FullName { get; }
public override string Name { get; }
public override DirectoryInfoBase ParentDirectory { get; }
public string[] Paths { get; }
public override IEnumerable<FileSystemInfoBase> EnumerateFileSystemInfos()
{
Recorder.Add("EnumerateFileSystemInfos", new { FullName, Name });
var names = new HashSet<string>();
foreach (var path in Paths)
{
if (!path.Replace('\\', '/').StartsWith(FullName.Replace('\\', '/')))
{
continue;
}
var beginPath = FullName.Length;
var endPath = path.Length;
var beginSegment = beginPath;
var endSegment = NextIndex(path, new[] { '/', '\\' }, beginSegment, path.Length);
if (endPath == endSegment)
{
yield return new MockFileInfo(
recorder: Recorder,
parentDirectory: this,
fullName: path,
name: path.Substring(beginSegment, endSegment - beginSegment));
}
else
{
var name = path.Substring(beginSegment, endSegment - beginSegment);
if (!names.Contains(name))
{
names.Add(name);
yield return new MockDirectoryInfo(
recorder: Recorder,
parentDirectory: this,
fullName: path.Substring(0, endSegment + 1),
name: name,
paths: Paths);
}
}
}
}
private int NextIndex(string pattern, char[] anyOf, int startIndex, int endIndex)
{
var index = pattern.IndexOfAny(anyOf, startIndex, endIndex - startIndex);
return index == -1 ? endIndex : index;
}
public override DirectoryInfoBase GetDirectory(string name)
{
if (string.Equals(name, "..", StringComparison.Ordinal))
{
var indexOfPenultimateSlash = FullName.LastIndexOf('\\', FullName.Length - 2);
var fullName = FullName.Substring(0, indexOfPenultimateSlash + 1);
return new MockDirectoryInfo(
recorder: Recorder,
parentDirectory: this,
fullName: FullName.Substring(0, indexOfPenultimateSlash + 1),
name: name,
paths: Paths);
}
return new MockDirectoryInfo(
recorder: Recorder,
parentDirectory: this,
fullName: FullName + name + "\\",
name: name,
paths: Paths);
}
public override FileInfoBase GetFile(string name)
{
return new MockFileInfo(
recorder: Recorder,
parentDirectory: this,
fullName: FullName + name,
name: name);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
namespace Microsoft.Extensions.FileSystemGlobbing.Tests.TestUtility
{
internal class MockDirectoryInfo : DirectoryInfoBase
{
public MockDirectoryInfo(
FileSystemOperationRecorder recorder,
DirectoryInfoBase parentDirectory,
string fullName,
string name,
string[] paths)
{
ParentDirectory = parentDirectory;
Recorder = recorder;
FullName = fullName;
Name = name;
Paths = paths;
}
public FileSystemOperationRecorder Recorder { get; }
public override string FullName { get; }
public override string Name { get; }
public override DirectoryInfoBase ParentDirectory { get; }
public string[] Paths { get; }
public override IEnumerable<FileSystemInfoBase> EnumerateFileSystemInfos()
{
Recorder.Add("EnumerateFileSystemInfos", new { FullName, Name });
var names = new HashSet<string>();
foreach (var path in Paths)
{
if (!path.Replace('\\', '/').StartsWith(FullName.Replace('\\', '/')))
{
continue;
}
var beginPath = FullName.Length;
var endPath = path.Length;
var beginSegment = beginPath;
var endSegment = NextIndex(path, new[] { '/', '\\' }, beginSegment, path.Length);
if (endPath == endSegment)
{
yield return new MockFileInfo(
recorder: Recorder,
parentDirectory: this,
fullName: path,
name: path.Substring(beginSegment, endSegment - beginSegment));
}
else
{
var name = path.Substring(beginSegment, endSegment - beginSegment);
if (!names.Contains(name))
{
names.Add(name);
yield return new MockDirectoryInfo(
recorder: Recorder,
parentDirectory: this,
fullName: path.Substring(0, endSegment + 1),
name: name,
paths: Paths);
}
}
}
}
private int NextIndex(string pattern, char[] anyOf, int startIndex, int endIndex)
{
var index = pattern.IndexOfAny(anyOf, startIndex, endIndex - startIndex);
return index == -1 ? endIndex : index;
}
public override DirectoryInfoBase GetDirectory(string name)
{
if (string.Equals(name, "..", StringComparison.Ordinal))
{
var indexOfPenultimateSlash = FullName.LastIndexOf('\\', FullName.Length - 2);
var fullName = FullName.Substring(0, indexOfPenultimateSlash + 1);
return new MockDirectoryInfo(
recorder: Recorder,
parentDirectory: this,
fullName: FullName.Substring(0, indexOfPenultimateSlash + 1),
name: name,
paths: Paths);
}
return new MockDirectoryInfo(
recorder: Recorder,
parentDirectory: this,
fullName: FullName + name + "\\",
name: name,
paths: Paths);
}
public override FileInfoBase GetFile(string name)
{
return new MockFileInfo(
recorder: Recorder,
parentDirectory: this,
fullName: FullName + name,
name: name);
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaValidatorApi/ValidateMisc.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using System.Text.RegularExpressions;
using System.Xml.Schema;
using Xunit;
using Xunit.Abstractions;
namespace System.Xml.Tests
{
public class TCValidateAfterAdd : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterAdd(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
[Theory]
[InlineData("attributeGroup", "attgC007.xsd", 1, 1, 1, 2)]
[InlineData("attributeGroup", "attgC024.xsd", 2, 3, 2, 0)]
[InlineData("attributeGroup", "attgC026.xsd", 1, 4, 1, 0)]
[InlineData("complexType", "ctA001.xsd", 1, 2, 1, 0)]
[InlineData("complexType", "ctA002.xsd", 1, 3, 1, 0)]
[InlineData("complexType", "ctA003.xsd", 1, 3, 1, 0)]
[InlineData("PARTICLES", "particlesA006.xsd", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA002.xsd", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA007.xsd", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA010.xsd", 1, 2, 1, 0)]
[InlineData("simpleType", "bug102159_1.xsd", 1, 2, 3, 0)]
[InlineData("simpleType", "stE064.xsd", 1, 1, 1, 0)]
[InlineData("Wildcards", "wildG007.xsd", 1, 1, 2, 0)]
[InlineData("Wildcards", "wildG010.xsd", 3, 1, 5, 0)]
public void v1(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithSchemaInfo(ss);
foreach (XmlSchema schema in ss.Schemas())
ss.Reprocess(schema);
ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after repr/comp");
ValidateWithSchemaInfo(ss);
Assert.True(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, 0, false, 1, 0, 0, "Validation after remRec");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after remRec/comp");
ValidateWithSchemaInfo(ss);
return;
}
[Theory]
[InlineData("attributeGroup", "attgC007", 1, 1, 1, 2)]
[InlineData("attributeGroup", "attgC024", 2, 3, 2, 0)]
[InlineData("attributeGroup", "attgC026", 1, 4, 1, 0)]
[InlineData("complexType", "ctA001", 1, 2, 1, 0)]
[InlineData("complexType", "ctA002", 1, 3, 1, 0)]
[InlineData("complexType", "ctA003", 1, 3, 1, 0)]
[InlineData("PARTICLES", "particlesA006", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA002", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA007", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA010", 1, 2, 1, 0)]
[InlineData("simpleType", "bug102159_1", 1, 2, 3, 0)]
[InlineData("simpleType", "stE064", 1, 1, 1, 0)]
[InlineData("Wildcards", "wildG007", 1, 1, 2, 0)]
[InlineData("Wildcards", "wildG010", 3, 1, 5, 0)]
public void v2(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile + ".xsd");
string xml = Path.Combine(path, testDir, testFile + ".xml");
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithXmlReader(ss, xml, xsd);
XmlSchema Schema2 = null;
foreach (XmlSchema schema in ss.Schemas())
Schema2 = ss.Reprocess(schema);
ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after repr/comp");
ValidateWithXmlReader(ss, xml, xsd);
Assert.True(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, 0, false, 1, 0, 0, "Validation after remRec");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
return;
}
}
public class TCValidateAfterRemove : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterRemove(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
[Theory]
[InlineData("attributeGroup", "attgC007.xsd", 1, 1, 1, 2, 0, 0)]
[InlineData("attributeGroup", "attgC024.xsd", 2, 3, 2, 0, 1, 1)]
[InlineData("attributeGroup", "attgC026.xsd", 1, 4, 1, 0, 0, 0)]
[InlineData("complexType", "ctA001.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("complexType", "ctA002.xsd", 1, 3, 1, 0, 0, 0)]
[InlineData("complexType", "ctA003.xsd", 1, 3, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA006.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA002.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA007.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA010.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("simpleType", "bug102159_1.xsd", 1, 2, 3, 0, 0, 0)]
[InlineData("simpleType", "stE064.xsd", 1, 1, 1, 0, 0, 0)]
[InlineData("Wildcards", "wildG007.xsd", 1, 1, 2, 0, 0, 0)]
[InlineData("Wildcards", "wildG010.xsd", 3, 1, 5, 0, 3, 1)]
public void v1(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA, int expCountGER, int expCountGERC)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithSchemaInfo(ss);
ss.Remove(Schema);
ValidateSchemaSet(ss, expCount - 1, false, 1, expCountGER, 0, "Validation after remove");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after rem/comp");
ValidateWithSchemaInfo(ss);
XmlSchema Schema2 = null;
try
{
Schema2 = ss.Reprocess(Schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after repr");
ValidateWithSchemaInfo(ss);
Assert.False(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after add");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after remRec/comp");
ValidateWithSchemaInfo(ss);
return;
}
[Theory]
[InlineData("attributeGroup", "attgC007", 1, 1, 1, 2, 0, 0)]
[InlineData("attributeGroup", "attgC024", 2, 3, 2, 0, 1, 1)]
[InlineData("attributeGroup", "attgC026", 1, 4, 1, 0, 0, 0)]
[InlineData("complexType", "ctA001", 1, 2, 1, 0, 0, 0)]
[InlineData("complexType", "ctA002", 1, 3, 1, 0, 0, 0)]
[InlineData("complexType", "ctA003", 1, 3, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA006", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA002", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA007", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA010", 1, 2, 1, 0, 0, 0)]
[InlineData("simpleType", "bug102159_1", 1, 2, 3, 0, 0, 0)]
[InlineData("simpleType", "stE064", 1, 1, 1, 0, 0, 0)]
[InlineData("Wildcards", "wildG007", 1, 1, 2, 0, 0, 0)]
[InlineData("Wildcards", "wildG010", 3, 1, 5, 0, 3, 1)]
public void v2(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA, int expCountGER, int expCountGERC)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile + ".xsd");
string xml = Path.Combine(path, testDir, testFile + ".xml");
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithXmlReader(ss, xml, xsd);
ss.Remove(Schema);
ValidateSchemaSet(ss, expCount - 1, false, 1, expCountGER, 0, "Validation after rem");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
try
{
ss.Reprocess(Schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after repr");
ValidateWithXmlReader(ss, xml, xsd);
Assert.False(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after remRec");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after remRec/comp");
ValidateWithXmlReader(ss, xml, xsd);
return;
}
}
public class TCValidateAfterReprocess : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterReprocess(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
[Theory]
[InlineData("attributeGroup", "attgC007.xsd", 1)]
[InlineData("attributeGroup", "attgC024.xsd", 2)]
[InlineData("attributeGroup", "attgC026.xsd", 1)]
[InlineData("complexType", "ctA001.xsd", 1)]
[InlineData("complexType", "ctA002.xsd", 1)]
[InlineData("complexType", "ctA003.xsd", 1)]
[InlineData("simpleType", "bug102159_1.xsd", 1)]
[InlineData("simpleType", "stE064.xsd", 1)]
[InlineData("Wildcards", "wildG007.xsd", 1)]
[InlineData("Wildcards", "wildG010.xsd", 3)]
public void v1(string testDir, string TestFile, int expCount)
{
Initialize();
string xsd = Path.Combine(path, testDir, TestFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
XmlSchema schema = ss.Add(Schema);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
XmlSchemaElement element = new XmlSchemaElement();
schema.Items.Add(element);
element.Name = "book";
element.SchemaTypeName = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema");
foreach (XmlSchema sc in ss.Schemas())
ss.Reprocess(sc);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ValidateWithSchemaInfo(ss);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ss.RemoveRecursive(Schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
try
{
ss.Reprocess(Schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
Assert.Equal(0, ss.Count);
}
return;
}
[Theory]
[InlineData("attributeGroup", "attgC007", 1)]
[InlineData("attributeGroup", "attgC024", 2)]
[InlineData("attributeGroup", "attgC026", 1)]
[InlineData("complexType", "ctA001", 1)]
[InlineData("complexType", "ctA002", 1)]
[InlineData("complexType", "ctA003", 1)]
[InlineData("PARTICLES", "particlesA006", 1)]
[InlineData("PARTICLES", "particlesA002", 1)]
[InlineData("PARTICLES", "particlesA007", 1)]
[InlineData("PARTICLES", "particlesA010", 1)]
[InlineData("simpleType", "bug102159_1", 1)]
[InlineData("simpleType", "stE064", 1)]
[InlineData("Wildcards", "wildG007", 1)]
[InlineData("Wildcards", "wildG010", 3)]
public void v2(string testDir, string testFile, int expCount)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile + ".xsd");
string xml = Path.Combine(path, testDir, testFile + ".xml");
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema schema = ss.Add(null, XmlReader.Create(xsd));
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
XmlSchemaElement element = new XmlSchemaElement();
schema.Items.Add(element);
element.Name = "book";
element.SchemaTypeName = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema");
foreach (XmlSchema sc in ss.Schemas())
ss.Reprocess(sc);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ValidateWithXmlReader(ss, xml, xsd);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ss.RemoveRecursive(schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
try
{
ss.Reprocess(schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
Assert.Equal(0, ss.Count);
}
return;
}
}
public class TCValidateAfterAddInvalidSchema : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterAddInvalidSchema(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
private static string testData = Path.Combine(FilePathUtil.GetTestDataPath(), "XmlSchemaCollection");
[Theory]
[InlineData("SCHEMA", "schE1_a.xsd", 2, 3, 3)]
[InlineData("SCHEMA", "schE3.xsd", 1, 1, 0)]
[InlineData("SCHEMA", "schB8.xsd", 1, 1, 1)]
[InlineData("SCHEMA", "schB1_a.xsd", 1, 3, 3)]
[InlineData("SCHEMA", "schM2_a.xsd", 1, 3, 3)]
[InlineData("SCHEMA", "schH2_a.xsd", 1, 3, 3)]
public void AddValid_Import_Include_Redefine(string testDir, string testFile, int expCount, int expCountGT, int expCountGE)
{
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, 0, "Validation after add/comp");
foreach (XmlSchema sc in ss.Schemas())
ss.Reprocess(sc);
ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, 0, "Validation after repr/comp");
ValidateWithSchemaInfo(ss);
return;
}
[Theory]
[InlineData("SCHEMA", "schE9.xsd", 1, 1)]
[InlineData("SCHEMA", "schA7_a.xsd", 2, 2)]
public void AddEditInvalidImport(string testDir, string testFile, int expCountGT, int expCountGE)
{
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
ss.Add(Schema);
ValidateSchemaSet(ss, 1, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, 1, true, expCountGT, expCountGE, 0, "Validation after add/comp");
XmlSchemaImport imp = new XmlSchemaImport();
imp.Namespace = "ns-a";
imp.SchemaLocation = "reprocess_v9_a.xsd";
Schema.Includes.Add(imp);
try
{
ss.Reprocess(Schema);
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr");
try
{
ss.Compile();
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr/comp");
try
{
ValidateWithSchemaInfo(ss);
Assert.True(false);
}
catch (XmlSchemaValidationException e)
{
_output.WriteLine(e.Message);
}
return;
}
[Theory]
[InlineData("include_v7_a.xsd", 4, 7)]
[InlineData("include_v1_a.xsd", 3, 3)]
public void AddEditInvalidIncludeSchema(string testFile, int expCountGT, int expCountGE)
{
string xsd = Path.Combine(testData, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
XmlSchema Schema1 = ss.Add(Schema);
ValidateSchemaSet(ss, 1, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, 1, true, expCountGT, expCountGE, 0, "Validation after add/comp");
XmlSchemaInclude inc = new XmlSchemaInclude();
inc.SchemaLocation = "include_v2.xsd";
Schema1.Includes.Add(inc);
try
{
ss.Reprocess(Schema1);
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr");
try
{
ss.Compile();
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr/comp");
try
{
ValidateWithSchemaInfo(ss);
Assert.True(false);
}
catch (XmlSchemaValidationException e)
{
_output.WriteLine(e.Message);
}
return;
}
[Theory]
[InlineData("SCHEMA", "schH3.xsd")]
[InlineData("SCHEMA", "schF3_a.xsd")]
[InlineData("SCHEMA", "schE1i.xsd")]
[InlineData("SCHEMA", "schB4_a.xsd")]
[InlineData("SCHEMA", "schB1i.xsd")]
public void AddInvalid_Import_Include(string testDir, string testFile)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
XmlSchema Schema1 = null;
try
{
Schema1 = ss.Add(Schema);
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 0, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after add/comp");
ValidateWithSchemaInfo(ss);
XmlSchema Schema2 = null;
foreach (XmlSchema schema in ss.Schemas())
Schema2 = ss.Reprocess(schema);
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after repr");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after repr/comp");
foreach (XmlSchema schema in ss.Schemas())
ss.Reprocess(schema);
ValidateWithSchemaInfo(ss);
return;
}
}
public class TCXmlSchemaValidatorMisc : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCXmlSchemaValidatorMisc(ITestOutputHelper output) : base(output)
{
_output = output;
}
[Theory]
[InlineData(1)]
[InlineData(2)]
[InlineData(3)]
public void One_Two_Three_XmlSchemaValidatorWithNullParams(int param)
{
XmlSchemaValidator val = null;
try
{
switch (param)
{
case 1:
val = new XmlSchemaValidator(null, new XmlSchemaSet(), null, XmlSchemaValidationFlags.None);
break;
case 2:
val = new XmlSchemaValidator(new NameTable(), null, null, XmlSchemaValidationFlags.None);
break;
case 3:
val = new XmlSchemaValidator(new NameTable(), new XmlSchemaSet(), null, XmlSchemaValidationFlags.None);
break;
}
}
catch (ArgumentNullException e)
{
_output.WriteLine(e.Message);
return;
}
Assert.True(false);
}
//TFS_469828
[Fact]
public void XmlSchemaSetCompileAfterRemovingLastSchemaInTheSetIsNotClearingCachedCompiledInformationUsedForValidation_1()
{
string schemaXml = @"
<Schema:schema xmlns:Schema='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:test'
elementFormDefault='qualified'>
<Schema:element name='MyElement' type='Schema:int' />
</Schema:schema>";
string instanceXml = @"<MyElement xmlns='urn:test'>x100</MyElement>";
XmlSchemaSet ss = new XmlSchemaSet(new NameTable());
XmlSchema schema = XmlSchema.Read(new StringReader(schemaXml), null);
ss.Add(schema);
Assert.Equal(1, ss.Count);
ss.Compile();
Assert.Equal(1, ss.Count);
XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
try
{
while (xmlReader.Read()) ;
Assert.True(false);
}
catch (XmlSchemaValidationException e)
{
_output.WriteLine("before remove " + e.Message);
}
}
ss.Remove(schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
while (xmlReader.Read()) ;
}
return;
}
//TFS_469828
[Fact]
public void XmlSchemaSetCompileAfterRemovingLastSchemaInTheSetIsNotClearingCachedCompiledInformationUsedForValidation_2()
{
string schemaXml = @"<Schema:schema xmlns:Schema='http://www.w3.org/2001/XMLSchema' targetNamespace='uri1'>
<Schema:element name='doc' type='Schema:string'/>
</Schema:schema>";
string instanceXml = @"<doc xmlns='uri1'>some</doc>";
XmlSchemaSet ss = new XmlSchemaSet(new NameTable());
XmlSchema schema = XmlSchema.Read(new StringReader(schemaXml), null);
ss.Add(schema);
Assert.Equal(1, ss.Count);
ss.Compile();
Assert.Equal(1, ss.Count);
XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
while (xmlReader.Read()) ;
}
ss.Remove(schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
while (xmlReader.Read()) ;
}
return;
}
private string xsd = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='mainschema'
elementFormDefault='qualified'
xmlns='mainschema'
xmlns:s1='sub1'
xmlns:s2='sub2'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:import namespace='sub2' schemaLocation='subschema2.xsd'/>
<Schema:import namespace='sub1' schemaLocation='subschema1.xsd'/>
<Schema:element name='root'>
<Schema:complexType>
<Schema:all>
<Schema:element ref='s1:sub'/>
<Schema:element ref='s2:sub'/>
</Schema:all>
</Schema:complexType>
</Schema:element>
</Schema:schema>";
private string xml = @"<?xml version='1.0' encoding='utf-8'?>
<root xmlns='mainschema'>
<sub xmlns='sub2'>
<node1>text1</node1>
<node2>text2</node2>
</sub>
<sub xmlns='sub1'>
<node1>text1</node1>
<node2>text2</node2>
</sub>
</root>";
private static void CreateSchema1(string testDirectory)
{
string commonxsd = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema elementFormDefault='qualified'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:complexType name='CommonType'>
<Schema:all>
<Schema:element name='node1' type='Schema:string'/>
<Schema:element name='node2' type='Schema:string'/>
</Schema:all>
</Schema:complexType>
</Schema:schema>";
string sub1 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub1'
elementFormDefault='qualified'
xmlns='sub1'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
string sub2 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub2'
elementFormDefault='qualified'
xmlns='sub2'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "commonstructure.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(commonxsd)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema1.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub1)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema2.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub2)))
{
w.WriteNode(r, true);
}
}
}
private static void CreateSchema2(string testDirectory)
{
string sub1 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub1'
elementFormDefault='qualified'
xmlns='sub1'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure1.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
string sub2 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub2'
elementFormDefault='qualified'
xmlns='sub2'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure2.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
string commonxsd1 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema
elementFormDefault='qualified'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:complexType name='CommonType'>
<Schema:all>
<Schema:element name='node1' type='Schema:string'/>
<Schema:element name='node2' type='Schema:string'/>
</Schema:all>
</Schema:complexType>
</Schema:schema>";
string commonxsd2 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema
elementFormDefault='qualified'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:complexType name='CommonType'>
<Schema:all>
<Schema:element name='node1' type='Schema:string'/>
<Schema:element name='node2' type='Schema:string'/>
</Schema:all>
</Schema:complexType>
</Schema:schema>";
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "commonstructure1.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(commonxsd1)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "commonstructure2.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(commonxsd2)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema1.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub1)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema2.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub2)))
{
w.WriteNode(r, true);
}
}
}
[Fact]
public void XSDValidationGeneratesInvalidError_1()
{
using (var tempDirectory = new TempDirectory())
{
Initialize();
CreateSchema1(tempDirectory.Path);
XmlReaderSettings settings = new XmlReaderSettings();
settings.XmlResolver = new XmlUrlResolver();
settings.Schemas.XmlResolver = new XmlUrlResolver();
// TempDirectory path must end with a DirectorySeratorChar, otherwise it will throw in the Xml validation.
settings.Schemas.Add("mainschema", XmlReader.Create(new StringReader(xsd), null, EnsureTrailingSlash(tempDirectory.Path)));
settings.ValidationType = ValidationType.Schema;
XmlReader reader = XmlReader.Create(new StringReader(xml), settings);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
ValidationEventHandler valEventHandler = new ValidationEventHandler(ValidationCallback);
doc.Validate(valEventHandler);
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
}
}
[Fact]
public void XSDValidationGeneratesInvalidError_2()
{
using (var tempDirectory = new TempDirectory())
{
Initialize();
CreateSchema2(tempDirectory.Path);
XmlReaderSettings settings = new XmlReaderSettings();
settings.XmlResolver = new XmlUrlResolver();
settings.Schemas.XmlResolver = new XmlUrlResolver();
// TempDirectory path must end with a DirectorySeratorChar, otherwise it will throw in the Xml validation.
settings.Schemas.Add("mainschema", XmlReader.Create(new StringReader(xsd), null, EnsureTrailingSlash(tempDirectory.Path)));
settings.ValidationType = ValidationType.Schema;
XmlReader reader = XmlReader.Create(new StringReader(xml), settings);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
ValidationEventHandler valEventHandler = new ValidationEventHandler(ValidationCallback);
doc.Validate(valEventHandler);
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
}
}
private string EnsureTrailingSlash(string path)
{
if (string.IsNullOrEmpty(path))
throw new ArgumentException();
return path[path.Length - 1] == Path.DirectorySeparatorChar ?
path :
path + Path.DirectorySeparatorChar;
}
private static string xsd445844 = @"<?xml version='1.0' encoding='utf-8' ?>
<xs:schema xmlns:mstns='http://tempuri.org/XMLSchema.xsd' elementFormDefault='qualified' targetNamespace='http://tempuri.org/XMLSchema.xsd' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:complexType name='a'>
<xs:simpleContent>
<xs:extension base='xs:boolean' />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='b'>
<xs:complexContent mixed='false'>
<xs:extension base='mstns:a' />
</xs:complexContent>
</xs:complexType>
<xs:element name='c'>
<xs:complexType>
<xs:all>
<xs:element name='d' type='mstns:a' />
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>";
private static string xml445844 = @"<?xml version='1.0' encoding='utf-8'?>
<tns:c xmlns:tns='http://tempuri.org/XMLSchema.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://tempuri.org/XMLSchema.xsd'>
<tns:d xsi:type='tns:b'>true</tns:d>
</tns:c>";
//TFS_445844, bug445844
[Fact]
public void NullPointerExceptionInXSDValidation()
{
Initialize();
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(new StringReader(xsd445844)), ValidationCallback);
ss.Add(Schema);
ss.Compile();
XmlReaderSettings rs = new XmlReaderSettings();
rs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
rs.ValidationType = ValidationType.Schema;
rs.Schemas.Add("http://tempuri.org/XMLSchema.xsd", XmlReader.Create(new StringReader(xsd445844)));
using (XmlReader r = XmlReader.Create(new StringReader(xml445844), rs))
{
while (r.Read()) ;
}
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
return;
}
private static string xsd696909 = @"<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='Foo' type='FooType' />
<xs:element name='Bar' type='BarType' />
<xs:complexType name='FooType'>
<xs:attribute name='name' type='xs:string' use='optional'/>
</xs:complexType>
<xs:complexType name='BarType'>
<xs:complexContent>
<xs:extension base='FooType'>
<xs:attribute name='name' type='xs:string' use='required'/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>";
//TFS_696909, bug696909
[Fact]
public void RedefiningAttributeDoesNotResultInXmlSchemaExceptionWhenDerivingByExtension()
{
Initialize();
XmlSchema schema = XmlSchema.Read(new StringReader(xsd696909), ValidationCallback);
XmlSchemaSet xss = new XmlSchemaSet();
xss.Add(schema);
xss.Compile();
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
return;
}
private static string xsd661328 = @"<?xml version='1.0' encoding='utf-8' ?>
<xs:schema elementFormDefault='qualified' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='NoContentPatternTest'>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs='0' maxOccurs='unbounded' name='Collapse'>
<xs:simpleType>
<xs:restriction base='xs:string'>
<xs:whiteSpace value='collapse' />
<xs:pattern value='' />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>";
private static string xml661328 = @"<?xml version='1.0' encoding='utf-8'?>
<NoContentPatternTest xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='NoContentPattern.xsd'>
<Collapse></Collapse>
<Collapse> </Collapse>
<Collapse>
</Collapse>
</NoContentPatternTest>";
//TFS_661328, bug661328
[Fact]
public void WhitespaceCollapseFacetNotDealtWithCorrectly()
{
Initialize();
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(new StringReader(xsd661328)), ValidationCallback);
ss.Add(Schema);
ss.Compile();
XmlReaderSettings rs = new XmlReaderSettings();
rs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
rs.ValidationType = ValidationType.Schema;
rs.Schemas.Add(null, XmlReader.Create(new StringReader(xsd661328)));
using (XmlReader r = XmlReader.Create(new StringReader(xml661328), rs))
{
while (r.Read()) ;
}
Assert.Equal(0, warningCount);
Assert.Equal(2, errorCount);
return;
}
//TFS_722809, bug722809
[Fact]
public void SchemaPatternFacetHandlesRegularExpressionsWrong()
{
Initialize();
string schemaContent = @"<xs:schema elementFormDefault='qualified' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='validationTest'>
<xs:simpleType>
<xs:restriction base='xs:string'><xs:pattern value='^\w+$' /></xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>";
XmlReaderSettings rs = new XmlReaderSettings();
rs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
rs.ValidationType = ValidationType.Schema;
rs.Schemas.Add(null, XmlReader.Create(new StringReader(schemaContent)));
using (XmlReader r = XmlReader.Create(new StringReader("<validationTest>test_test</validationTest>"), rs))
{
while (r.Read()) ;
}
Assert.Equal(0, warningCount);
Assert.Equal(1, errorCount);
return;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.IO;
using System.Text.RegularExpressions;
using System.Xml.Schema;
using Xunit;
using Xunit.Abstractions;
namespace System.Xml.Tests
{
public class TCValidateAfterAdd : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterAdd(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
[Theory]
[InlineData("attributeGroup", "attgC007.xsd", 1, 1, 1, 2)]
[InlineData("attributeGroup", "attgC024.xsd", 2, 3, 2, 0)]
[InlineData("attributeGroup", "attgC026.xsd", 1, 4, 1, 0)]
[InlineData("complexType", "ctA001.xsd", 1, 2, 1, 0)]
[InlineData("complexType", "ctA002.xsd", 1, 3, 1, 0)]
[InlineData("complexType", "ctA003.xsd", 1, 3, 1, 0)]
[InlineData("PARTICLES", "particlesA006.xsd", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA002.xsd", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA007.xsd", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA010.xsd", 1, 2, 1, 0)]
[InlineData("simpleType", "bug102159_1.xsd", 1, 2, 3, 0)]
[InlineData("simpleType", "stE064.xsd", 1, 1, 1, 0)]
[InlineData("Wildcards", "wildG007.xsd", 1, 1, 2, 0)]
[InlineData("Wildcards", "wildG010.xsd", 3, 1, 5, 0)]
public void v1(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithSchemaInfo(ss);
foreach (XmlSchema schema in ss.Schemas())
ss.Reprocess(schema);
ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after repr/comp");
ValidateWithSchemaInfo(ss);
Assert.True(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, 0, false, 1, 0, 0, "Validation after remRec");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after remRec/comp");
ValidateWithSchemaInfo(ss);
return;
}
[Theory]
[InlineData("attributeGroup", "attgC007", 1, 1, 1, 2)]
[InlineData("attributeGroup", "attgC024", 2, 3, 2, 0)]
[InlineData("attributeGroup", "attgC026", 1, 4, 1, 0)]
[InlineData("complexType", "ctA001", 1, 2, 1, 0)]
[InlineData("complexType", "ctA002", 1, 3, 1, 0)]
[InlineData("complexType", "ctA003", 1, 3, 1, 0)]
[InlineData("PARTICLES", "particlesA006", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA002", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA007", 1, 2, 1, 0)]
[InlineData("PARTICLES", "particlesA010", 1, 2, 1, 0)]
[InlineData("simpleType", "bug102159_1", 1, 2, 3, 0)]
[InlineData("simpleType", "stE064", 1, 1, 1, 0)]
[InlineData("Wildcards", "wildG007", 1, 1, 2, 0)]
[InlineData("Wildcards", "wildG010", 3, 1, 5, 0)]
public void v2(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile + ".xsd");
string xml = Path.Combine(path, testDir, testFile + ".xml");
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithXmlReader(ss, xml, xsd);
XmlSchema Schema2 = null;
foreach (XmlSchema schema in ss.Schemas())
Schema2 = ss.Reprocess(schema);
ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after repr/comp");
ValidateWithXmlReader(ss, xml, xsd);
Assert.True(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, 0, false, 1, 0, 0, "Validation after remRec");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
return;
}
}
public class TCValidateAfterRemove : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterRemove(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
[Theory]
[InlineData("attributeGroup", "attgC007.xsd", 1, 1, 1, 2, 0, 0)]
[InlineData("attributeGroup", "attgC024.xsd", 2, 3, 2, 0, 1, 1)]
[InlineData("attributeGroup", "attgC026.xsd", 1, 4, 1, 0, 0, 0)]
[InlineData("complexType", "ctA001.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("complexType", "ctA002.xsd", 1, 3, 1, 0, 0, 0)]
[InlineData("complexType", "ctA003.xsd", 1, 3, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA006.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA002.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA007.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA010.xsd", 1, 2, 1, 0, 0, 0)]
[InlineData("simpleType", "bug102159_1.xsd", 1, 2, 3, 0, 0, 0)]
[InlineData("simpleType", "stE064.xsd", 1, 1, 1, 0, 0, 0)]
[InlineData("Wildcards", "wildG007.xsd", 1, 1, 2, 0, 0, 0)]
[InlineData("Wildcards", "wildG010.xsd", 3, 1, 5, 0, 3, 1)]
public void v1(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA, int expCountGER, int expCountGERC)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithSchemaInfo(ss);
ss.Remove(Schema);
ValidateSchemaSet(ss, expCount - 1, false, 1, expCountGER, 0, "Validation after remove");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after rem/comp");
ValidateWithSchemaInfo(ss);
XmlSchema Schema2 = null;
try
{
Schema2 = ss.Reprocess(Schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after repr");
ValidateWithSchemaInfo(ss);
Assert.False(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after add");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after remRec/comp");
ValidateWithSchemaInfo(ss);
return;
}
[Theory]
[InlineData("attributeGroup", "attgC007", 1, 1, 1, 2, 0, 0)]
[InlineData("attributeGroup", "attgC024", 2, 3, 2, 0, 1, 1)]
[InlineData("attributeGroup", "attgC026", 1, 4, 1, 0, 0, 0)]
[InlineData("complexType", "ctA001", 1, 2, 1, 0, 0, 0)]
[InlineData("complexType", "ctA002", 1, 3, 1, 0, 0, 0)]
[InlineData("complexType", "ctA003", 1, 3, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA006", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA002", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA007", 1, 2, 1, 0, 0, 0)]
[InlineData("PARTICLES", "particlesA010", 1, 2, 1, 0, 0, 0)]
[InlineData("simpleType", "bug102159_1", 1, 2, 3, 0, 0, 0)]
[InlineData("simpleType", "stE064", 1, 1, 1, 0, 0, 0)]
[InlineData("Wildcards", "wildG007", 1, 1, 2, 0, 0, 0)]
[InlineData("Wildcards", "wildG010", 3, 1, 5, 0, 3, 1)]
public void v2(string testDir, string testFile, int expCount, int expCountGT, int expCountGE, int expCountGA, int expCountGER, int expCountGERC)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile + ".xsd");
string xml = Path.Combine(path, testDir, testFile + ".xml");
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, expCountGA, "Validation after add/comp");
ValidateWithXmlReader(ss, xml, xsd);
ss.Remove(Schema);
ValidateSchemaSet(ss, expCount - 1, false, 1, expCountGER, 0, "Validation after rem");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after add");
ValidateWithXmlReader(ss, xml, xsd);
try
{
ss.Reprocess(Schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after repr");
ValidateWithXmlReader(ss, xml, xsd);
Assert.False(ss.RemoveRecursive(Schema));
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after remRec");
ValidateWithXmlReader(ss, xml, xsd);
ss.Compile();
ValidateSchemaSet(ss, expCount - 1, true, expCountGERC, expCountGER, 0, "Validation after remRec/comp");
ValidateWithXmlReader(ss, xml, xsd);
return;
}
}
public class TCValidateAfterReprocess : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterReprocess(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
[Theory]
[InlineData("attributeGroup", "attgC007.xsd", 1)]
[InlineData("attributeGroup", "attgC024.xsd", 2)]
[InlineData("attributeGroup", "attgC026.xsd", 1)]
[InlineData("complexType", "ctA001.xsd", 1)]
[InlineData("complexType", "ctA002.xsd", 1)]
[InlineData("complexType", "ctA003.xsd", 1)]
[InlineData("simpleType", "bug102159_1.xsd", 1)]
[InlineData("simpleType", "stE064.xsd", 1)]
[InlineData("Wildcards", "wildG007.xsd", 1)]
[InlineData("Wildcards", "wildG010.xsd", 3)]
public void v1(string testDir, string TestFile, int expCount)
{
Initialize();
string xsd = Path.Combine(path, testDir, TestFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
ss.XmlResolver = new XmlUrlResolver();
XmlSchema schema = ss.Add(Schema);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
XmlSchemaElement element = new XmlSchemaElement();
schema.Items.Add(element);
element.Name = "book";
element.SchemaTypeName = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema");
foreach (XmlSchema sc in ss.Schemas())
ss.Reprocess(sc);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ValidateWithSchemaInfo(ss);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ss.RemoveRecursive(Schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
try
{
ss.Reprocess(Schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
Assert.Equal(0, ss.Count);
}
return;
}
[Theory]
[InlineData("attributeGroup", "attgC007", 1)]
[InlineData("attributeGroup", "attgC024", 2)]
[InlineData("attributeGroup", "attgC026", 1)]
[InlineData("complexType", "ctA001", 1)]
[InlineData("complexType", "ctA002", 1)]
[InlineData("complexType", "ctA003", 1)]
[InlineData("PARTICLES", "particlesA006", 1)]
[InlineData("PARTICLES", "particlesA002", 1)]
[InlineData("PARTICLES", "particlesA007", 1)]
[InlineData("PARTICLES", "particlesA010", 1)]
[InlineData("simpleType", "bug102159_1", 1)]
[InlineData("simpleType", "stE064", 1)]
[InlineData("Wildcards", "wildG007", 1)]
[InlineData("Wildcards", "wildG010", 3)]
public void v2(string testDir, string testFile, int expCount)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile + ".xsd");
string xml = Path.Combine(path, testDir, testFile + ".xml");
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema schema = ss.Add(null, XmlReader.Create(xsd));
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
XmlSchemaElement element = new XmlSchemaElement();
schema.Items.Add(element);
element.Name = "book";
element.SchemaTypeName = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema");
foreach (XmlSchema sc in ss.Schemas())
ss.Reprocess(sc);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ValidateWithXmlReader(ss, xml, xsd);
Assert.Equal(ss.Count, expCount);
ss.Compile();
Assert.Equal(ss.Count, expCount);
ss.RemoveRecursive(schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
try
{
ss.Reprocess(schema);
Assert.True(false);
}
catch (ArgumentException e)
{
_output.WriteLine(e.Message);
Assert.Equal(0, ss.Count);
}
return;
}
}
public class TCValidateAfterAddInvalidSchema : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCValidateAfterAddInvalidSchema(ITestOutputHelper output) : base(output)
{
_output = output;
}
private static string path = Path.Combine(FilePathUtil.GetStandardPath(), "xsd10");
private static string testData = Path.Combine(FilePathUtil.GetTestDataPath(), "XmlSchemaCollection");
[Theory]
[InlineData("SCHEMA", "schE1_a.xsd", 2, 3, 3)]
[InlineData("SCHEMA", "schE3.xsd", 1, 1, 0)]
[InlineData("SCHEMA", "schB8.xsd", 1, 1, 1)]
[InlineData("SCHEMA", "schB1_a.xsd", 1, 3, 3)]
[InlineData("SCHEMA", "schM2_a.xsd", 1, 3, 3)]
[InlineData("SCHEMA", "schH2_a.xsd", 1, 3, 3)]
public void AddValid_Import_Include_Redefine(string testDir, string testFile, int expCount, int expCountGT, int expCountGE)
{
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
ss.Add(Schema);
ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, 0, "Validation after add/comp");
foreach (XmlSchema sc in ss.Schemas())
ss.Reprocess(sc);
ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");
ss.Compile();
ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, 0, "Validation after repr/comp");
ValidateWithSchemaInfo(ss);
return;
}
[Theory]
[InlineData("SCHEMA", "schE9.xsd", 1, 1)]
[InlineData("SCHEMA", "schA7_a.xsd", 2, 2)]
public void AddEditInvalidImport(string testDir, string testFile, int expCountGT, int expCountGE)
{
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
ss.Add(Schema);
ValidateSchemaSet(ss, 1, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, 1, true, expCountGT, expCountGE, 0, "Validation after add/comp");
XmlSchemaImport imp = new XmlSchemaImport();
imp.Namespace = "ns-a";
imp.SchemaLocation = "reprocess_v9_a.xsd";
Schema.Includes.Add(imp);
try
{
ss.Reprocess(Schema);
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr");
try
{
ss.Compile();
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr/comp");
try
{
ValidateWithSchemaInfo(ss);
Assert.True(false);
}
catch (XmlSchemaValidationException e)
{
_output.WriteLine(e.Message);
}
return;
}
[Theory]
[InlineData("include_v7_a.xsd", 4, 7)]
[InlineData("include_v1_a.xsd", 3, 3)]
public void AddEditInvalidIncludeSchema(string testFile, int expCountGT, int expCountGE)
{
string xsd = Path.Combine(testData, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
XmlSchema Schema1 = ss.Add(Schema);
ValidateSchemaSet(ss, 1, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, 1, true, expCountGT, expCountGE, 0, "Validation after add/comp");
XmlSchemaInclude inc = new XmlSchemaInclude();
inc.SchemaLocation = "include_v2.xsd";
Schema1.Includes.Add(inc);
try
{
ss.Reprocess(Schema1);
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr");
try
{
ss.Compile();
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 1, false, 1, 0, 0, "Validation after repr/comp");
try
{
ValidateWithSchemaInfo(ss);
Assert.True(false);
}
catch (XmlSchemaValidationException e)
{
_output.WriteLine(e.Message);
}
return;
}
[Theory]
[InlineData("SCHEMA", "schH3.xsd")]
[InlineData("SCHEMA", "schF3_a.xsd")]
[InlineData("SCHEMA", "schE1i.xsd")]
[InlineData("SCHEMA", "schB4_a.xsd")]
[InlineData("SCHEMA", "schB1i.xsd")]
public void AddInvalid_Import_Include(string testDir, string testFile)
{
Initialize();
string xsd = Path.Combine(path, testDir, testFile);
XmlSchemaSet ss = new XmlSchemaSet();
ss.XmlResolver = new XmlUrlResolver();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), ValidationCallback);
XmlSchema Schema1 = null;
try
{
Schema1 = ss.Add(Schema);
Assert.True(false);
}
catch (XmlSchemaException e)
{
_output.WriteLine(e.Message);
}
ValidateSchemaSet(ss, 0, false, 0, 0, 0, "Validation after add");
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after add/comp");
ValidateWithSchemaInfo(ss);
XmlSchema Schema2 = null;
foreach (XmlSchema schema in ss.Schemas())
Schema2 = ss.Reprocess(schema);
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after repr");
ValidateWithSchemaInfo(ss);
ss.Compile();
ValidateSchemaSet(ss, 0, true, 0, 0, 0, "Validation after repr/comp");
foreach (XmlSchema schema in ss.Schemas())
ss.Reprocess(schema);
ValidateWithSchemaInfo(ss);
return;
}
}
public class TCXmlSchemaValidatorMisc : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
public TCXmlSchemaValidatorMisc(ITestOutputHelper output) : base(output)
{
_output = output;
}
[Theory]
[InlineData(1)]
[InlineData(2)]
[InlineData(3)]
public void One_Two_Three_XmlSchemaValidatorWithNullParams(int param)
{
XmlSchemaValidator val = null;
try
{
switch (param)
{
case 1:
val = new XmlSchemaValidator(null, new XmlSchemaSet(), null, XmlSchemaValidationFlags.None);
break;
case 2:
val = new XmlSchemaValidator(new NameTable(), null, null, XmlSchemaValidationFlags.None);
break;
case 3:
val = new XmlSchemaValidator(new NameTable(), new XmlSchemaSet(), null, XmlSchemaValidationFlags.None);
break;
}
}
catch (ArgumentNullException e)
{
_output.WriteLine(e.Message);
return;
}
Assert.True(false);
}
//TFS_469828
[Fact]
public void XmlSchemaSetCompileAfterRemovingLastSchemaInTheSetIsNotClearingCachedCompiledInformationUsedForValidation_1()
{
string schemaXml = @"
<Schema:schema xmlns:Schema='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:test'
elementFormDefault='qualified'>
<Schema:element name='MyElement' type='Schema:int' />
</Schema:schema>";
string instanceXml = @"<MyElement xmlns='urn:test'>x100</MyElement>";
XmlSchemaSet ss = new XmlSchemaSet(new NameTable());
XmlSchema schema = XmlSchema.Read(new StringReader(schemaXml), null);
ss.Add(schema);
Assert.Equal(1, ss.Count);
ss.Compile();
Assert.Equal(1, ss.Count);
XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
try
{
while (xmlReader.Read()) ;
Assert.True(false);
}
catch (XmlSchemaValidationException e)
{
_output.WriteLine("before remove " + e.Message);
}
}
ss.Remove(schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
while (xmlReader.Read()) ;
}
return;
}
//TFS_469828
[Fact]
public void XmlSchemaSetCompileAfterRemovingLastSchemaInTheSetIsNotClearingCachedCompiledInformationUsedForValidation_2()
{
string schemaXml = @"<Schema:schema xmlns:Schema='http://www.w3.org/2001/XMLSchema' targetNamespace='uri1'>
<Schema:element name='doc' type='Schema:string'/>
</Schema:schema>";
string instanceXml = @"<doc xmlns='uri1'>some</doc>";
XmlSchemaSet ss = new XmlSchemaSet(new NameTable());
XmlSchema schema = XmlSchema.Read(new StringReader(schemaXml), null);
ss.Add(schema);
Assert.Equal(1, ss.Count);
ss.Compile();
Assert.Equal(1, ss.Count);
XmlReaderSettings settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
while (xmlReader.Read()) ;
}
ss.Remove(schema);
Assert.Equal(0, ss.Count);
ss.Compile();
Assert.Equal(0, ss.Count);
settings = new XmlReaderSettings();
settings.Schemas = ss;
settings.ValidationType = ValidationType.Schema;
using (XmlReader xmlReader = XmlReader.Create(new StringReader(instanceXml), settings))
{
while (xmlReader.Read()) ;
}
return;
}
private string xsd = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='mainschema'
elementFormDefault='qualified'
xmlns='mainschema'
xmlns:s1='sub1'
xmlns:s2='sub2'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:import namespace='sub2' schemaLocation='subschema2.xsd'/>
<Schema:import namespace='sub1' schemaLocation='subschema1.xsd'/>
<Schema:element name='root'>
<Schema:complexType>
<Schema:all>
<Schema:element ref='s1:sub'/>
<Schema:element ref='s2:sub'/>
</Schema:all>
</Schema:complexType>
</Schema:element>
</Schema:schema>";
private string xml = @"<?xml version='1.0' encoding='utf-8'?>
<root xmlns='mainschema'>
<sub xmlns='sub2'>
<node1>text1</node1>
<node2>text2</node2>
</sub>
<sub xmlns='sub1'>
<node1>text1</node1>
<node2>text2</node2>
</sub>
</root>";
private static void CreateSchema1(string testDirectory)
{
string commonxsd = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema elementFormDefault='qualified'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:complexType name='CommonType'>
<Schema:all>
<Schema:element name='node1' type='Schema:string'/>
<Schema:element name='node2' type='Schema:string'/>
</Schema:all>
</Schema:complexType>
</Schema:schema>";
string sub1 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub1'
elementFormDefault='qualified'
xmlns='sub1'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
string sub2 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub2'
elementFormDefault='qualified'
xmlns='sub2'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "commonstructure.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(commonxsd)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema1.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub1)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema2.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub2)))
{
w.WriteNode(r, true);
}
}
}
private static void CreateSchema2(string testDirectory)
{
string sub1 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub1'
elementFormDefault='qualified'
xmlns='sub1'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure1.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
string sub2 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema targetNamespace='sub2'
elementFormDefault='qualified'
xmlns='sub2'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:include schemaLocation='commonstructure2.xsd'/>
<Schema:element name='sub' type='CommonType'/>
</Schema:schema>";
string commonxsd1 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema
elementFormDefault='qualified'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:complexType name='CommonType'>
<Schema:all>
<Schema:element name='node1' type='Schema:string'/>
<Schema:element name='node2' type='Schema:string'/>
</Schema:all>
</Schema:complexType>
</Schema:schema>";
string commonxsd2 = @"<?xml version='1.0' encoding='utf-8'?>
<Schema:schema
elementFormDefault='qualified'
xmlns:Schema='http://www.w3.org/2001/XMLSchema'>
<Schema:complexType name='CommonType'>
<Schema:all>
<Schema:element name='node1' type='Schema:string'/>
<Schema:element name='node2' type='Schema:string'/>
</Schema:all>
</Schema:complexType>
</Schema:schema>";
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "commonstructure1.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(commonxsd1)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "commonstructure2.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(commonxsd2)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema1.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub1)))
{
w.WriteNode(r, true);
}
}
using (XmlWriter w = XmlWriter.Create(Path.Combine(testDirectory, "subschema2.xsd")))
{
using (XmlReader r = XmlReader.Create(new StringReader(sub2)))
{
w.WriteNode(r, true);
}
}
}
[Fact]
public void XSDValidationGeneratesInvalidError_1()
{
using (var tempDirectory = new TempDirectory())
{
Initialize();
CreateSchema1(tempDirectory.Path);
XmlReaderSettings settings = new XmlReaderSettings();
settings.XmlResolver = new XmlUrlResolver();
settings.Schemas.XmlResolver = new XmlUrlResolver();
// TempDirectory path must end with a DirectorySeratorChar, otherwise it will throw in the Xml validation.
settings.Schemas.Add("mainschema", XmlReader.Create(new StringReader(xsd), null, EnsureTrailingSlash(tempDirectory.Path)));
settings.ValidationType = ValidationType.Schema;
XmlReader reader = XmlReader.Create(new StringReader(xml), settings);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
ValidationEventHandler valEventHandler = new ValidationEventHandler(ValidationCallback);
doc.Validate(valEventHandler);
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
}
}
[Fact]
public void XSDValidationGeneratesInvalidError_2()
{
using (var tempDirectory = new TempDirectory())
{
Initialize();
CreateSchema2(tempDirectory.Path);
XmlReaderSettings settings = new XmlReaderSettings();
settings.XmlResolver = new XmlUrlResolver();
settings.Schemas.XmlResolver = new XmlUrlResolver();
// TempDirectory path must end with a DirectorySeratorChar, otherwise it will throw in the Xml validation.
settings.Schemas.Add("mainschema", XmlReader.Create(new StringReader(xsd), null, EnsureTrailingSlash(tempDirectory.Path)));
settings.ValidationType = ValidationType.Schema;
XmlReader reader = XmlReader.Create(new StringReader(xml), settings);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
ValidationEventHandler valEventHandler = new ValidationEventHandler(ValidationCallback);
doc.Validate(valEventHandler);
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
}
}
private string EnsureTrailingSlash(string path)
{
if (string.IsNullOrEmpty(path))
throw new ArgumentException();
return path[path.Length - 1] == Path.DirectorySeparatorChar ?
path :
path + Path.DirectorySeparatorChar;
}
private static string xsd445844 = @"<?xml version='1.0' encoding='utf-8' ?>
<xs:schema xmlns:mstns='http://tempuri.org/XMLSchema.xsd' elementFormDefault='qualified' targetNamespace='http://tempuri.org/XMLSchema.xsd' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:complexType name='a'>
<xs:simpleContent>
<xs:extension base='xs:boolean' />
</xs:simpleContent>
</xs:complexType>
<xs:complexType name='b'>
<xs:complexContent mixed='false'>
<xs:extension base='mstns:a' />
</xs:complexContent>
</xs:complexType>
<xs:element name='c'>
<xs:complexType>
<xs:all>
<xs:element name='d' type='mstns:a' />
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>";
private static string xml445844 = @"<?xml version='1.0' encoding='utf-8'?>
<tns:c xmlns:tns='http://tempuri.org/XMLSchema.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://tempuri.org/XMLSchema.xsd'>
<tns:d xsi:type='tns:b'>true</tns:d>
</tns:c>";
//TFS_445844, bug445844
[Fact]
public void NullPointerExceptionInXSDValidation()
{
Initialize();
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(new StringReader(xsd445844)), ValidationCallback);
ss.Add(Schema);
ss.Compile();
XmlReaderSettings rs = new XmlReaderSettings();
rs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
rs.ValidationType = ValidationType.Schema;
rs.Schemas.Add("http://tempuri.org/XMLSchema.xsd", XmlReader.Create(new StringReader(xsd445844)));
using (XmlReader r = XmlReader.Create(new StringReader(xml445844), rs))
{
while (r.Read()) ;
}
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
return;
}
private static string xsd696909 = @"<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='Foo' type='FooType' />
<xs:element name='Bar' type='BarType' />
<xs:complexType name='FooType'>
<xs:attribute name='name' type='xs:string' use='optional'/>
</xs:complexType>
<xs:complexType name='BarType'>
<xs:complexContent>
<xs:extension base='FooType'>
<xs:attribute name='name' type='xs:string' use='required'/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>";
//TFS_696909, bug696909
[Fact]
public void RedefiningAttributeDoesNotResultInXmlSchemaExceptionWhenDerivingByExtension()
{
Initialize();
XmlSchema schema = XmlSchema.Read(new StringReader(xsd696909), ValidationCallback);
XmlSchemaSet xss = new XmlSchemaSet();
xss.Add(schema);
xss.Compile();
Assert.Equal(0, warningCount);
Assert.Equal(0, errorCount);
return;
}
private static string xsd661328 = @"<?xml version='1.0' encoding='utf-8' ?>
<xs:schema elementFormDefault='qualified' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='NoContentPatternTest'>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs='0' maxOccurs='unbounded' name='Collapse'>
<xs:simpleType>
<xs:restriction base='xs:string'>
<xs:whiteSpace value='collapse' />
<xs:pattern value='' />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>";
private static string xml661328 = @"<?xml version='1.0' encoding='utf-8'?>
<NoContentPatternTest xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='NoContentPattern.xsd'>
<Collapse></Collapse>
<Collapse> </Collapse>
<Collapse>
</Collapse>
</NoContentPatternTest>";
//TFS_661328, bug661328
[Fact]
public void WhitespaceCollapseFacetNotDealtWithCorrectly()
{
Initialize();
XmlSchemaSet ss = new XmlSchemaSet();
XmlSchema Schema = XmlSchema.Read(XmlReader.Create(new StringReader(xsd661328)), ValidationCallback);
ss.Add(Schema);
ss.Compile();
XmlReaderSettings rs = new XmlReaderSettings();
rs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
rs.ValidationType = ValidationType.Schema;
rs.Schemas.Add(null, XmlReader.Create(new StringReader(xsd661328)));
using (XmlReader r = XmlReader.Create(new StringReader(xml661328), rs))
{
while (r.Read()) ;
}
Assert.Equal(0, warningCount);
Assert.Equal(2, errorCount);
return;
}
//TFS_722809, bug722809
[Fact]
public void SchemaPatternFacetHandlesRegularExpressionsWrong()
{
Initialize();
string schemaContent = @"<xs:schema elementFormDefault='qualified' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:element name='validationTest'>
<xs:simpleType>
<xs:restriction base='xs:string'><xs:pattern value='^\w+$' /></xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>";
XmlReaderSettings rs = new XmlReaderSettings();
rs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
rs.ValidationType = ValidationType.Schema;
rs.Schemas.Add(null, XmlReader.Create(new StringReader(schemaContent)));
using (XmlReader r = XmlReader.Create(new StringReader("<validationTest>test_test</validationTest>"), rs))
{
while (r.Read()) ;
}
Assert.Equal(0, warningCount);
Assert.Equal(1, errorCount);
return;
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/Regression/VS-ia64-JIT/V2.0-Beta2/b360587/b360587.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="repro.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Compile Include="repro.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/Regression/JitBlue/GitHub_18522/GitHub_18522_8.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.CompilerServices;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
// Seed: 11049252875418439527
// Reduced from 97.5 KiB to 0.5 KiB
// Debug: Outputs -1
// Release: Outputs -65536
// Similar to other variants but using an empty (~ 1 byte) struct
// (which oddly enough currently is returned by ref)
struct S0
{
}
struct S1
{
public S0 F3;
public sbyte F4;
public short F0;
public S1(sbyte f4): this()
{
F4 = f4;
}
}
public class GitHub_18522_8
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
public static int Main()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
// inadvertently overwriting the F4 field of s_13[0] on return
// from the call.
//
// Here we make sure we properly handle the failed inline case.
s_13[0].F3 = M16();
return s_13[0].F4 == -1 ? 100 : 0;
}
static S0 M16()
{
// This bit of code is intended to allow M16 to be an
// inline candidate that ultimately does not get inlined.
short x = 0;
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
x++;
}
}
s_6.F0 = x;
return s_6.F3;
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.CompilerServices;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
// Seed: 11049252875418439527
// Reduced from 97.5 KiB to 0.5 KiB
// Debug: Outputs -1
// Release: Outputs -65536
// Similar to other variants but using an empty (~ 1 byte) struct
// (which oddly enough currently is returned by ref)
struct S0
{
}
struct S1
{
public S0 F3;
public sbyte F4;
public short F0;
public S1(sbyte f4): this()
{
F4 = f4;
}
}
public class GitHub_18522_8
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
public static int Main()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
// inadvertently overwriting the F4 field of s_13[0] on return
// from the call.
//
// Here we make sure we properly handle the failed inline case.
s_13[0].F3 = M16();
return s_13[0].F4 == -1 ? 100 : 0;
}
static S0 M16()
{
// This bit of code is intended to allow M16 to be an
// inline candidate that ultimately does not get inlined.
short x = 0;
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
x++;
}
}
s_6.F0 = x;
return s_6.F3;
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/Generics/Fields/static_assignment_class01.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
using System;
public struct ValX0 { }
public struct ValY0 { }
public struct ValX1<T> { }
public struct ValY1<T> { }
public struct ValX2<T, U> { }
public struct ValY2<T, U> { }
public struct ValX3<T, U, V> { }
public struct ValY3<T, U, V> { }
public class RefX0 { }
public class RefY0 { }
public class RefX1<T> { }
public class RefY1<T> { }
public class RefX2<T, U> { }
public class RefY2<T, U> { }
public class RefX3<T, U, V> { }
public class RefY3<T, U, V> { }
public class Gen<T>
{
public static T Fld1;
public T Assign(T t)
{
Fld1 = t;
return Fld1;
}
}
public class Test_static_assignment_class01
{
public static int counter = 0;
public static bool result = true;
public static void Eval(bool exp)
{
counter++;
if (!exp)
{
result = exp;
Console.WriteLine("Test Failed at location: " + counter);
}
}
public static int Main()
{
int _int = 1;
Eval(new Gen<int>().Assign(_int).Equals(_int));
double _double = 1;
Eval(new Gen<double>().Assign(_double).Equals(_double));
string _string = "string";
Eval(new Gen<string>().Assign(_string).Equals(_string));
object _object = new object();
Eval(new Gen<object>().Assign(_object).Equals(_object));
Guid _Guid = new Guid(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Eval(new Gen<Guid>().Assign(_Guid).Equals(_Guid));
if (result)
{
Console.WriteLine("Test Passed");
return 100;
}
else
{
Console.WriteLine("Test Failed");
return 1;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
using System;
public struct ValX0 { }
public struct ValY0 { }
public struct ValX1<T> { }
public struct ValY1<T> { }
public struct ValX2<T, U> { }
public struct ValY2<T, U> { }
public struct ValX3<T, U, V> { }
public struct ValY3<T, U, V> { }
public class RefX0 { }
public class RefY0 { }
public class RefX1<T> { }
public class RefY1<T> { }
public class RefX2<T, U> { }
public class RefY2<T, U> { }
public class RefX3<T, U, V> { }
public class RefY3<T, U, V> { }
public class Gen<T>
{
public static T Fld1;
public T Assign(T t)
{
Fld1 = t;
return Fld1;
}
}
public class Test_static_assignment_class01
{
public static int counter = 0;
public static bool result = true;
public static void Eval(bool exp)
{
counter++;
if (!exp)
{
result = exp;
Console.WriteLine("Test Failed at location: " + counter);
}
}
public static int Main()
{
int _int = 1;
Eval(new Gen<int>().Assign(_int).Equals(_int));
double _double = 1;
Eval(new Gen<double>().Assign(_double).Equals(_double));
string _string = "string";
Eval(new Gen<string>().Assign(_string).Equals(_string));
object _object = new object();
Eval(new Gen<object>().Assign(_object).Equals(_object));
Guid _Guid = new Guid(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Eval(new Gen<Guid>().Assign(_Guid).Equals(_Guid));
if (result)
{
Console.WriteLine("Test Passed");
return 100;
}
else
{
Console.WriteLine("Test Failed");
return 1;
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/MultiplyAddBySelectedScalar.Vector128.Int32.Vector64.Int32.1.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1()
{
var test = new SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] inArray3;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle inHandle3;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Int32[] inArray1, Int32[] inArray2, Int32[] inArray3, Int32[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>();
int sizeOfinArray3 = inArray3.Length * Unsafe.SizeOf<Int32>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfinArray3 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.inArray3 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.inHandle3 = GCHandle.Alloc(this.inArray3, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray3Ptr), ref Unsafe.As<Int32, byte>(ref inArray3[0]), (uint)sizeOfinArray3);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray3Ptr => Align((byte*)(inHandle3.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
inHandle3.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector128<Int32> _fld1;
public Vector128<Int32> _fld2;
public Vector64<Int32> _fld3;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref testStruct._fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref testStruct._fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref testStruct._fld3), ref Unsafe.As<Int32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>());
return testStruct;
}
public void RunStructFldScenario(SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1 testClass)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(_fld1, _fld2, _fld3, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1 testClass)
{
fixed (Vector128<Int32>* pFld1 = &_fld1)
fixed (Vector128<Int32>* pFld2 = &_fld2)
fixed (Vector64<Int32>* pFld3 = &_fld3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pFld1)),
AdvSimd.LoadVector128((Int32*)(pFld2)),
AdvSimd.LoadVector64((Int32*)(pFld3)),
1
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32);
private static readonly int Op3ElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32);
private static readonly byte Imm = 1;
private static Int32[] _data1 = new Int32[Op1ElementCount];
private static Int32[] _data2 = new Int32[Op2ElementCount];
private static Int32[] _data3 = new Int32[Op3ElementCount];
private static Vector128<Int32> _clsVar1;
private static Vector128<Int32> _clsVar2;
private static Vector64<Int32> _clsVar3;
private Vector128<Int32> _fld1;
private Vector128<Int32> _fld2;
private Vector64<Int32> _fld3;
private DataTable _dataTable;
static SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _clsVar1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _clsVar2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _clsVar3), ref Unsafe.As<Int32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>());
}
public SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _fld3), ref Unsafe.As<Int32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
_dataTable = new DataTable(_data1, _data2, _data3, new Int32[RetElementCount], LargestVectorSize);
}
public bool IsSupported => AdvSimd.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = AdvSimd.MultiplyAddBySelectedScalar(
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr),
Unsafe.Read<Vector64<Int32>>(_dataTable.inArray3Ptr),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)),
AdvSimd.LoadVector64((Int32*)(_dataTable.inArray3Ptr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyAddBySelectedScalar), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>), typeof(Vector64<Int32>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr),
Unsafe.Read<Vector64<Int32>>(_dataTable.inArray3Ptr),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyAddBySelectedScalar), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>), typeof(Vector64<Int32>), typeof(byte) })
.Invoke(null, new object[] {
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)),
AdvSimd.LoadVector64((Int32*)(_dataTable.inArray3Ptr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = AdvSimd.MultiplyAddBySelectedScalar(
_clsVar1,
_clsVar2,
_clsVar3,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector128<Int32>* pClsVar1 = &_clsVar1)
fixed (Vector128<Int32>* pClsVar2 = &_clsVar2)
fixed (Vector64<Int32>* pClsVar3 = &_clsVar3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pClsVar1)),
AdvSimd.LoadVector128((Int32*)(pClsVar2)),
AdvSimd.LoadVector64((Int32*)(pClsVar3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr);
var op3 = Unsafe.Read<Vector64<Int32>>(_dataTable.inArray3Ptr);
var result = AdvSimd.MultiplyAddBySelectedScalar(op1, op2, op3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, op3, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr));
var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr));
var op3 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray3Ptr));
var result = AdvSimd.MultiplyAddBySelectedScalar(op1, op2, op3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, op3, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1();
var result = AdvSimd.MultiplyAddBySelectedScalar(test._fld1, test._fld2, test._fld3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1();
fixed (Vector128<Int32>* pFld1 = &test._fld1)
fixed (Vector128<Int32>* pFld2 = &test._fld2)
fixed (Vector64<Int32>* pFld3 = &test._fld3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pFld1)),
AdvSimd.LoadVector128((Int32*)(pFld2)),
AdvSimd.LoadVector64((Int32*)(pFld3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = AdvSimd.MultiplyAddBySelectedScalar(_fld1, _fld2, _fld3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector128<Int32>* pFld1 = &_fld1)
fixed (Vector128<Int32>* pFld2 = &_fld2)
fixed (Vector64<Int32>* pFld3 = &_fld3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pFld1)),
AdvSimd.LoadVector128((Int32*)(pFld2)),
AdvSimd.LoadVector64((Int32*)(pFld3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = AdvSimd.MultiplyAddBySelectedScalar(test._fld1, test._fld2, test._fld3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(&test._fld1)),
AdvSimd.LoadVector128((Int32*)(&test._fld2)),
AdvSimd.LoadVector64((Int32*)(&test._fld3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector128<Int32> op1, Vector128<Int32> op2, Vector64<Int32> op3, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] inArray3 = new Int32[Op3ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), op2);
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray3[0]), op3);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>());
ValidateResult(inArray1, inArray2, inArray3, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* op3, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] inArray3 = new Int32[Op3ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray3[0]), ref Unsafe.AsRef<byte>(op3), (uint)Unsafe.SizeOf<Vector64<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>());
ValidateResult(inArray1, inArray2, inArray3, outArray, method);
}
private void ValidateResult(Int32[] firstOp, Int32[] secondOp, Int32[] thirdOp, Int32[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
for (var i = 0; i < RetElementCount; i++)
{
if (Helpers.MultiplyAdd(firstOp[i], secondOp[i], thirdOp[Imm]) != result[i])
{
succeeded = false;
break;
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyAddBySelectedScalar)}<Int32>(Vector128<Int32>, Vector128<Int32>, Vector64<Int32>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})");
TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1()
{
var test = new SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] inArray3;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle inHandle3;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Int32[] inArray1, Int32[] inArray2, Int32[] inArray3, Int32[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>();
int sizeOfinArray3 = inArray3.Length * Unsafe.SizeOf<Int32>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfinArray3 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.inArray3 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.inHandle3 = GCHandle.Alloc(this.inArray3, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray3Ptr), ref Unsafe.As<Int32, byte>(ref inArray3[0]), (uint)sizeOfinArray3);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray3Ptr => Align((byte*)(inHandle3.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
inHandle3.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector128<Int32> _fld1;
public Vector128<Int32> _fld2;
public Vector64<Int32> _fld3;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref testStruct._fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref testStruct._fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref testStruct._fld3), ref Unsafe.As<Int32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>());
return testStruct;
}
public void RunStructFldScenario(SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1 testClass)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(_fld1, _fld2, _fld3, 1);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1 testClass)
{
fixed (Vector128<Int32>* pFld1 = &_fld1)
fixed (Vector128<Int32>* pFld2 = &_fld2)
fixed (Vector64<Int32>* pFld3 = &_fld3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pFld1)),
AdvSimd.LoadVector128((Int32*)(pFld2)),
AdvSimd.LoadVector64((Int32*)(pFld3)),
1
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32);
private static readonly int Op3ElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32);
private static readonly byte Imm = 1;
private static Int32[] _data1 = new Int32[Op1ElementCount];
private static Int32[] _data2 = new Int32[Op2ElementCount];
private static Int32[] _data3 = new Int32[Op3ElementCount];
private static Vector128<Int32> _clsVar1;
private static Vector128<Int32> _clsVar2;
private static Vector64<Int32> _clsVar3;
private Vector128<Int32> _fld1;
private Vector128<Int32> _fld2;
private Vector64<Int32> _fld3;
private DataTable _dataTable;
static SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _clsVar1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _clsVar2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _clsVar3), ref Unsafe.As<Int32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>());
}
public SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>());
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _fld3), ref Unsafe.As<Int32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); }
for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetInt32(); }
_dataTable = new DataTable(_data1, _data2, _data3, new Int32[RetElementCount], LargestVectorSize);
}
public bool IsSupported => AdvSimd.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = AdvSimd.MultiplyAddBySelectedScalar(
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr),
Unsafe.Read<Vector64<Int32>>(_dataTable.inArray3Ptr),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)),
AdvSimd.LoadVector64((Int32*)(_dataTable.inArray3Ptr)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyAddBySelectedScalar), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>), typeof(Vector64<Int32>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr),
Unsafe.Read<Vector64<Int32>>(_dataTable.inArray3Ptr),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyAddBySelectedScalar), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>), typeof(Vector64<Int32>), typeof(byte) })
.Invoke(null, new object[] {
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)),
AdvSimd.LoadVector64((Int32*)(_dataTable.inArray3Ptr)),
(byte)1
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = AdvSimd.MultiplyAddBySelectedScalar(
_clsVar1,
_clsVar2,
_clsVar3,
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector128<Int32>* pClsVar1 = &_clsVar1)
fixed (Vector128<Int32>* pClsVar2 = &_clsVar2)
fixed (Vector64<Int32>* pClsVar3 = &_clsVar3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pClsVar1)),
AdvSimd.LoadVector128((Int32*)(pClsVar2)),
AdvSimd.LoadVector64((Int32*)(pClsVar3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var op1 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr);
var op2 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr);
var op3 = Unsafe.Read<Vector64<Int32>>(_dataTable.inArray3Ptr);
var result = AdvSimd.MultiplyAddBySelectedScalar(op1, op2, op3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, op3, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var op1 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr));
var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr));
var op3 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray3Ptr));
var result = AdvSimd.MultiplyAddBySelectedScalar(op1, op2, op3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(op1, op2, op3, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1();
var result = AdvSimd.MultiplyAddBySelectedScalar(test._fld1, test._fld2, test._fld3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new SimpleTernaryOpTest__MultiplyAddBySelectedScalar_Vector128_Int32_Vector64_Int32_1();
fixed (Vector128<Int32>* pFld1 = &test._fld1)
fixed (Vector128<Int32>* pFld2 = &test._fld2)
fixed (Vector64<Int32>* pFld3 = &test._fld3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pFld1)),
AdvSimd.LoadVector128((Int32*)(pFld2)),
AdvSimd.LoadVector64((Int32*)(pFld3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = AdvSimd.MultiplyAddBySelectedScalar(_fld1, _fld2, _fld3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector128<Int32>* pFld1 = &_fld1)
fixed (Vector128<Int32>* pFld2 = &_fld2)
fixed (Vector64<Int32>* pFld3 = &_fld3)
{
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(pFld1)),
AdvSimd.LoadVector128((Int32*)(pFld2)),
AdvSimd.LoadVector64((Int32*)(pFld3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = AdvSimd.MultiplyAddBySelectedScalar(test._fld1, test._fld2, test._fld3, 1);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = AdvSimd.MultiplyAddBySelectedScalar(
AdvSimd.LoadVector128((Int32*)(&test._fld1)),
AdvSimd.LoadVector128((Int32*)(&test._fld2)),
AdvSimd.LoadVector64((Int32*)(&test._fld3)),
1
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(Vector128<Int32> op1, Vector128<Int32> op2, Vector64<Int32> op3, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] inArray3 = new Int32[Op3ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), op1);
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), op2);
Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray3[0]), op3);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>());
ValidateResult(inArray1, inArray2, inArray3, outArray, method);
}
private void ValidateResult(void* op1, void* op2, void* op3, void* result, [CallerMemberName] string method = "")
{
Int32[] inArray1 = new Int32[Op1ElementCount];
Int32[] inArray2 = new Int32[Op2ElementCount];
Int32[] inArray3 = new Int32[Op3ElementCount];
Int32[] outArray = new Int32[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray3[0]), ref Unsafe.AsRef<byte>(op3), (uint)Unsafe.SizeOf<Vector64<Int32>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>());
ValidateResult(inArray1, inArray2, inArray3, outArray, method);
}
private void ValidateResult(Int32[] firstOp, Int32[] secondOp, Int32[] thirdOp, Int32[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
for (var i = 0; i < RetElementCount; i++)
{
if (Helpers.MultiplyAdd(firstOp[i], secondOp[i], thirdOp[Imm]) != result[i])
{
succeeded = false;
break;
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyAddBySelectedScalar)}<Int32>(Vector128<Int32>, Vector128<Int32>, Vector64<Int32>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})");
TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})");
TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/mono/wasm/debugger/tests/lazy-debugger-test-embedded/lazy-debugger-test-embedded.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
public partial class LazyMath
{
public static int IntAdd(int a, int b)
{
int c = a + b;
return c;
}
} | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
public partial class LazyMath
{
public static int IntAdd(int a, int b)
{
int c = a + b;
return c;
}
} | -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/jit64/valuetypes/nullable/box-unbox/enum/box-unbox-enum003.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// <Area> Nullable - Box-Unbox </Area>
// <Title> Nullable type with unbox box expr </Title>
// <Description>
// checking type of LongE using is operator
// </Description>
// <RelatedBugs> </RelatedBugs>
//<Expects Status=success></Expects>
// <Code>
using System.Runtime.InteropServices;
using System;
internal class NullableTest
{
private static bool BoxUnboxToNQ(Enum o)
{
return Helper.Compare((LongE)o, Helper.Create(default(LongE)));
}
private static bool BoxUnboxToQ(Enum o)
{
return Helper.Compare((LongE?)o, Helper.Create(default(LongE)));
}
private static int Main()
{
LongE? s = Helper.Create(default(LongE));
if (BoxUnboxToNQ(s) && BoxUnboxToQ(s))
return ExitCode.Passed;
else
return ExitCode.Failed;
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// <Area> Nullable - Box-Unbox </Area>
// <Title> Nullable type with unbox box expr </Title>
// <Description>
// checking type of LongE using is operator
// </Description>
// <RelatedBugs> </RelatedBugs>
//<Expects Status=success></Expects>
// <Code>
using System.Runtime.InteropServices;
using System;
internal class NullableTest
{
private static bool BoxUnboxToNQ(Enum o)
{
return Helper.Compare((LongE)o, Helper.Create(default(LongE)));
}
private static bool BoxUnboxToQ(Enum o)
{
return Helper.Compare((LongE?)o, Helper.Create(default(LongE)));
}
private static int Main()
{
LongE? s = Helper.Create(default(LongE));
if (BoxUnboxToNQ(s) && BoxUnboxToQ(s))
return ExitCode.Passed;
else
return ExitCode.Failed;
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Tree/Class.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace Microsoft.CSharp.RuntimeBinder.Semantics
{
internal sealed class ExprClass : ExprWithType
{
public ExprClass(CType type)
: base(ExpressionKind.Class, type)
{
Debug.Assert(type != null);
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace Microsoft.CSharp.RuntimeBinder.Semantics
{
internal sealed class ExprClass : ExprWithType
{
public ExprClass(CType type)
: base(ExpressionKind.Class, type)
{
Debug.Assert(type != null);
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/SerializationOption.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Runtime.Serialization
{
internal enum SerializationOption
{
CodeGenOnly = 0,
ReflectionOnly = 1,
ReflectionAsBackup = 2
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Runtime.Serialization
{
internal enum SerializationOption
{
CodeGenOnly = 0,
ReflectionOnly = 1,
ReflectionAsBackup = 2
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/Directed/nullabletypes/isinstinterface_r.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="isinstinterface.cs" />
<Compile Include="Desktop\StructDefinitions.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="isinstinterface.cs" />
<Compile Include="Desktop\StructDefinitions.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/GC/Performance/Tests/MicroBench.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestKind>BuildOnly</CLRTestKind>
</PropertyGroup>
<ItemGroup>
<Compile Include="GCMicroBench.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestKind>BuildOnly</CLRTestKind>
</PropertyGroup>
<ItemGroup>
<Compile Include="GCMicroBench.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/coreclr/pal/src/safecrt/memcpy_s.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/***
*memcpy_s.c - contains memcpy_s routine
*
*
*Purpose:
* memcpy_s() copies a source memory buffer to a destination buffer.
* Overlapping buffers are not treated specially, so propagation may occur.
*
*Revision History:
* 10-07-03 AC Module created.
* 03-10-04 AC Return ERANGE when buffer is too small
* 01-14-05 AC Prefast (espx) fixes
*
*******************************************************************************/
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "internal_securecrt.h"
#include "mbusafecrt_internal.h"
/***
*memcpy_s - Copy source buffer to destination buffer
*
*Purpose:
* memcpy_s() copies a source memory buffer to a destination memory buffer.
* This routine does NOT recognize overlapping buffers, and thus can lead
* to propagation.
*
* For cases where propagation must be avoided, memmove_s() must be used.
*
*Entry:
* void *dst = pointer to destination buffer
* size_t sizeInBytes = size in bytes of the destination buffer
* const void *src = pointer to source buffer
* size_t count = number of bytes to copy
*
*Exit:
* Returns 0 if everything is ok, else return the error code.
*
*Exceptions:
* Input parameters are validated. Refer to the validation section of the function.
* On error, the error code is returned and the destination buffer is zeroed.
*
*******************************************************************************/
DLLEXPORT errno_t __cdecl memcpy_s(
void * dst,
size_t sizeInBytes,
const void * src,
size_t count
) THROW_DECL
{
if (count == 0)
{
/* nothing to do */
return 0;
}
/* validation section */
_VALIDATE_RETURN_ERRCODE(dst != NULL, EINVAL);
if (src == NULL || sizeInBytes < count)
{
/* zeroes the destination buffer */
memset(dst, 0, sizeInBytes);
_VALIDATE_RETURN_ERRCODE(src != NULL, EINVAL);
_VALIDATE_RETURN_ERRCODE(sizeInBytes >= count, ERANGE);
/* useless, but prefast is confused */
return EINVAL;
}
UINT_PTR x = (UINT_PTR)dst, y = (UINT_PTR)src;
assert((x + count <= y) || (y + count <= x));
memcpy(dst, src, count);
return 0;
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/***
*memcpy_s.c - contains memcpy_s routine
*
*
*Purpose:
* memcpy_s() copies a source memory buffer to a destination buffer.
* Overlapping buffers are not treated specially, so propagation may occur.
*
*Revision History:
* 10-07-03 AC Module created.
* 03-10-04 AC Return ERANGE when buffer is too small
* 01-14-05 AC Prefast (espx) fixes
*
*******************************************************************************/
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "internal_securecrt.h"
#include "mbusafecrt_internal.h"
/***
*memcpy_s - Copy source buffer to destination buffer
*
*Purpose:
* memcpy_s() copies a source memory buffer to a destination memory buffer.
* This routine does NOT recognize overlapping buffers, and thus can lead
* to propagation.
*
* For cases where propagation must be avoided, memmove_s() must be used.
*
*Entry:
* void *dst = pointer to destination buffer
* size_t sizeInBytes = size in bytes of the destination buffer
* const void *src = pointer to source buffer
* size_t count = number of bytes to copy
*
*Exit:
* Returns 0 if everything is ok, else return the error code.
*
*Exceptions:
* Input parameters are validated. Refer to the validation section of the function.
* On error, the error code is returned and the destination buffer is zeroed.
*
*******************************************************************************/
DLLEXPORT errno_t __cdecl memcpy_s(
void * dst,
size_t sizeInBytes,
const void * src,
size_t count
) THROW_DECL
{
if (count == 0)
{
/* nothing to do */
return 0;
}
/* validation section */
_VALIDATE_RETURN_ERRCODE(dst != NULL, EINVAL);
if (src == NULL || sizeInBytes < count)
{
/* zeroes the destination buffer */
memset(dst, 0, sizeInBytes);
_VALIDATE_RETURN_ERRCODE(src != NULL, EINVAL);
_VALIDATE_RETURN_ERRCODE(sizeInBytes >= count, ERANGE);
/* useless, but prefast is confused */
return EINVAL;
}
UINT_PTR x = (UINT_PTR)dst, y = (UINT_PTR)src;
assert((x + count <= y) || (y + count <= x));
memcpy(dst, src, count);
return 0;
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Security.Cryptography.X509Certificates/tests/X500DistinguishedNameEncodingTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using Test.Cryptography;
using Xunit;
namespace System.Security.Cryptography.X509Certificates.Tests
{
public static class X500DistinguishedNameEncodingTests
{
private const string InvalidX500NameFragment = "invalid X500 name";
private const string InvalidIA5StringFragment = "7 bit ASCII";
[Fact]
public static void EncodeEmptyValue()
{
X500DistinguishedName dn = new X500DistinguishedName("");
ProcessTestCase(
new SimpleEncoderTestCase(
"",
null,
"3000",
null),
dn);
}
[Theory]
[MemberData(nameof(SingleRdnTestCases))]
public static void EncodeSingleRdn(SimpleEncoderTestCase testCase)
{
X500DistinguishedName dn = new X500DistinguishedName(testCase.Input, X500DistinguishedNameFlags.None);
ProcessTestCase(testCase, dn);
}
[Theory]
[MemberData(nameof(GetFlagBasedDnCases))]
public static void EncodeWithFlags(FlagControlledEncoderTestCase testCase)
{
X500DistinguishedName dn = new X500DistinguishedName(testCase.Input, testCase.Flags);
ProcessTestCase(testCase, dn);
}
[Theory]
[MemberData(nameof(SeparatorFlagCombinations))]
public static void VerifySeparatorProcessing(X500DistinguishedNameFlags flags)
{
const string input = "CN=a, O=b; OU=c\r L=d\n S=e";
// No separator flags: , and ; => CN, O, OU
const string withNoFlags = "CN=a, O=b, OU=\"c\r L=d\n S=e\"";
// UseNewlines: \r and \n => CN, L, S
const string withNewlines = "CN=\"a, O=b; OU=c\", L=d, S=e";
// UseCommas: , => CN, O
const string withCommas = "CN=a, O=\"b; OU=c\r L=d\n S=e\"";
// UseSemicolons: ; => CN, OU
const string withSemicolons = "CN=\"a, O=b\", OU=\"c\r L=d\n S=e\"";
string expected;
// Semicolons, if specified, always wins.
// then commas, if specified, wins.
// then newlines, if specified is valid.
// Specifying nothing at all is (for some reason) both commas and semicolons.
if ((flags & X500DistinguishedNameFlags.UseSemicolons) != 0)
{
expected = withSemicolons;
}
else if ((flags & X500DistinguishedNameFlags.UseCommas) != 0)
{
expected = withCommas;
}
else if ((flags & X500DistinguishedNameFlags.UseNewLines) != 0)
{
expected = withNewlines;
}
else
{
expected = withNoFlags;
}
X500DistinguishedName dn = new X500DistinguishedName(input, flags);
Assert.Equal(expected, dn.Format(false));
}
[Theory]
// Separator character with no tag
[InlineData(",", InvalidX500NameFragment)]
// Control character preceding tag
[InlineData("\u0008CN=a", InvalidX500NameFragment)]
// Control character after tag
[InlineData("CN\u0008=a", InvalidX500NameFragment)]
// Control character within tag
[InlineData("C\u0008N=a", InvalidX500NameFragment)]
// Control character after whitespace after tag
[InlineData("CN \u0008=a", InvalidX500NameFragment)]
// Unresolvable OID
[InlineData("1.a.1.3=a", InvalidX500NameFragment)]
// Open quote with no close quote. (Don't you hate it when people do that?
[InlineData("CN=\"unterminated", InvalidX500NameFragment)]
// Non-ASCII values in an E field
[InlineData("E=\u65E5\u672C\u8A9E", InvalidIA5StringFragment)]
public static void InvalidInput(string input, string messageFragment)
{
CryptographicException exception =
Assert.ThrowsAny<CryptographicException>(() => new X500DistinguishedName(input));
if (CultureInfo.CurrentCulture.Name == "en-US")
{
Assert.Contains(messageFragment, exception.Message);
}
}
[Theory]
[MemberData(nameof(ParserBoundaryCases))]
public static void CheckParserBoundaryCases(SimpleEncoderTestCase testCase)
{
X500DistinguishedName dn = new X500DistinguishedName(testCase.Input, X500DistinguishedNameFlags.None);
ProcessTestCase(testCase, dn);
}
private static void ProcessTestCase(SimpleEncoderTestCase testCase, X500DistinguishedName dn)
{
// The simple encoding test is "does it output the expected text?", then
// we'll move on to the exact bytes.
Assert.Equal(testCase.GetNormalizedValue(), dn.Format(false));
string expectedHex;
if (OperatingSystem.IsWindows())
{
expectedHex = testCase.GetBmpEncoding() ?? testCase.GetPreferredEncoding();
}
else
{
expectedHex = testCase.GetPreferredEncoding();
}
string actualHex = dn.RawData.ByteArrayToHex();
Assert.Equal(expectedHex, actualHex);
}
public static readonly object[][] SingleRdnTestCases =
{
new object[]
{
// No accent characters means this fits within a PrintableString.
// There's only one correct encoding.
new SimpleEncoderTestCase(
"CN=Common Name",
null,
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Let's get a bit spicy and accent an o. Now that it doesn't fit in
// a PrintableString it should be a UTF8String (RFC 3280 - 2004 deadline,
// RFC 5280 unconditional (5280 was written in 2008)).
//
// Windows continues to use BMPString (UCS-2), so we have to allow that, too.
new SimpleEncoderTestCase(
"CN=Comm\u00f3n Name",
null,
"30173115301306035504030C0C436F6D6DC3B36E204E616D65",
"3021311F301D06035504031E160043006F006D006D00F3006E0020004E0061006D0065"),
},
new object[]
{
// E-mail addresses usually contain an @.
// @ is not a PrintableString character.
// The industry (and RFC-acknowledged) compromise on this is an IA5String.
new SimpleEncoderTestCase(
"[email protected]",
null,
"3021311F301D06092A864886F70D010901161075736572406578616D706C652E636F6D",
null),
},
new object[]
{
// Technically this 'email address' could be a PrintableString, but E just
// uses IA5String.
new SimpleEncoderTestCase(
"E=Common Name",
null,
"301C311A301806092A864886F70D010901160B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// An unknown OID in numeric form will parse just fine.
new SimpleEncoderTestCase(
"1.1.1.1=Common Name",
"OID.1.1.1.1=Common Name",
"3016311430120603290101130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// An unknown OID with the OID.numericform form.
new SimpleEncoderTestCase(
"OID.1.1.1.1=Common Name",
null,
"3016311430120603290101130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Common Name in the raw numeric form.
new SimpleEncoderTestCase(
"2.5.4.3=Common Name",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Common Name in the OID.-prefixed numeric form.
new SimpleEncoderTestCase(
"OID.2.5.4.3=Common Name",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Common Name with a dangling separator.
new SimpleEncoderTestCase(
"CN=Common Name,",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Unnecessarily quoted value
new SimpleEncoderTestCase(
"CN=\"Common Name\"",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Quoted because of an embedded comma. The quotes are not
// included in the encoded value, just the string form.
new SimpleEncoderTestCase(
"CN=\"Name, Common\"",
null,
"3017311530130603550403130C4E616D652C20436F6D6D6F6E",
null),
},
new object[]
{
// Contains two escaped quotation marks.
// Quotation mark is not a PrintableString character, so UTF8 (or BMP).
new SimpleEncoderTestCase(
"CN=\"\"\"Common\"\" Name\"",
null,
"30183116301406035504030C0D22436F6D6D6F6E22204E616D65",
"30253123302106035504031E1A00220043006F006D006D006F006E00220020004E0061006D0065"),
},
new object[]
{
// Unnecessarily quoted email address
new SimpleEncoderTestCase(
"E=\"[email protected]\"",
"[email protected]",
"3021311F301D06092A864886F70D010901161075736572406578616D706C652E636F6D",
null),
},
new object[]
{
// "email address" with an embedded quote.
// While this isn't a legal email address it is a valid IA5String.
new SimpleEncoderTestCase(
"E=\"\"\"user\"\"@example.com\"",
null,
"30233121301F06092A864886F70D0109011612227573657222406578616D706C652E636F6D",
null),
},
new object[]
{
// The RFCs have no statement like "when a BMPString would contain fewer octets,
// it should be preferred over UTF8String". So we'll continue to call UTF-8
// preferred in this case (CN=nihongo)
new SimpleEncoderTestCase(
"CN=\u65E5\u672C\u8A9E",
null,
"30143112301006035504030C09E697A5E69CACE8AA9E",
"3011310F300D06035504031E0665E5672C8A9E"),
},
new object[]
{
// Leading and trailing whitespace is removed
new SimpleEncoderTestCase(
" CN = Common Name ",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// This looks like it could be two RDNs, but it's only one.
new SimpleEncoderTestCase(
"CN=\"Common Name, [email protected]\"",
null,
"302A3128302606035504030C1F436F6D6D6F6E204E616D652C20453D75736572406578616D706C652E636F6D",
"30493147304506035504031E3E0043006F006D006D006F006E0020004E006100" +
"6D0065002C00200045003D00750073006500720040006500780061006D007000" +
"6C0065002E0063006F006D"),
},
new object[]
{
// Control codes are valid in the value portion (as the first character)
new SimpleEncoderTestCase(
"CN=\u0008",
null,
"300C310A300806035504030C0108",
"300D310B300906035504031E020008"),
},
new object[]
{
// Control codes are valid in the value portion (anywhere, really)
new SimpleEncoderTestCase(
"CN=a \u0008",
null,
"30123110300E06035504030C0761202020202008",
"30193117301506035504031E0E0061002000200020002000200008"),
},
new object[]
{
// Empty values are legal.
new SimpleEncoderTestCase(
"CN=",
"CN=\"\"",
"300B3109300706035504031300",
null),
},
new object[]
{
// Contains two adjacent escaped quotes.
new SimpleEncoderTestCase(
"CN=\"Adjacent Escaped\"\"\"\"Quotes\"",
null,
"30233121301F06035504030C1841646A6163656E742045736361706564222251756F746573",
"303B3139303706035504031E3000410064006A006100630065006E00740020004500730063" +
"00610070006500640022002200510075006F007400650073"),
},
};
public static IEnumerable<object[]> GetFlagBasedDnCases()
{
foreach (FlagVariantEncoderTestCases generator in s_flagVariantTestCases)
{
foreach (FlagControlledEncoderTestCase testCase in generator.GenerateTestCases())
{
yield return new object[] {testCase };
}
}
}
public static object[][] SeparatorFlagCombinations =
{
new object[]
{
X500DistinguishedNameFlags.None,
},
new object[]
{
X500DistinguishedNameFlags.UseNewLines
},
new object[]
{
X500DistinguishedNameFlags.UseCommas
},
new object[]
{
X500DistinguishedNameFlags.UseCommas |
X500DistinguishedNameFlags.UseNewLines
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons |
X500DistinguishedNameFlags.UseNewLines
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons |
X500DistinguishedNameFlags.UseCommas
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons |
X500DistinguishedNameFlags.UseCommas |
X500DistinguishedNameFlags.UseNewLines
},
};
private static readonly FlagVariantEncoderTestCases[] s_flagVariantTestCases =
{
new FlagVariantEncoderTestCases("CN=Common Name, [email protected]")
{
{
X500DistinguishedNameFlags.None,
"CN=Common Name, [email protected]",
"3037311430120603550403130B436F6D6D6F6E204E616D65311F301D06092A86" +
"4886F70D010901161075736572406578616D706C652E636F6D",
null
},
// Since the delimiter used is a comma, and comma is in the special none group,
// this has no visible effect.
{
X500DistinguishedNameFlags.UseCommas,
"CN=Common Name, [email protected]",
"3037311430120603550403130B436F6D6D6F6E204E616D65311F301D06092A86" +
"4886F70D010901161075736572406578616D706C652E636F6D",
null
},
// Parse reversed
{
X500DistinguishedNameFlags.Reversed,
"[email protected], CN=Common Name",
"3037311F301D06092A864886F70D010901161075736572406578616D706C652E" +
"636F6D311430120603550403130B436F6D6D6F6E204E616D65",
null
},
// Reversed and UseCommas aren't conflicting. Since we did use commas, this is just Reversed.
{
X500DistinguishedNameFlags.Reversed | X500DistinguishedNameFlags.UseCommas,
"[email protected], CN=Common Name",
"3037311F301D06092A864886F70D010901161075736572406578616D706C652E" +
"636F6D311430120603550403130B436F6D6D6F6E204E616D65",
null
},
// Only Semicolons are delimiters, so this is one RDN with a value which isn't a PrintableString
{
X500DistinguishedNameFlags.UseSemicolons,
"CN=\"Common Name, [email protected]\"",
"302A3128302606035504030C1F436F6D6D6F6E204E616D652C20453D75736572406578616D706C652E636F6D",
"30493147304506035504031E3E0043006F006D006D006F006E0020004E006100" +
"6D0065002C00200045003D00750073006500720040006500780061006D007000" +
"6C0065002E0063006F006D"
},
// Reversed processing isn't quite the same as doing a scan from the right.
// This is CN only, not an invalid value.
{
X500DistinguishedNameFlags.UseSemicolons | X500DistinguishedNameFlags.Reversed,
"CN=\"Common Name, [email protected]\"",
"302A3128302606035504030C1F436F6D6D6F6E204E616D652C20453D75736572406578616D706C652E636F6D",
"30493147304506035504031E3E0043006F006D006D006F006E0020004E006100" +
"6D0065002C00200045003D00750073006500720040006500780061006D007000" +
"6C0065002E0063006F006D"
},
},
new FlagVariantEncoderTestCases("CN=\"Common Name, O=Organization\"")
{
// The quotes match, so this is just what it looks like.
{
X500DistinguishedNameFlags.None,
"CN=\"Common Name, O=Organization\"",
"3026312430220603550403131B436F6D6D6F6E204E616D652C204F3D4F726761" +
"6E697A6174696F6E",
null
},
// If we ignore the quotes, this is now a CN with an embedded quote and an O with an embedded quote.
{
X500DistinguishedNameFlags.DoNotUseQuotes,
"CN=\"\"\"Common Name\", O=\"Organization\"\"\"",
"302F3115301306035504030C0C22436F6D6D6F6E204E616D6531163014060355" +
"040A0C0D4F7267616E697A6174696F6E22",
"30483121301F06035504031E1800220043006F006D006D006F006E0020004E00" +
"61006D006531233021060355040A1E1A004F007200670061006E0069007A0061" +
"00740069006F006E0022"
},
// Reversed doesn't matter, there's only one value.
{
X500DistinguishedNameFlags.Reversed,
"CN=\"Common Name, O=Organization\"",
"3026312430220603550403131B436F6D6D6F6E204E616D652C204F3D4F726761" +
"6E697A6174696F6E",
null
},
// Reversed with no quotes is different.
{
X500DistinguishedNameFlags.DoNotUseQuotes | X500DistinguishedNameFlags.Reversed,
"O=\"Organization\"\"\", CN=\"\"\"Common Name\"",
"302F31163014060355040A0C0D4F7267616E697A6174696F6E22311530130603" +
"5504030C0C22436F6D6D6F6E204E616D65",
"304831233021060355040A1E1A004F007200670061006E0069007A0061007400" +
"69006F006E00223121301F06035504031E1800220043006F006D006D006F006E" +
"0020004E0061006D0065"
},
},
new FlagVariantEncoderTestCases("CN=@")
{
// A non-PrintableString value. Unix: UTF-8, Windows: BMP (UCS-2)
{
X500DistinguishedNameFlags.None,
"CN=@",
"300C310A300806035504030C0140",
"300D310B300906035504031E020040"
},
// Windows can emit the UTF-8 form, but you have to ask it to.
{
X500DistinguishedNameFlags.UseUTF8Encoding,
"CN=@",
"300C310A300806035504030C0140",
null
},
// Windows can also do the T61 (teletex) encoding.
// Unix doesn't honor this flag, it sticks with UTF-8
{
X500DistinguishedNameFlags.UseT61Encoding,
"CN=@",
"300C310A300806035504030C0140",
"300C310A30080603550403140140"
},
},
new FlagVariantEncoderTestCases("CN=a\nO=b\rOU=c\r\nL=d\n\n \n")
{
// One whitespace-heavy value. Note that the whitespace at the end
// was removed, even though the default-printed form has quotes.
{
X500DistinguishedNameFlags.None,
"CN=\"a\nO=b\rOU=c\r\nL=d\"",
"301A3118301606035504030C0F610A4F3D620D4F553D630D0A4C3D64",
"30293127302506035504031E1E0061000A004F003D0062000D004F0055003D00" +
"63000D000A004C003D0064"
},
// \r and \n are the only delimiters that are allowed to
// appear consecutively. That's because they're also whitespace.
{
X500DistinguishedNameFlags.UseNewLines,
"CN=a, O=b, OU=c, L=d",
"3030310A30080603550403130161310A3008060355040A130162310A30080603" +
"55040B130163310A30080603550407130164",
null
},
},
};
public static readonly object[][] ParserBoundaryCases =
{
// The parser states referenced here are based on the managed implementation
// used by the Unix builds.
new object[]
{
// First RDN goes from = to , directly.
// First-to-second transition has no whitespace
// Second RDN goes from = to the end of the string.
// Parser ends in SeekValueStart without having done the loop in that state.
new SimpleEncoderTestCase(
"CN=,O=",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Same as above, but with abundant whitespace.
// Parser ends in SeekValueStart after having processed some whitespace
new SimpleEncoderTestCase(
" CN= , O= ",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Lets add some quotes for good measure.
// Parser ends in MaybeEndQuote
new SimpleEncoderTestCase(
" CN= \"\" , O= \"\"",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Same as above, with trailing whitespace.
// Parser ends in SeekComma
new SimpleEncoderTestCase(
" CN= \"\" , O= \"\" ",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Give the parser the comma it wanted, now it ends in SeekTag
new SimpleEncoderTestCase(
" CN= \"\" , O= \"\" ,",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Parser ends in SeekValueEnd with no whitespace
new SimpleEncoderTestCase(
" CN= \"\" , O= a",
"CN=\"\", O=a",
"30173109300706035504031300310A3008060355040A130161",
null)
},
new object[]
{
// Parser ends in SeekValueEnd after reading whitespace
new SimpleEncoderTestCase(
" CN= \"\" , O= a ",
"CN=\"\", O=a",
"30173109300706035504031300310A3008060355040A130161",
null)
},
};
public class SimpleEncoderTestCase
{
private readonly string _normalized;
private readonly string _preferredEncodingHex;
private readonly string _bmpEncodingHex;
public string Input { get; private set; }
internal SimpleEncoderTestCase(
string input,
string normalized,
string preferredEncodingHex,
string bmpEncodingHex)
{
_normalized = normalized;
_preferredEncodingHex = preferredEncodingHex;
_bmpEncodingHex = bmpEncodingHex;
Input = input;
}
internal string GetNormalizedValue()
{
return _normalized ?? Input;
}
internal string GetPreferredEncoding()
{
return _preferredEncodingHex;
}
internal string GetBmpEncoding()
{
return _bmpEncodingHex;
}
}
public class FlagControlledEncoderTestCase : SimpleEncoderTestCase
{
public X500DistinguishedNameFlags Flags { get; private set; }
internal FlagControlledEncoderTestCase(
string input,
X500DistinguishedNameFlags flags,
string normalized,
string preferredEncodingHex,
string bmpEncodingHex)
: base(input, normalized, preferredEncodingHex, bmpEncodingHex)
{
Flags = flags;
}
}
public class FlagVariantEncoderTestCases : IEnumerable<FlagControlledEncoderTestCase>
{
private readonly string _template;
private readonly List<Variation> _variations = new List<Variation>();
internal FlagVariantEncoderTestCases(string template)
{
_template = template;
}
internal void Add(
X500DistinguishedNameFlags flags,
string output,
string preferredEncoding,
string bmpEncoding)
{
_variations.Add(new Variation(flags, ',', output, preferredEncoding, bmpEncoding));
}
internal IEnumerable<FlagControlledEncoderTestCase> GenerateTestCases()
{
if (_variations.Count == 0)
{
throw new InvalidOperationException("No variations were added");
}
foreach (Variation variation in _variations)
{
yield return new FlagControlledEncoderTestCase(
_template,
variation.Flags,
variation.Output,
variation.PreferredEncoding,
variation.BmpEncoding);
}
}
private class Variation
{
public X500DistinguishedNameFlags Flags { get; private set; }
public char Separator { get; private set; }
public string Output { get; private set; }
public string PreferredEncoding { get; private set; }
public string BmpEncoding { get; private set; }
public Variation(
X500DistinguishedNameFlags flags,
char separator,
string output,
string preferredEncoding,
string bmpEncoding)
{
Flags = flags;
Separator = separator;
Output = output;
PreferredEncoding = preferredEncoding;
BmpEncoding = bmpEncoding;
}
}
IEnumerator<FlagControlledEncoderTestCase> IEnumerable<FlagControlledEncoderTestCase>.GetEnumerator()
{
return GenerateTestCases().GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GenerateTestCases().GetEnumerator();
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using Test.Cryptography;
using Xunit;
namespace System.Security.Cryptography.X509Certificates.Tests
{
public static class X500DistinguishedNameEncodingTests
{
private const string InvalidX500NameFragment = "invalid X500 name";
private const string InvalidIA5StringFragment = "7 bit ASCII";
[Fact]
public static void EncodeEmptyValue()
{
X500DistinguishedName dn = new X500DistinguishedName("");
ProcessTestCase(
new SimpleEncoderTestCase(
"",
null,
"3000",
null),
dn);
}
[Theory]
[MemberData(nameof(SingleRdnTestCases))]
public static void EncodeSingleRdn(SimpleEncoderTestCase testCase)
{
X500DistinguishedName dn = new X500DistinguishedName(testCase.Input, X500DistinguishedNameFlags.None);
ProcessTestCase(testCase, dn);
}
[Theory]
[MemberData(nameof(GetFlagBasedDnCases))]
public static void EncodeWithFlags(FlagControlledEncoderTestCase testCase)
{
X500DistinguishedName dn = new X500DistinguishedName(testCase.Input, testCase.Flags);
ProcessTestCase(testCase, dn);
}
[Theory]
[MemberData(nameof(SeparatorFlagCombinations))]
public static void VerifySeparatorProcessing(X500DistinguishedNameFlags flags)
{
const string input = "CN=a, O=b; OU=c\r L=d\n S=e";
// No separator flags: , and ; => CN, O, OU
const string withNoFlags = "CN=a, O=b, OU=\"c\r L=d\n S=e\"";
// UseNewlines: \r and \n => CN, L, S
const string withNewlines = "CN=\"a, O=b; OU=c\", L=d, S=e";
// UseCommas: , => CN, O
const string withCommas = "CN=a, O=\"b; OU=c\r L=d\n S=e\"";
// UseSemicolons: ; => CN, OU
const string withSemicolons = "CN=\"a, O=b\", OU=\"c\r L=d\n S=e\"";
string expected;
// Semicolons, if specified, always wins.
// then commas, if specified, wins.
// then newlines, if specified is valid.
// Specifying nothing at all is (for some reason) both commas and semicolons.
if ((flags & X500DistinguishedNameFlags.UseSemicolons) != 0)
{
expected = withSemicolons;
}
else if ((flags & X500DistinguishedNameFlags.UseCommas) != 0)
{
expected = withCommas;
}
else if ((flags & X500DistinguishedNameFlags.UseNewLines) != 0)
{
expected = withNewlines;
}
else
{
expected = withNoFlags;
}
X500DistinguishedName dn = new X500DistinguishedName(input, flags);
Assert.Equal(expected, dn.Format(false));
}
[Theory]
// Separator character with no tag
[InlineData(",", InvalidX500NameFragment)]
// Control character preceding tag
[InlineData("\u0008CN=a", InvalidX500NameFragment)]
// Control character after tag
[InlineData("CN\u0008=a", InvalidX500NameFragment)]
// Control character within tag
[InlineData("C\u0008N=a", InvalidX500NameFragment)]
// Control character after whitespace after tag
[InlineData("CN \u0008=a", InvalidX500NameFragment)]
// Unresolvable OID
[InlineData("1.a.1.3=a", InvalidX500NameFragment)]
// Open quote with no close quote. (Don't you hate it when people do that?
[InlineData("CN=\"unterminated", InvalidX500NameFragment)]
// Non-ASCII values in an E field
[InlineData("E=\u65E5\u672C\u8A9E", InvalidIA5StringFragment)]
public static void InvalidInput(string input, string messageFragment)
{
CryptographicException exception =
Assert.ThrowsAny<CryptographicException>(() => new X500DistinguishedName(input));
if (CultureInfo.CurrentCulture.Name == "en-US")
{
Assert.Contains(messageFragment, exception.Message);
}
}
[Theory]
[MemberData(nameof(ParserBoundaryCases))]
public static void CheckParserBoundaryCases(SimpleEncoderTestCase testCase)
{
X500DistinguishedName dn = new X500DistinguishedName(testCase.Input, X500DistinguishedNameFlags.None);
ProcessTestCase(testCase, dn);
}
private static void ProcessTestCase(SimpleEncoderTestCase testCase, X500DistinguishedName dn)
{
// The simple encoding test is "does it output the expected text?", then
// we'll move on to the exact bytes.
Assert.Equal(testCase.GetNormalizedValue(), dn.Format(false));
string expectedHex;
if (OperatingSystem.IsWindows())
{
expectedHex = testCase.GetBmpEncoding() ?? testCase.GetPreferredEncoding();
}
else
{
expectedHex = testCase.GetPreferredEncoding();
}
string actualHex = dn.RawData.ByteArrayToHex();
Assert.Equal(expectedHex, actualHex);
}
public static readonly object[][] SingleRdnTestCases =
{
new object[]
{
// No accent characters means this fits within a PrintableString.
// There's only one correct encoding.
new SimpleEncoderTestCase(
"CN=Common Name",
null,
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Let's get a bit spicy and accent an o. Now that it doesn't fit in
// a PrintableString it should be a UTF8String (RFC 3280 - 2004 deadline,
// RFC 5280 unconditional (5280 was written in 2008)).
//
// Windows continues to use BMPString (UCS-2), so we have to allow that, too.
new SimpleEncoderTestCase(
"CN=Comm\u00f3n Name",
null,
"30173115301306035504030C0C436F6D6DC3B36E204E616D65",
"3021311F301D06035504031E160043006F006D006D00F3006E0020004E0061006D0065"),
},
new object[]
{
// E-mail addresses usually contain an @.
// @ is not a PrintableString character.
// The industry (and RFC-acknowledged) compromise on this is an IA5String.
new SimpleEncoderTestCase(
"[email protected]",
null,
"3021311F301D06092A864886F70D010901161075736572406578616D706C652E636F6D",
null),
},
new object[]
{
// Technically this 'email address' could be a PrintableString, but E just
// uses IA5String.
new SimpleEncoderTestCase(
"E=Common Name",
null,
"301C311A301806092A864886F70D010901160B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// An unknown OID in numeric form will parse just fine.
new SimpleEncoderTestCase(
"1.1.1.1=Common Name",
"OID.1.1.1.1=Common Name",
"3016311430120603290101130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// An unknown OID with the OID.numericform form.
new SimpleEncoderTestCase(
"OID.1.1.1.1=Common Name",
null,
"3016311430120603290101130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Common Name in the raw numeric form.
new SimpleEncoderTestCase(
"2.5.4.3=Common Name",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Common Name in the OID.-prefixed numeric form.
new SimpleEncoderTestCase(
"OID.2.5.4.3=Common Name",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Common Name with a dangling separator.
new SimpleEncoderTestCase(
"CN=Common Name,",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Unnecessarily quoted value
new SimpleEncoderTestCase(
"CN=\"Common Name\"",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// Quoted because of an embedded comma. The quotes are not
// included in the encoded value, just the string form.
new SimpleEncoderTestCase(
"CN=\"Name, Common\"",
null,
"3017311530130603550403130C4E616D652C20436F6D6D6F6E",
null),
},
new object[]
{
// Contains two escaped quotation marks.
// Quotation mark is not a PrintableString character, so UTF8 (or BMP).
new SimpleEncoderTestCase(
"CN=\"\"\"Common\"\" Name\"",
null,
"30183116301406035504030C0D22436F6D6D6F6E22204E616D65",
"30253123302106035504031E1A00220043006F006D006D006F006E00220020004E0061006D0065"),
},
new object[]
{
// Unnecessarily quoted email address
new SimpleEncoderTestCase(
"E=\"[email protected]\"",
"[email protected]",
"3021311F301D06092A864886F70D010901161075736572406578616D706C652E636F6D",
null),
},
new object[]
{
// "email address" with an embedded quote.
// While this isn't a legal email address it is a valid IA5String.
new SimpleEncoderTestCase(
"E=\"\"\"user\"\"@example.com\"",
null,
"30233121301F06092A864886F70D0109011612227573657222406578616D706C652E636F6D",
null),
},
new object[]
{
// The RFCs have no statement like "when a BMPString would contain fewer octets,
// it should be preferred over UTF8String". So we'll continue to call UTF-8
// preferred in this case (CN=nihongo)
new SimpleEncoderTestCase(
"CN=\u65E5\u672C\u8A9E",
null,
"30143112301006035504030C09E697A5E69CACE8AA9E",
"3011310F300D06035504031E0665E5672C8A9E"),
},
new object[]
{
// Leading and trailing whitespace is removed
new SimpleEncoderTestCase(
" CN = Common Name ",
"CN=Common Name",
"3016311430120603550403130B436F6D6D6F6E204E616D65",
null),
},
new object[]
{
// This looks like it could be two RDNs, but it's only one.
new SimpleEncoderTestCase(
"CN=\"Common Name, [email protected]\"",
null,
"302A3128302606035504030C1F436F6D6D6F6E204E616D652C20453D75736572406578616D706C652E636F6D",
"30493147304506035504031E3E0043006F006D006D006F006E0020004E006100" +
"6D0065002C00200045003D00750073006500720040006500780061006D007000" +
"6C0065002E0063006F006D"),
},
new object[]
{
// Control codes are valid in the value portion (as the first character)
new SimpleEncoderTestCase(
"CN=\u0008",
null,
"300C310A300806035504030C0108",
"300D310B300906035504031E020008"),
},
new object[]
{
// Control codes are valid in the value portion (anywhere, really)
new SimpleEncoderTestCase(
"CN=a \u0008",
null,
"30123110300E06035504030C0761202020202008",
"30193117301506035504031E0E0061002000200020002000200008"),
},
new object[]
{
// Empty values are legal.
new SimpleEncoderTestCase(
"CN=",
"CN=\"\"",
"300B3109300706035504031300",
null),
},
new object[]
{
// Contains two adjacent escaped quotes.
new SimpleEncoderTestCase(
"CN=\"Adjacent Escaped\"\"\"\"Quotes\"",
null,
"30233121301F06035504030C1841646A6163656E742045736361706564222251756F746573",
"303B3139303706035504031E3000410064006A006100630065006E00740020004500730063" +
"00610070006500640022002200510075006F007400650073"),
},
};
public static IEnumerable<object[]> GetFlagBasedDnCases()
{
foreach (FlagVariantEncoderTestCases generator in s_flagVariantTestCases)
{
foreach (FlagControlledEncoderTestCase testCase in generator.GenerateTestCases())
{
yield return new object[] {testCase };
}
}
}
public static object[][] SeparatorFlagCombinations =
{
new object[]
{
X500DistinguishedNameFlags.None,
},
new object[]
{
X500DistinguishedNameFlags.UseNewLines
},
new object[]
{
X500DistinguishedNameFlags.UseCommas
},
new object[]
{
X500DistinguishedNameFlags.UseCommas |
X500DistinguishedNameFlags.UseNewLines
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons |
X500DistinguishedNameFlags.UseNewLines
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons |
X500DistinguishedNameFlags.UseCommas
},
new object[]
{
X500DistinguishedNameFlags.UseSemicolons |
X500DistinguishedNameFlags.UseCommas |
X500DistinguishedNameFlags.UseNewLines
},
};
private static readonly FlagVariantEncoderTestCases[] s_flagVariantTestCases =
{
new FlagVariantEncoderTestCases("CN=Common Name, [email protected]")
{
{
X500DistinguishedNameFlags.None,
"CN=Common Name, [email protected]",
"3037311430120603550403130B436F6D6D6F6E204E616D65311F301D06092A86" +
"4886F70D010901161075736572406578616D706C652E636F6D",
null
},
// Since the delimiter used is a comma, and comma is in the special none group,
// this has no visible effect.
{
X500DistinguishedNameFlags.UseCommas,
"CN=Common Name, [email protected]",
"3037311430120603550403130B436F6D6D6F6E204E616D65311F301D06092A86" +
"4886F70D010901161075736572406578616D706C652E636F6D",
null
},
// Parse reversed
{
X500DistinguishedNameFlags.Reversed,
"[email protected], CN=Common Name",
"3037311F301D06092A864886F70D010901161075736572406578616D706C652E" +
"636F6D311430120603550403130B436F6D6D6F6E204E616D65",
null
},
// Reversed and UseCommas aren't conflicting. Since we did use commas, this is just Reversed.
{
X500DistinguishedNameFlags.Reversed | X500DistinguishedNameFlags.UseCommas,
"[email protected], CN=Common Name",
"3037311F301D06092A864886F70D010901161075736572406578616D706C652E" +
"636F6D311430120603550403130B436F6D6D6F6E204E616D65",
null
},
// Only Semicolons are delimiters, so this is one RDN with a value which isn't a PrintableString
{
X500DistinguishedNameFlags.UseSemicolons,
"CN=\"Common Name, [email protected]\"",
"302A3128302606035504030C1F436F6D6D6F6E204E616D652C20453D75736572406578616D706C652E636F6D",
"30493147304506035504031E3E0043006F006D006D006F006E0020004E006100" +
"6D0065002C00200045003D00750073006500720040006500780061006D007000" +
"6C0065002E0063006F006D"
},
// Reversed processing isn't quite the same as doing a scan from the right.
// This is CN only, not an invalid value.
{
X500DistinguishedNameFlags.UseSemicolons | X500DistinguishedNameFlags.Reversed,
"CN=\"Common Name, [email protected]\"",
"302A3128302606035504030C1F436F6D6D6F6E204E616D652C20453D75736572406578616D706C652E636F6D",
"30493147304506035504031E3E0043006F006D006D006F006E0020004E006100" +
"6D0065002C00200045003D00750073006500720040006500780061006D007000" +
"6C0065002E0063006F006D"
},
},
new FlagVariantEncoderTestCases("CN=\"Common Name, O=Organization\"")
{
// The quotes match, so this is just what it looks like.
{
X500DistinguishedNameFlags.None,
"CN=\"Common Name, O=Organization\"",
"3026312430220603550403131B436F6D6D6F6E204E616D652C204F3D4F726761" +
"6E697A6174696F6E",
null
},
// If we ignore the quotes, this is now a CN with an embedded quote and an O with an embedded quote.
{
X500DistinguishedNameFlags.DoNotUseQuotes,
"CN=\"\"\"Common Name\", O=\"Organization\"\"\"",
"302F3115301306035504030C0C22436F6D6D6F6E204E616D6531163014060355" +
"040A0C0D4F7267616E697A6174696F6E22",
"30483121301F06035504031E1800220043006F006D006D006F006E0020004E00" +
"61006D006531233021060355040A1E1A004F007200670061006E0069007A0061" +
"00740069006F006E0022"
},
// Reversed doesn't matter, there's only one value.
{
X500DistinguishedNameFlags.Reversed,
"CN=\"Common Name, O=Organization\"",
"3026312430220603550403131B436F6D6D6F6E204E616D652C204F3D4F726761" +
"6E697A6174696F6E",
null
},
// Reversed with no quotes is different.
{
X500DistinguishedNameFlags.DoNotUseQuotes | X500DistinguishedNameFlags.Reversed,
"O=\"Organization\"\"\", CN=\"\"\"Common Name\"",
"302F31163014060355040A0C0D4F7267616E697A6174696F6E22311530130603" +
"5504030C0C22436F6D6D6F6E204E616D65",
"304831233021060355040A1E1A004F007200670061006E0069007A0061007400" +
"69006F006E00223121301F06035504031E1800220043006F006D006D006F006E" +
"0020004E0061006D0065"
},
},
new FlagVariantEncoderTestCases("CN=@")
{
// A non-PrintableString value. Unix: UTF-8, Windows: BMP (UCS-2)
{
X500DistinguishedNameFlags.None,
"CN=@",
"300C310A300806035504030C0140",
"300D310B300906035504031E020040"
},
// Windows can emit the UTF-8 form, but you have to ask it to.
{
X500DistinguishedNameFlags.UseUTF8Encoding,
"CN=@",
"300C310A300806035504030C0140",
null
},
// Windows can also do the T61 (teletex) encoding.
// Unix doesn't honor this flag, it sticks with UTF-8
{
X500DistinguishedNameFlags.UseT61Encoding,
"CN=@",
"300C310A300806035504030C0140",
"300C310A30080603550403140140"
},
},
new FlagVariantEncoderTestCases("CN=a\nO=b\rOU=c\r\nL=d\n\n \n")
{
// One whitespace-heavy value. Note that the whitespace at the end
// was removed, even though the default-printed form has quotes.
{
X500DistinguishedNameFlags.None,
"CN=\"a\nO=b\rOU=c\r\nL=d\"",
"301A3118301606035504030C0F610A4F3D620D4F553D630D0A4C3D64",
"30293127302506035504031E1E0061000A004F003D0062000D004F0055003D00" +
"63000D000A004C003D0064"
},
// \r and \n are the only delimiters that are allowed to
// appear consecutively. That's because they're also whitespace.
{
X500DistinguishedNameFlags.UseNewLines,
"CN=a, O=b, OU=c, L=d",
"3030310A30080603550403130161310A3008060355040A130162310A30080603" +
"55040B130163310A30080603550407130164",
null
},
},
};
public static readonly object[][] ParserBoundaryCases =
{
// The parser states referenced here are based on the managed implementation
// used by the Unix builds.
new object[]
{
// First RDN goes from = to , directly.
// First-to-second transition has no whitespace
// Second RDN goes from = to the end of the string.
// Parser ends in SeekValueStart without having done the loop in that state.
new SimpleEncoderTestCase(
"CN=,O=",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Same as above, but with abundant whitespace.
// Parser ends in SeekValueStart after having processed some whitespace
new SimpleEncoderTestCase(
" CN= , O= ",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Lets add some quotes for good measure.
// Parser ends in MaybeEndQuote
new SimpleEncoderTestCase(
" CN= \"\" , O= \"\"",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Same as above, with trailing whitespace.
// Parser ends in SeekComma
new SimpleEncoderTestCase(
" CN= \"\" , O= \"\" ",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Give the parser the comma it wanted, now it ends in SeekTag
new SimpleEncoderTestCase(
" CN= \"\" , O= \"\" ,",
"CN=\"\", O=\"\"",
"3016310930070603550403130031093007060355040A1300",
null)
},
new object[]
{
// Parser ends in SeekValueEnd with no whitespace
new SimpleEncoderTestCase(
" CN= \"\" , O= a",
"CN=\"\", O=a",
"30173109300706035504031300310A3008060355040A130161",
null)
},
new object[]
{
// Parser ends in SeekValueEnd after reading whitespace
new SimpleEncoderTestCase(
" CN= \"\" , O= a ",
"CN=\"\", O=a",
"30173109300706035504031300310A3008060355040A130161",
null)
},
};
public class SimpleEncoderTestCase
{
private readonly string _normalized;
private readonly string _preferredEncodingHex;
private readonly string _bmpEncodingHex;
public string Input { get; private set; }
internal SimpleEncoderTestCase(
string input,
string normalized,
string preferredEncodingHex,
string bmpEncodingHex)
{
_normalized = normalized;
_preferredEncodingHex = preferredEncodingHex;
_bmpEncodingHex = bmpEncodingHex;
Input = input;
}
internal string GetNormalizedValue()
{
return _normalized ?? Input;
}
internal string GetPreferredEncoding()
{
return _preferredEncodingHex;
}
internal string GetBmpEncoding()
{
return _bmpEncodingHex;
}
}
public class FlagControlledEncoderTestCase : SimpleEncoderTestCase
{
public X500DistinguishedNameFlags Flags { get; private set; }
internal FlagControlledEncoderTestCase(
string input,
X500DistinguishedNameFlags flags,
string normalized,
string preferredEncodingHex,
string bmpEncodingHex)
: base(input, normalized, preferredEncodingHex, bmpEncodingHex)
{
Flags = flags;
}
}
public class FlagVariantEncoderTestCases : IEnumerable<FlagControlledEncoderTestCase>
{
private readonly string _template;
private readonly List<Variation> _variations = new List<Variation>();
internal FlagVariantEncoderTestCases(string template)
{
_template = template;
}
internal void Add(
X500DistinguishedNameFlags flags,
string output,
string preferredEncoding,
string bmpEncoding)
{
_variations.Add(new Variation(flags, ',', output, preferredEncoding, bmpEncoding));
}
internal IEnumerable<FlagControlledEncoderTestCase> GenerateTestCases()
{
if (_variations.Count == 0)
{
throw new InvalidOperationException("No variations were added");
}
foreach (Variation variation in _variations)
{
yield return new FlagControlledEncoderTestCase(
_template,
variation.Flags,
variation.Output,
variation.PreferredEncoding,
variation.BmpEncoding);
}
}
private class Variation
{
public X500DistinguishedNameFlags Flags { get; private set; }
public char Separator { get; private set; }
public string Output { get; private set; }
public string PreferredEncoding { get; private set; }
public string BmpEncoding { get; private set; }
public Variation(
X500DistinguishedNameFlags flags,
char separator,
string output,
string preferredEncoding,
string bmpEncoding)
{
Flags = flags;
Separator = separator;
Output = output;
PreferredEncoding = preferredEncoding;
BmpEncoding = bmpEncoding;
}
}
IEnumerator<FlagControlledEncoderTestCase> IEnumerable<FlagControlledEncoderTestCase>.GetEnumerator()
{
return GenerateTestCases().GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GenerateTestCases().GetEnumerator();
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Diagnostics.PerformanceCounter/src/System/Diagnostics/PerformanceData/CounterSet.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading;
namespace System.Diagnostics.PerformanceData
{
/// <summary>
/// CounterSet is equivalent to "Counter Object" in native performance counter terminology,
/// or "Counter Category" in previous framework releases. It defines a abstract grouping of
/// counters, where each counter defines measurable matrix. In the new performance counter
/// infrastructure, CounterSet is defined by GUID called CounterSetGuid, and is hosted inside
/// provider application, which is also defined by another GUID called ProviderGuid.
/// </summary>
public class CounterSet : IDisposable
{
internal PerfProvider _provider;
internal Guid _providerGuid;
internal Guid _counterSet;
internal CounterSetInstanceType _instType;
private readonly object _lockObject;
private bool _instanceCreated;
internal Dictionary<string, int> _stringToId;
internal Dictionary<int, CounterType> _idToCounter;
/// <summary>
/// CounterSet constructor.
/// </summary>
/// <param name="providerGuid">ProviderGuid identifies the provider application. A provider identified by ProviderGuid could publish several CounterSets defined by different CounterSetGuids</param>
/// <param name="counterSetGuid">CounterSetGuid identifies the specific CounterSet. CounterSetGuid should be unique.</param>
/// <param name="instanceType">One of defined CounterSetInstanceType values</param>
public CounterSet(Guid providerGuid, Guid counterSetGuid, CounterSetInstanceType instanceType)
{
if (!PerfProviderCollection.ValidateCounterSetInstanceType(instanceType))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidCounterSetInstanceType, instanceType), nameof(instanceType));
}
_providerGuid = providerGuid;
_counterSet = counterSetGuid;
_instType = instanceType;
PerfProviderCollection.RegisterCounterSet(_counterSet);
_provider = PerfProviderCollection.QueryProvider(_providerGuid);
_lockObject = new object();
_stringToId = new Dictionary<string, int>();
_idToCounter = new Dictionary<int, CounterType>();
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
~CounterSet()
{
Dispose(false);
}
protected virtual void Dispose(bool disposing)
{
lock (this)
{
PerfProviderCollection.UnregisterCounterSet(_counterSet);
if (_instanceCreated && _provider != null)
{
lock (_lockObject)
{
if (_provider != null)
{
Interlocked.Decrement(ref _provider._counterSet);
if (_provider._counterSet <= 0)
{
PerfProviderCollection.RemoveProvider(_providerGuid);
}
_provider = null;
}
}
}
}
}
/// <summary>
/// Add non-displayable new counter to CounterSet; that is, perfmon would not display the counter.
/// </summary>
/// <param name="counterId">CounterId uniquely identifies the counter within CounterSet</param>
/// <param name="counterType">One of defined CounterType values</param>
public void AddCounter(int counterId, CounterType counterType)
{
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (!PerfProviderCollection.ValidateCounterType(counterType))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidCounterType, counterType), nameof(counterType));
}
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
lock (_lockObject)
{
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
if (_idToCounter.ContainsKey(counterId))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_CounterAlreadyExists, counterId, _counterSet), nameof(counterId));
}
_idToCounter.Add(counterId, counterType);
}
}
/// <summary>
/// Add named new counter to CounterSet.
/// </summary>
/// <param name="counterId">CounterId uniquely identifies the counter within CounterSet</param>
/// <param name="counterType">One of defined CounterType values</param>
/// <param name="counterName">This is friendly name to help provider developers as indexer. and it might not match what is displayed in counter consumption applications lie perfmon.</param>
public void AddCounter(int counterId, CounterType counterType, string counterName!!)
{
if (counterName.Length == 0)
{
throw new ArgumentException(SR.Perflib_Argument_EmptyCounterName, nameof(counterName));
}
if (!PerfProviderCollection.ValidateCounterType(counterType))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidCounterType, counterType), nameof(counterType));
}
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
lock (_lockObject)
{
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
if (_stringToId.ContainsKey(counterName))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_CounterNameAlreadyExists, counterName, _counterSet), nameof(counterName));
}
if (_idToCounter.ContainsKey(counterId))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_CounterAlreadyExists, counterId, _counterSet), nameof(counterId));
}
_stringToId.Add(counterName, counterId);
_idToCounter.Add(counterId, counterType);
}
}
/// <summary>
/// Create instances of the CounterSet. Created CounterSetInstance identifies active identity and tracks raw counter data for that identity.
/// </summary>
/// <param name="instanceName">Friendly name identifies the instance. InstanceName would be shown in counter consumption applications like perfmon.</param>
/// <returns>CounterSetInstance object</returns>
public CounterSetInstance CreateCounterSetInstance(string instanceName!!)
{
if (instanceName.Length == 0)
{
throw new ArgumentException(SR.Perflib_Argument_EmptyInstanceName, nameof(instanceName));
}
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (!_instanceCreated)
{
lock (_lockObject)
{
if (!_instanceCreated)
{
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (_provider._hProvider.IsInvalid)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (_idToCounter.Count == 0)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_CounterSetContainsNoCounter, _counterSet));
}
uint Status = (uint)Interop.Errors.ERROR_SUCCESS;
unsafe
{
uint CounterSetInfoSize = (uint)sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct)
+ (uint)_idToCounter.Count * (uint)sizeof(Interop.PerfCounter.PerfCounterInfoStruct);
uint CounterSetInfoUsed = 0;
byte* CounterSetBuffer = stackalloc byte[(int)CounterSetInfoSize];
Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct) == 40);
Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterInfoStruct) == 32);
Interop.PerfCounter.PerfCounterSetInfoStruct* CounterSetInfo;
Interop.PerfCounter.PerfCounterInfoStruct* CounterInfo;
uint CurrentCounter = 0;
uint CurrentOffset = 0;
CounterSetInfo = (Interop.PerfCounter.PerfCounterSetInfoStruct*)CounterSetBuffer;
CounterSetInfo->CounterSetGuid = _counterSet;
CounterSetInfo->ProviderGuid = _providerGuid;
CounterSetInfo->NumCounters = (uint)_idToCounter.Count;
CounterSetInfo->InstanceType = (uint)_instType;
foreach (KeyValuePair<int, CounterType> CounterDef in _idToCounter)
{
CounterSetInfoUsed = (uint)sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct)
+ (uint)CurrentCounter * (uint)sizeof(Interop.PerfCounter.PerfCounterInfoStruct);
if (CounterSetInfoUsed < CounterSetInfoSize)
{
CounterInfo = (Interop.PerfCounter.PerfCounterInfoStruct*)(CounterSetBuffer + CounterSetInfoUsed);
CounterInfo->CounterId = (uint)CounterDef.Key;
CounterInfo->CounterType = (uint)CounterDef.Value;
CounterInfo->Attrib = 0x0000000000000001; // PERF_ATTRIB_BY_REFERENCE
CounterInfo->Size = (uint)sizeof(void*); // always use pointer size
CounterInfo->DetailLevel = 100; // PERF_DETAIL_NOVICE
CounterInfo->Scale = 0; // Default scale
CounterInfo->Offset = CurrentOffset;
CurrentOffset += CounterInfo->Size;
}
CurrentCounter++;
}
Status = Interop.PerfCounter.PerfSetCounterSetInfo(_provider._hProvider, CounterSetInfo, CounterSetInfoSize);
// ERROR_INVALID_PARAMETER, ERROR_ALREADY_EXISTS, ERROR_NOT_ENOUGH_MEMORY, ERROR_OUTOFMEMORY
if (Status != (uint)Interop.Errors.ERROR_SUCCESS)
{
throw Status switch
{
(uint)Interop.Errors.ERROR_ALREADY_EXISTS => new InvalidOperationException(SR.Format(SR.Perflib_Argument_CounterSetAlreadyRegister, _counterSet)),
_ => new Win32Exception((int)Status),
};
}
Interlocked.Increment(ref _provider._counterSet);
}
_instanceCreated = true;
}
}
}
CounterSetInstance thisInst = new CounterSetInstance(this, instanceName);
return thisInst;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading;
namespace System.Diagnostics.PerformanceData
{
/// <summary>
/// CounterSet is equivalent to "Counter Object" in native performance counter terminology,
/// or "Counter Category" in previous framework releases. It defines a abstract grouping of
/// counters, where each counter defines measurable matrix. In the new performance counter
/// infrastructure, CounterSet is defined by GUID called CounterSetGuid, and is hosted inside
/// provider application, which is also defined by another GUID called ProviderGuid.
/// </summary>
public class CounterSet : IDisposable
{
internal PerfProvider _provider;
internal Guid _providerGuid;
internal Guid _counterSet;
internal CounterSetInstanceType _instType;
private readonly object _lockObject;
private bool _instanceCreated;
internal Dictionary<string, int> _stringToId;
internal Dictionary<int, CounterType> _idToCounter;
/// <summary>
/// CounterSet constructor.
/// </summary>
/// <param name="providerGuid">ProviderGuid identifies the provider application. A provider identified by ProviderGuid could publish several CounterSets defined by different CounterSetGuids</param>
/// <param name="counterSetGuid">CounterSetGuid identifies the specific CounterSet. CounterSetGuid should be unique.</param>
/// <param name="instanceType">One of defined CounterSetInstanceType values</param>
public CounterSet(Guid providerGuid, Guid counterSetGuid, CounterSetInstanceType instanceType)
{
if (!PerfProviderCollection.ValidateCounterSetInstanceType(instanceType))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidCounterSetInstanceType, instanceType), nameof(instanceType));
}
_providerGuid = providerGuid;
_counterSet = counterSetGuid;
_instType = instanceType;
PerfProviderCollection.RegisterCounterSet(_counterSet);
_provider = PerfProviderCollection.QueryProvider(_providerGuid);
_lockObject = new object();
_stringToId = new Dictionary<string, int>();
_idToCounter = new Dictionary<int, CounterType>();
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
~CounterSet()
{
Dispose(false);
}
protected virtual void Dispose(bool disposing)
{
lock (this)
{
PerfProviderCollection.UnregisterCounterSet(_counterSet);
if (_instanceCreated && _provider != null)
{
lock (_lockObject)
{
if (_provider != null)
{
Interlocked.Decrement(ref _provider._counterSet);
if (_provider._counterSet <= 0)
{
PerfProviderCollection.RemoveProvider(_providerGuid);
}
_provider = null;
}
}
}
}
}
/// <summary>
/// Add non-displayable new counter to CounterSet; that is, perfmon would not display the counter.
/// </summary>
/// <param name="counterId">CounterId uniquely identifies the counter within CounterSet</param>
/// <param name="counterType">One of defined CounterType values</param>
public void AddCounter(int counterId, CounterType counterType)
{
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (!PerfProviderCollection.ValidateCounterType(counterType))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidCounterType, counterType), nameof(counterType));
}
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
lock (_lockObject)
{
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
if (_idToCounter.ContainsKey(counterId))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_CounterAlreadyExists, counterId, _counterSet), nameof(counterId));
}
_idToCounter.Add(counterId, counterType);
}
}
/// <summary>
/// Add named new counter to CounterSet.
/// </summary>
/// <param name="counterId">CounterId uniquely identifies the counter within CounterSet</param>
/// <param name="counterType">One of defined CounterType values</param>
/// <param name="counterName">This is friendly name to help provider developers as indexer. and it might not match what is displayed in counter consumption applications lie perfmon.</param>
public void AddCounter(int counterId, CounterType counterType, string counterName!!)
{
if (counterName.Length == 0)
{
throw new ArgumentException(SR.Perflib_Argument_EmptyCounterName, nameof(counterName));
}
if (!PerfProviderCollection.ValidateCounterType(counterType))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_InvalidCounterType, counterType), nameof(counterType));
}
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
lock (_lockObject)
{
if (_instanceCreated)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_AddCounterAfterInstance, _counterSet));
}
if (_stringToId.ContainsKey(counterName))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_CounterNameAlreadyExists, counterName, _counterSet), nameof(counterName));
}
if (_idToCounter.ContainsKey(counterId))
{
throw new ArgumentException(SR.Format(SR.Perflib_Argument_CounterAlreadyExists, counterId, _counterSet), nameof(counterId));
}
_stringToId.Add(counterName, counterId);
_idToCounter.Add(counterId, counterType);
}
}
/// <summary>
/// Create instances of the CounterSet. Created CounterSetInstance identifies active identity and tracks raw counter data for that identity.
/// </summary>
/// <param name="instanceName">Friendly name identifies the instance. InstanceName would be shown in counter consumption applications like perfmon.</param>
/// <returns>CounterSetInstance object</returns>
public CounterSetInstance CreateCounterSetInstance(string instanceName!!)
{
if (instanceName.Length == 0)
{
throw new ArgumentException(SR.Perflib_Argument_EmptyInstanceName, nameof(instanceName));
}
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (!_instanceCreated)
{
lock (_lockObject)
{
if (!_instanceCreated)
{
if (_provider == null)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (_provider._hProvider.IsInvalid)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_NoActiveProvider, _providerGuid));
}
if (_idToCounter.Count == 0)
{
throw new InvalidOperationException(SR.Format(SR.Perflib_InvalidOperation_CounterSetContainsNoCounter, _counterSet));
}
uint Status = (uint)Interop.Errors.ERROR_SUCCESS;
unsafe
{
uint CounterSetInfoSize = (uint)sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct)
+ (uint)_idToCounter.Count * (uint)sizeof(Interop.PerfCounter.PerfCounterInfoStruct);
uint CounterSetInfoUsed = 0;
byte* CounterSetBuffer = stackalloc byte[(int)CounterSetInfoSize];
Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct) == 40);
Debug.Assert(sizeof(Interop.PerfCounter.PerfCounterInfoStruct) == 32);
Interop.PerfCounter.PerfCounterSetInfoStruct* CounterSetInfo;
Interop.PerfCounter.PerfCounterInfoStruct* CounterInfo;
uint CurrentCounter = 0;
uint CurrentOffset = 0;
CounterSetInfo = (Interop.PerfCounter.PerfCounterSetInfoStruct*)CounterSetBuffer;
CounterSetInfo->CounterSetGuid = _counterSet;
CounterSetInfo->ProviderGuid = _providerGuid;
CounterSetInfo->NumCounters = (uint)_idToCounter.Count;
CounterSetInfo->InstanceType = (uint)_instType;
foreach (KeyValuePair<int, CounterType> CounterDef in _idToCounter)
{
CounterSetInfoUsed = (uint)sizeof(Interop.PerfCounter.PerfCounterSetInfoStruct)
+ (uint)CurrentCounter * (uint)sizeof(Interop.PerfCounter.PerfCounterInfoStruct);
if (CounterSetInfoUsed < CounterSetInfoSize)
{
CounterInfo = (Interop.PerfCounter.PerfCounterInfoStruct*)(CounterSetBuffer + CounterSetInfoUsed);
CounterInfo->CounterId = (uint)CounterDef.Key;
CounterInfo->CounterType = (uint)CounterDef.Value;
CounterInfo->Attrib = 0x0000000000000001; // PERF_ATTRIB_BY_REFERENCE
CounterInfo->Size = (uint)sizeof(void*); // always use pointer size
CounterInfo->DetailLevel = 100; // PERF_DETAIL_NOVICE
CounterInfo->Scale = 0; // Default scale
CounterInfo->Offset = CurrentOffset;
CurrentOffset += CounterInfo->Size;
}
CurrentCounter++;
}
Status = Interop.PerfCounter.PerfSetCounterSetInfo(_provider._hProvider, CounterSetInfo, CounterSetInfoSize);
// ERROR_INVALID_PARAMETER, ERROR_ALREADY_EXISTS, ERROR_NOT_ENOUGH_MEMORY, ERROR_OUTOFMEMORY
if (Status != (uint)Interop.Errors.ERROR_SUCCESS)
{
throw Status switch
{
(uint)Interop.Errors.ERROR_ALREADY_EXISTS => new InvalidOperationException(SR.Format(SR.Perflib_Argument_CounterSetAlreadyRegister, _counterSet)),
_ => new Win32Exception((int)Status),
};
}
Interlocked.Increment(ref _provider._counterSet);
}
_instanceCreated = true;
}
}
}
CounterSetInstance thisInst = new CounterSetInstance(this, instanceName);
return thisInst;
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/Interop/PInvoke/IEnumerator/IEnumeratorNative.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "IEnumeratorNative.h"
#include <xplatform.h>
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE GetIntegerEnumerator(int start, int count, IEnumVARIANT** ppEnum)
{
if (count < 0)
{
return E_INVALIDARG;
}
*ppEnum = new IntegerEnumerator(start, count);
return S_OK;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE VerifyIntegerEnumerator(IEnumVARIANT* pEnum, int start, int count)
{
if (count < 0)
{
return E_INVALIDARG;
}
HRESULT hr = S_OK;
VARIANT element;
ULONG numFetched;
for(int i = start; i < start + count; ++i)
{
VariantClear(&element);
hr = pEnum->Next(1, &element, &numFetched);
if(FAILED(hr) || numFetched != 1)
{
return hr;
}
if (V_I4(&element) != i)
{
return E_UNEXPECTED;
}
}
hr = pEnum->Next(1, &element, &numFetched);
if (hr != S_FALSE || numFetched != 0)
{
return E_UNEXPECTED;
}
return S_OK;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE GetIntegerEnumeration(int start, int count, IDispatch** ppDisp)
{
if (count < 0)
{
return E_INVALIDARG;
}
*ppDisp = new IntegerEnumerable(start, count);
return S_OK;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE VerifyIntegerEnumeration(IDispatch* pDisp, int start, int count)
{
DISPPARAMS params{};
VARIANT result;
HRESULT hr = pDisp->Invoke(
DISPID_NEWENUM,
IID_NULL,
LOCALE_USER_DEFAULT,
DISPATCH_METHOD | DISPATCH_PROPERTYGET,
¶ms,
&result,
NULL,
NULL
);
if (FAILED(hr))
{
return hr;
}
if(!((V_VT(&result) == VT_UNKNOWN) || (V_VT(&result) == VT_DISPATCH)))
{
return E_UNEXPECTED;
}
IEnumVARIANT* pEnum;
hr = V_UNKNOWN(&result)->QueryInterface<IEnumVARIANT>(&pEnum);
if (FAILED(hr))
{
return hr;
}
hr = VerifyIntegerEnumerator(pEnum, start, count);
pEnum->Release();
return hr;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE PassThroughEnumerator(IEnumVARIANT* in, IEnumVARIANT** out)
{
return in->QueryInterface(out);
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "IEnumeratorNative.h"
#include <xplatform.h>
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE GetIntegerEnumerator(int start, int count, IEnumVARIANT** ppEnum)
{
if (count < 0)
{
return E_INVALIDARG;
}
*ppEnum = new IntegerEnumerator(start, count);
return S_OK;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE VerifyIntegerEnumerator(IEnumVARIANT* pEnum, int start, int count)
{
if (count < 0)
{
return E_INVALIDARG;
}
HRESULT hr = S_OK;
VARIANT element;
ULONG numFetched;
for(int i = start; i < start + count; ++i)
{
VariantClear(&element);
hr = pEnum->Next(1, &element, &numFetched);
if(FAILED(hr) || numFetched != 1)
{
return hr;
}
if (V_I4(&element) != i)
{
return E_UNEXPECTED;
}
}
hr = pEnum->Next(1, &element, &numFetched);
if (hr != S_FALSE || numFetched != 0)
{
return E_UNEXPECTED;
}
return S_OK;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE GetIntegerEnumeration(int start, int count, IDispatch** ppDisp)
{
if (count < 0)
{
return E_INVALIDARG;
}
*ppDisp = new IntegerEnumerable(start, count);
return S_OK;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE VerifyIntegerEnumeration(IDispatch* pDisp, int start, int count)
{
DISPPARAMS params{};
VARIANT result;
HRESULT hr = pDisp->Invoke(
DISPID_NEWENUM,
IID_NULL,
LOCALE_USER_DEFAULT,
DISPATCH_METHOD | DISPATCH_PROPERTYGET,
¶ms,
&result,
NULL,
NULL
);
if (FAILED(hr))
{
return hr;
}
if(!((V_VT(&result) == VT_UNKNOWN) || (V_VT(&result) == VT_DISPATCH)))
{
return E_UNEXPECTED;
}
IEnumVARIANT* pEnum;
hr = V_UNKNOWN(&result)->QueryInterface<IEnumVARIANT>(&pEnum);
if (FAILED(hr))
{
return hr;
}
hr = VerifyIntegerEnumerator(pEnum, start, count);
pEnum->Release();
return hr;
}
extern "C" DLL_EXPORT HRESULT STDMETHODCALLTYPE PassThroughEnumerator(IEnumVARIANT* in, IEnumVARIANT** out)
{
return in->QueryInterface(out);
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Drawing.Common/src/System/Drawing/ImageInfo.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Drawing.Imaging;
namespace System.Drawing
{
/// <summary>
/// Animates one or more images that have time-based frames. This file contains the nested ImageInfo class
/// - See ImageAnimator.cs for the definition of the outer class.
/// </summary>
public sealed partial class ImageAnimator
{
/// <summary>
/// ImageAnimator nested helper class used to store extra image state info.
/// </summary>
private sealed class ImageInfo
{
private const int PropertyTagFrameDelay = 0x5100;
private const int PropertyTagLoopCount = 0x5101;
private readonly Image _image;
private int _frame;
private short _loop;
private readonly int _frameCount;
private readonly short _loopCount;
private bool _frameDirty;
private readonly bool _animated;
private EventHandler? _onFrameChangedHandler;
private readonly long[]? _frameEndTimes;
private long _totalAnimationTime;
private long _frameTimer;
public ImageInfo(Image image)
{
_image = image;
_animated = ImageAnimator.CanAnimate(image);
_frameEndTimes = null;
if (_animated)
{
_frameCount = image.GetFrameCount(FrameDimension.Time);
PropertyItem? frameDelayItem = image.GetPropertyItem(PropertyTagFrameDelay);
// If the image does not have a frame delay, we just return 0.
if (frameDelayItem != null)
{
// Convert the frame delay from byte[] to int
byte[] values = frameDelayItem.Value!;
// On Windows, we get the frame delays for every frame. On Linux, we only get the first frame delay.
// We handle this by treating the frame delays as a repeating sequence, asserting that the sequence
// is fully repeatable to match the frame count.
Debug.Assert(values.Length % 4 == 0, "PropertyItem has an invalid value byte array. It should have a length evenly divisible by 4 to represent ints.");
Debug.Assert(_frameCount % (values.Length / 4) == 0, "PropertyItem has invalid value byte array. The FrameCount should be evenly divisible by a quarter of the byte array's length.");
_frameEndTimes = new long[_frameCount];
long lastEndTime = 0;
for (int f = 0, i = 0; f < _frameCount; ++f, i += 4)
{
if (i >= values.Length)
{
i = 0;
}
// Frame delays are stored in 1/100ths of a second; convert to milliseconds while accumulating
// Per spec, a frame delay can be 0 which is treated as a single animation tick
int delay = BitConverter.ToInt32(values, i) * 10;
lastEndTime += delay > 0 ? delay : ImageAnimator.AnimationDelayMS;
// Guard against overflows
if (lastEndTime < _totalAnimationTime)
{
lastEndTime = _totalAnimationTime;
}
else
{
_totalAnimationTime = lastEndTime;
}
_frameEndTimes[f] = lastEndTime;
}
}
PropertyItem? loopCountItem = image.GetPropertyItem(PropertyTagLoopCount);
if (loopCountItem != null)
{
// The loop count is a short where 0 = infinite, and a positive value indicates the
// number of times to loop. The animation will be shown 1 time more than the loop count.
byte[] values = loopCountItem.Value!;
Debug.Assert(values.Length == sizeof(short), "PropertyItem has an invalid byte array. It should represent a single short value.");
_loopCount = BitConverter.ToInt16(values);
}
else
{
_loopCount = 0;
}
}
else
{
_frameCount = 1;
}
}
/// <summary>
/// Whether the image supports animation.
/// </summary>
public bool Animated => _animated;
/// <summary>
/// The current frame has changed but the image has not yet been updated.
/// </summary>
public bool FrameDirty => _frameDirty;
public EventHandler? FrameChangedHandler
{
get
{
return _onFrameChangedHandler;
}
set
{
_onFrameChangedHandler = value;
}
}
/// <summary>
/// The total animation time of the image in milliseconds, or <value>0</value> if not animated.
/// </summary>
private long TotalAnimationTime => Animated ? _totalAnimationTime : 0;
/// <summary>
/// Whether animation should progress, respecting the image's animation support
/// and if there are animation frames or loops remaining.
/// </summary>
private bool ShouldAnimate => TotalAnimationTime > 0 ? (_loopCount == 0 || _loop <= _loopCount) : false;
/// <summary>
/// Advance the animation by the specified number of milliseconds. If the advancement
/// progresses beyond the end time of the current Frame, <see cref="FrameChangedHandler"/>
/// will be called. Subscribed handlers often use that event to call
/// <see cref="ImageAnimator.UpdateFrames(Image)"/>.
/// <para>
/// If the animation progresses beyond the end of the image's total animation time,
/// the animation will loop.
/// </para>
/// </summary>
/// <remarks>
/// This animation does not respect a GIF's specified number of animation repeats;
/// instead, animations loop indefinitely.
/// </remarks>
/// <param name="milliseconds">The number of milliseconds to advance the animation by</param>
public void AdvanceAnimationBy(long milliseconds)
{
if (ShouldAnimate)
{
int oldFrame = _frame;
_frameTimer += milliseconds;
if (_frameTimer > TotalAnimationTime)
{
_loop += (short)Math.DivRem(_frameTimer, TotalAnimationTime, out long newTimer);
_frameTimer = newTimer;
if (!ShouldAnimate)
{
// If we've finished looping, then freeze onto the last frame
_frame = _frameCount - 1;
_frameTimer = TotalAnimationTime;
}
else if (_frame > 0 && _frameTimer < _frameEndTimes![_frame - 1])
{
// If the loop put us before the current frame (which is common)
// then reset back to the first frame. We will then progress
// forward again from there (below).
_frame = 0;
}
}
while (_frameTimer > _frameEndTimes![_frame])
{
_frame++;
}
if (_frame != oldFrame)
{
_frameDirty = true;
OnFrameChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// The image this object wraps.
/// </summary>
internal Image Image => _image;
/// <summary>
/// Selects the current frame as the active frame in the image.
/// </summary>
internal void UpdateFrame()
{
if (_frameDirty)
{
_image.SelectActiveFrame(FrameDimension.Time, _frame);
_frameDirty = false;
}
}
/// <summary>
/// Raises the FrameChanged event.
/// </summary>
private void OnFrameChanged(EventArgs e)
{
if (_onFrameChangedHandler != null)
{
_onFrameChangedHandler(_image, e);
}
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.Drawing.Imaging;
namespace System.Drawing
{
/// <summary>
/// Animates one or more images that have time-based frames. This file contains the nested ImageInfo class
/// - See ImageAnimator.cs for the definition of the outer class.
/// </summary>
public sealed partial class ImageAnimator
{
/// <summary>
/// ImageAnimator nested helper class used to store extra image state info.
/// </summary>
private sealed class ImageInfo
{
private const int PropertyTagFrameDelay = 0x5100;
private const int PropertyTagLoopCount = 0x5101;
private readonly Image _image;
private int _frame;
private short _loop;
private readonly int _frameCount;
private readonly short _loopCount;
private bool _frameDirty;
private readonly bool _animated;
private EventHandler? _onFrameChangedHandler;
private readonly long[]? _frameEndTimes;
private long _totalAnimationTime;
private long _frameTimer;
public ImageInfo(Image image)
{
_image = image;
_animated = ImageAnimator.CanAnimate(image);
_frameEndTimes = null;
if (_animated)
{
_frameCount = image.GetFrameCount(FrameDimension.Time);
PropertyItem? frameDelayItem = image.GetPropertyItem(PropertyTagFrameDelay);
// If the image does not have a frame delay, we just return 0.
if (frameDelayItem != null)
{
// Convert the frame delay from byte[] to int
byte[] values = frameDelayItem.Value!;
// On Windows, we get the frame delays for every frame. On Linux, we only get the first frame delay.
// We handle this by treating the frame delays as a repeating sequence, asserting that the sequence
// is fully repeatable to match the frame count.
Debug.Assert(values.Length % 4 == 0, "PropertyItem has an invalid value byte array. It should have a length evenly divisible by 4 to represent ints.");
Debug.Assert(_frameCount % (values.Length / 4) == 0, "PropertyItem has invalid value byte array. The FrameCount should be evenly divisible by a quarter of the byte array's length.");
_frameEndTimes = new long[_frameCount];
long lastEndTime = 0;
for (int f = 0, i = 0; f < _frameCount; ++f, i += 4)
{
if (i >= values.Length)
{
i = 0;
}
// Frame delays are stored in 1/100ths of a second; convert to milliseconds while accumulating
// Per spec, a frame delay can be 0 which is treated as a single animation tick
int delay = BitConverter.ToInt32(values, i) * 10;
lastEndTime += delay > 0 ? delay : ImageAnimator.AnimationDelayMS;
// Guard against overflows
if (lastEndTime < _totalAnimationTime)
{
lastEndTime = _totalAnimationTime;
}
else
{
_totalAnimationTime = lastEndTime;
}
_frameEndTimes[f] = lastEndTime;
}
}
PropertyItem? loopCountItem = image.GetPropertyItem(PropertyTagLoopCount);
if (loopCountItem != null)
{
// The loop count is a short where 0 = infinite, and a positive value indicates the
// number of times to loop. The animation will be shown 1 time more than the loop count.
byte[] values = loopCountItem.Value!;
Debug.Assert(values.Length == sizeof(short), "PropertyItem has an invalid byte array. It should represent a single short value.");
_loopCount = BitConverter.ToInt16(values);
}
else
{
_loopCount = 0;
}
}
else
{
_frameCount = 1;
}
}
/// <summary>
/// Whether the image supports animation.
/// </summary>
public bool Animated => _animated;
/// <summary>
/// The current frame has changed but the image has not yet been updated.
/// </summary>
public bool FrameDirty => _frameDirty;
public EventHandler? FrameChangedHandler
{
get
{
return _onFrameChangedHandler;
}
set
{
_onFrameChangedHandler = value;
}
}
/// <summary>
/// The total animation time of the image in milliseconds, or <value>0</value> if not animated.
/// </summary>
private long TotalAnimationTime => Animated ? _totalAnimationTime : 0;
/// <summary>
/// Whether animation should progress, respecting the image's animation support
/// and if there are animation frames or loops remaining.
/// </summary>
private bool ShouldAnimate => TotalAnimationTime > 0 ? (_loopCount == 0 || _loop <= _loopCount) : false;
/// <summary>
/// Advance the animation by the specified number of milliseconds. If the advancement
/// progresses beyond the end time of the current Frame, <see cref="FrameChangedHandler"/>
/// will be called. Subscribed handlers often use that event to call
/// <see cref="ImageAnimator.UpdateFrames(Image)"/>.
/// <para>
/// If the animation progresses beyond the end of the image's total animation time,
/// the animation will loop.
/// </para>
/// </summary>
/// <remarks>
/// This animation does not respect a GIF's specified number of animation repeats;
/// instead, animations loop indefinitely.
/// </remarks>
/// <param name="milliseconds">The number of milliseconds to advance the animation by</param>
public void AdvanceAnimationBy(long milliseconds)
{
if (ShouldAnimate)
{
int oldFrame = _frame;
_frameTimer += milliseconds;
if (_frameTimer > TotalAnimationTime)
{
_loop += (short)Math.DivRem(_frameTimer, TotalAnimationTime, out long newTimer);
_frameTimer = newTimer;
if (!ShouldAnimate)
{
// If we've finished looping, then freeze onto the last frame
_frame = _frameCount - 1;
_frameTimer = TotalAnimationTime;
}
else if (_frame > 0 && _frameTimer < _frameEndTimes![_frame - 1])
{
// If the loop put us before the current frame (which is common)
// then reset back to the first frame. We will then progress
// forward again from there (below).
_frame = 0;
}
}
while (_frameTimer > _frameEndTimes![_frame])
{
_frame++;
}
if (_frame != oldFrame)
{
_frameDirty = true;
OnFrameChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// The image this object wraps.
/// </summary>
internal Image Image => _image;
/// <summary>
/// Selects the current frame as the active frame in the image.
/// </summary>
internal void UpdateFrame()
{
if (_frameDirty)
{
_image.SelectActiveFrame(FrameDimension.Time, _frame);
_frameDirty = false;
}
}
/// <summary>
/// Raises the FrameChanged event.
/// </summary>
private void OnFrameChanged(EventArgs e)
{
if (_onFrameChangedHandler != null)
{
_onFrameChangedHandler(_image, e);
}
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest264/Generated264.ilproj | <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated264.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated264.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b77713/b77713.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
namespace Test
{
using System;
public class BB
{
public static void Main1()
{
bool local2 = false;
try
{
if (local2)
return;
}
finally
{
throw new Exception();
}
}
public static int Main()
{
try
{
Main1();
}
catch (Exception)
{
return 100;
}
return 101;
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
namespace Test
{
using System;
public class BB
{
public static void Main1()
{
bool local2 = false;
try
{
if (local2)
return;
}
finally
{
throw new Exception();
}
}
public static int Main()
{
try
{
Main1();
}
catch (Exception)
{
return 100;
}
return 101;
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/CodeGenBringUpTests/LocallocCnstB5_d.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="LocallocCnstB5.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="LocallocCnstB5.cs" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/Loader/classloader/v1/Beta1/Layout/Matrix/cs/L-1-2-1.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//////////////////////////////////////////////////////////
// L-1-2-1.cs - Beta1 Layout Test - RDawson
//
// Tests layout of classes using 2-deep inheritance in
// the same assembly and module
//
// See ReadMe.txt in the same project as this source for
// further details about these tests.
//
using System;
class Test{
public static int Main(){
int mi_RetCode;
C c = new C();
mi_RetCode = c.Test();
if(mi_RetCode == 100)
Console.WriteLine("Pass");
else
Console.WriteLine("FAIL");
return mi_RetCode;
}
}
class A{
//////////////////////////////
// Instance Fields
public int FldPubInst;
private int FldPrivInst;
protected int FldFamInst; //Translates to "family"
internal int FldAsmInst; //Translates to "assembly"
protected internal int FldFoaInst; //Translates to "famorassem"
//////////////////////////////
// Static Fields
public static int FldPubStat;
private static int FldPrivStat;
protected static int FldFamStat; //family
internal static int FldAsmStat; //assembly
protected internal int FldFoaStat; //famorassem
//////////////////////////////
// Instance Methods
public int MethPubInst(){
Console.WriteLine("A::MethPubInst()");
return 100;
}
private int MethPrivInst(){
Console.WriteLine("A::MethPrivInst()");
return 100;
}
protected int MethFamInst(){
Console.WriteLine("A::MethFamInst()");
return 100;
}
internal int MethAsmInst(){
Console.WriteLine("A::MethAsmInst()");
return 100;
}
protected internal int MethFoaInst(){
Console.WriteLine("A::MethFoaInst()");
return 100;
}
//////////////////////////////
// Static Methods
public static int MethPubStat(){
Console.WriteLine("A::MethPubStat()");
return 100;
}
private static int MethPrivStat(){
Console.WriteLine("A::MethPrivStat()");
return 100;
}
protected static int MethFamStat(){
Console.WriteLine("A::MethFamStat()");
return 100;
}
internal static int MethAsmStat(){
Console.WriteLine("A::MethAsmStat()");
return 100;
}
protected internal static int MethFoaStat(){
Console.WriteLine("A::MethFoaStat()");
return 100;
}
//////////////////////////////
// Virtual Instance Methods
public virtual int MethPubVirt(){
Console.WriteLine("A::MethPubVirt()");
return 100;
}
//@csharp - Note that C# won't compile an illegal private virtual function
//So there is no negative testing MethPrivVirt() here.
protected virtual int MethFamVirt(){
Console.WriteLine("A::MethFamVirt()");
return 100;
}
internal virtual int MethAsmVirt(){
Console.WriteLine("A::MethAsmVirt()");
return 100;
}
protected internal virtual int MethFoaVirt(){
Console.WriteLine("A::MethFoaVirt()");
return 100;
}
}
class B : A{
//@todo - Class B is currently a simple placeholder to force N-Deep inheritance...
//However, a non-trivial class B that might hide some members of A as a visiblity
//test is a test that we need to think about and develop. That is not currently the
//focus of this test (maybe in the near future), but for now we're happy forcing
//a N-Deep inheritance. Such instances have, in the past, proven worthy of
//investigation.
public int placeholder;
}
class C : B{
public int Test(){
int mi_RetCode = 100;
/////////////////////////////////
// Test instance field access
FldPubInst = 100;
if(FldPubInst != 100)
mi_RetCode = 0;
//@csharp - Note that C# will not compile an illegal access of FldPrivInst
//So there is no negative test here, it should be covered elsewhere and
//should throw a FielAccessException within the runtime. (IL sources is
//the most logical, only?, choice)
FldFamInst = 100;
if(FldFamInst != 100)
mi_RetCode = 0;
FldAsmInst = 100;
if(FldAsmInst != 100)
mi_RetCode = 0;
FldFoaInst = 100;
if(FldFoaInst != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test static field access
FldPubStat = 100;
if(FldPubStat != 100)
mi_RetCode = 0;
//@csharp - Again, note C# won't do private field access
FldFamStat = 100;
if(FldFamStat != 100)
mi_RetCode = 0;
FldAsmStat = 100;
if(FldAsmStat != 100)
mi_RetCode = 0;
FldFoaStat = 100;
if(FldFoaStat != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test instance method access
if(MethPubInst() != 100)
mi_RetCode = 0;
//@csharp - C# won't do private method access
if(MethFamInst() != 100)
mi_RetCode = 0;
if(MethAsmInst() != 100)
mi_RetCode = 0;
if(MethFoaInst() != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test static method access
if(MethPubStat() != 100)
mi_RetCode = 0;
//@csharp - C# won't do private method access
if(MethFamStat() != 100)
mi_RetCode = 0;
if(MethAsmStat() != 100)
mi_RetCode = 0;
if(MethFoaStat() != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test virtual method access
if(MethPubVirt() != 100)
mi_RetCode = 0;
//@csharp - C# won't do private method access
if(MethFamVirt() != 100)
mi_RetCode = 0;
if(MethAsmVirt() != 100)
mi_RetCode = 0;
if(MethFoaVirt() != 100)
mi_RetCode = 0;
return mi_RetCode;
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//////////////////////////////////////////////////////////
// L-1-2-1.cs - Beta1 Layout Test - RDawson
//
// Tests layout of classes using 2-deep inheritance in
// the same assembly and module
//
// See ReadMe.txt in the same project as this source for
// further details about these tests.
//
using System;
class Test{
public static int Main(){
int mi_RetCode;
C c = new C();
mi_RetCode = c.Test();
if(mi_RetCode == 100)
Console.WriteLine("Pass");
else
Console.WriteLine("FAIL");
return mi_RetCode;
}
}
class A{
//////////////////////////////
// Instance Fields
public int FldPubInst;
private int FldPrivInst;
protected int FldFamInst; //Translates to "family"
internal int FldAsmInst; //Translates to "assembly"
protected internal int FldFoaInst; //Translates to "famorassem"
//////////////////////////////
// Static Fields
public static int FldPubStat;
private static int FldPrivStat;
protected static int FldFamStat; //family
internal static int FldAsmStat; //assembly
protected internal int FldFoaStat; //famorassem
//////////////////////////////
// Instance Methods
public int MethPubInst(){
Console.WriteLine("A::MethPubInst()");
return 100;
}
private int MethPrivInst(){
Console.WriteLine("A::MethPrivInst()");
return 100;
}
protected int MethFamInst(){
Console.WriteLine("A::MethFamInst()");
return 100;
}
internal int MethAsmInst(){
Console.WriteLine("A::MethAsmInst()");
return 100;
}
protected internal int MethFoaInst(){
Console.WriteLine("A::MethFoaInst()");
return 100;
}
//////////////////////////////
// Static Methods
public static int MethPubStat(){
Console.WriteLine("A::MethPubStat()");
return 100;
}
private static int MethPrivStat(){
Console.WriteLine("A::MethPrivStat()");
return 100;
}
protected static int MethFamStat(){
Console.WriteLine("A::MethFamStat()");
return 100;
}
internal static int MethAsmStat(){
Console.WriteLine("A::MethAsmStat()");
return 100;
}
protected internal static int MethFoaStat(){
Console.WriteLine("A::MethFoaStat()");
return 100;
}
//////////////////////////////
// Virtual Instance Methods
public virtual int MethPubVirt(){
Console.WriteLine("A::MethPubVirt()");
return 100;
}
//@csharp - Note that C# won't compile an illegal private virtual function
//So there is no negative testing MethPrivVirt() here.
protected virtual int MethFamVirt(){
Console.WriteLine("A::MethFamVirt()");
return 100;
}
internal virtual int MethAsmVirt(){
Console.WriteLine("A::MethAsmVirt()");
return 100;
}
protected internal virtual int MethFoaVirt(){
Console.WriteLine("A::MethFoaVirt()");
return 100;
}
}
class B : A{
//@todo - Class B is currently a simple placeholder to force N-Deep inheritance...
//However, a non-trivial class B that might hide some members of A as a visiblity
//test is a test that we need to think about and develop. That is not currently the
//focus of this test (maybe in the near future), but for now we're happy forcing
//a N-Deep inheritance. Such instances have, in the past, proven worthy of
//investigation.
public int placeholder;
}
class C : B{
public int Test(){
int mi_RetCode = 100;
/////////////////////////////////
// Test instance field access
FldPubInst = 100;
if(FldPubInst != 100)
mi_RetCode = 0;
//@csharp - Note that C# will not compile an illegal access of FldPrivInst
//So there is no negative test here, it should be covered elsewhere and
//should throw a FielAccessException within the runtime. (IL sources is
//the most logical, only?, choice)
FldFamInst = 100;
if(FldFamInst != 100)
mi_RetCode = 0;
FldAsmInst = 100;
if(FldAsmInst != 100)
mi_RetCode = 0;
FldFoaInst = 100;
if(FldFoaInst != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test static field access
FldPubStat = 100;
if(FldPubStat != 100)
mi_RetCode = 0;
//@csharp - Again, note C# won't do private field access
FldFamStat = 100;
if(FldFamStat != 100)
mi_RetCode = 0;
FldAsmStat = 100;
if(FldAsmStat != 100)
mi_RetCode = 0;
FldFoaStat = 100;
if(FldFoaStat != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test instance method access
if(MethPubInst() != 100)
mi_RetCode = 0;
//@csharp - C# won't do private method access
if(MethFamInst() != 100)
mi_RetCode = 0;
if(MethAsmInst() != 100)
mi_RetCode = 0;
if(MethFoaInst() != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test static method access
if(MethPubStat() != 100)
mi_RetCode = 0;
//@csharp - C# won't do private method access
if(MethFamStat() != 100)
mi_RetCode = 0;
if(MethAsmStat() != 100)
mi_RetCode = 0;
if(MethFoaStat() != 100)
mi_RetCode = 0;
/////////////////////////////////
// Test virtual method access
if(MethPubVirt() != 100)
mi_RetCode = 0;
//@csharp - C# won't do private method access
if(MethFamVirt() != 100)
mi_RetCode = 0;
if(MethAsmVirt() != 100)
mi_RetCode = 0;
if(MethFoaVirt() != 100)
mi_RetCode = 0;
return mi_RetCode;
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/CreateNewOnMetadataUpdateAttribute.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Indicates a type should be replaced rather than updated when applying metadata updates.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)]
public sealed class CreateNewOnMetadataUpdateAttribute : Attribute
{
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Indicates a type should be replaced rather than updated when applying metadata updates.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)]
public sealed class CreateNewOnMetadataUpdateAttribute : Attribute
{
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/HardwareIntrinsics/Arm/Aes/Decrypt.Vector128.Byte.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\Arm\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void Decrypt_Vector128_Byte()
{
var test = new AesBinaryOpTest__Decrypt_Vector128_Byte();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class AesBinaryOpTest__Decrypt_Vector128_Byte
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Byte[] inArray1, Byte[] inArray2, Byte[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Byte>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Byte>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Byte>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Byte, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Byte, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector128<Byte> _fld1;
public Vector128<Byte> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref testStruct._fld1), ref Unsafe.As<Byte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref testStruct._fld2), ref Unsafe.As<Byte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
return testStruct;
}
public void RunStructFldScenario(AesBinaryOpTest__Decrypt_Vector128_Byte testClass)
{
var result = Aes.Decrypt(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(AesBinaryOpTest__Decrypt_Vector128_Byte testClass)
{
fixed (Vector128<Byte>* pFld1 = &_fld1)
fixed (Vector128<Byte>* pFld2 = &_fld2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pFld1)),
AdvSimd.LoadVector128((Byte*)(pFld2))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Byte>>() / sizeof(Byte);
private static Byte[] _data1 = new Byte[16] {0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01, 0xFF, 0xEE, 0xDD, 0xCC, 0xBB, 0xAA, 0x99, 0x88};
private static Byte[] _data2 = new Byte[16] {0xFF, 0xDD, 0xBB, 0x99, 0x77, 0x55, 0x33, 0x11, 0xEE, 0xCC, 0xAA, 0x88, 0x66, 0x44, 0x22, 0x00};
private static Byte[] _expectedRet = new Byte[16] {0x7C, 0x99, 0x02, 0x7C, 0x7C, 0x7C, 0xFE, 0x86, 0xE3, 0x7C, 0x7C, 0x97, 0xC9, 0x94, 0x7C, 0x7C};
private static Vector128<Byte> _clsVar1;
private static Vector128<Byte> _clsVar2;
private Vector128<Byte> _fld1;
private Vector128<Byte> _fld2;
private DataTable _dataTable;
static AesBinaryOpTest__Decrypt_Vector128_Byte()
{
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _clsVar1), ref Unsafe.As<Byte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _clsVar2), ref Unsafe.As<Byte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
}
public AesBinaryOpTest__Decrypt_Vector128_Byte()
{
Succeeded = true;
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _fld1), ref Unsafe.As<Byte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _fld2), ref Unsafe.As<Byte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
_dataTable = new DataTable(_data1, _data2, new Byte[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Aes.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Aes.Decrypt(
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Aes).GetMethod(nameof(Aes.Decrypt), new Type[] { typeof(Vector128<Byte>), typeof(Vector128<Byte>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Byte>)(result));
ValidateResult(_dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Aes).GetMethod(nameof(Aes.Decrypt), new Type[] { typeof(Vector128<Byte>), typeof(Vector128<Byte>) })
.Invoke(null, new object[] {
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Byte>)(result));
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Aes.Decrypt(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector128<Byte>* pClsVar1 = &_clsVar1)
fixed (Vector128<Byte>* pClsVar2 = &_clsVar2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pClsVar1)),
AdvSimd.LoadVector128((Byte*)(pClsVar2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var left = Unsafe.Read<Vector128<Byte>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<Vector128<Byte>>(_dataTable.inArray2Ptr);
var result = Aes.Decrypt(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var left = AdvSimd.LoadVector128((Byte*)(_dataTable.inArray1Ptr));
var right = AdvSimd.LoadVector128((Byte*)(_dataTable.inArray2Ptr));
var result = Aes.Decrypt(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new AesBinaryOpTest__Decrypt_Vector128_Byte();
var result = Aes.Decrypt(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new AesBinaryOpTest__Decrypt_Vector128_Byte();
fixed (Vector128<Byte>* pFld1 = &test._fld1)
fixed (Vector128<Byte>* pFld2 = &test._fld2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pFld1)),
AdvSimd.LoadVector128((Byte*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Aes.Decrypt(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector128<Byte>* pFld1 = &_fld1)
fixed (Vector128<Byte>* pFld2 = &_fld2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pFld1)),
AdvSimd.LoadVector128((Byte*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Aes.Decrypt(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(&test._fld1)),
AdvSimd.LoadVector128((Byte*)(&test._fld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(void* result, [CallerMemberName] string method = "")
{
Byte[] outArray = new Byte[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Byte>>());
ValidateResult(outArray, method);
}
private void ValidateResult(Byte[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
for (int i = 0; i < result.Length; i++)
{
if (result[i] != _expectedRet[i] )
{
succeeded = false;
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Aes)}.{nameof(Aes.Decrypt)}<Byte>(Vector128<Byte>, Vector128<Byte>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" expectedRet: ({string.Join(", ", _expectedRet)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\Arm\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
namespace JIT.HardwareIntrinsics.Arm
{
public static partial class Program
{
private static void Decrypt_Vector128_Byte()
{
var test = new AesBinaryOpTest__Decrypt_Vector128_Byte();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
}
// Validates passing a static member works
test.RunClsVarScenario();
if (AdvSimd.IsSupported)
{
// Validates passing a static member works, using pinning and Load
test.RunClsVarScenario_Load();
}
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (AdvSimd.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local class works, using pinning and Load
test.RunClassLclFldScenario_Load();
}
// Validates passing an instance member of a class works
test.RunClassFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a class works, using pinning and Load
test.RunClassFldScenario_Load();
}
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing the field of a local struct works, using pinning and Load
test.RunStructLclFldScenario_Load();
}
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
if (AdvSimd.IsSupported)
{
// Validates passing an instance member of a struct works, using pinning and Load
test.RunStructFldScenario_Load();
}
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class AesBinaryOpTest__Decrypt_Vector128_Byte
{
private struct DataTable
{
private byte[] inArray1;
private byte[] inArray2;
private byte[] outArray;
private GCHandle inHandle1;
private GCHandle inHandle2;
private GCHandle outHandle;
private ulong alignment;
public DataTable(Byte[] inArray1, Byte[] inArray2, Byte[] outArray, int alignment)
{
int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Byte>();
int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Byte>();
int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Byte>();
if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray)
{
throw new ArgumentException("Invalid value of alignment");
}
this.inArray1 = new byte[alignment * 2];
this.inArray2 = new byte[alignment * 2];
this.outArray = new byte[alignment * 2];
this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned);
this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned);
this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned);
this.alignment = (ulong)alignment;
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Byte, byte>(ref inArray1[0]), (uint)sizeOfinArray1);
Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Byte, byte>(ref inArray2[0]), (uint)sizeOfinArray2);
}
public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment);
public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment);
public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment);
public void Dispose()
{
inHandle1.Free();
inHandle2.Free();
outHandle.Free();
}
private static unsafe void* Align(byte* buffer, ulong expectedAlignment)
{
return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1));
}
}
private struct TestStruct
{
public Vector128<Byte> _fld1;
public Vector128<Byte> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref testStruct._fld1), ref Unsafe.As<Byte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref testStruct._fld2), ref Unsafe.As<Byte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
return testStruct;
}
public void RunStructFldScenario(AesBinaryOpTest__Decrypt_Vector128_Byte testClass)
{
var result = Aes.Decrypt(_fld1, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(testClass._dataTable.outArrayPtr);
}
public void RunStructFldScenario_Load(AesBinaryOpTest__Decrypt_Vector128_Byte testClass)
{
fixed (Vector128<Byte>* pFld1 = &_fld1)
fixed (Vector128<Byte>* pFld2 = &_fld2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pFld1)),
AdvSimd.LoadVector128((Byte*)(pFld2))
);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(testClass._dataTable.outArrayPtr);
}
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Byte>>() / sizeof(Byte);
private static Byte[] _data1 = new Byte[16] {0xEF, 0xCD, 0xAB, 0x89, 0x67, 0x45, 0x23, 0x01, 0xFF, 0xEE, 0xDD, 0xCC, 0xBB, 0xAA, 0x99, 0x88};
private static Byte[] _data2 = new Byte[16] {0xFF, 0xDD, 0xBB, 0x99, 0x77, 0x55, 0x33, 0x11, 0xEE, 0xCC, 0xAA, 0x88, 0x66, 0x44, 0x22, 0x00};
private static Byte[] _expectedRet = new Byte[16] {0x7C, 0x99, 0x02, 0x7C, 0x7C, 0x7C, 0xFE, 0x86, 0xE3, 0x7C, 0x7C, 0x97, 0xC9, 0x94, 0x7C, 0x7C};
private static Vector128<Byte> _clsVar1;
private static Vector128<Byte> _clsVar2;
private Vector128<Byte> _fld1;
private Vector128<Byte> _fld2;
private DataTable _dataTable;
static AesBinaryOpTest__Decrypt_Vector128_Byte()
{
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _clsVar1), ref Unsafe.As<Byte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _clsVar2), ref Unsafe.As<Byte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
}
public AesBinaryOpTest__Decrypt_Vector128_Byte()
{
Succeeded = true;
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _fld1), ref Unsafe.As<Byte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Byte>, byte>(ref _fld2), ref Unsafe.As<Byte, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Byte>>());
_dataTable = new DataTable(_data1, _data2, new Byte[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Aes.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Aes.Decrypt(
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Aes).GetMethod(nameof(Aes.Decrypt), new Type[] { typeof(Vector128<Byte>), typeof(Vector128<Byte>) })
.Invoke(null, new object[] {
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray1Ptr),
Unsafe.Read<Vector128<Byte>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Byte>)(result));
ValidateResult(_dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Aes).GetMethod(nameof(Aes.Decrypt), new Type[] { typeof(Vector128<Byte>), typeof(Vector128<Byte>) })
.Invoke(null, new object[] {
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray1Ptr)),
AdvSimd.LoadVector128((Byte*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Byte>)(result));
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Aes.Decrypt(
_clsVar1,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClsVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load));
fixed (Vector128<Byte>* pClsVar1 = &_clsVar1)
fixed (Vector128<Byte>* pClsVar2 = &_clsVar2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pClsVar1)),
AdvSimd.LoadVector128((Byte*)(pClsVar2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var left = Unsafe.Read<Vector128<Byte>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<Vector128<Byte>>(_dataTable.inArray2Ptr);
var result = Aes.Decrypt(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var left = AdvSimd.LoadVector128((Byte*)(_dataTable.inArray1Ptr));
var right = AdvSimd.LoadVector128((Byte*)(_dataTable.inArray2Ptr));
var result = Aes.Decrypt(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new AesBinaryOpTest__Decrypt_Vector128_Byte();
var result = Aes.Decrypt(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClassLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));
var test = new AesBinaryOpTest__Decrypt_Vector128_Byte();
fixed (Vector128<Byte>* pFld1 = &test._fld1)
fixed (Vector128<Byte>* pFld2 = &test._fld2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pFld1)),
AdvSimd.LoadVector128((Byte*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Aes.Decrypt(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunClassFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));
fixed (Vector128<Byte>* pFld1 = &_fld1)
fixed (Vector128<Byte>* pFld2 = &_fld2)
{
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(pFld1)),
AdvSimd.LoadVector128((Byte*)(pFld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Aes.Decrypt(test._fld1, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunStructLclFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));
var test = TestStruct.Create();
var result = Aes.Decrypt(
AdvSimd.LoadVector128((Byte*)(&test._fld1)),
AdvSimd.LoadVector128((Byte*)(&test._fld2))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunStructFldScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load));
var test = TestStruct.Create();
test.RunStructFldScenario_Load(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(void* result, [CallerMemberName] string method = "")
{
Byte[] outArray = new Byte[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Byte>>());
ValidateResult(outArray, method);
}
private void ValidateResult(Byte[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
for (int i = 0; i < result.Length; i++)
{
if (result[i] != _expectedRet[i] )
{
succeeded = false;
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Aes)}.{nameof(Aes.Decrypt)}<Byte>(Vector128<Byte>, Vector128<Byte>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" expectedRet: ({string.Join(", ", _expectedRet)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/HardwareIntrinsics/X86/Avx2_Vector128/MaskLoad.UInt64.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Reflection;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void MaskLoadUInt64()
{
var test = new SimpleBinaryOpTest__MaskLoadUInt64();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleBinaryOpTest__MaskLoadUInt64
{
private struct TestStruct
{
public Vector128<UInt64> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
return testStruct;
}
public void RunStructFldScenario(SimpleBinaryOpTest__MaskLoadUInt64 testClass)
{
var result = Avx2.MaskLoad((UInt64*)testClass._dataTable.inArray1Ptr, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(testClass._dataTable.inArray1Ptr, _fld2, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static UInt64[] _data1 = new UInt64[Op1ElementCount];
private static UInt64[] _data2 = new UInt64[Op2ElementCount];
private static Vector128<UInt64> _clsVar2;
private Vector128<UInt64> _fld2;
private SimpleBinaryOpTest__DataTable<UInt64, UInt64, UInt64> _dataTable;
static SimpleBinaryOpTest__MaskLoadUInt64()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _clsVar2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
}
public SimpleBinaryOpTest__MaskLoadUInt64()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
_dataTable = new SimpleBinaryOpTest__DataTable<UInt64, UInt64, UInt64>(_data1, _data2, new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
Sse2.LoadVector128((UInt64*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.MaskLoad), new Type[] { typeof(UInt64*), typeof(Vector128<UInt64>) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.inArray1Ptr, typeof(UInt64*)),
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.MaskLoad), new Type[] { typeof(UInt64*), typeof(Vector128<UInt64>) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.inArray1Ptr, typeof(UInt64*)),
Sse2.LoadVector128((UInt64*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.MaskLoad), new Type[] { typeof(UInt64*), typeof(Vector128<UInt64>) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.inArray1Ptr, typeof(UInt64*)),
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _clsVar2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var left = (UInt64*)_dataTable.inArray1Ptr;
var right = Unsafe.Read<Vector128<UInt64>>(_dataTable.inArray2Ptr);
var result = Avx2.MaskLoad(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(left, right, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var left = (UInt64*)_dataTable.inArray1Ptr;
var right = Sse2.LoadVector128((UInt64*)(_dataTable.inArray2Ptr));
var result = Avx2.MaskLoad(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(left, right, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var left = (UInt64*)_dataTable.inArray1Ptr;
var right = Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArray2Ptr));
var result = Avx2.MaskLoad(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(left, right, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleBinaryOpTest__MaskLoadUInt64();
var result = Avx2.MaskLoad((UInt64*)_dataTable.inArray1Ptr, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.MaskLoad((UInt64*)_dataTable.inArray1Ptr, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.MaskLoad((UInt64*)_dataTable.inArray1Ptr, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(void* left, Vector128<UInt64> right, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray1 = new UInt64[Op1ElementCount];
UInt64[] inArray2 = new UInt64[Op2ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), right);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* left, void* right, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray1 = new UInt64[Op1ElementCount];
UInt64[] inArray2 = new UInt64[Op2ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(right), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(UInt64[] left, UInt64[] right, UInt64[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (((right[0] & (1UL << 63)) != 0) ? left[0] : 0))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (((right[i] & (1UL << 63)) != 0) ? left[i] : 0))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.MaskLoad)}<UInt64>(UInt64*, Vector128<UInt64>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/******************************************************************************
* This file is auto-generated from a template file by the GenerateTests.csx *
* script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make *
* changes, please update the corresponding template and run according to the *
* directions listed in the file. *
******************************************************************************/
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Reflection;
namespace JIT.HardwareIntrinsics.X86
{
public static partial class Program
{
private static void MaskLoadUInt64()
{
var test = new SimpleBinaryOpTest__MaskLoadUInt64();
if (test.IsSupported)
{
// Validates basic functionality works, using Unsafe.Read
test.RunBasicScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates basic functionality works, using Load
test.RunBasicScenario_Load();
// Validates basic functionality works, using LoadAligned
test.RunBasicScenario_LoadAligned();
}
// Validates calling via reflection works, using Unsafe.Read
test.RunReflectionScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates calling via reflection works, using Load
test.RunReflectionScenario_Load();
// Validates calling via reflection works, using LoadAligned
test.RunReflectionScenario_LoadAligned();
}
// Validates passing a static member works
test.RunClsVarScenario();
// Validates passing a local works, using Unsafe.Read
test.RunLclVarScenario_UnsafeRead();
if (Sse2.IsSupported)
{
// Validates passing a local works, using Load
test.RunLclVarScenario_Load();
// Validates passing a local works, using LoadAligned
test.RunLclVarScenario_LoadAligned();
}
// Validates passing the field of a local class works
test.RunClassLclFldScenario();
// Validates passing an instance member of a class works
test.RunClassFldScenario();
// Validates passing the field of a local struct works
test.RunStructLclFldScenario();
// Validates passing an instance member of a struct works
test.RunStructFldScenario();
}
else
{
// Validates we throw on unsupported hardware
test.RunUnsupportedScenario();
}
if (!test.Succeeded)
{
throw new Exception("One or more scenarios did not complete as expected.");
}
}
}
public sealed unsafe class SimpleBinaryOpTest__MaskLoadUInt64
{
private struct TestStruct
{
public Vector128<UInt64> _fld2;
public static TestStruct Create()
{
var testStruct = new TestStruct();
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
return testStruct;
}
public void RunStructFldScenario(SimpleBinaryOpTest__MaskLoadUInt64 testClass)
{
var result = Avx2.MaskLoad((UInt64*)testClass._dataTable.inArray1Ptr, _fld2);
Unsafe.Write(testClass._dataTable.outArrayPtr, result);
testClass.ValidateResult(testClass._dataTable.inArray1Ptr, _fld2, testClass._dataTable.outArrayPtr);
}
}
private static readonly int LargestVectorSize = 16;
private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt64>>() / sizeof(UInt64);
private static UInt64[] _data1 = new UInt64[Op1ElementCount];
private static UInt64[] _data2 = new UInt64[Op2ElementCount];
private static Vector128<UInt64> _clsVar2;
private Vector128<UInt64> _fld2;
private SimpleBinaryOpTest__DataTable<UInt64, UInt64, UInt64> _dataTable;
static SimpleBinaryOpTest__MaskLoadUInt64()
{
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _clsVar2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
}
public SimpleBinaryOpTest__MaskLoadUInt64()
{
Succeeded = true;
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt64>, byte>(ref _fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); }
for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); }
_dataTable = new SimpleBinaryOpTest__DataTable<UInt64, UInt64, UInt64>(_data1, _data2, new UInt64[RetElementCount], LargestVectorSize);
}
public bool IsSupported => Avx2.IsSupported;
public bool Succeeded { get; set; }
public void RunBasicScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArray2Ptr)
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
Sse2.LoadVector128((UInt64*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunBasicScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArray2Ptr))
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
var result = typeof(Avx2).GetMethod(nameof(Avx2.MaskLoad), new Type[] { typeof(UInt64*), typeof(Vector128<UInt64>) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.inArray1Ptr, typeof(UInt64*)),
Unsafe.Read<Vector128<UInt64>>(_dataTable.inArray2Ptr)
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
var result = typeof(Avx2).GetMethod(nameof(Avx2.MaskLoad), new Type[] { typeof(UInt64*), typeof(Vector128<UInt64>) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.inArray1Ptr, typeof(UInt64*)),
Sse2.LoadVector128((UInt64*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunReflectionScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
var result = typeof(Avx2).GetMethod(nameof(Avx2.MaskLoad), new Type[] { typeof(UInt64*), typeof(Vector128<UInt64>) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.inArray1Ptr, typeof(UInt64*)),
Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArray2Ptr))
});
Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt64>)(result));
ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr);
}
public void RunClsVarScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
var result = Avx2.MaskLoad(
(UInt64*)_dataTable.inArray1Ptr,
_clsVar2
);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _clsVar2, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_UnsafeRead()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
var left = (UInt64*)_dataTable.inArray1Ptr;
var right = Unsafe.Read<Vector128<UInt64>>(_dataTable.inArray2Ptr);
var result = Avx2.MaskLoad(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(left, right, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_Load()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
var left = (UInt64*)_dataTable.inArray1Ptr;
var right = Sse2.LoadVector128((UInt64*)(_dataTable.inArray2Ptr));
var result = Avx2.MaskLoad(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(left, right, _dataTable.outArrayPtr);
}
public void RunLclVarScenario_LoadAligned()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
var left = (UInt64*)_dataTable.inArray1Ptr;
var right = Sse2.LoadAlignedVector128((UInt64*)(_dataTable.inArray2Ptr));
var result = Avx2.MaskLoad(left, right);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(left, right, _dataTable.outArrayPtr);
}
public void RunClassLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
var test = new SimpleBinaryOpTest__MaskLoadUInt64();
var result = Avx2.MaskLoad((UInt64*)_dataTable.inArray1Ptr, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, test._fld2, _dataTable.outArrayPtr);
}
public void RunClassFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
var result = Avx2.MaskLoad((UInt64*)_dataTable.inArray1Ptr, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, _fld2, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
var test = TestStruct.Create();
var result = Avx2.MaskLoad((UInt64*)_dataTable.inArray1Ptr, test._fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
ValidateResult(_dataTable.inArray1Ptr, test._fld2, _dataTable.outArrayPtr);
}
public void RunStructFldScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
bool succeeded = false;
try
{
RunBasicScenario_UnsafeRead();
}
catch (PlatformNotSupportedException)
{
succeeded = true;
}
if (!succeeded)
{
Succeeded = false;
}
}
private void ValidateResult(void* left, Vector128<UInt64> right, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray1 = new UInt64[Op1ElementCount];
UInt64[] inArray2 = new UInt64[Op2ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), right);
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(void* left, void* right, void* result, [CallerMemberName] string method = "")
{
UInt64[] inArray1 = new UInt64[Op1ElementCount];
UInt64[] inArray2 = new UInt64[Op2ElementCount];
UInt64[] outArray = new UInt64[RetElementCount];
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(right), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt64>>());
ValidateResult(inArray1, inArray2, outArray, method);
}
private void ValidateResult(UInt64[] left, UInt64[] right, UInt64[] result, [CallerMemberName] string method = "")
{
bool succeeded = true;
if (result[0] != (((right[0] & (1UL << 63)) != 0) ? left[0] : 0))
{
succeeded = false;
}
else
{
for (var i = 1; i < RetElementCount; i++)
{
if (result[i] != (((right[i] & (1UL << 63)) != 0) ? left[i] : 0))
{
succeeded = false;
break;
}
}
}
if (!succeeded)
{
TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.MaskLoad)}<UInt64>(UInt64*, Vector128<UInt64>): {method} failed:");
TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})");
TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})");
TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})");
TestLibrary.TestFramework.LogInformation(string.Empty);
Succeeded = false;
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/native/corehost/test/mockhostfxr/2_2/CMakeLists.txt | # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
project(mockhostfxr_2_2)
set(DOTNET_PROJECT_NAME "mockhostfxr_2_2")
add_definitions(-D_MOCKHOSTFXR_2_2)
set(SOURCES
./../mockhostfxr.cpp
)
include(../../testlib.cmake)
install_with_stripped_symbols(mockhostfxr_2_2 TARGETS corehost_test)
| # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the MIT license.
project(mockhostfxr_2_2)
set(DOTNET_PROJECT_NAME "mockhostfxr_2_2")
add_definitions(-D_MOCKHOSTFXR_2_2)
set(SOURCES
./../mockhostfxr.cpp
)
include(../../testlib.cmake)
install_with_stripped_symbols(mockhostfxr_2_2 TARGETS corehost_test)
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest709/Generated709.ilproj | <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated709.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="Generated709.il" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TestFramework\TestFramework.csproj" />
</ItemGroup>
</Project>
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/native/libs/System.Security.Cryptography.Native.Android/pal_x509.h | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal_jni.h"
#include <pal_x509_types.h>
// Creation and lifetime
PALEXPORT jobject /*X509Certificate*/ AndroidCryptoNative_X509Decode(const uint8_t* buf, int32_t len);
/*
Encode a certificate in ASN.1 DER format
Returns 1 on success, -1 on insufficient buffer, 0 otherwise.
The outLen parameter will be set to the length required for encoding the certificate.
*/
PALEXPORT int32_t AndroidCryptoNative_X509Encode(jobject /*X509Certificate*/ cert, uint8_t* out, int32_t* outLen);
/*
Decodes a collection of certificates.
Returns 1 on success, -1 on insufficient buffer, 0 otherwise.
The outLen parameter will be set to the length required for decoding the collection.
*/
PALEXPORT int32_t AndroidCryptoNative_X509DecodeCollection(const uint8_t* buf,
int32_t bufLen,
jobject /*X509Certificate*/* out,
int32_t* outLen);
/*
Exports a collection of certificates in PKCS#7 format
Returns 1 on success, -1 on insufficient buffer, 0 otherwise.
The outLen parameter will be set to the length required for exporting the collection.
*/
PALEXPORT int32_t AndroidCryptoNative_X509ExportPkcs7(jobject* /*X509Certificate[]*/ certs,
int32_t certsLen,
uint8_t* out,
int32_t* outLen);
PALEXPORT PAL_X509ContentType AndroidCryptoNative_X509GetContentType(const uint8_t* buf, int32_t len);
// Matches managed PAL_KeyAlgorithm enum
enum
{
PAL_DSA = 0,
PAL_EC = 1,
PAL_RSA = 2,
PAL_UnknownAlgorithm = -1,
};
typedef int32_t PAL_KeyAlgorithm;
/*
Gets an opaque handle for a certificate's public key
Returns null if the requested algorithm does not match that of the public key.
*/
PALEXPORT void* AndroidCryptoNative_X509PublicKey(jobject /*X509Certificate*/ cert, PAL_KeyAlgorithm algorithm);
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal_jni.h"
#include <pal_x509_types.h>
// Creation and lifetime
PALEXPORT jobject /*X509Certificate*/ AndroidCryptoNative_X509Decode(const uint8_t* buf, int32_t len);
/*
Encode a certificate in ASN.1 DER format
Returns 1 on success, -1 on insufficient buffer, 0 otherwise.
The outLen parameter will be set to the length required for encoding the certificate.
*/
PALEXPORT int32_t AndroidCryptoNative_X509Encode(jobject /*X509Certificate*/ cert, uint8_t* out, int32_t* outLen);
/*
Decodes a collection of certificates.
Returns 1 on success, -1 on insufficient buffer, 0 otherwise.
The outLen parameter will be set to the length required for decoding the collection.
*/
PALEXPORT int32_t AndroidCryptoNative_X509DecodeCollection(const uint8_t* buf,
int32_t bufLen,
jobject /*X509Certificate*/* out,
int32_t* outLen);
/*
Exports a collection of certificates in PKCS#7 format
Returns 1 on success, -1 on insufficient buffer, 0 otherwise.
The outLen parameter will be set to the length required for exporting the collection.
*/
PALEXPORT int32_t AndroidCryptoNative_X509ExportPkcs7(jobject* /*X509Certificate[]*/ certs,
int32_t certsLen,
uint8_t* out,
int32_t* outLen);
PALEXPORT PAL_X509ContentType AndroidCryptoNative_X509GetContentType(const uint8_t* buf, int32_t len);
// Matches managed PAL_KeyAlgorithm enum
enum
{
PAL_DSA = 0,
PAL_EC = 1,
PAL_RSA = 2,
PAL_UnknownAlgorithm = -1,
};
typedef int32_t PAL_KeyAlgorithm;
/*
Gets an opaque handle for a certificate's public key
Returns null if the requested algorithm does not match that of the public key.
*/
PALEXPORT void* AndroidCryptoNative_X509PublicKey(jobject /*X509Certificate*/ cert, PAL_KeyAlgorithm algorithm);
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ValueListBuilder.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace System.Collections.Generic
{
internal ref partial struct ValueListBuilder<T>
{
private Span<T> _span;
private T[]? _arrayFromPool;
private int _pos;
public ValueListBuilder(Span<T> initialSpan)
{
_span = initialSpan;
_arrayFromPool = null;
_pos = 0;
}
public int Length
{
get => _pos;
set
{
Debug.Assert(value >= 0);
Debug.Assert(value <= _span.Length);
_pos = value;
}
}
public ref T this[int index]
{
get
{
Debug.Assert(index < _pos);
return ref _span[index];
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Append(T item)
{
int pos = _pos;
if (pos >= _span.Length)
Grow();
_span[pos] = item;
_pos = pos + 1;
}
public ReadOnlySpan<T> AsSpan()
{
return _span.Slice(0, _pos);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Dispose()
{
T[]? toReturn = _arrayFromPool;
if (toReturn != null)
{
_arrayFromPool = null;
ArrayPool<T>.Shared.Return(toReturn);
}
}
private void Grow()
{
T[] array = ArrayPool<T>.Shared.Rent(_span.Length * 2);
bool success = _span.TryCopyTo(array);
Debug.Assert(success);
T[]? toReturn = _arrayFromPool;
_span = _arrayFromPool = array;
if (toReturn != null)
{
ArrayPool<T>.Shared.Return(toReturn);
}
}
}
}
| // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace System.Collections.Generic
{
internal ref partial struct ValueListBuilder<T>
{
private Span<T> _span;
private T[]? _arrayFromPool;
private int _pos;
public ValueListBuilder(Span<T> initialSpan)
{
_span = initialSpan;
_arrayFromPool = null;
_pos = 0;
}
public int Length
{
get => _pos;
set
{
Debug.Assert(value >= 0);
Debug.Assert(value <= _span.Length);
_pos = value;
}
}
public ref T this[int index]
{
get
{
Debug.Assert(index < _pos);
return ref _span[index];
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Append(T item)
{
int pos = _pos;
if (pos >= _span.Length)
Grow();
_span[pos] = item;
_pos = pos + 1;
}
public ReadOnlySpan<T> AsSpan()
{
return _span.Slice(0, _pos);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Dispose()
{
T[]? toReturn = _arrayFromPool;
if (toReturn != null)
{
_arrayFromPool = null;
ArrayPool<T>.Shared.Return(toReturn);
}
}
private void Grow()
{
T[] array = ArrayPool<T>.Shared.Rent(_span.Length * 2);
bool success = _span.TryCopyTo(array);
Debug.Assert(success);
T[]? toReturn = _arrayFromPool;
_span = _arrayFromPool = array;
if (toReturn != null)
{
ArrayPool<T>.Shared.Return(toReturn);
}
}
}
}
| -1 |
dotnet/runtime | 65,983 | Update p/invoke source generator errors to use SYSLIB prefix | Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | elinor-fung | 2022-03-01T01:37:49Z | 2022-03-01T22:24:04Z | 2a00ad862b4d43521297ab4f1d4946fd1e718b90 | a7a4ed959365851d0f9f38f5dfb9b2fe7ef04a93 | Update p/invoke source generator errors to use SYSLIB prefix. Use the established `SYSLIB` prefix convention, since the p/invoke source generator will be part of libraries. | ./src/tests/JIT/CodeGenBringUpTests/addref_ro.csproj | <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="addref.cs" />
</ItemGroup>
</Project>
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="addref.cs" />
</ItemGroup>
</Project>
| -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.