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,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.ServiceModel.Syndication/tests/TestFeeds/AtomFeeds/id-empty-fragment-id.xml
<!-- Description: id with an empty fragment identifier produces no warning Expect: !NonCanonicalURI --> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Example Feed</title> <link href="http://contoso.com/"/> <updated>2003-12-13T18:30:02Z</updated> <author> <name>Author Name</name> </author> <id>http://contoso.com/id/1234#</id> <entry> <title>Atom-Powered Robots Run Amok</title> <link href="http://contoso.com/2003/12/13/atom03"/> <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2003-12-13T18:30:02Z</updated> <summary>Some text.</summary> </entry> </feed>
<!-- Description: id with an empty fragment identifier produces no warning Expect: !NonCanonicalURI --> <feed xmlns="http://www.w3.org/2005/Atom"> <title>Example Feed</title> <link href="http://contoso.com/"/> <updated>2003-12-13T18:30:02Z</updated> <author> <name>Author Name</name> </author> <id>http://contoso.com/id/1234#</id> <entry> <title>Atom-Powered Robots Run Amok</title> <link href="http://contoso.com/2003/12/13/atom03"/> <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2003-12-13T18:30:02Z</updated> <summary>Some text.</summary> </entry> </feed>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/opt/virtualstubdispatch/manyintf/ctest_cs_d.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="ctest.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="itest1.csproj" /> <ProjectReference Include="itest2.csproj" /> <ProjectReference Include="itest3.csproj" /> <ProjectReference Include="itest4.csproj" /> <ProjectReference Include="itest5.csproj" /> <ProjectReference Include="itest6.csproj" /> <ProjectReference Include="itest7.csproj" /> <ProjectReference Include="itest8.csproj" /> <ProjectReference Include="itest9.csproj" /> <ProjectReference Include="itest10.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="ctest.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="itest1.csproj" /> <ProjectReference Include="itest2.csproj" /> <ProjectReference Include="itest3.csproj" /> <ProjectReference Include="itest4.csproj" /> <ProjectReference Include="itest5.csproj" /> <ProjectReference Include="itest6.csproj" /> <ProjectReference Include="itest7.csproj" /> <ProjectReference Include="itest8.csproj" /> <ProjectReference Include="itest9.csproj" /> <ProjectReference Include="itest10.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Globalization.Calendars/tests/System.Globalization.Calendars.Tests.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <TestRuntime>true</TestRuntime> </PropertyGroup> <ItemGroup> <Compile Include="System\Globalization\CalendarTestBase.cs" /> <Compile Include="System\Globalization\ChineseLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\EastAsianLunisolarCalendarTestBase.cs" /> <Compile Include="System\Globalization\GregorianCalendarTests.cs" /> <Compile Include="System\Globalization\HebrewCalendarTests.cs" /> <Compile Include="System\Globalization\HijriCalendarTests.cs" /> <Compile Include="System\Globalization\JapaneseCalendarTests.cs" /> <Compile Include="System\Globalization\JapaneseLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\JulianCalendarTests.cs" /> <Compile Include="System\Globalization\KoreanCalendarTests.cs" /> <Compile Include="System\Globalization\KoreanLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\PersianCalendarTests.cs" /> <Compile Include="System\Globalization\TaiwanCalendarTests.cs" /> <Compile Include="System\Globalization\TaiwanLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\ThaiBuddhistCalendarTests.cs" /> <Compile Include="System\Globalization\UmAlQuraCalendarTests.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarAddMonths.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarAddYears.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDayOfMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDayOfWeek.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDayOfYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDaysInMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDaysInYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetEra.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetLeapMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetMonthsInYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetWeekOfYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarIsLeapDay.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarIsLeapMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarIsLeapYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarTests.Utilities.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarToDateTime.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarToFourDigitYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarTwoDigitYearMax.cs" /> <Compile Include="ISOWeek\ISOWeekTests.cs" /> <Compile Include="JapaneseCalendar\JapaneseCalendarAddMonths.cs" /> <Compile Include="JapaneseCalendar\JapaneseCalendarToFourDigitYear.cs" /> <Compile Include="JapaneseCalendar\JapaneseCalendarTwoDigitYearMax.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarToDateTime.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarAddMonths.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarAddYears.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDayOfMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDayOfWeek.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDayOfYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDaysInMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDaysInYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetEra.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetMonthsInYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetWeekOfYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarIsLeapDay.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarIsLeapMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarIsLeapYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarToFourDigitYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarTwoDigitYearMax.cs" /> <Compile Include="Misc\MiscCalendars.cs" /> <Compile Include="Misc\Calendars.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarUtilities.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarAddMonths.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarAddYears.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarDaysAndMonths.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDayOfMonth.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDayOfWeek.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDayOfYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDaysInMonth.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDaysInYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetEra.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetMonth.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetMonthsInYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetWeekOfYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarIsLeapDay.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarIsLeapMonth.cs" /> <Compile Include="TaiwanCalendar\TaiWanCalendarIsLeapYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarToDateTime.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarToFourDigitYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarTwoDigitYearMax.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarAddMonths.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarAddYears.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDayOfMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDayOfWeek.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDayOfYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDaysInMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDaysInYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetEra.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetMonthsInYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetWeekOfYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarIsLeapDay.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarIsLeapMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarIsLeapYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarToDateTime.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarToFourDigitYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarTwoDigitYearMax.cs" /> <Compile Include="$(CommonTestPath)System\RandomDataGenerator.cs" /> <!-- Helpers --> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <TestRuntime>true</TestRuntime> </PropertyGroup> <ItemGroup> <Compile Include="System\Globalization\CalendarTestBase.cs" /> <Compile Include="System\Globalization\ChineseLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\EastAsianLunisolarCalendarTestBase.cs" /> <Compile Include="System\Globalization\GregorianCalendarTests.cs" /> <Compile Include="System\Globalization\HebrewCalendarTests.cs" /> <Compile Include="System\Globalization\HijriCalendarTests.cs" /> <Compile Include="System\Globalization\JapaneseCalendarTests.cs" /> <Compile Include="System\Globalization\JapaneseLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\JulianCalendarTests.cs" /> <Compile Include="System\Globalization\KoreanCalendarTests.cs" /> <Compile Include="System\Globalization\KoreanLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\PersianCalendarTests.cs" /> <Compile Include="System\Globalization\TaiwanCalendarTests.cs" /> <Compile Include="System\Globalization\TaiwanLunisolarCalendarTests.cs" /> <Compile Include="System\Globalization\ThaiBuddhistCalendarTests.cs" /> <Compile Include="System\Globalization\UmAlQuraCalendarTests.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarAddMonths.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarAddYears.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDayOfMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDayOfWeek.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDayOfYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDaysInMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetDaysInYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetEra.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetLeapMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetMonthsInYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetWeekOfYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarGetYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarIsLeapDay.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarIsLeapMonth.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarIsLeapYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarTests.Utilities.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarToDateTime.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarToFourDigitYear.cs" /> <Compile Include="GregorianCalendar\GregorianCalendarTwoDigitYearMax.cs" /> <Compile Include="ISOWeek\ISOWeekTests.cs" /> <Compile Include="JapaneseCalendar\JapaneseCalendarAddMonths.cs" /> <Compile Include="JapaneseCalendar\JapaneseCalendarToFourDigitYear.cs" /> <Compile Include="JapaneseCalendar\JapaneseCalendarTwoDigitYearMax.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarToDateTime.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarAddMonths.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarAddYears.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDayOfMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDayOfWeek.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDayOfYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDaysInMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetDaysInYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetEra.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetMonthsInYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetWeekOfYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarGetYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarIsLeapDay.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarIsLeapMonth.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarIsLeapYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarToFourDigitYear.cs" /> <Compile Include="KoreanCalendar\KoreanCalendarTwoDigitYearMax.cs" /> <Compile Include="Misc\MiscCalendars.cs" /> <Compile Include="Misc\Calendars.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarUtilities.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarAddMonths.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarAddYears.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarDaysAndMonths.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDayOfMonth.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDayOfWeek.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDayOfYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDaysInMonth.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetDaysInYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetEra.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetMonth.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetMonthsInYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetWeekOfYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarGetYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarIsLeapDay.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarIsLeapMonth.cs" /> <Compile Include="TaiwanCalendar\TaiWanCalendarIsLeapYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarToDateTime.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarToFourDigitYear.cs" /> <Compile Include="TaiwanCalendar\TaiwanCalendarTwoDigitYearMax.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarAddMonths.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarAddYears.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDayOfMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDayOfWeek.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDayOfYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDaysInMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetDaysInYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetEra.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetMonthsInYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetWeekOfYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarGetYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarIsLeapDay.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarIsLeapMonth.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarIsLeapYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarToDateTime.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarToFourDigitYear.cs" /> <Compile Include="ThaiBuddhistCalendar\ThaiBuddhistCalendarTwoDigitYearMax.cs" /> <Compile Include="$(CommonTestPath)System\RandomDataGenerator.cs" /> <!-- Helpers --> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/tools/Common/CommandLine/ArgumentSyntax.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; namespace Internal.CommandLine { public sealed partial class ArgumentSyntax { private readonly IEnumerable<string> _arguments; private readonly List<ArgumentCommand> _commands = new List<ArgumentCommand>(); private readonly List<Argument> _options = new List<Argument>(); private readonly List<Argument> _parameters = new List<Argument>(); private readonly List<string> _extraHelpParagraphs = new List<string>(); private ArgumentParser _parser; private ArgumentCommand _definedCommand; private ArgumentCommand _activeCommand; internal ArgumentSyntax(IEnumerable<string> arguments) { _arguments = arguments; ApplicationName = GetApplicationName(); HandleErrors = true; HandleHelp = true; HandleResponseFiles = true; ErrorOnUnexpectedArguments = true; } public static ArgumentSyntax Parse(IEnumerable<string> arguments, Action<ArgumentSyntax> defineAction) { if (arguments == null) throw new ArgumentNullException("arguments"); if (defineAction == null) throw new ArgumentNullException("defineAction"); var syntax = new ArgumentSyntax(arguments); defineAction(syntax); syntax.Validate(); return syntax; } private void Validate() { // Check whether help is requested if (HandleHelp && IsHelpRequested()) { var helpText = GetHelpText(); Console.Error.Write(helpText); Environment.Exit(0); } // Check for invalid or missing command if (_activeCommand == null && _commands.Any()) { var unreadCommand = Parser.GetUnreadCommand(); var message = unreadCommand == null ? Strings.MissingCommand : string.Format(Strings.UnknownCommandFmt, unreadCommand); ReportError(message); } if (ErrorOnUnexpectedArguments) { // Check for invalid options and extra parameters foreach (var option in Parser.GetUnreadOptionNames()) { var message = string.Format(Strings.InvalidOptionFmt, option); ReportError(message); } foreach (var parameter in Parser.GetUnreadParameters()) { var message = string.Format(Strings.ExtraParameterFmt, parameter); ReportError(message); } } } private bool IsHelpRequested() { return Parser.GetUnreadOptionNames() .Any(a => string.Equals(a, @"-?", StringComparison.Ordinal) || string.Equals(a, @"-h", StringComparison.Ordinal) || string.Equals(a, @"--help", StringComparison.Ordinal)); } public void ReportError(string message) { if (HandleErrors) { Console.Error.WriteLine(Strings.ErrorWithMessageFmt, message); Environment.Exit(1); } throw new ArgumentSyntaxException(message); } public ArgumentCommand<T> DefineCommand<T>(string name, T value) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (!IsValidName(name)) { var message = string.Format(Strings.CommandNameIsNotValidFmt, name); throw new ArgumentException(message, "name"); } if (_commands.Any(c => string.Equals(c.Name, name, StringComparison.Ordinal))) { var message = string.Format(Strings.CommandAlreadyDefinedFmt, name); throw new InvalidOperationException(message); } if (_options.Concat(_parameters).Any(c => c.Command == null)) throw new InvalidOperationException(Strings.CannotDefineCommandsIfArgumentsExist); var definedCommand = new ArgumentCommand<T>(name, value); _commands.Add(definedCommand); _definedCommand = definedCommand; if (_activeCommand != null) return definedCommand; if (!Parser.TryParseCommand(name)) return definedCommand; _activeCommand = _definedCommand; _activeCommand.MarkActive(); return definedCommand; } public Argument<T> DefineOption<T>(string name, T defaultValue, Func<string, T> valueConverter, bool isRequired) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (DefinedParameters.Any()) throw new InvalidOperationException(Strings.OptionsMustBeDefinedBeforeParameters); var names = ParseOptionNameList(name); var option = new Argument<T>(_definedCommand, names, defaultValue, isRequired); _options.Add(option); if (_activeCommand != _definedCommand) return option; try { if (Parser.TryParseOption(option.GetDisplayName(), option.Names, valueConverter, isRequired, out T value, out bool specified)) { option.SetValue(value); } else if (specified) { // No value was provided, but the option was specified and a value wasn't required option.MarkSpecified(); } } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return option; } public ArgumentList<T> DefineOptionList<T>(string name, IReadOnlyList<T> defaultValue, Func<string, T> valueConverter, bool isRequired) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (DefinedParameters.Any()) throw new InvalidOperationException(Strings.OptionsMustBeDefinedBeforeParameters); var names = ParseOptionNameList(name); var optionList = new ArgumentList<T>(_definedCommand, names, defaultValue, isRequired); _options.Add(optionList); if (_activeCommand != _definedCommand) return optionList; try { if (Parser.TryParseOptionList(optionList.GetDisplayName(), optionList.Names, valueConverter, isRequired, out IReadOnlyList<T> value, out bool specified)) { optionList.SetValue(value); } else if (specified) { // No value was provided, but the option was specified and a value wasn't required optionList.MarkSpecified(); } } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return optionList; } public Argument<T> DefineParameter<T>(string name, T defaultValue, Func<string, T> valueConverter) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (!IsValidName(name)) { var message = string.Format(Strings.ParameterNameIsNotValidFmt, name); throw new ArgumentException(message, "name"); } if (DefinedParameters.Any(p => p.IsList)) throw new InvalidOperationException(Strings.ParametersCannotBeDefinedAfterLists); if (DefinedParameters.Any(p => string.Equals(name, p.Name, StringComparison.OrdinalIgnoreCase))) { var message = string.Format(Strings.ParameterAlreadyDefinedFmt, name); throw new InvalidOperationException(message); } var parameter = new Argument<T>(_definedCommand, name, defaultValue); _parameters.Add(parameter); if (_activeCommand != _definedCommand) return parameter; try { if (Parser.TryParseParameter(parameter.GetDisplayName(), valueConverter, out T value)) parameter.SetValue(value); } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return parameter; } public ArgumentList<T> DefineParameterList<T>(string name, IReadOnlyList<T> defaultValue, Func<string, T> valueConverter) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (!IsValidName(name)) { var message = string.Format(Strings.ParameterNameIsNotValidFmt, name); throw new ArgumentException(message, "name"); } if (DefinedParameters.Any(p => p.IsList)) throw new InvalidOperationException(Strings.CannotDefineMultipleParameterLists); var parameterList = new ArgumentList<T>(_definedCommand, name, defaultValue); _parameters.Add(parameterList); if (_activeCommand != _definedCommand) return parameterList; try { if (Parser.TryParseParameterList(parameterList.GetDisplayName(), valueConverter, out IReadOnlyList<T> values)) parameterList.SetValue(values); } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return parameterList; } private static bool IsValidName(string name) { if (string.IsNullOrEmpty(name)) return false; if (name[0] == '-') return false; return name.All(c => char.IsLetterOrDigit(c) || c == '-' || c == '_'); } private IEnumerable<string> ParseOptionNameList(string name) { var names = name.Split('|').Select(n => n.Trim()).ToArray(); foreach (var alias in names) { if (!IsValidName(alias)) { var message = string.Format(Strings.OptionNameIsNotValidFmt, alias); throw new ArgumentException(message, "name"); } foreach (var option in DefinedOptions) { if (option.Names.Any(n => string.Equals(n, alias, StringComparison.Ordinal))) { var message = string.Format(Strings.OptionAlreadyDefinedFmt, alias); throw new InvalidOperationException(message); } } } return names; } private IEnumerable<string> ParseResponseFile(string fileName) { if (!HandleResponseFiles) return null; if (!File.Exists(fileName)) { var message = string.Format(Strings.ResponseFileDoesNotExistFmt, fileName); ReportError(message); } return File.ReadLines(fileName); } private static string GetApplicationName() { var processPath = Environment.GetCommandLineArgs()[0]; var processName = Path.GetFileNameWithoutExtension(processPath); return processName; } public string ApplicationName { get; set; } public bool HandleErrors { get; set; } public bool HandleHelp { get; set; } public bool HandleResponseFiles { get; set; } public bool ErrorOnUnexpectedArguments { get; set; } public IEnumerable<string> RemainingArguments => Parser.GetUnreadArguments(); private ArgumentParser Parser { get { if (_parser == null) _parser = new ArgumentParser(_arguments, ParseResponseFile); return _parser; } } private IEnumerable<Argument> DefinedOptions { get { return _options.Where(o => o.Command == null || o.Command == _definedCommand); } } private IEnumerable<Argument> DefinedParameters { get { return _parameters.Where(p => p.Command == null || p.Command == _definedCommand); } } public ArgumentCommand ActiveCommand { get { return _activeCommand; } } public IReadOnlyList<ArgumentCommand> Commands { get { return _commands; } } public IEnumerable<Argument> GetArguments() { return _options.Concat(_parameters); } public IEnumerable<Argument> GetArguments(ArgumentCommand command) { return GetArguments().Where(c => c.Command == null || c.Command == command); } public IEnumerable<Argument> GetOptions() { return _options; } public IEnumerable<Argument> GetOptions(ArgumentCommand command) { return _options.Where(c => c.Command == null || c.Command == command); } public IEnumerable<Argument> GetParameters() { return _parameters; } public IEnumerable<Argument> GetParameters(ArgumentCommand command) { return _parameters.Where(c => c.Command == null || c.Command == command); } public IEnumerable<Argument> GetActiveArguments() { return GetArguments(ActiveCommand); } public IEnumerable<Argument> GetActiveOptions() { return GetOptions(ActiveCommand); } public IEnumerable<Argument> GetActiveParameters() { return GetParameters(ActiveCommand); } private static int ConsoleWindowWidth() { // Console.WindowWidth will throw an exception if the output is redirected in some cases // This try/catch routine is probably excessive, but it will definitely cover all the cases try { if (!Console.IsOutputRedirected) return Console.WindowWidth; } catch { } return 100; } public string GetHelpText() { return GetHelpText(ConsoleWindowWidth() - 2); } public string GetHelpText(int maxWidth) { return HelpTextGenerator.Generate(this, maxWidth); } public IReadOnlyList<string> ExtraHelpParagraphs { set { _extraHelpParagraphs.Clear(); _extraHelpParagraphs.AddRange(value); } get { return _extraHelpParagraphs.ToArray(); } } } }
// 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; namespace Internal.CommandLine { public sealed partial class ArgumentSyntax { private readonly IEnumerable<string> _arguments; private readonly List<ArgumentCommand> _commands = new List<ArgumentCommand>(); private readonly List<Argument> _options = new List<Argument>(); private readonly List<Argument> _parameters = new List<Argument>(); private readonly List<string> _extraHelpParagraphs = new List<string>(); private ArgumentParser _parser; private ArgumentCommand _definedCommand; private ArgumentCommand _activeCommand; internal ArgumentSyntax(IEnumerable<string> arguments) { _arguments = arguments; ApplicationName = GetApplicationName(); HandleErrors = true; HandleHelp = true; HandleResponseFiles = true; ErrorOnUnexpectedArguments = true; } public static ArgumentSyntax Parse(IEnumerable<string> arguments, Action<ArgumentSyntax> defineAction) { if (arguments == null) throw new ArgumentNullException("arguments"); if (defineAction == null) throw new ArgumentNullException("defineAction"); var syntax = new ArgumentSyntax(arguments); defineAction(syntax); syntax.Validate(); return syntax; } private void Validate() { // Check whether help is requested if (HandleHelp && IsHelpRequested()) { var helpText = GetHelpText(); Console.Error.Write(helpText); Environment.Exit(0); } // Check for invalid or missing command if (_activeCommand == null && _commands.Any()) { var unreadCommand = Parser.GetUnreadCommand(); var message = unreadCommand == null ? Strings.MissingCommand : string.Format(Strings.UnknownCommandFmt, unreadCommand); ReportError(message); } if (ErrorOnUnexpectedArguments) { // Check for invalid options and extra parameters foreach (var option in Parser.GetUnreadOptionNames()) { var message = string.Format(Strings.InvalidOptionFmt, option); ReportError(message); } foreach (var parameter in Parser.GetUnreadParameters()) { var message = string.Format(Strings.ExtraParameterFmt, parameter); ReportError(message); } } } private bool IsHelpRequested() { return Parser.GetUnreadOptionNames() .Any(a => string.Equals(a, @"-?", StringComparison.Ordinal) || string.Equals(a, @"-h", StringComparison.Ordinal) || string.Equals(a, @"--help", StringComparison.Ordinal)); } public void ReportError(string message) { if (HandleErrors) { Console.Error.WriteLine(Strings.ErrorWithMessageFmt, message); Environment.Exit(1); } throw new ArgumentSyntaxException(message); } public ArgumentCommand<T> DefineCommand<T>(string name, T value) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (!IsValidName(name)) { var message = string.Format(Strings.CommandNameIsNotValidFmt, name); throw new ArgumentException(message, "name"); } if (_commands.Any(c => string.Equals(c.Name, name, StringComparison.Ordinal))) { var message = string.Format(Strings.CommandAlreadyDefinedFmt, name); throw new InvalidOperationException(message); } if (_options.Concat(_parameters).Any(c => c.Command == null)) throw new InvalidOperationException(Strings.CannotDefineCommandsIfArgumentsExist); var definedCommand = new ArgumentCommand<T>(name, value); _commands.Add(definedCommand); _definedCommand = definedCommand; if (_activeCommand != null) return definedCommand; if (!Parser.TryParseCommand(name)) return definedCommand; _activeCommand = _definedCommand; _activeCommand.MarkActive(); return definedCommand; } public Argument<T> DefineOption<T>(string name, T defaultValue, Func<string, T> valueConverter, bool isRequired) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (DefinedParameters.Any()) throw new InvalidOperationException(Strings.OptionsMustBeDefinedBeforeParameters); var names = ParseOptionNameList(name); var option = new Argument<T>(_definedCommand, names, defaultValue, isRequired); _options.Add(option); if (_activeCommand != _definedCommand) return option; try { if (Parser.TryParseOption(option.GetDisplayName(), option.Names, valueConverter, isRequired, out T value, out bool specified)) { option.SetValue(value); } else if (specified) { // No value was provided, but the option was specified and a value wasn't required option.MarkSpecified(); } } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return option; } public ArgumentList<T> DefineOptionList<T>(string name, IReadOnlyList<T> defaultValue, Func<string, T> valueConverter, bool isRequired) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (DefinedParameters.Any()) throw new InvalidOperationException(Strings.OptionsMustBeDefinedBeforeParameters); var names = ParseOptionNameList(name); var optionList = new ArgumentList<T>(_definedCommand, names, defaultValue, isRequired); _options.Add(optionList); if (_activeCommand != _definedCommand) return optionList; try { if (Parser.TryParseOptionList(optionList.GetDisplayName(), optionList.Names, valueConverter, isRequired, out IReadOnlyList<T> value, out bool specified)) { optionList.SetValue(value); } else if (specified) { // No value was provided, but the option was specified and a value wasn't required optionList.MarkSpecified(); } } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return optionList; } public Argument<T> DefineParameter<T>(string name, T defaultValue, Func<string, T> valueConverter) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (!IsValidName(name)) { var message = string.Format(Strings.ParameterNameIsNotValidFmt, name); throw new ArgumentException(message, "name"); } if (DefinedParameters.Any(p => p.IsList)) throw new InvalidOperationException(Strings.ParametersCannotBeDefinedAfterLists); if (DefinedParameters.Any(p => string.Equals(name, p.Name, StringComparison.OrdinalIgnoreCase))) { var message = string.Format(Strings.ParameterAlreadyDefinedFmt, name); throw new InvalidOperationException(message); } var parameter = new Argument<T>(_definedCommand, name, defaultValue); _parameters.Add(parameter); if (_activeCommand != _definedCommand) return parameter; try { if (Parser.TryParseParameter(parameter.GetDisplayName(), valueConverter, out T value)) parameter.SetValue(value); } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return parameter; } public ArgumentList<T> DefineParameterList<T>(string name, IReadOnlyList<T> defaultValue, Func<string, T> valueConverter) { if (string.IsNullOrEmpty(name)) throw new ArgumentException(Strings.NameMissing, "name"); if (!IsValidName(name)) { var message = string.Format(Strings.ParameterNameIsNotValidFmt, name); throw new ArgumentException(message, "name"); } if (DefinedParameters.Any(p => p.IsList)) throw new InvalidOperationException(Strings.CannotDefineMultipleParameterLists); var parameterList = new ArgumentList<T>(_definedCommand, name, defaultValue); _parameters.Add(parameterList); if (_activeCommand != _definedCommand) return parameterList; try { if (Parser.TryParseParameterList(parameterList.GetDisplayName(), valueConverter, out IReadOnlyList<T> values)) parameterList.SetValue(values); } catch (ArgumentSyntaxException ex) { ReportError(ex.Message); } return parameterList; } private static bool IsValidName(string name) { if (string.IsNullOrEmpty(name)) return false; if (name[0] == '-') return false; return name.All(c => char.IsLetterOrDigit(c) || c == '-' || c == '_'); } private IEnumerable<string> ParseOptionNameList(string name) { var names = name.Split('|').Select(n => n.Trim()).ToArray(); foreach (var alias in names) { if (!IsValidName(alias)) { var message = string.Format(Strings.OptionNameIsNotValidFmt, alias); throw new ArgumentException(message, "name"); } foreach (var option in DefinedOptions) { if (option.Names.Any(n => string.Equals(n, alias, StringComparison.Ordinal))) { var message = string.Format(Strings.OptionAlreadyDefinedFmt, alias); throw new InvalidOperationException(message); } } } return names; } private IEnumerable<string> ParseResponseFile(string fileName) { if (!HandleResponseFiles) return null; if (!File.Exists(fileName)) { var message = string.Format(Strings.ResponseFileDoesNotExistFmt, fileName); ReportError(message); } return File.ReadLines(fileName); } private static string GetApplicationName() { var processPath = Environment.GetCommandLineArgs()[0]; var processName = Path.GetFileNameWithoutExtension(processPath); return processName; } public string ApplicationName { get; set; } public bool HandleErrors { get; set; } public bool HandleHelp { get; set; } public bool HandleResponseFiles { get; set; } public bool ErrorOnUnexpectedArguments { get; set; } public IEnumerable<string> RemainingArguments => Parser.GetUnreadArguments(); private ArgumentParser Parser { get { if (_parser == null) _parser = new ArgumentParser(_arguments, ParseResponseFile); return _parser; } } private IEnumerable<Argument> DefinedOptions { get { return _options.Where(o => o.Command == null || o.Command == _definedCommand); } } private IEnumerable<Argument> DefinedParameters { get { return _parameters.Where(p => p.Command == null || p.Command == _definedCommand); } } public ArgumentCommand ActiveCommand { get { return _activeCommand; } } public IReadOnlyList<ArgumentCommand> Commands { get { return _commands; } } public IEnumerable<Argument> GetArguments() { return _options.Concat(_parameters); } public IEnumerable<Argument> GetArguments(ArgumentCommand command) { return GetArguments().Where(c => c.Command == null || c.Command == command); } public IEnumerable<Argument> GetOptions() { return _options; } public IEnumerable<Argument> GetOptions(ArgumentCommand command) { return _options.Where(c => c.Command == null || c.Command == command); } public IEnumerable<Argument> GetParameters() { return _parameters; } public IEnumerable<Argument> GetParameters(ArgumentCommand command) { return _parameters.Where(c => c.Command == null || c.Command == command); } public IEnumerable<Argument> GetActiveArguments() { return GetArguments(ActiveCommand); } public IEnumerable<Argument> GetActiveOptions() { return GetOptions(ActiveCommand); } public IEnumerable<Argument> GetActiveParameters() { return GetParameters(ActiveCommand); } private static int ConsoleWindowWidth() { // Console.WindowWidth will throw an exception if the output is redirected in some cases // This try/catch routine is probably excessive, but it will definitely cover all the cases try { if (!Console.IsOutputRedirected) return Console.WindowWidth; } catch { } return 100; } public string GetHelpText() { return GetHelpText(ConsoleWindowWidth() - 2); } public string GetHelpText(int maxWidth) { return HelpTextGenerator.Generate(this, maxWidth); } public IReadOnlyList<string> ExtraHelpParagraphs { set { _extraHelpParagraphs.Clear(); _extraHelpParagraphs.AddRange(value); } get { return _extraHelpParagraphs.ToArray(); } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Console/ref/System.Console.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <Compile Include="System.Console.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\System.Runtime\ref\System.Runtime.csproj" /> <ProjectReference Include="..\..\System.Runtime.Extensions\ref\System.Runtime.Extensions.csproj" /> <ProjectReference Include="..\..\System.Text.Encoding\ref\System.Text.Encoding.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <Compile Include="System.Console.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\System.Runtime\ref\System.Runtime.csproj" /> <ProjectReference Include="..\..\System.Runtime.Extensions\ref\System.Runtime.Extensions.csproj" /> <ProjectReference Include="..\..\System.Text.Encoding\ref\System.Text.Encoding.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Collections/tests/Generic/LinkedList/LinkedList.Generic.Tests.AddBefore.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.Collections.Tests { /// <summary> /// Contains tests that ensure the correctness of the LinkedList class. /// </summary> public abstract partial class LinkedList_Generic_Tests<T> : ICollection_Generic_Tests<T> { [Fact] public void AddBefore_LLNode() { LinkedList<T> linkedList = new LinkedList<T>(); int arraySize = 16; int seed = 8293; T[] tempItems, headItems, headItemsReverse, tailItems, tailItemsReverse; headItems = new T[arraySize]; tailItems = new T[arraySize]; headItemsReverse = new T[arraySize]; tailItemsReverse = new T[arraySize]; for (int i = 0; i < arraySize; i++) { int index = (arraySize - 1) - i; T head = CreateT(seed++); T tail = CreateT(seed++); headItems[i] = head; headItemsReverse[index] = head; tailItems[i] = tail; tailItemsReverse[index] = tail; } //[] Verify value is default(T) linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddBefore(linkedList.First, default(T)); InitialItems_Tests(linkedList, new T[] { default(T), headItems[0] }); //[] Node is the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); InitialItems_Tests(linkedList, headItemsReverse); //[] Node is the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 1, tempItems, 0, headItems.Length - 1); tempItems[tempItems.Length - 1] = headItems[0]; for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Node is after the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, tempItems, headItems.Length); Array.Reverse(tempItems, 1, headItems.Length - 1); for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.First.Next, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Node is before the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 2, tempItems, 0, headItems.Length - 2); tempItems[tempItems.Length - 2] = headItems[0]; tempItems[tempItems.Length - 1] = headItems[1]; for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Node is somewhere in the middle linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); linkedList.AddLast(headItems[2]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 3, tempItems, 0, headItems.Length - 3); tempItems[tempItems.Length - 3] = headItems[0]; tempItems[tempItems.Length - 2] = headItems[1]; tempItems[tempItems.Length - 1] = headItems[2]; for (int i = 3; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous.Previous, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Call AddBefore several times remove some of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); linkedList.Remove(headItems[2]); linkedList.Remove(headItems[headItems.Length - 3]); linkedList.Remove(headItems[1]); linkedList.Remove(headItems[headItems.Length - 2]); linkedList.RemoveFirst(); linkedList.RemoveLast(); //With the above remove we should have removed the first and last 3 items tempItems = new T[headItemsReverse.Length - 6]; Array.Copy(headItemsReverse, 3, tempItems, 0, headItemsReverse.Length - 6); InitialItems_Tests(linkedList, tempItems); for (int i = 0; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, tailItems[i]); T[] tempItems2 = new T[tailItemsReverse.Length + tempItems.Length]; Array.Copy(tailItemsReverse, tempItems2, tailItemsReverse.Length); Array.Copy(tempItems, 0, tempItems2, tailItemsReverse.Length, tempItems.Length); InitialItems_Tests(linkedList, tempItems2); //[] Call AddBefore several times remove all of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); for (int i = 0; i < arraySize; ++i) linkedList.RemoveFirst(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, tailItems[i]); InitialItems_Tests(linkedList, tailItemsReverse); //[] Call AddBefore several times then call Clear linkedList.Clear(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); linkedList.Clear(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, tailItems[i]); InitialItems_Tests(linkedList, tailItemsReverse); //[] Mix AddBefore and AddAfter calls linkedList = new LinkedList<T>(); linkedList.AddLast(headItems[0]); linkedList.AddLast(tailItems[0]); for (int i = 1; i < arraySize; ++i) { linkedList.AddBefore(linkedList.First, headItems[i]); linkedList.AddAfter(linkedList.Last, tailItems[i]); } tempItems = new T[headItemsReverse.Length + tailItems.Length]; Array.Copy(headItemsReverse, tempItems, headItemsReverse.Length); Array.Copy(tailItems, 0, tempItems, headItemsReverse.Length, tailItems.Length); InitialItems_Tests(linkedList, tempItems); } [Fact] public void AddBefore_LLNode_Negative() { LinkedList<T> linkedList = new LinkedList<T>(); LinkedList<T> tempLinkedList = new LinkedList<T>(); int seed = 8293; T[] items; //[] Verify Null node Assert.Throws<ArgumentNullException>(() => linkedList.AddBefore(null, CreateT(seed++))); //"Err_858ahia Expected null node to throws ArgumentNullException\n" InitialItems_Tests(linkedList, new T[0]); //[] Verify Node that is a new Node linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++) }; linkedList.AddLast(items[0]); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(new LinkedListNode<T>(CreateT(seed++)), CreateT(seed++))); //"Err_0568ajods Expected Node that is a new Node throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); //[] Verify Node that already exists in another collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); tempLinkedList.Clear(); tempLinkedList.AddLast(CreateT(seed++)); tempLinkedList.AddLast(CreateT(seed++)); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(tempLinkedList.Last, CreateT(seed++))); //"Err_98809ahied Node that already exists in another collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); } [Fact] public void AddBefore_LLNode_LLNode() { LinkedList<T> linkedList = new LinkedList<T>(); int arraySize = 16; int seed = 8293; T[] tempItems, headItems, headItemsReverse, tailItems, tailItemsReverse; headItems = new T[arraySize]; tailItems = new T[arraySize]; headItemsReverse = new T[arraySize]; tailItemsReverse = new T[arraySize]; for (int i = 0; i < arraySize; i++) { int index = (arraySize - 1) - i; T head = CreateT(seed++); T tail = CreateT(seed++); headItems[i] = head; headItemsReverse[index] = head; tailItems[i] = tail; tailItemsReverse[index] = tail; } //[] Verify value is default(T) linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(default(T))); InitialItems_Tests(linkedList, new T[] { default(T), headItems[0] }); //[] Node is the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, headItemsReverse); //[] Node is the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 1, tempItems, 0, headItems.Length - 1); tempItems[tempItems.Length - 1] = headItems[0]; for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Node is after the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, tempItems, headItems.Length); Array.Reverse(tempItems, 1, headItems.Length - 1); for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.First.Next, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Node is before the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 2, tempItems, 0, headItems.Length - 2); tempItems[tempItems.Length - 2] = headItems[0]; tempItems[tempItems.Length - 1] = headItems[1]; for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Node is somewhere in the middle linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); linkedList.AddLast(headItems[2]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 3, tempItems, 0, headItems.Length - 3); tempItems[tempItems.Length - 3] = headItems[0]; tempItems[tempItems.Length - 2] = headItems[1]; tempItems[tempItems.Length - 1] = headItems[2]; for (int i = 3; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous.Previous, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Call AddBefore several times remove some of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); linkedList.Remove(headItems[2]); linkedList.Remove(headItems[headItems.Length - 3]); linkedList.Remove(headItems[1]); linkedList.Remove(headItems[headItems.Length - 2]); linkedList.RemoveFirst(); linkedList.RemoveLast(); //With the above remove we should have removed the first and last 3 items tempItems = new T[headItemsReverse.Length - 6]; Array.Copy(headItemsReverse, 3, tempItems, 0, headItemsReverse.Length - 6); InitialItems_Tests(linkedList, tempItems); for (int i = 0; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(tailItems[i])); T[] tempItems2 = new T[tailItemsReverse.Length + tempItems.Length]; Array.Copy(tailItemsReverse, tempItems2, tailItemsReverse.Length); Array.Copy(tempItems, 0, tempItems2, tailItemsReverse.Length, tempItems.Length); InitialItems_Tests(linkedList, tempItems2); //[] Call AddBefore several times remove all of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); for (int i = 0; i < arraySize; ++i) linkedList.RemoveFirst(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(tailItems[i])); InitialItems_Tests(linkedList, tailItemsReverse); //[] Call AddBefore several times then call Clear linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); linkedList.Clear(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(tailItems[i])); InitialItems_Tests(linkedList, tailItemsReverse); //[] Mix AddBefore and AddAfter calls linkedList = new LinkedList<T>(); linkedList.AddLast(headItems[0]); linkedList.AddLast(tailItems[0]); for (int i = 1; i < arraySize; ++i) { linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); linkedList.AddAfter(linkedList.Last, new LinkedListNode<T>(tailItems[i])); } tempItems = new T[headItemsReverse.Length + tailItems.Length]; Array.Copy(headItemsReverse, tempItems, headItemsReverse.Length); Array.Copy(tailItems, 0, tempItems, headItemsReverse.Length, tailItems.Length); InitialItems_Tests(linkedList, tempItems); } [Fact] public void AddBefore_LLNode_LLNode_Negative() { LinkedList<T> linkedList = new LinkedList<T>(); LinkedList<T> tempLinkedList = new LinkedList<T>(); int seed = 8293; T[] items; //[] Verify Null node Assert.Throws<ArgumentNullException>(() => linkedList.AddBefore(null, new LinkedListNode<T>(CreateT(seed++)))); //"Err_858ahia Expected null node to throws ArgumentNullException\n" InitialItems_Tests(linkedList, new T[0]); //[] Verify Node that is a new Node linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++) }; linkedList.AddLast(items[0]); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(new LinkedListNode<T>(CreateT(seed++)), new LinkedListNode<T>(CreateT(seed++)))); //"Err_0568ajods Expected Node that is a new Node throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); //[] Verify Node that already exists in another collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); tempLinkedList.Clear(); tempLinkedList.AddLast(CreateT(seed++)); tempLinkedList.AddLast(CreateT(seed++)); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(tempLinkedList.Last, new LinkedListNode<T>(CreateT(seed++)))); //"Err_98809ahied Node that already exists in another collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); // Tests for the NewNode //[] Verify Null newNode linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++) }; linkedList.AddLast(items[0]); Assert.Throws<ArgumentNullException>(() => linkedList.AddBefore(linkedList.First, null)); //"Err_0808ajeoia Expected null newNode to throws ArgumentNullException\n" InitialItems_Tests(linkedList, items); //[] Verify newNode that already exists in this collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(linkedList.First, linkedList.Last)); //"Err_58808adjioe Verify newNode that already exists in this collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); //[] Verify newNode that already exists in another collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); tempLinkedList.Clear(); tempLinkedList.AddLast(CreateT(seed++)); tempLinkedList.AddLast(CreateT(seed++)); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(linkedList.First, tempLinkedList.Last)); //"Err_54808ajied newNode that already exists in another collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); } } }
// 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.Collections.Tests { /// <summary> /// Contains tests that ensure the correctness of the LinkedList class. /// </summary> public abstract partial class LinkedList_Generic_Tests<T> : ICollection_Generic_Tests<T> { [Fact] public void AddBefore_LLNode() { LinkedList<T> linkedList = new LinkedList<T>(); int arraySize = 16; int seed = 8293; T[] tempItems, headItems, headItemsReverse, tailItems, tailItemsReverse; headItems = new T[arraySize]; tailItems = new T[arraySize]; headItemsReverse = new T[arraySize]; tailItemsReverse = new T[arraySize]; for (int i = 0; i < arraySize; i++) { int index = (arraySize - 1) - i; T head = CreateT(seed++); T tail = CreateT(seed++); headItems[i] = head; headItemsReverse[index] = head; tailItems[i] = tail; tailItemsReverse[index] = tail; } //[] Verify value is default(T) linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddBefore(linkedList.First, default(T)); InitialItems_Tests(linkedList, new T[] { default(T), headItems[0] }); //[] Node is the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); InitialItems_Tests(linkedList, headItemsReverse); //[] Node is the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 1, tempItems, 0, headItems.Length - 1); tempItems[tempItems.Length - 1] = headItems[0]; for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Node is after the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, tempItems, headItems.Length); Array.Reverse(tempItems, 1, headItems.Length - 1); for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.First.Next, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Node is before the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 2, tempItems, 0, headItems.Length - 2); tempItems[tempItems.Length - 2] = headItems[0]; tempItems[tempItems.Length - 1] = headItems[1]; for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Node is somewhere in the middle linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); linkedList.AddLast(headItems[2]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 3, tempItems, 0, headItems.Length - 3); tempItems[tempItems.Length - 3] = headItems[0]; tempItems[tempItems.Length - 2] = headItems[1]; tempItems[tempItems.Length - 1] = headItems[2]; for (int i = 3; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous.Previous, headItems[i]); InitialItems_Tests(linkedList, tempItems); //[] Call AddBefore several times remove some of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); linkedList.Remove(headItems[2]); linkedList.Remove(headItems[headItems.Length - 3]); linkedList.Remove(headItems[1]); linkedList.Remove(headItems[headItems.Length - 2]); linkedList.RemoveFirst(); linkedList.RemoveLast(); //With the above remove we should have removed the first and last 3 items tempItems = new T[headItemsReverse.Length - 6]; Array.Copy(headItemsReverse, 3, tempItems, 0, headItemsReverse.Length - 6); InitialItems_Tests(linkedList, tempItems); for (int i = 0; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, tailItems[i]); T[] tempItems2 = new T[tailItemsReverse.Length + tempItems.Length]; Array.Copy(tailItemsReverse, tempItems2, tailItemsReverse.Length); Array.Copy(tempItems, 0, tempItems2, tailItemsReverse.Length, tempItems.Length); InitialItems_Tests(linkedList, tempItems2); //[] Call AddBefore several times remove all of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); for (int i = 0; i < arraySize; ++i) linkedList.RemoveFirst(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, tailItems[i]); InitialItems_Tests(linkedList, tailItemsReverse); //[] Call AddBefore several times then call Clear linkedList.Clear(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, headItems[i]); linkedList.Clear(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, tailItems[i]); InitialItems_Tests(linkedList, tailItemsReverse); //[] Mix AddBefore and AddAfter calls linkedList = new LinkedList<T>(); linkedList.AddLast(headItems[0]); linkedList.AddLast(tailItems[0]); for (int i = 1; i < arraySize; ++i) { linkedList.AddBefore(linkedList.First, headItems[i]); linkedList.AddAfter(linkedList.Last, tailItems[i]); } tempItems = new T[headItemsReverse.Length + tailItems.Length]; Array.Copy(headItemsReverse, tempItems, headItemsReverse.Length); Array.Copy(tailItems, 0, tempItems, headItemsReverse.Length, tailItems.Length); InitialItems_Tests(linkedList, tempItems); } [Fact] public void AddBefore_LLNode_Negative() { LinkedList<T> linkedList = new LinkedList<T>(); LinkedList<T> tempLinkedList = new LinkedList<T>(); int seed = 8293; T[] items; //[] Verify Null node Assert.Throws<ArgumentNullException>(() => linkedList.AddBefore(null, CreateT(seed++))); //"Err_858ahia Expected null node to throws ArgumentNullException\n" InitialItems_Tests(linkedList, new T[0]); //[] Verify Node that is a new Node linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++) }; linkedList.AddLast(items[0]); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(new LinkedListNode<T>(CreateT(seed++)), CreateT(seed++))); //"Err_0568ajods Expected Node that is a new Node throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); //[] Verify Node that already exists in another collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); tempLinkedList.Clear(); tempLinkedList.AddLast(CreateT(seed++)); tempLinkedList.AddLast(CreateT(seed++)); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(tempLinkedList.Last, CreateT(seed++))); //"Err_98809ahied Node that already exists in another collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); } [Fact] public void AddBefore_LLNode_LLNode() { LinkedList<T> linkedList = new LinkedList<T>(); int arraySize = 16; int seed = 8293; T[] tempItems, headItems, headItemsReverse, tailItems, tailItemsReverse; headItems = new T[arraySize]; tailItems = new T[arraySize]; headItemsReverse = new T[arraySize]; tailItemsReverse = new T[arraySize]; for (int i = 0; i < arraySize; i++) { int index = (arraySize - 1) - i; T head = CreateT(seed++); T tail = CreateT(seed++); headItems[i] = head; headItemsReverse[index] = head; tailItems[i] = tail; tailItemsReverse[index] = tail; } //[] Verify value is default(T) linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(default(T))); InitialItems_Tests(linkedList, new T[] { default(T), headItems[0] }); //[] Node is the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, headItemsReverse); //[] Node is the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 1, tempItems, 0, headItems.Length - 1); tempItems[tempItems.Length - 1] = headItems[0]; for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Node is after the Head linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, tempItems, headItems.Length); Array.Reverse(tempItems, 1, headItems.Length - 1); for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.First.Next, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Node is before the Tail linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 2, tempItems, 0, headItems.Length - 2); tempItems[tempItems.Length - 2] = headItems[0]; tempItems[tempItems.Length - 1] = headItems[1]; for (int i = 2; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Node is somewhere in the middle linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); linkedList.AddLast(headItems[1]); linkedList.AddLast(headItems[2]); tempItems = new T[headItems.Length]; Array.Copy(headItems, 3, tempItems, 0, headItems.Length - 3); tempItems[tempItems.Length - 3] = headItems[0]; tempItems[tempItems.Length - 2] = headItems[1]; tempItems[tempItems.Length - 1] = headItems[2]; for (int i = 3; i < arraySize; ++i) linkedList.AddBefore(linkedList.Last.Previous.Previous, new LinkedListNode<T>(headItems[i])); InitialItems_Tests(linkedList, tempItems); //[] Call AddBefore several times remove some of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); linkedList.Remove(headItems[2]); linkedList.Remove(headItems[headItems.Length - 3]); linkedList.Remove(headItems[1]); linkedList.Remove(headItems[headItems.Length - 2]); linkedList.RemoveFirst(); linkedList.RemoveLast(); //With the above remove we should have removed the first and last 3 items tempItems = new T[headItemsReverse.Length - 6]; Array.Copy(headItemsReverse, 3, tempItems, 0, headItemsReverse.Length - 6); InitialItems_Tests(linkedList, tempItems); for (int i = 0; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(tailItems[i])); T[] tempItems2 = new T[tailItemsReverse.Length + tempItems.Length]; Array.Copy(tailItemsReverse, tempItems2, tailItemsReverse.Length); Array.Copy(tempItems, 0, tempItems2, tailItemsReverse.Length, tempItems.Length); InitialItems_Tests(linkedList, tempItems2); //[] Call AddBefore several times remove all of the items linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); for (int i = 0; i < arraySize; ++i) linkedList.RemoveFirst(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(tailItems[i])); InitialItems_Tests(linkedList, tailItemsReverse); //[] Call AddBefore several times then call Clear linkedList = new LinkedList<T>(); linkedList.AddFirst(headItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); linkedList.Clear(); linkedList.AddFirst(tailItems[0]); for (int i = 1; i < arraySize; ++i) linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(tailItems[i])); InitialItems_Tests(linkedList, tailItemsReverse); //[] Mix AddBefore and AddAfter calls linkedList = new LinkedList<T>(); linkedList.AddLast(headItems[0]); linkedList.AddLast(tailItems[0]); for (int i = 1; i < arraySize; ++i) { linkedList.AddBefore(linkedList.First, new LinkedListNode<T>(headItems[i])); linkedList.AddAfter(linkedList.Last, new LinkedListNode<T>(tailItems[i])); } tempItems = new T[headItemsReverse.Length + tailItems.Length]; Array.Copy(headItemsReverse, tempItems, headItemsReverse.Length); Array.Copy(tailItems, 0, tempItems, headItemsReverse.Length, tailItems.Length); InitialItems_Tests(linkedList, tempItems); } [Fact] public void AddBefore_LLNode_LLNode_Negative() { LinkedList<T> linkedList = new LinkedList<T>(); LinkedList<T> tempLinkedList = new LinkedList<T>(); int seed = 8293; T[] items; //[] Verify Null node Assert.Throws<ArgumentNullException>(() => linkedList.AddBefore(null, new LinkedListNode<T>(CreateT(seed++)))); //"Err_858ahia Expected null node to throws ArgumentNullException\n" InitialItems_Tests(linkedList, new T[0]); //[] Verify Node that is a new Node linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++) }; linkedList.AddLast(items[0]); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(new LinkedListNode<T>(CreateT(seed++)), new LinkedListNode<T>(CreateT(seed++)))); //"Err_0568ajods Expected Node that is a new Node throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); //[] Verify Node that already exists in another collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); tempLinkedList.Clear(); tempLinkedList.AddLast(CreateT(seed++)); tempLinkedList.AddLast(CreateT(seed++)); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(tempLinkedList.Last, new LinkedListNode<T>(CreateT(seed++)))); //"Err_98809ahied Node that already exists in another collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); // Tests for the NewNode //[] Verify Null newNode linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++) }; linkedList.AddLast(items[0]); Assert.Throws<ArgumentNullException>(() => linkedList.AddBefore(linkedList.First, null)); //"Err_0808ajeoia Expected null newNode to throws ArgumentNullException\n" InitialItems_Tests(linkedList, items); //[] Verify newNode that already exists in this collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(linkedList.First, linkedList.Last)); //"Err_58808adjioe Verify newNode that already exists in this collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); //[] Verify newNode that already exists in another collection linkedList = new LinkedList<T>(); items = new T[] { CreateT(seed++), CreateT(seed++) }; linkedList.AddLast(items[0]); linkedList.AddLast(items[1]); tempLinkedList.Clear(); tempLinkedList.AddLast(CreateT(seed++)); tempLinkedList.AddLast(CreateT(seed++)); Assert.Throws<InvalidOperationException>(() => linkedList.AddBefore(linkedList.First, tempLinkedList.Last)); //"Err_54808ajied newNode that already exists in another collection throws InvalidOperationException\n" InitialItems_Tests(linkedList, items); } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/baseservices/TieredCompilation/BasicTest_QuickJitOff_R2r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <Optimize>true</Optimize> <!-- This is an explicit crossgen test --> <AlwaysUseCrossGen2>true</AlwaysUseCrossGen2> </PropertyGroup> <ItemGroup> <Compile Include="BasicTest.cs" /> </ItemGroup> <PropertyGroup> <CLRTestBatchPreCommands><![CDATA[ $(CLRTestBatchPreCommands) set COMPlus_TC_QuickJit=0 ]]></CLRTestBatchPreCommands> <BashCLRTestPreCommands><![CDATA[ $(BashCLRTestPreCommands) export COMPlus_TC_QuickJit=0 ]]></BashCLRTestPreCommands> </PropertyGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <Optimize>true</Optimize> <!-- This is an explicit crossgen test --> <AlwaysUseCrossGen2>true</AlwaysUseCrossGen2> </PropertyGroup> <ItemGroup> <Compile Include="BasicTest.cs" /> </ItemGroup> <PropertyGroup> <CLRTestBatchPreCommands><![CDATA[ $(CLRTestBatchPreCommands) set COMPlus_TC_QuickJit=0 ]]></CLRTestBatchPreCommands> <BashCLRTestPreCommands><![CDATA[ $(BashCLRTestPreCommands) export COMPlus_TC_QuickJit=0 ]]></BashCLRTestPreCommands> </PropertyGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.IO/tests/MemoryStream/MemoryStream.TryGetBufferTests.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; using System; using System.IO; using System.Collections.Generic; namespace System.IO.Tests { public class MemoryStream_TryGetBufferTests { [Fact] public static void TryGetBuffer_Constructor_AlwaysReturnsTrue() { var stream = new MemoryStream(); Assert.Equal(0, stream.Capacity); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.NotNull(segment.Array); Assert.Equal(0, segment.Offset); Assert.Equal(0, segment.Count); } [Fact] public static void TryGetBuffer_Constructor_Int32_AlwaysReturnsTrue() { var stream = new MemoryStream(512); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.Equal(512, segment.Array.Length); Assert.Equal(0, segment.Offset); Assert.Equal(0, segment.Count); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512]); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Bool_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512], writable: true); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512], index: 0, count: 512); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512], index: 0, count: 512, writable: true); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_FalseAsPubliclyVisible_ReturnsFalse() { var stream = new MemoryStream(new byte[512], index: 0, count: 512, writable: true, publiclyVisible: false); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_TrueAsPubliclyVisible_ReturnsTrue() { var stream = new MemoryStream(new byte[512], index: 0, count: 512, writable: true, publiclyVisible: true); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.NotNull(segment.Array); Assert.Equal(512, segment.Array.Length); Assert.Equal(0, segment.Offset); Assert.Equal(512, segment.Count); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_ByteArray_AlwaysReturnsEmptyArraySegment(byte[] array) { var stream = new MemoryStream(array); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_ByteArray_Bool_AlwaysReturnsEmptyArraySegment(byte[] array) { var stream = new MemoryStream(array, writable: true); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_AlwaysReturnsEmptyArraySegment(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_AlwaysReturnsEmptyArraySegment(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_FalseAsPubliclyVisible_ReturnsEmptyArraySegment(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: false); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Fact] public static void TryGetBuffer_Constructor_AlwaysReturnsOffsetSetToZero() { var stream = new MemoryStream(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Offset); } [Fact] public static void TryGetBuffer_Constructor_Int32_AlwaysReturnsOffsetSetToZero() { var stream = new MemoryStream(512); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Offset); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_ValueAsIndexAndTrueAsPubliclyVisible_AlwaysReturnsOffsetSetToIndex(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Offset, result.Offset); } [Fact] public static void TryGetBuffer_Constructor_ByDefaultReturnsCountSetToZero() { var stream = new MemoryStream(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Count); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_ReturnsCountSetToWrittenLength(byte[] array) { var stream = new MemoryStream(); stream.Write(array, 0, array.Length); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Length, result.Count); } [Fact] public static void TryGetBuffer_Constructor_Int32_ByDefaultReturnsCountSetToZero() { var stream = new MemoryStream(512); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Offset); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_Int32_ReturnsCountSetToWrittenLength(byte[] array) { var stream = new MemoryStream(512); stream.Write(array, 0, array.Length); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Length, result.Count); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_ValueAsCountAndTrueAsPubliclyVisible_AlwaysReturnsCountSetToCount(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Count, result.Count); } [Fact] public static void TryGetBuffer_Constructor_ReturnsArray() { var stream = new MemoryStream(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.NotNull(result.Array); } [Fact] public static void TryGetBuffer_Constructor_MultipleCallsReturnsSameArray() { var stream = new MemoryStream(); ArraySegment<byte> result1; ArraySegment<byte> result2; Assert.True(stream.TryGetBuffer(out result1)); Assert.True(stream.TryGetBuffer(out result2)); Assert.Same(result1.Array, result2.Array); } [Fact] public static void TryGetBuffer_Constructor_Int32_MultipleCallsReturnSameArray() { var stream = new MemoryStream(512); ArraySegment<byte> result1; ArraySegment<byte> result2; Assert.True(stream.TryGetBuffer(out result1)); Assert.True(stream.TryGetBuffer(out result2)); Assert.Same(result1.Array, result2.Array); } [Fact] public static void TryGetBuffer_Constructor_Int32_WhenWritingPastCapacity_ReturnsDifferentArrays() { var stream = new MemoryStream(512); ArraySegment<byte> result1; Assert.True(stream.TryGetBuffer(out result1)); // Force the stream to resize the underlying array stream.Write(new byte[1024], 0, 1024); ArraySegment<byte> result2; Assert.True(stream.TryGetBuffer(out result2)); Assert.NotSame(result1.Array, result2.Array); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_ValueAsBufferAndTrueAsPubliclyVisible_AlwaysReturnsArraySetToBuffer(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Same(array.Array, result.Array); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsTrue(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.Same(array.Array, segment.Array); Assert.Equal(array.Offset, segment.Offset); Assert.Equal(array.Count, segment.Count); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsOffsetSetToIndex(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Offset, result.Offset); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsCountSetToCount(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Count, result.Count); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsArraySetToBuffer(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Same(array.Array, result.Array); } public static IEnumerable<object[]> GetArraysVariedByOffsetAndLength() { yield return new object[] { new ArraySegment<byte>(new byte[512], 0, 512) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 1, 511) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 2, 510) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 256, 256) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 512, 0) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 511, 1) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 510, 2) }; } public static IEnumerable<object[]> GetArraysVariedBySize() { yield return new object[] { FillWithData(new byte[0]) }; yield return new object[] { FillWithData(new byte[1]) }; yield return new object[] { FillWithData(new byte[2]) }; yield return new object[] { FillWithData(new byte[254]) }; yield return new object[] { FillWithData(new byte[255]) }; yield return new object[] { FillWithData(new byte[256]) }; yield return new object[] { FillWithData(new byte[511]) }; yield return new object[] { FillWithData(new byte[512]) }; yield return new object[] { FillWithData(new byte[513]) }; yield return new object[] { FillWithData(new byte[1023]) }; yield return new object[] { FillWithData(new byte[1024]) }; yield return new object[] { FillWithData(new byte[1025]) }; yield return new object[] { FillWithData(new byte[2047]) }; yield return new object[] { FillWithData(new byte[2048]) }; yield return new object[] { FillWithData(new byte[2049]) }; } private static byte[] FillWithData(byte[] buffer) { for (int i = 0; i < buffer.Length; i++) { buffer[i] = unchecked((byte)i); } return buffer; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; using System; using System.IO; using System.Collections.Generic; namespace System.IO.Tests { public class MemoryStream_TryGetBufferTests { [Fact] public static void TryGetBuffer_Constructor_AlwaysReturnsTrue() { var stream = new MemoryStream(); Assert.Equal(0, stream.Capacity); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.NotNull(segment.Array); Assert.Equal(0, segment.Offset); Assert.Equal(0, segment.Count); } [Fact] public static void TryGetBuffer_Constructor_Int32_AlwaysReturnsTrue() { var stream = new MemoryStream(512); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.Equal(512, segment.Array.Length); Assert.Equal(0, segment.Offset); Assert.Equal(0, segment.Count); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512]); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Bool_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512], writable: true); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512], index: 0, count: 512); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_AlwaysReturnsFalse() { var stream = new MemoryStream(new byte[512], index: 0, count: 512, writable: true); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_FalseAsPubliclyVisible_ReturnsFalse() { var stream = new MemoryStream(new byte[512], index: 0, count: 512, writable: true, publiclyVisible: false); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.False(stream.TryGetBuffer(out segment)); } [Fact] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_TrueAsPubliclyVisible_ReturnsTrue() { var stream = new MemoryStream(new byte[512], index: 0, count: 512, writable: true, publiclyVisible: true); Assert.Equal(512, stream.Capacity); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.NotNull(segment.Array); Assert.Equal(512, segment.Array.Length); Assert.Equal(0, segment.Offset); Assert.Equal(512, segment.Count); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_ByteArray_AlwaysReturnsEmptyArraySegment(byte[] array) { var stream = new MemoryStream(array); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_ByteArray_Bool_AlwaysReturnsEmptyArraySegment(byte[] array) { var stream = new MemoryStream(array, writable: true); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_AlwaysReturnsEmptyArraySegment(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_AlwaysReturnsEmptyArraySegment(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_FalseAsPubliclyVisible_ReturnsEmptyArraySegment(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: false); ArraySegment<byte> result; Assert.False(stream.TryGetBuffer(out result)); // publiclyVisible = false; Assert.True(default(ArraySegment<byte>).Equals(result)); } [Fact] public static void TryGetBuffer_Constructor_AlwaysReturnsOffsetSetToZero() { var stream = new MemoryStream(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Offset); } [Fact] public static void TryGetBuffer_Constructor_Int32_AlwaysReturnsOffsetSetToZero() { var stream = new MemoryStream(512); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Offset); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_ValueAsIndexAndTrueAsPubliclyVisible_AlwaysReturnsOffsetSetToIndex(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Offset, result.Offset); } [Fact] public static void TryGetBuffer_Constructor_ByDefaultReturnsCountSetToZero() { var stream = new MemoryStream(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Count); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_ReturnsCountSetToWrittenLength(byte[] array) { var stream = new MemoryStream(); stream.Write(array, 0, array.Length); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Length, result.Count); } [Fact] public static void TryGetBuffer_Constructor_Int32_ByDefaultReturnsCountSetToZero() { var stream = new MemoryStream(512); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(0, result.Offset); } [Theory] [MemberData(nameof(GetArraysVariedBySize))] public static void TryGetBuffer_Constructor_Int32_ReturnsCountSetToWrittenLength(byte[] array) { var stream = new MemoryStream(512); stream.Write(array, 0, array.Length); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Length, result.Count); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_ValueAsCountAndTrueAsPubliclyVisible_AlwaysReturnsCountSetToCount(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Count, result.Count); } [Fact] public static void TryGetBuffer_Constructor_ReturnsArray() { var stream = new MemoryStream(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.NotNull(result.Array); } [Fact] public static void TryGetBuffer_Constructor_MultipleCallsReturnsSameArray() { var stream = new MemoryStream(); ArraySegment<byte> result1; ArraySegment<byte> result2; Assert.True(stream.TryGetBuffer(out result1)); Assert.True(stream.TryGetBuffer(out result2)); Assert.Same(result1.Array, result2.Array); } [Fact] public static void TryGetBuffer_Constructor_Int32_MultipleCallsReturnSameArray() { var stream = new MemoryStream(512); ArraySegment<byte> result1; ArraySegment<byte> result2; Assert.True(stream.TryGetBuffer(out result1)); Assert.True(stream.TryGetBuffer(out result2)); Assert.Same(result1.Array, result2.Array); } [Fact] public static void TryGetBuffer_Constructor_Int32_WhenWritingPastCapacity_ReturnsDifferentArrays() { var stream = new MemoryStream(512); ArraySegment<byte> result1; Assert.True(stream.TryGetBuffer(out result1)); // Force the stream to resize the underlying array stream.Write(new byte[1024], 0, 1024); ArraySegment<byte> result2; Assert.True(stream.TryGetBuffer(out result2)); Assert.NotSame(result1.Array, result2.Array); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_Constructor_ByteArray_Int32_Int32_Bool_Bool_ValueAsBufferAndTrueAsPubliclyVisible_AlwaysReturnsArraySetToBuffer(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Same(array.Array, result.Array); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsTrue(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> segment; Assert.True(stream.TryGetBuffer(out segment)); Assert.Same(array.Array, segment.Array); Assert.Equal(array.Offset, segment.Offset); Assert.Equal(array.Count, segment.Count); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsOffsetSetToIndex(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Offset, result.Offset); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsCountSetToCount(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Equal(array.Count, result.Count); } [Theory] [MemberData(nameof(GetArraysVariedByOffsetAndLength))] public static void TryGetBuffer_WhenDisposed_ReturnsArraySetToBuffer(ArraySegment<byte> array) { var stream = new MemoryStream(array.Array, index: array.Offset, count: array.Count, writable: true, publiclyVisible: true); stream.Dispose(); ArraySegment<byte> result; Assert.True(stream.TryGetBuffer(out result)); Assert.Same(array.Array, result.Array); } public static IEnumerable<object[]> GetArraysVariedByOffsetAndLength() { yield return new object[] { new ArraySegment<byte>(new byte[512], 0, 512) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 1, 511) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 2, 510) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 256, 256) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 512, 0) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 511, 1) }; yield return new object[] { new ArraySegment<byte>(new byte[512], 510, 2) }; } public static IEnumerable<object[]> GetArraysVariedBySize() { yield return new object[] { FillWithData(new byte[0]) }; yield return new object[] { FillWithData(new byte[1]) }; yield return new object[] { FillWithData(new byte[2]) }; yield return new object[] { FillWithData(new byte[254]) }; yield return new object[] { FillWithData(new byte[255]) }; yield return new object[] { FillWithData(new byte[256]) }; yield return new object[] { FillWithData(new byte[511]) }; yield return new object[] { FillWithData(new byte[512]) }; yield return new object[] { FillWithData(new byte[513]) }; yield return new object[] { FillWithData(new byte[1023]) }; yield return new object[] { FillWithData(new byte[1024]) }; yield return new object[] { FillWithData(new byte[1025]) }; yield return new object[] { FillWithData(new byte[2047]) }; yield return new object[] { FillWithData(new byte[2048]) }; yield return new object[] { FillWithData(new byte[2049]) }; } private static byte[] FillWithData(byte[] buffer) { for (int i = 0; i < buffer.Length; i++) { buffer[i] = unchecked((byte)i); } return buffer; } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/pal/src/libunwind/src/ia64/Gglobal.c
/* libunwind - a platform-independent unwind library Copyright (C) 2002-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <[email protected]> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <assert.h> #include "unwind_i.h" HIDDEN struct ia64_global_unwind_state unw = { .lock = PTHREAD_MUTEX_INITIALIZER, .save_order = { IA64_REG_IP, IA64_REG_PFS, IA64_REG_PSP, IA64_REG_PR, IA64_REG_UNAT, IA64_REG_LC, IA64_REG_FPSR, IA64_REG_PRI_UNAT_GR }, #if UNW_DEBUG .preg_name = { "pri_unat_gr", "pri_unat_mem", "psp", "bsp", "bspstore", "ar.pfs", "ar.rnat", "rp", "r4", "r5", "r6", "r7", "nat4", "nat5", "nat6", "nat7", "ar.unat", "pr", "ar.lc", "ar.fpsr", "b1", "b2", "b3", "b4", "b5", "f2", "f3", "f4", "f5", "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31" } #endif }; HIDDEN void tdep_init (void) { const uint8_t f1_bytes[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t nat_val_bytes[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t int_val_bytes[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; intrmask_t saved_mask; uint8_t *lep, *bep; long i; sigfillset (&unwi_full_mask); lock_acquire (&unw.lock, saved_mask); { if (atomic_load(&tdep_init_done)) /* another thread else beat us to it... */ goto out; mi_init (); mempool_init (&unw.reg_state_pool, sizeof (struct ia64_reg_state), 0); mempool_init (&unw.labeled_state_pool, sizeof (struct ia64_labeled_state), 0); unw.read_only.r0 = 0; unw.read_only.f0.raw.bits[0] = 0; unw.read_only.f0.raw.bits[1] = 0; lep = (uint8_t *) &unw.read_only.f1_le + 16; bep = (uint8_t *) &unw.read_only.f1_be; for (i = 0; i < 16; ++i) { *--lep = f1_bytes[i]; *bep++ = f1_bytes[i]; } lep = (uint8_t *) &unw.nat_val_le + 16; bep = (uint8_t *) &unw.nat_val_be; for (i = 0; i < 16; ++i) { *--lep = nat_val_bytes[i]; *bep++ = nat_val_bytes[i]; } lep = (uint8_t *) &unw.int_val_le + 16; bep = (uint8_t *) &unw.int_val_be; for (i = 0; i < 16; ++i) { *--lep = int_val_bytes[i]; *bep++ = int_val_bytes[i]; } assert (8*sizeof(unw_hash_index_t) >= IA64_LOG_UNW_HASH_SIZE); #ifndef UNW_REMOTE_ONLY ia64_local_addr_space_init (); #endif atomic_store(&tdep_init_done, 1); /* signal that we're initialized... */ } out: lock_release (&unw.lock, saved_mask); }
/* libunwind - a platform-independent unwind library Copyright (C) 2002-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <[email protected]> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <assert.h> #include "unwind_i.h" HIDDEN struct ia64_global_unwind_state unw = { .lock = PTHREAD_MUTEX_INITIALIZER, .save_order = { IA64_REG_IP, IA64_REG_PFS, IA64_REG_PSP, IA64_REG_PR, IA64_REG_UNAT, IA64_REG_LC, IA64_REG_FPSR, IA64_REG_PRI_UNAT_GR }, #if UNW_DEBUG .preg_name = { "pri_unat_gr", "pri_unat_mem", "psp", "bsp", "bspstore", "ar.pfs", "ar.rnat", "rp", "r4", "r5", "r6", "r7", "nat4", "nat5", "nat6", "nat7", "ar.unat", "pr", "ar.lc", "ar.fpsr", "b1", "b2", "b3", "b4", "b5", "f2", "f3", "f4", "f5", "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31" } #endif }; HIDDEN void tdep_init (void) { const uint8_t f1_bytes[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t nat_val_bytes[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; const uint8_t int_val_bytes[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; intrmask_t saved_mask; uint8_t *lep, *bep; long i; sigfillset (&unwi_full_mask); lock_acquire (&unw.lock, saved_mask); { if (atomic_load(&tdep_init_done)) /* another thread else beat us to it... */ goto out; mi_init (); mempool_init (&unw.reg_state_pool, sizeof (struct ia64_reg_state), 0); mempool_init (&unw.labeled_state_pool, sizeof (struct ia64_labeled_state), 0); unw.read_only.r0 = 0; unw.read_only.f0.raw.bits[0] = 0; unw.read_only.f0.raw.bits[1] = 0; lep = (uint8_t *) &unw.read_only.f1_le + 16; bep = (uint8_t *) &unw.read_only.f1_be; for (i = 0; i < 16; ++i) { *--lep = f1_bytes[i]; *bep++ = f1_bytes[i]; } lep = (uint8_t *) &unw.nat_val_le + 16; bep = (uint8_t *) &unw.nat_val_be; for (i = 0; i < 16; ++i) { *--lep = nat_val_bytes[i]; *bep++ = nat_val_bytes[i]; } lep = (uint8_t *) &unw.int_val_le + 16; bep = (uint8_t *) &unw.int_val_be; for (i = 0; i < 16; ++i) { *--lep = int_val_bytes[i]; *bep++ = int_val_bytes[i]; } assert (8*sizeof(unw_hash_index_t) >= IA64_LOG_UNW_HASH_SIZE); #ifndef UNW_REMOTE_ONLY ia64_local_addr_space_init (); #endif atomic_store(&tdep_init_done, 1); /* signal that we're initialized... */ } out: lock_release (&unw.lock, saved_mask); }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Security.Cryptography/tests/MD5Tests.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.Threading; using System.Threading.Tasks; using Xunit; namespace System.Security.Cryptography.Tests { [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")] public class MD5Tests : HashAlgorithmTestDriver { protected override HashAlgorithm Create() { return MD5.Create(); } protected override bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) { return MD5.TryHashData(source, destination, out bytesWritten); } protected override byte[] HashData(byte[] source) => MD5.HashData(source); protected override byte[] HashData(ReadOnlySpan<byte> source) => MD5.HashData(source); protected override int HashData(ReadOnlySpan<byte> source, Span<byte> destination) => MD5.HashData(source, destination); protected override int HashData(Stream source, Span<byte> destination) => MD5.HashData(source, destination); protected override byte[] HashData(Stream source) => MD5.HashData(source); protected override ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken) => MD5.HashDataAsync(source, destination, cancellationToken); protected override ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken) => MD5.HashDataAsync(source, cancellationToken); [Fact] public void MD5_VerifyLargeStream_MultipleOf4096() { // Verfied with: // for _ in {1..1024}; do echo -n "0102030405060708"; done | openssl dgst -md5 VerifyRepeating("0102030405060708", 1024, "5fc6366852074da6e4795a014574282c"); } [Fact] public void MD5_VerifyLargeStream_NotMultipleOf4096() { // Verfied with: // for _ in {1..1025}; do echo -n "0102030405060708"; done | openssl dgst -md5 VerifyRepeating("0102030405060708", 1025, "c5f6181a24446a583b14282f32786513"); } [Fact] public async Task MD5_VerifyLargeStream_NotMultipleOf4096_Async() { // Verfied with: // for _ in {1..1025}; do echo -n "0102030405060708"; done | openssl dgst -md5 await VerifyRepeatingAsync("0102030405060708", 1025, "c5f6181a24446a583b14282f32786513"); } [Fact] public async Task MD5_VerifyLargeStream_MultipleOf4096_Async() { // Verfied with: // for _ in {1..1024}; do echo -n "0102030405060708"; done | openssl dgst -md5 await VerifyRepeatingAsync("0102030405060708", 1024, "5fc6366852074da6e4795a014574282c"); } // Test cases are defined in RFC 1321, section A.5 [Fact] public void MD5_Rfc1321_1() { Verify("", "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public void MD5_Rfc1321_2() { Verify("a", "0cc175b9c0f1b6a831c399e269772661"); } [Fact] public void MD5_Rfc1321_3() { Verify("abc", "900150983cd24fb0d6963f7d28e17f72"); } [Fact] public void MD5_Rfc1321_MultiBlock() { VerifyMultiBlock( "a", "bc", "900150983cd24fb0d6963f7d28e17f72", "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public void MD5_Rfc1321_4() { Verify("message digest", "f96b697d7cb7938d525a2f31aaf161d0"); } [Fact] public void MD5_Rfc1321_5() { Verify("abcdefghijklmnopqrstuvwxyz", "c3fcd3d76192e4007dfb496cca67e13b"); } [Fact] public void MD5_Rfc1321_6() { Verify("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "d174ab98d277d9f5a5611c2c9f419d9f"); } [Fact] public void MD5_Rfc1321_7() { Verify("12345678901234567890123456789012345678901234567890123456789012345678901234567890", "57edf4a22be3c955ac49da2e2107b67a"); } [Fact] public void MD5_Rfc1321_1_AsStream() { VerifyRepeating(string.Empty, 0, "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public void MD5_Rfc1321_7_AsStream() { VerifyRepeating("1234567890", 8, "57edf4a22be3c955ac49da2e2107b67a"); } [Fact] public async Task MD5_Rfc1321_1_AsStream_Async() { await VerifyRepeatingAsync(string.Empty, 0, "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public async Task MD5_Rfc1321_7_AsStream_Async() { await VerifyRepeatingAsync("1234567890", 8, "57edf4a22be3c955ac49da2e2107b67a"); } } }
// 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.Threading; using System.Threading.Tasks; using Xunit; namespace System.Security.Cryptography.Tests { [SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")] public class MD5Tests : HashAlgorithmTestDriver { protected override HashAlgorithm Create() { return MD5.Create(); } protected override bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) { return MD5.TryHashData(source, destination, out bytesWritten); } protected override byte[] HashData(byte[] source) => MD5.HashData(source); protected override byte[] HashData(ReadOnlySpan<byte> source) => MD5.HashData(source); protected override int HashData(ReadOnlySpan<byte> source, Span<byte> destination) => MD5.HashData(source, destination); protected override int HashData(Stream source, Span<byte> destination) => MD5.HashData(source, destination); protected override byte[] HashData(Stream source) => MD5.HashData(source); protected override ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken) => MD5.HashDataAsync(source, destination, cancellationToken); protected override ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken) => MD5.HashDataAsync(source, cancellationToken); [Fact] public void MD5_VerifyLargeStream_MultipleOf4096() { // Verfied with: // for _ in {1..1024}; do echo -n "0102030405060708"; done | openssl dgst -md5 VerifyRepeating("0102030405060708", 1024, "5fc6366852074da6e4795a014574282c"); } [Fact] public void MD5_VerifyLargeStream_NotMultipleOf4096() { // Verfied with: // for _ in {1..1025}; do echo -n "0102030405060708"; done | openssl dgst -md5 VerifyRepeating("0102030405060708", 1025, "c5f6181a24446a583b14282f32786513"); } [Fact] public async Task MD5_VerifyLargeStream_NotMultipleOf4096_Async() { // Verfied with: // for _ in {1..1025}; do echo -n "0102030405060708"; done | openssl dgst -md5 await VerifyRepeatingAsync("0102030405060708", 1025, "c5f6181a24446a583b14282f32786513"); } [Fact] public async Task MD5_VerifyLargeStream_MultipleOf4096_Async() { // Verfied with: // for _ in {1..1024}; do echo -n "0102030405060708"; done | openssl dgst -md5 await VerifyRepeatingAsync("0102030405060708", 1024, "5fc6366852074da6e4795a014574282c"); } // Test cases are defined in RFC 1321, section A.5 [Fact] public void MD5_Rfc1321_1() { Verify("", "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public void MD5_Rfc1321_2() { Verify("a", "0cc175b9c0f1b6a831c399e269772661"); } [Fact] public void MD5_Rfc1321_3() { Verify("abc", "900150983cd24fb0d6963f7d28e17f72"); } [Fact] public void MD5_Rfc1321_MultiBlock() { VerifyMultiBlock( "a", "bc", "900150983cd24fb0d6963f7d28e17f72", "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public void MD5_Rfc1321_4() { Verify("message digest", "f96b697d7cb7938d525a2f31aaf161d0"); } [Fact] public void MD5_Rfc1321_5() { Verify("abcdefghijklmnopqrstuvwxyz", "c3fcd3d76192e4007dfb496cca67e13b"); } [Fact] public void MD5_Rfc1321_6() { Verify("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "d174ab98d277d9f5a5611c2c9f419d9f"); } [Fact] public void MD5_Rfc1321_7() { Verify("12345678901234567890123456789012345678901234567890123456789012345678901234567890", "57edf4a22be3c955ac49da2e2107b67a"); } [Fact] public void MD5_Rfc1321_1_AsStream() { VerifyRepeating(string.Empty, 0, "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public void MD5_Rfc1321_7_AsStream() { VerifyRepeating("1234567890", 8, "57edf4a22be3c955ac49da2e2107b67a"); } [Fact] public async Task MD5_Rfc1321_1_AsStream_Async() { await VerifyRepeatingAsync(string.Empty, 0, "d41d8cd98f00b204e9800998ecf8427e"); } [Fact] public async Task MD5_Rfc1321_7_AsStream_Async() { await VerifyRepeatingAsync("1234567890", 8, "57edf4a22be3c955ac49da2e2107b67a"); } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Dataflow/ReferenceSource/ReflectionPatternContext.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 Mono.Cecil; using Mono.Cecil.Cil; namespace Mono.Linker.Dataflow { /// <summary> /// Helper struct to pass around context information about reflection pattern /// as a single parameter (and have a way to extend this in the future if we need to easily). /// Also implements a simple validation mechanism to check that the code does report patter recognition /// results for all methods it works on. /// The promise of the pattern recorder is that for a given reflection method, it will either not talk /// about it ever, or it will always report recognized/unrecognized. /// </summary> struct ReflectionPatternContext : IDisposable { readonly LinkContext _context; #if DEBUG bool _patternAnalysisAttempted; bool _patternReported; #endif public MessageOrigin Origin { get; init; } public ICustomAttributeProvider? Source { get => Origin.Provider; } public IMetadataTokenProvider MemberWithRequirements { get; init; } public Instruction? Instruction { get; init; } public bool ReportingEnabled { get; init; } public ReflectionPatternContext ( LinkContext context, bool reportingEnabled, in MessageOrigin origin, IMetadataTokenProvider memberWithRequirements, Instruction? instruction = null) { _context = context; ReportingEnabled = reportingEnabled; Origin = origin; MemberWithRequirements = memberWithRequirements; Instruction = instruction; #if DEBUG _patternAnalysisAttempted = false; _patternReported = false; #endif } #pragma warning disable CA1822 [Conditional ("DEBUG")] public void AnalyzingPattern () { #if DEBUG _patternAnalysisAttempted = true; #endif } [Conditional ("DEBUG")] public void RecordHandledPattern () { #if DEBUG _patternReported = true; #endif } #pragma warning restore CA1822 public void RecordRecognizedPattern (IMetadataTokenProvider accessedItem, Action mark) { #if DEBUG if (!_patternAnalysisAttempted) throw new InvalidOperationException ($"Internal error: To correctly report all patterns, when starting to analyze a pattern the AnalyzingPattern must be called first. {Source} -> {MemberWithRequirements}"); _patternReported = true; #endif mark (); if (ReportingEnabled) _context.ReflectionPatternRecorder.RecognizedReflectionAccessPattern (Source, Instruction, accessedItem); } public void RecordUnrecognizedPattern (int messageCode, string message) { #if DEBUG if (!_patternAnalysisAttempted) throw new InvalidOperationException ($"Internal error: To correctly report all patterns, when starting to analyze a pattern the AnalyzingPattern must be called first. {Source} -> {MemberWithRequirements}"); _patternReported = true; #endif if (ReportingEnabled) _context.ReflectionPatternRecorder.UnrecognizedReflectionAccessPattern (Origin, Source, Instruction, MemberWithRequirements, message, messageCode); } public void Dispose () { #if DEBUG if (_patternAnalysisAttempted && !_patternReported) throw new InvalidOperationException ($"Internal error: A reflection pattern was analyzed, but no result was reported. {Source} -> {MemberWithRequirements}"); #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; using System.Diagnostics; using Mono.Cecil; using Mono.Cecil.Cil; namespace Mono.Linker.Dataflow { /// <summary> /// Helper struct to pass around context information about reflection pattern /// as a single parameter (and have a way to extend this in the future if we need to easily). /// Also implements a simple validation mechanism to check that the code does report patter recognition /// results for all methods it works on. /// The promise of the pattern recorder is that for a given reflection method, it will either not talk /// about it ever, or it will always report recognized/unrecognized. /// </summary> struct ReflectionPatternContext : IDisposable { readonly LinkContext _context; #if DEBUG bool _patternAnalysisAttempted; bool _patternReported; #endif public MessageOrigin Origin { get; init; } public ICustomAttributeProvider? Source { get => Origin.Provider; } public IMetadataTokenProvider MemberWithRequirements { get; init; } public Instruction? Instruction { get; init; } public bool ReportingEnabled { get; init; } public ReflectionPatternContext ( LinkContext context, bool reportingEnabled, in MessageOrigin origin, IMetadataTokenProvider memberWithRequirements, Instruction? instruction = null) { _context = context; ReportingEnabled = reportingEnabled; Origin = origin; MemberWithRequirements = memberWithRequirements; Instruction = instruction; #if DEBUG _patternAnalysisAttempted = false; _patternReported = false; #endif } #pragma warning disable CA1822 [Conditional ("DEBUG")] public void AnalyzingPattern () { #if DEBUG _patternAnalysisAttempted = true; #endif } [Conditional ("DEBUG")] public void RecordHandledPattern () { #if DEBUG _patternReported = true; #endif } #pragma warning restore CA1822 public void RecordRecognizedPattern (IMetadataTokenProvider accessedItem, Action mark) { #if DEBUG if (!_patternAnalysisAttempted) throw new InvalidOperationException ($"Internal error: To correctly report all patterns, when starting to analyze a pattern the AnalyzingPattern must be called first. {Source} -> {MemberWithRequirements}"); _patternReported = true; #endif mark (); if (ReportingEnabled) _context.ReflectionPatternRecorder.RecognizedReflectionAccessPattern (Source, Instruction, accessedItem); } public void RecordUnrecognizedPattern (int messageCode, string message) { #if DEBUG if (!_patternAnalysisAttempted) throw new InvalidOperationException ($"Internal error: To correctly report all patterns, when starting to analyze a pattern the AnalyzingPattern must be called first. {Source} -> {MemberWithRequirements}"); _patternReported = true; #endif if (ReportingEnabled) _context.ReflectionPatternRecorder.UnrecognizedReflectionAccessPattern (Origin, Source, Instruction, MemberWithRequirements, message, messageCode); } public void Dispose () { #if DEBUG if (_patternAnalysisAttempted && !_patternReported) throw new InvalidOperationException ($"Internal error: A reflection pattern was analyzed, but no result was reported. {Source} -> {MemberWithRequirements}"); #endif } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./docs/design/coreclr/jit/images/ryujit-high-level-overview.png
PNG  IHDRX8sRGBgAMA a pHYsodf-IDATx^ t֙~ofL7ݓd33=st6ݝ8EJr^b.i$xKcKw";Z-3 x%يĭ(Yd"),}(b @@TX>5. 7 ԩW#pDNabףEbVhHY f>u@ c"Lb~<&DA_~_٠6KҁD*jq9 FA/..g}&2ejj*iGN lP%iAAG I K=W\V65uYqd ?:.'?zt˗/Lx"9`ӣ"fI=zNءw:ǒg@9CR;-ʣ" S:9QG:KS+ܕm)}0:Lώktc'Ni>. ϟO9XSZSSWv~[%a></;IGdCȩAٰ~QSD6͒9#؏A+xjU{_PeG:yND/w~mlU>66&2) 59Yա#SچF:.'i=x2q/\ TmJjr`YZա#SIu\Nz6/ޙ jqYZ5kճuLP$-'{ &1t}fd25{QU3E"0jӌElPs_GvR8#TfЩ jwz)VI)9#Td;q ' 4hOj z)j7iH=BMENlPs_ǩr-LdRׯؼ]:g3q!jOUn}PDWGǺ.TjU8O?>fЭcGTHu(mh!%JG%xL:iSV3E&# RPSSDž%ؚvD}QU3mMFN<BME&NlhjjzX}Q3E"c fC;6M)fzEAFN}5T]}='twǷs |u0'_DJvP_{EAFZTK ;CZM>Yk@GP#auԩ%z4W"ԁڛGԦ zg/Ej8(Ա9_GZʩǓLсGH50ԧkȔC}A')p:E=L1GH55<O~:?K[Pǖ^vFQV9x?KC*7fct꧟Od-q9<?7A'"]CN-.cIXEp7ǩsǫ,1ڭaS zS?Odu9e ?6ky*?LǙ3( W}|T SqX)2>LlX¾A'c1w|</sЩG/צ5\5j*R'|:L:6yA*OԩS)5xT8 Z82mp4ӹrЉcs ?{Md*~L_ +~<4A}D-iL~27q9 ?V : At9jrkAԠCz)j7)E%tͲu\AYQN=VUI)j:f:ڇ샎UN=ZCmqX7?;4y<]nO9/SU3%GPe$f3ʩGZVjuV35jrs qDj"Zqȝz!TI]x,FHNa1>?i󱲥ό*^R VsO⧐TO?@J=ZD=BMlFQ5X5Sd$j:fiEVRgו %Pcu% Oz)j7zYZQ5߽C= ΄lE(jPǖ-~L7.YKƿ_8 Hо`k ^`z]8mg~~ϞYWp; ,dKyCNw=RGZЗ5s1"[[cz5U߳OղBw@k&;PB$l̪񱰛ڱcGz)R;>vTK%bϞ=l#=A>)'(;'%B)f*rLm_B ;1w&m"'Љ xGsɪ>SȤQõ7c}mBˈ]v6X y.ĄtkdZoݮm|tvF}ӡ3Ir}& YJTN0{TUw<çdT{讉e rMwrTPNp7Xх]u}j.hsa{6ԱdFOP@v\ΝZ8oMy}LJyܭn,o/i'^ 4\6@''S ڝǼ9Y|~R/Q<ءS\TGb6E<5-tء$o6yVul"'d璲qNr9J#=m[ʛoI۬~qx Ǐ?gBɓ'ϹE.E^U1ٿ5/DS `S6Xc-Љ x->62Sh>lp;[ne-h?oŅ* ЩngB'.tVA Uʴ?򡪪-f-|F})p\ϫ!ϟL GRƉ"GB'>bn:95> ﱵ7ږl \f*t-#nT:lٲ@-f`ڿvEb<-w"9mr$3X*rTB?qTqQЉ:[ENOX`/Xǎ#?4i&|diզ5ɏNJ5l7:\iߑ1C?nѮ9O& k}V\ \>,G1vuѧ/RSѣGRi'7K})v%K'_`755ȏ9B~$m*r,t#NdcS㓎"pfZW_k%f[GUަtqgc_ FFFȏEB>bNҥKQ/BY"?6n9J:Sp>zy[[QbX?Qooe\].lE _ & pk :Ȫt??F` ~39!۴TYzo9N߯뿯IvOcΣ /].Xwoϯ ĿG]jl߿W}AAJex\X_̪ЩwϫJR׽[MKe'.lYv-ynxZx( Cgsɺб՟"٘E咄NmS\܃?;er(/>A5>A{y.YzE!/D6]I5>Aky.Y:95N7Q:7GN!\؝ug&sCI5>A 8 lʕ+ɷB?> b }2Sͩsw #xAOB7%BG7)˥:N1ѷ3BU:sCI5>Ay.:}˗]#L>+b 9 c]Թ 9u<3AlѾKj]%^r`QS_1w39J:N1Nօn5TP]F j|fvB{ް@GV 5"zFgw< BD,ӨkkTd5 8~CD[Yzl5wIoYi&VƜ'H`2cۿGÎV ICWnWN}A>+"^qUlD>m3Mz\{u<_KAWMǨth O$h(yjL]SZD*_ `R-p6B?zY;z3 .yNQ@ۏi&yNxIw<nn'0(N|QS~uu .vV˰;Z7F/eG1>|<L'7|{/neU{A璶;Ї o{=B@b*/g?^աo@QovTys Y3JO6PutۻeΛ~B璲$xANЉor CVsw7]ĆFj|Dk:;>66qs-Z.6Hz<wY nNOP$Ѝs! ݜ0_d۾vIZ/t/.Pmd 5>A 8zq_;RAyt u$+PH岖,t :Xs]օniq:w/h(Xf 5>Ag<WSfSM$YL }N<^s^mhL8\&HtCsIQV~{\X_p;%KO4?455'uX,rC[n>b0JBW,VxŅ*q B\謂: MSŷCh8Ν;R/&7|AuhWvX]u-NҲJkRTi_BQ_6N|:-Nv/_<5>bg;::ʤͩ'E} ]4ޣS[vOc²َ_?b[w6/a9SL XqQԷ:nNO"(yDmnP"5~Ѡб-J t9jBG75 5ZF΢I,tjlPrjm7Yq~mS{tQ3L~s8([`ĭB_lyj|ł Q ݜX/pQԷ:[NM> nى'o }u_[yRjԷ"]sWpЍD-]<5>ZyTFߪkG7oooL+}Jt+65NMh[Poh}lKxrc^[8-~#0N#7ks+7[$vnMj;p$rLnc̻TR֠`_T[&ۭ}SX7d8(ͱvf/ĩ}崡T_U-: '9ըoE`pLwB7s*dvvrk+7)95>M-|ҥru'"R c},Dݼ)nJͩo(pTԷ:|*77tȑ/XE} 8YK,9OO;Άͩ(0-NdSc [S_s}谵#n~acM7GQ$N:95>c5H+uPi9ꐤ>bPS_n9X'qЩ'YV'6n9X'qЗ.]z|n_CԷz |uX'qЩ'ts(tW7:u 'ɵ5XroC,b|{Q>50Lp ?b#6t4t Vޅ>d~}~%'ȴ9vVu3ar#ĜG;1Æ򅤡dc2C0BF ڤa)myM+QS0f6r^yL죯l1d޾׏ 筯m8GC6l,_ }XQ)a؆S m:a0\-zmV#7m~3rC3 1Y:0C'3s ў n6t/Y0(5l,_ $0 C?0пo_P? HzӭOܹSX]~7 .)9Ͼ O\p?TW0m6?LE.Sx1t\uЃn~TsscJRVP П bW)H38~>i,rE7t^k;8z.Ẹnho>\e:A7>+ oXA3<~.i,@:Q+7>0z6ẸjlLC?>H.vkwh]`pSЉZaǿ h5v̩ v4?U4k~t?\{}C0󎳼W_}!7:5N! }%^gW ͜1ङЇknӣ}dw^`B͜N-ڡO5OOhz?:CPkY&N/^FtwGㆎf~eT6snG{Dϻz/S,3h;ajknݪ9$sj<F:Q+~w #0r9-o5rڻ8K௰~00tuq̧EP1̼O)9"? $=onO?/៏Nlu<0X{-[>~&i,B:Q+~@r*Mh3sW7-Sĺo; N.:Ԕ, \/GDt**ʢ#fh0u'ڊ,*7^M1}}F `󵻰{Z7_5m%s+~/U;1^ulVn9cR0s4v0Nf9O)ۤOU5O &810Αr-&''Ehe 0i(k5Ԉ0r7t2b2󝸬7H댠v>U!j6C >vS[3ooO=F[dn}x\F3oXٴy3nj8Im}o>?B {$]TOͦŋEP1̼,V~O1躡yYfN]ߌ<>o5KxtHu'ў-BSlܴISx4tVvc>Nf>11!f^u1u` G̊%`͔R|}650*6!"vN.x[¼}ۤ}k&DgUTظqO'WHC'j%Me_Zi_L'+55[&j#Su>0ءS eֆf>>>.Wf2 }d-꺡?PfI͆0s0s Ce ;mmmmMXۥbyk~#SЉZ7wZȏy4nFLeGmdۗ5>'ˬ |llL$п&&? $c=16(lXRaeÆ M fNPxa`뒵DPQqCHZ]7[ 3>0s_ fNN >8Э%+Cg3C@Z<2PPf~̜| LC?n.:EP1̼_SL$cͿП-`X3fN]߰ɤ'ЉZaA7t'\ <7UXs/ Pͼvza''C߹sUp38/EX/XD8ׂL rh( Z>L-<ъ?XY(Codf|!6t6t/Qss_RɌN!{6t Y,+$bCO-7_bX bB"6t Y,+$bCgX bB"7 o># H---?'j"K<֟ oU"444$~UCrJNzʕ+/j&ЇֽUt)6Rf ,6Sr?3Q(QO9:9U''ln)Cg3Ͽ ,A6lͼMˍF>OSmкybHͧclk`ׂ|!k[nHܣ34zg1̼M9ahW\% X` SuE9l\$<NeA0A٦iWmkE~:`5+ĺA}yx}s_֙}b``+jh~(VX1G3G!N :9U'/_, ʩh(iG{K ͜FķEPQQ1g3GIC3̩:q^%Eooi0\l^i&Cb!J64)-2MNk#g=\өuZ_Y4-SQ⺩hx^+¾"f5" 7 ~4+73+6o6i۳B[ey̽Zjjj"PʄȪr/'LЯtk7ǰ ͜lְִ9{q>ѷ8IOflˁ6sڊ͓̥xg'''lhi  "R-Hŷ5ۻkDMmcy.Vn<^jU؆85Қg, "Ph)7NkSmNZ#`Fb?uF3+}͜`iAwIuc֭ t~ᛯovfϺ馛\xQ ˗/fo>>fJGC ͜Y|JK~NfOLLB!hf~``񳡣SutvvEhPf >̩:q"Mu%ssMte:k_>a٤DS9![SS߅f>66& 9 qrGCG3bkVFίs}h3J`3UilM>uhMLض͖v,4 .Baٲe{bn{ ͜w@~B?fiw'[Kl_]Ә(z"&i 0t^K`vf O [3=W?^ @JzCG3щblAypCg3Oayoass_]_BqSuٿ"8b: jсkt*bX,bVqq꧞{Q0 b#4ç0ںLV,b3gghnnOV,b3gg`3gUlτZLh>BJ8߲ǹUq̯J<taf͜W@!2كσ~>aM&JK/vBC`fgG؏ه6sV^f>{L#c5TCvm8h85Ĝ}a 93&LSYH]͜WI3? d4B j_< dzk[|~#Eb=mQmc|K'1[\H3WL*6ٓd|$$o0Zy#VCM6I'w*6cL%M7L6pj5{4ݸꠁǍV feikď)YycczlqcLf*6Od2͜W33*iC12 l欼 "0fʫYy989+B3?0Lnxb/_^~թd-%o߾NqI3?qAxA7-9S?aGsIu3"c7mmmuJY ÁVB3B={Zz'DX4M¸ϱ~,6>(zFf\V uO =)e0yKKK:啙c*/$m۶Mts?4f_faH;v3[N)kf>X0b*9AE.f}#i݃#IU3Tgk*GI3?"1S7ỉZa'/f|jj, Ǟk*G ޽aaʏc+lͼSk㚙s*ץ``̏A1DVT>0z\UVfAڸbf~.D@ݢSyX8A7>0sV9M7.|ö]WS+WDPI(K|y +!Sq3qc~蝙c*$-c*okk+W,^yy0 TN]㰂R95N]fd0ci'^S~*TRNB3>X0si0S7`*8(z!)t3B >f fn69O>, d*GI3 P<1Pk.;ŎE9Ӑx ȱp̉Z7ůBC}DKF_8j/_,өyo`{dr:Ɏr-az1>slݺUIc4o&k%ߠ/%Kn0ދwo;ۯcfŋd<vS9JўD3k$V3Ӑxʩpi{̉Z7ѻ,>x@ou/)&o }mԺ߂VWw1_tI7R9J7⅙|tV8Ųi^O{-SyGA83Ic]7o̍ijӴfn<Z?~}zj`oy5O69q]&AS9 FNxԬ)iu/̼ 1b#vdΝ5v(u:= T/⧏>.:c+8K3pY+F 6MoMvϘⶑտQctJ3TNZ "romUooq1R9֟St뵕/YǪI7#>zW_#zl̏@1fbWS9u}ʖ-[șqp{eiKv2RtJ:!991W%ZheM+e`8.וED*7ŏ.p{Fh {oa>ծm^lVѫEVTxa]hYb3my a:`꺙?" TFffnV9-r&qEjdw鞔&ni(}R\JB:ͯ\'2|`vFLф}#`e==joWݕuųyo%8͚?>x}_|.3^uja*pYl`yMD3M<Un:ixH*GX\\d;5Қg` "5vJ3i}j&<f.~~:̌ɼY-8NaSy;r81k^k]CrR00Bc2;td~݊w1JC|)1Zi\6`<+YWly0qCdv0].K3iN0_ V.Oz}9@1fKWO^L誎.K!PشiDȩqqOh8{=Y+~"fxfmϝ;'?D؝N唤lvYDxaP;8"Z>Y `j.[j xN=F*m:w|"vQ+^0y41SN$@S`GΈٲR9u}3%RݩO_-uprNjڗ_ax$=!ءSxn k%H3"ziƵ/־_e&mr;}&fVfٳbbb"{Q,~7~ƙQ/JyM+S^=*Q9!4s;\x[}[2_+2ӡcXxAzhx\\{ `ڿv-̣6at2gS9MP* ,^y q6`*ot9Fܡ;D=Lр>_/Jmm:JmٰqhT>r:i,B@J>~۲,\ίe`r<XOjX~m6sLgΜ!-c*okk7_%|3?4 0S80%*!zn>3ok_3L屡Qr,Bο'k%H3,~X^+AoV61_Zj3IW7F7.ͼ@ҵÒ\O(\SN}ՀC& Sy%Vq1>}Zdc2 '? ,^yb[5+!A*KϾY+ݸD[&+3TNZP:t3 ̗T$oXٰaLmʩ_$kqGSSdc:t3X0V(lx7kVTNtH3}n4s1ۋ,H#(A( R9u}ʯ @*o=x*i,iD0st+m&#3K*omm-U+[3/TAHX6%KuJI7݁OfΩ<f<Y+dO<)Ο?HQB/̼*0S8`*o|!]0sV1̼~mf4sLT|rn_S9u}ÊʇDq3q9.696}?w}xAN|rT罟;d\7Pix}gxixڂkP4C*'#AFhfn63>f켺8@*<<  qQ[̑Dтe9h;ˌfb)4f,Dar͜O3C)6sq6sV>f0fʧ̯YxO!1 MMMKme͜b ahmmn)Sl,X,VfbX!9b@li#auF*5bX͜bB 6s Y,+b3gX͜bB 6s Y,+b3gX͜bB 6s 0oEp-\R7u.:|u:VqqT0:?0H7䴙C!_uQHommk5y=Á@MucZDR`|4XՐf\]ʕ+j0ylӣ/1`pW??PrBNy!򪪪-MMMUC7|(9B"iGGՐf>I 03TN  r7唙c*?}4yÊ_R9<TN ée9e+w1y6ߓ=xܿ5hź!y8{ '̜Sy%ͼ8c gʵ{aC6>o97}hڼe "nhѲi8{ 'S+WDT|@ 9P{c`S9U'5EymeݠnPfu49E`W4Ej_׉uƾFsvEuQn,2CTr5sLN"/bXT)#+Kyұ@d3TNI: 0cؕ$'Vn k7I X <pj)ѣ!TS1駢PXbŤR9 |o>Hjʩ: m9_;Ebm?鼵zlZ0ss;0r܇})uNéCbO<I^İTf f> @ki˖-;O éCb/_, J=+7{`$fFUC1E +~M(i==d[3sLT0: ,8ǩC1_tI ʡ0c*Gfcw c*TҙyWa*?q℘.ʋc5kJ7GďfNKmj#7T_ՐV:3rӭVn>g/jL <J[魍^7yTTTL),^QMw%tdL.0=ļ |ӗ(\F d$aAf[k"hʶHy,5S9 r4c\nʏ?.F+´GD"|MEja9*ˠxeyKj?ZA4*j{>~j{?ܸ.47.c,΍ؘ݅vȪ^k~y#νZo{&kc*$[~25Q99#r='j?F~'3S[.p*ϓФ;XP6699)fVnX| Ptef~m<lrw}iA7ϖoUjKZwNLe u \Qզ-|Q.zV]-zT9}kwmjOT!y^~g^$31~ eu^fn6xO} 1k=cTϩO2b ʏ;F^LH.xE:wy6 fc S9wpFun楸| 15Қ1-˵s Umg` Py \зvަ/gp7|7eLTk}#V37^:6#5O2~l #755q*_y4qxg?1[vHu\.3TO(j&,<:gΊ+'XO\b 7$ͼQLjɘ!QXf3W};v00}ZFTX_'hX0q>+)J#ޞX`xX˥`Ʋu}{.[9Aʏ=*.^X05Sff~95[dɒT M+S4HzTtMg V/_.?TJcSpS9U'NWW SG}$&&& rn;᪯1Suq;X8\EPQQg$ͼu15/1Suttt+Tga*?ryÊJ BGS9U'!O^$EUrI}|eD3hZ ٞ+F*b8C71 $~5sRyGnԶjf!:e~UFcK, SÇXTB3k.&? $U_c* y|L%Cѓj7%%uf:0i)Rkbj5r__'Ta*.`X j*Gf^A c* ECհ˩\o(3-fC{{; SȈpBT@G3_t9N Lr>&vmvw]e|ݚ:qwWD⺺1}lTF0r S9uʲer952sLT0:F*okk{@ ˏ*T9_ AfLAHp5d,?PSy__!t35@'3TNC AO(i``Of~}AYеœTa*.`X C*Gf^Ƹ+ /S9U'N,Tq*̝p*0,\P/^xg!xS9/ =ȴړ4sYsV;1 uz}q: TyڻɋnkT opX,bX,b@#~a'*L>܋qa+7phnnw]MX,Va90 0,ijjOmb Ka߷?WoS,UXp΄zPG;u.J̅ׄJ\Tab83kXhڅ[-rpǟtq⹻z^#XT_,e0E Poa@~ 8GW }O[s `}ו-_dcuHw_`96~-QN @epb ^f8? 0^,bemSS1fzJ%3hρ Ź'Ff)yұ8#p[屨p>S_,p#E2ʀ& )F"c,[]q1dpΙ0b83*v#>9$X?8L2=`_gח Y,V99*'/9GoK0Sgr_dt 9s E 8㲞m\>&p8g|sUpc S ԉ;eX#'8sUp0 ,a Y,VKg_?cab83 0~9*xq8gasUp0Ea' &{2ycUsnkP$p] 1ńk'"*)6yP*r-/mݺ`E0?U.s7`I\x񘋃{/`&wݻߨK1ch+-+Sw'+l_~14zS?Goz 3^7=$z|$G}q>>p<zW{-W<ž.p_pYK|L1 p0`v34"!Su83λ6>({v9^1E8`_كy[[ԥD|k8_<p0Su'|! f ̷lr>; O8p^C/0*|d0.sC8'<aŒ5w 9^1t8`_Q s<5#ΙB9`J 烌\p>x| y1!&!3dx8 3F8`Cp%@sP8?w0Gq8/a ;C?`9U~9SXy'.Ω{ p\+W{`}Qp~t|8 #S*|&''łs 0aض;s0/`Uui*%4D^a>:CAp. !ϒA`9`20cLc80s JzÄѰs 7o駟 {QἏ񘉾5</FԽO>DckhD~t [Ha033w{Խbp<=p^|B{5o}`c&E;R.c"oSXy9rIah߃{/6|GB/ mEZNzMD\MDVdz8ﰄ#g{-[.]|Y0c`oxD=Խ4vC(ߑrrߓbmŋC̑pN_}p/mȶߪ@/rQa}I)d'_ܴiK. {`?VsTB8?xD;O?/z>:Ky)ye=yW6O<ٛ]X|O̻& t|&C]p/~5 @"*׽ܲ=P_N؟ /&SἽCp!_sJ]_*!xLY Hpn!0zr0?EA1Iahx X&eLFm}7ùZNzM /&SFT*Tw͛/MOO|7 jV맧>QK{\$"j{urQ}O_S0~Ŗ篫ܴx?VMIJG:4)bgЄn0E7yvq/w]z;SWL&[-QK[ }`NՁ_y#Qbf8`! $ô6_D-mӻWO֓ޯ')Ev\oCFڙLys^1U8w0G7ZQ=@p[ 7F< J8[0GZz<nM9bs|ev(sAS%M2y ܕ<W_\o'ct<Yψ =m~'IVA౭Y-}9#/[+p+K8I&c0߸qe|-PS(VlTt D@V flMY OWn! w.zy?#g2\ks+E;.FYzm?+:OCCD>1ѻj~}m}DIJag%o_co(xazcT8 3x?ʍNj+ SR1?odpnЗkI]]#e=7$n}wO̭Guvb1O!O9ΟQQQ;BC*ϮPte`m}֫lY^.yҦc+㝿 œ󪧟GκΏ_ [.^zSU]RJޫLp|b)&bDd_k'LzÄ-+d"w@#l_b[rzb~ 4B)m5S*~ JꈈTwŷ骖Oэ6>^#'sWx冈aFWL7ԡVLj NrAۆx+:.2@m(֫>oEfxd86?b}_2F8S?tUZYu&cO ԽC0_ vo7郢sT"[0~DRo|7sC&̌na~ ~^ù߂y`*^?ٔJ ->b ۉua1| 0E7yَ/wHaC! O "f}>hq뵩`NAw\0Ni0ȇ<{">R+a >pWe{3UB8?#uI=.<yWݦiZtmzpNhKv@Tl'TwfN<^7zyZDTwZc)nm˝s΅.gw&`YKR'Csp /=EQ3y#6%ʹ-gt`s 6lx}h9 U_S33p>rswWݧSTi3V+U}`tJU{z -튪DJ%;/,3`gzCsٳb m;x0 aS_@Y&zm[!XOoɯeBwR?)o~aimmM¹C{p<->c^p>K=&c^mVYU2bxaq*typ>x\:2uA]l`c&w.\75\,mT?m]$eH|1+]O0sTb8=1mP' 72ԗlI}b{1vX;d8/rCmD__Tai%ߒ>\__F̞3g` y Tp0|-njx ,mkU8W.՟k]lպ)_? 覥f8oU 9ux9{0_Kx%󡽌nj5#p~'f?D"QA+4K,=f0B ;_"=aFK8pІX'O¹Kccc)kp#|xxЄ60EwjިPZFĨuC(Q2 9UDb8}a%c*/B89`kp) cXk#}%C&[8`_ !njs8ᆃyjEC&*c0/O3cϘe503p8փ]`NݫL9u GY LAaHa0st}z8ǢN+ᜃy~)`p_8y`>3ΙBᜃy~X,v4Ub8xX˯9y`p<! f΍`~yxO!spF0U&<y -f9Sù ԽbX8`_ 5y? 5%?x^yVOu]焇0LI C*?q$s0/QpUv13\p<{9# VnX}8`^^^~^G?2.9Lp.׿u^e192?9߹sUs5'!? M]7L~_ uX.I`$Zs(̷k@tw 2a=ƜLjO{ "9bSBo{۶m_%  Ð4c88 1La<t\= 1pb ^p 0 09*xq8gasUp0 ,+03 0L>pbXHkkk-"H 0 OMMMzJ),bX,ObX,8X,bX>sbX,'pΚWM;U0 0 0᜕+܀]5X,bX|9bX,q8gX,b|",bX,ObX,8X,bX>sbX,'pbX,bDY,bX,9bX,q8gX,b| kLcu V]?DMv.`C/<$,n_0L6ܪJοoXn݄`RCCC[o=/vwwu NF@8G\x7X,vsKK?UG|'X٨rbٲe_655wvv~N?!s0 wg4 (R <|ӣ/p'Ұ$\rʩ-p/jkkCP?=s0lACsե/X%!c9WY ;w䏬-?s#g  | p80OP03X5s07Sy~pq0gr9+c8`n8W<8x 4{yb.p0g^~  <p8ϯ h^{h雎u6o"ֹ<>M[7die~Ʉ3[ Y9'|+W>`it|7r8ϓ0OP /jW}PˋD(~:oهlS@H2A3ܟe;Mo7\'E:Dёǔ>Osx)` 9{0uY6q8/#9bs\^Fl$o{}|-ZBqL֥Y|>Ֆ1*oX`ᜃy`p>>x0sE0GD2hQ<p}7S՞u};lې}f9+tw8`vډO?T0Ⴣyp`N|} wX6},[Ol[+?k1'vI~}l-a۾-pzfXo1+VLr0gN   ^ck8{%/9>8B|s 浵/_,/,Xpyw!,03\-9 3QVxpnK. &|q0Af8yGLf<ù`>AsVu8`nKҳ2TB89 T078¥\+<ۭ.^USZa0''D5Gun"_G5Z}Foo/4nƻ_y{ר&Rf8~[Lt]D])zsQĺ<3߿?\W9vm[Uӌ`>Ap{EmD|sT7m$W<O>GSQQQsP*p^jUϥ ^s$u8Om0%#fffYGviOu,:o.3s=Cx8 bkp~sDoX^6_D%һ3kG0/nmb3u+6/s`;S`ϭ7{2VD^Hz2I}^~9dR\lGo ~ejjJxE ,{L1A1DXgGss[c6k!Z瞨(s-ש}=b[dw~yYawbp5 )X ms+Ew}"^'{W]"Y=k!rY.⛕FX`CG>@Ԧ?gsGm}O`5eIv1޻%_p0g>ڔ7>c>199)AkZ5h~5ݖ> 5ضU&~y6ۨ$no:X䶉f% {rq| e<9is >C9PѶkC@KG6=ABXПه8'Es+7+^7t  Jʿ<N5ݶmHCw ܳs 瑦_!y s+WnflqJ yMMO>DxMC)WiZh~]> ̨DܷٞM4mE׉ooBcI޶TTW?~NX,gYٍexqʔ;SZ]#z'ҝuST n_o෋_>!֟n׷X\d3{W0OPOЧgșύ{ 5rDTw׊Tm,}exőQDֶ>}MK:c+V`mX*^?$33<{g˩0nW<7BXla<yf?q̃ 0Zf Y,es`GWWse߈Mp8]'(`fG|ҭN_X|yGY8X99T Nqw?y<CLxp9 0Lp0gpu15s&8X yuuq3i{(3|v`>AG Ezzϩ/1>S"~?cb9)̻uY.(^c8gPsʋDU!4QT5@&̧ZnIQU$*A#T0BcU^,+[a0_fؘ`G{{;s!,~xp8g! : EkD51]II>vbb CH?.8֘um]IbDԩsaq07##n2<s1d /k֨NrI]6,qsKbdu,`n8Op^ac8g0s=jS1/'sf\LY,n.\L`_cp8IF0#ԉ0npw\Ww7.'bvz;w:zu1'b>]&'Dg=66^lٲoe`b ᆃy<p8Opsm98{0Z]z_CXx `sa XO<p8} ,`n8Kf8op`saq07x85_pns&8X wy^L~܇29_8'?  3%%%8X.ᆺxB\5.>B]rsA>kGQOe)HA|bQed@ p?RebX,V07/ݻ@(׌SuIX,+i#R:mIENDB`
PNG  IHDRX8sRGBgAMA a pHYsodf-IDATx^ t֙~ofL7ݓd33=st6ݝ8EJr^b.i$xKcKw";Z-3 x%يĭ(Yd"),}(b @@TX>5. 7 ԩW#pDNabףEbVhHY f>u@ c"Lb~<&DA_~_٠6KҁD*jq9 FA/..g}&2ejj*iGN lP%iAAG I K=W\V65uYqd ?:.'?zt˗/Lx"9`ӣ"fI=zNءw:ǒg@9CR;-ʣ" S:9QG:KS+ܕm)}0:Lώktc'Ni>. ϟO9XSZSSWv~[%a></;IGdCȩAٰ~QSD6͒9#؏A+xjU{_PeG:yND/w~mlU>66&2) 59Yա#SچF:.'i=x2q/\ TmJjr`YZա#SIu\Nz6/ޙ jqYZ5kճuLP$-'{ &1t}fd25{QU3E"0jӌElPs_GvR8#TfЩ jwz)VI)9#Td;q ' 4hOj z)j7iH=BMENlPs_ǩr-LdRׯؼ]:g3q!jOUn}PDWGǺ.TjU8O?>fЭcGTHu(mh!%JG%xL:iSV3E&# RPSSDž%ؚvD}QU3mMFN<BME&NlhjjzX}Q3E"c fC;6M)fzEAFN}5T]}='twǷs |u0'_DJvP_{EAFZTK ;CZM>Yk@GP#auԩ%z4W"ԁڛGԦ zg/Ej8(Ա9_GZʩǓLсGH50ԧkȔC}A')p:E=L1GH55<O~:?K[Pǖ^vFQV9x?KC*7fct꧟Od-q9<?7A'"]CN-.cIXEp7ǩsǫ,1ڭaS zS?Odu9e ?6ky*?LǙ3( W}|T SqX)2>LlX¾A'c1w|</sЩG/צ5\5j*R'|:L:6yA*OԩS)5xT8 Z82mp4ӹrЉcs ?{Md*~L_ +~<4A}D-iL~27q9 ?V : At9jrkAԠCz)j7)E%tͲu\AYQN=VUI)j:f:ڇ샎UN=ZCmqX7?;4y<]nO9/SU3%GPe$f3ʩGZVjuV35jrs qDj"Zqȝz!TI]x,FHNa1>?i󱲥ό*^R VsO⧐TO?@J=ZD=BMlFQ5X5Sd$j:fiEVRgו %Pcu% Oz)j7zYZQ5߽C= ΄lE(jPǖ-~L7.YKƿ_8 Hо`k ^`z]8mg~~ϞYWp; ,dKyCNw=RGZЗ5s1"[[cz5U߳OղBw@k&;PB$l̪񱰛ڱcGz)R;>vTK%bϞ=l#=A>)'(;'%B)f*rLm_B ;1w&m"'Љ xGsɪ>SȤQõ7c}mBˈ]v6X y.ĄtkdZoݮm|tvF}ӡ3Ir}& YJTN0{TUw<çdT{讉e rMwrTPNp7Xх]u}j.hsa{6ԱdFOP@v\ΝZ8oMy}LJyܭn,o/i'^ 4\6@''S ڝǼ9Y|~R/Q<ءS\TGb6E<5-tء$o6yVul"'d璲qNr9J#=m[ʛoI۬~qx Ǐ?gBɓ'ϹE.E^U1ٿ5/DS `S6Xc-Љ x->62Sh>lp;[ne-h?oŅ* ЩngB'.tVA Uʴ?򡪪-f-|F})p\ϫ!ϟL GRƉ"GB'>bn:95> ﱵ7ږl \f*t-#nT:lٲ@-f`ڿvEb<-w"9mr$3X*rTB?qTqQЉ:[ENOX`/Xǎ#?4i&|diզ5ɏNJ5l7:\iߑ1C?nѮ9O& k}V\ \>,G1vuѧ/RSѣGRi'7K})v%K'_`755ȏ9B~$m*r,t#NdcS㓎"pfZW_k%f[GUަtqgc_ FFFȏEB>bNҥKQ/BY"?6n9J:Sp>zy[[QbX?Qooe\].lE _ & pk :Ȫt??F` ~39!۴TYzo9N߯뿯IvOcΣ /].Xwoϯ ĿG]jl߿W}AAJex\X_̪ЩwϫJR׽[MKe'.lYv-ynxZx( Cgsɺб՟"٘E咄NmS\܃?;er(/>A5>A{y.YzE!/D6]I5>Aky.Y:95N7Q:7GN!\؝ug&sCI5>A 8 lʕ+ɷB?> b }2Sͩsw #xAOB7%BG7)˥:N1ѷ3BU:sCI5>Ay.:}˗]#L>+b 9 c]Թ 9u<3AlѾKj]%^r`QS_1w39J:N1Nօn5TP]F j|fvB{ް@GV 5"zFgw< BD,ӨkkTd5 8~CD[Yzl5wIoYi&VƜ'H`2cۿGÎV ICWnWN}A>+"^qUlD>m3Mz\{u<_KAWMǨth O$h(yjL]SZD*_ `R-p6B?zY;z3 .yNQ@ۏi&yNxIw<nn'0(N|QS~uu .vV˰;Z7F/eG1>|<L'7|{/neU{A璶;Ї o{=B@b*/g?^աo@QovTys Y3JO6PutۻeΛ~B璲$xANЉor CVsw7]ĆFj|Dk:;>66qs-Z.6Hz<wY nNOP$Ѝs! ݜ0_d۾vIZ/t/.Pmd 5>A 8zq_;RAyt u$+PH岖,t :Xs]օniq:w/h(Xf 5>Ag<WSfSM$YL }N<^s^mhL8\&HtCsIQV~{\X_p;%KO4?455'uX,rC[n>b0JBW,VxŅ*q B\謂: MSŷCh8Ν;R/&7|AuhWvX]u-NҲJkRTi_BQ_6N|:-Nv/_<5>bg;::ʤͩ'E} ]4ޣS[vOc²َ_?b[w6/a9SL XqQԷ:nNO"(yDmnP"5~Ѡб-J t9jBG75 5ZF΢I,tjlPrjm7Yq~mS{tQ3L~s8([`ĭB_lyj|ł Q ݜX/pQԷ:[NM> nى'o }u_[yRjԷ"]sWpЍD-]<5>ZyTFߪkG7oooL+}Jt+65NMh[Poh}lKxrc^[8-~#0N#7ks+7[$vnMj;p$rLnc̻TR֠`_T[&ۭ}SX7d8(ͱvf/ĩ}崡T_U-: '9ըoE`pLwB7s*dvvrk+7)95>M-|ҥru'"R c},Dݼ)nJͩo(pTԷ:|*77tȑ/XE} 8YK,9OO;Άͩ(0-NdSc [S_s}谵#n~acM7GQ$N:95>c5H+uPi9ꐤ>bPS_n9X'qЩ'YV'6n9X'qЗ.]z|n_CԷz |uX'qЩ'ts(tW7:u 'ɵ5XroC,b|{Q>50Lp ?b#6t4t Vޅ>d~}~%'ȴ9vVu3ar#ĜG;1Æ򅤡dc2C0BF ڤa)myM+QS0f6r^yL죯l1d޾׏ 筯m8GC6l,_ }XQ)a؆S m:a0\-zmV#7m~3rC3 1Y:0C'3s ў n6t/Y0(5l,_ $0 C?0пo_P? HzӭOܹSX]~7 .)9Ͼ O\p?TW0m6?LE.Sx1t\uЃn~TsscJRVP П bW)H38~>i,rE7t^k;8z.Ẹnho>\e:A7>+ oXA3<~.i,@:Q+7>0z6ẸjlLC?>H.vkwh]`pSЉZaǿ h5v̩ v4?U4k~t?\{}C0󎳼W_}!7:5N! }%^gW ͜1ङЇknӣ}dw^`B͜N-ڡO5OOhz?:CPkY&N/^FtwGㆎf~eT6snG{Dϻz/S,3h;ajknݪ9$sj<F:Q+~w #0r9-o5rڻ8K௰~00tuq̧EP1̼O)9"? $=onO?/៏Nlu<0X{-[>~&i,B:Q+~@r*Mh3sW7-Sĺo; N.:Ԕ, \/GDt**ʢ#fh0u'ڊ,*7^M1}}F `󵻰{Z7_5m%s+~/U;1^ulVn9cR0s4v0Nf9O)ۤOU5O &810Αr-&''Ehe 0i(k5Ԉ0r7t2b2󝸬7H댠v>U!j6C >vS[3ooO=F[dn}x\F3oXٴy3nj8Im}o>?B {$]TOͦŋEP1̼,V~O1躡yYfN]ߌ<>o5KxtHu'ў-BSlܴISx4tVvc>Nf>11!f^u1u` G̊%`͔R|}650*6!"vN.x[¼}ۤ}k&DgUTظqO'WHC'j%Me_Zi_L'+55[&j#Su>0ءS eֆf>>>.Wf2 }d-꺡?PfI͆0s0s Ce ;mmmmMXۥbyk~#SЉZ7wZȏy4nFLeGmdۗ5>'ˬ |llL$п&&? $c=16(lXRaeÆ M fNPxa`뒵DPQqCHZ]7[ 3>0s_ fNN >8Э%+Cg3C@Z<2PPf~̜| LC?n.:EP1̼_SL$cͿП-`X3fN]߰ɤ'ЉZaA7t'\ <7UXs/ Pͼvza''C߹sUp38/EX/XD8ׂL rh( Z>L-<ъ?XY(Codf|!6t6t/Qss_RɌN!{6t Y,+$bCO-7_bX bB"6t Y,+$bCgX bB"7 o># H---?'j"K<֟ oU"444$~UCrJNzʕ+/j&ЇֽUt)6Rf ,6Sr?3Q(QO9:9U''ln)Cg3Ͽ ,A6lͼMˍF>OSmкybHͧclk`ׂ|!k[nHܣ34zg1̼M9ahW\% X` SuE9l\$<NeA0A٦iWmkE~:`5+ĺA}yx}s_֙}b``+jh~(VX1G3G!N :9U'/_, ʩh(iG{K ͜FķEPQQ1g3GIC3̩:q^%Eooi0\l^i&Cb!J64)-2MNk#g=\өuZ_Y4-SQ⺩hx^+¾"f5" 7 ~4+73+6o6i۳B[ey̽Zjjj"PʄȪr/'LЯtk7ǰ ͜lְִ9{q>ѷ8IOflˁ6sڊ͓̥xg'''lhi  "R-Hŷ5ۻkDMmcy.Vn<^jU؆85Қg, "Ph)7NkSmNZ#`Fb?uF3+}͜`iAwIuc֭ t~ᛯovfϺ馛\xQ ˗/fo>>fJGC ͜Y|JK~NfOLLB!hf~``񳡣SutvvEhPf >̩:q"Mu%ssMte:k_>a٤DS9![SS߅f>66& 9 qrGCG3bkVFίs}h3J`3UilM>uhMLض͖v,4 .Baٲe{bn{ ͜w@~B?fiw'[Kl_]Ә(z"&i 0t^K`vf O [3=W?^ @JzCG3щblAypCg3Oayoass_]_BqSuٿ"8b: jсkt*bX,bVqq꧞{Q0 b#4ç0ںLV,b3gghnnOV,b3gg`3gUlτZLh>BJ8߲ǹUq̯J<taf͜W@!2كσ~>aM&JK/vBC`fgG؏ه6sV^f>{L#c5TCvm8h85Ĝ}a 93&LSYH]͜WI3? d4B j_< dzk[|~#Eb=mQmc|K'1[\H3WL*6ٓd|$$o0Zy#VCM6I'w*6cL%M7L6pj5{4ݸꠁǍV feikď)YycczlqcLf*6Od2͜W33*iC12 l欼 "0fʫYy989+B3?0Lnxb/_^~թd-%o߾NqI3?qAxA7-9S?aGsIu3"c7mmmuJY ÁVB3B={Zz'DX4M¸ϱ~,6>(zFf\V uO =)e0yKKK:啙c*/$m۶Mts?4f_faH;v3[N)kf>X0b*9AE.f}#i݃#IU3Tgk*GI3?"1S7ỉZa'/f|jj, Ǟk*G ޽aaʏc+lͼSk㚙s*ץ``̏A1DVT>0z\UVfAڸbf~.D@ݢSyX8A7>0sV9M7.|ö]WS+WDPI(K|y +!Sq3qc~蝙c*$-c*okk+W,^yy0 TN]㰂R95N]fd0ci'^S~*TRNB3>X0si0S7`*8(z!)t3B >f fn69O>, d*GI3 P<1Pk.;ŎE9Ӑx ȱp̉Z7ůBC}DKF_8j/_,өyo`{dr:Ɏr-az1>slݺUIc4o&k%ߠ/%Kn0ދwo;ۯcfŋd<vS9JўD3k$V3Ӑxʩpi{̉Z7ѻ,>x@ou/)&o }mԺ߂VWw1_tI7R9J7⅙|tV8Ųi^O{-SyGA83Ic]7o̍ijӴfn<Z?~}zj`oy5O69q]&AS9 FNxԬ)iu/̼ 1b#vdΝ5v(u:= T/⧏>.:c+8K3pY+F 6MoMvϘⶑտQctJ3TNZ "romUooq1R9֟St뵕/YǪI7#>zW_#zl̏@1fbWS9u}ʖ-[șqp{eiKv2RtJ:!991W%ZheM+e`8.וED*7ŏ.p{Fh {oa>ծm^lVѫEVTxa]hYb3my a:`꺙?" TFffnV9-r&qEjdw鞔&ni(}R\JB:ͯ\'2|`vFLф}#`e==joWݕuųyo%8͚?>x}_|.3^uja*pYl`yMD3M<Un:ixH*GX\\d;5Қg` "5vJ3i}j&<f.~~:̌ɼY-8NaSy;r81k^k]CrR00Bc2;td~݊w1JC|)1Zi\6`<+YWly0qCdv0].K3iN0_ V.Oz}9@1fKWO^L誎.K!PشiDȩqqOh8{=Y+~"fxfmϝ;'?D؝N唤lvYDxaP;8"Z>Y `j.[j xN=F*m:w|"vQ+^0y41SN$@S`GΈٲR9u}3%RݩO_-uprNjڗ_ax$=!ءSxn k%H3"ziƵ/־_e&mr;}&fVfٳbbb"{Q,~7~ƙQ/JyM+S^=*Q9!4s;\x[}[2_+2ӡcXxAzhx\\{ `ڿv-̣6at2gS9MP* ,^y q6`*ot9Fܡ;D=Lр>_/Jmm:JmٰqhT>r:i,B@J>~۲,\ίe`r<XOjX~m6sLgΜ!-c*okk7_%|3?4 0S80%*!zn>3ok_3L屡Qr,Bο'k%H3,~X^+AoV61_Zj3IW7F7.ͼ@ҵÒ\O(\SN}ՀC& Sy%Vq1>}Zdc2 '? ,^yb[5+!A*KϾY+ݸD[&+3TNZP:t3 ̗T$oXٰaLmʩ_$kqGSSdc:t3X0V(lx7kVTNtH3}n4s1ۋ,H#(A( R9u}ʯ @*o=x*i,iD0st+m&#3K*omm-U+[3/TAHX6%KuJI7݁OfΩ<f<Y+dO<)Ο?HQB/̼*0S8`*o|!]0sV1̼~mf4sLT|rn_S9u}ÊʇDq3q9.696}?w}xAN|rT罟;d\7Pix}gxixڂkP4C*'#AFhfn63>f켺8@*<<  qQ[̑Dтe9h;ˌfb)4f,Dar͜O3C)6sq6sV>f0fʧ̯YxO!1 MMMKme͜b ahmmn)Sl,X,VfbX!9b@li#auF*5bX͜bB 6s Y,+b3gX͜bB 6s Y,+b3gX͜bB 6s 0oEp-\R7u.:|u:VqqT0:?0H7䴙C!_uQHommk5y=Á@MucZDR`|4XՐf\]ʕ+j0ylӣ/1`pW??PrBNy!򪪪-MMMUC7|(9B"iGGՐf>I 03TN  r7唙c*?}4yÊ_R9<TN ée9e+w1y6ߓ=xܿ5hź!y8{ '̜Sy%ͼ8c gʵ{aC6>o97}hڼe "nhѲi8{ 'S+WDT|@ 9P{c`S9U'5EymeݠnPfu49E`W4Ej_׉uƾFsvEuQn,2CTr5sLN"/bXT)#+Kyұ@d3TNI: 0cؕ$'Vn k7I X <pj)ѣ!TS1駢PXbŤR9 |o>Hjʩ: m9_;Ebm?鼵zlZ0ss;0r܇})uNéCbO<I^İTf f> @ki˖-;O éCb/_, J=+7{`$fFUC1E +~M(i==d[3sLT0: ,8ǩC1_tI ʡ0c*Gfcw c*TҙyWa*?q℘.ʋc5kJ7GďfNKmj#7T_ՐV:3rӭVn>g/jL <J[魍^7yTTTL),^QMw%tdL.0=ļ |ӗ(\F d$aAf[k"hʶHy,5S9 r4c\nʏ?.F+´GD"|MEja9*ˠxeyKj?ZA4*j{>~j{?ܸ.47.c,΍ؘ݅vȪ^k~y#νZo{&kc*$[~25Q99#r='j?F~'3S[.p*ϓФ;XP6699)fVnX| Ptef~m<lrw}iA7ϖoUjKZwNLe u \Qզ-|Q.zV]-zT9}kwmjOT!y^~g^$31~ eu^fn6xO} 1k=cTϩO2b ʏ;F^LH.xE:wy6 fc S9wpFun楸| 15Қ1-˵s Umg` Py \зvަ/gp7|7eLTk}#V37^:6#5O2~l #755q*_y4qxg?1[vHu\.3TO(j&,<:gΊ+'XO\b 7$ͼQLjɘ!QXf3W};v00}ZFTX_'hX0q>+)J#ޞX`xX˥`Ʋu}{.[9Aʏ=*.^X05Sff~95[dɒT M+S4HzTtMg V/_.?TJcSpS9U'NWW SG}$&&& rn;᪯1Suq;X8\EPQQg$ͼu15/1Suttt+Tga*?ryÊJ BGS9U'!O^$EUrI}|eD3hZ ٞ+F*b8C71 $~5sRyGnԶjf!:e~UFcK, SÇXTB3k.&? $U_c* y|L%Cѓj7%%uf:0i)Rkbj5r__'Ta*.`X j*Gf^A c* ECհ˩\o(3-fC{{; SȈpBT@G3_t9N Lr>&vmvw]e|ݚ:qwWD⺺1}lTF0r S9uʲer952sLT0:F*okk{@ ˏ*T9_ AfLAHp5d,?PSy__!t35@'3TNC AO(i``Of~}AYеœTa*.`X C*Gf^Ƹ+ /S9U'N,Tq*̝p*0,\P/^xg!xS9/ =ȴړ4sYsV;1 uz}q: TyڻɋnkT opX,bX,b@#~a'*L>܋qa+7phnnw]MX,Va90 0,ijjOmb Ka߷?WoS,UXp΄zPG;u.J̅ׄJ\Tab83kXhڅ[-rpǟtq⹻z^#XT_,e0E Poa@~ 8GW }O[s `}ו-_dcuHw_`96~-QN @epb ^f8? 0^,bemSS1fzJ%3hρ Ź'Ff)yұ8#p[屨p>S_,p#E2ʀ& )F"c,[]q1dpΙ0b83*v#>9$X?8L2=`_gח Y,V99*'/9GoK0Sgr_dt 9s E 8㲞m\>&p8g|sUpc S ԉ;eX#'8sUp0 ,a Y,VKg_?cab83 0~9*xq8gasUp0Ea' &{2ycUsnkP$p] 1ńk'"*)6yP*r-/mݺ`E0?U.s7`I\x񘋃{/`&wݻߨK1ch+-+Sw'+l_~14zS?Goz 3^7=$z|$G}q>>p<zW{-W<ž.p_pYK|L1 p0`v34"!Su83λ6>({v9^1E8`_كy[[ԥD|k8_<p0Su'|! f ̷lr>; O8p^C/0*|d0.sC8'<aŒ5w 9^1t8`_Q s<5#ΙB9`J 烌\p>x| y1!&!3dx8 3F8`Cp%@sP8?w0Gq8/a ;C?`9U~9SXy'.Ω{ p\+W{`}Qp~t|8 #S*|&''łs 0aض;s0/`Uui*%4D^a>:CAp. !ϒA`9`20cLc80s JzÄѰs 7o駟 {QἏ񘉾5</FԽO>DckhD~t [Ha033w{Խbp<=p^|B{5o}`c&E;R.c"oSXy9rIah߃{/6|GB/ mEZNzMD\MDVdz8ﰄ#g{-[.]|Y0c`oxD=Խ4vC(ߑrrߓbmŋC̑pN_}p/mȶߪ@/rQa}I)d'_ܴiK. {`?VsTB8?xD;O?/z>:Ky)ye=yW6O<ٛ]X|O̻& t|&C]p/~5 @"*׽ܲ=P_N؟ /&SἽCp!_sJ]_*!xLY Hpn!0zr0?EA1Iahx X&eLFm}7ùZNzM /&SFT*Tw͛/MOO|7 jV맧>QK{\$"j{urQ}O_S0~Ŗ篫ܴx?VMIJG:4)bgЄn0E7yvq/w]z;SWL&[-QK[ }`NՁ_y#Qbf8`! $ô6_D-mӻWO֓ޯ')Ev\oCFڙLys^1U8w0G7ZQ=@p[ 7F< J8[0GZz<nM9bs|ev(sAS%M2y ܕ<W_\o'ct<Yψ =m~'IVA౭Y-}9#/[+p+K8I&c0߸qe|-PS(VlTt D@V flMY OWn! w.zy?#g2\ks+E;.FYzm?+:OCCD>1ѻj~}m}DIJag%o_co(xazcT8 3x?ʍNj+ SR1?odpnЗkI]]#e=7$n}wO̭Guvb1O!O9ΟQQQ;BC*ϮPte`m}֫lY^.yҦc+㝿 œ󪧟GκΏ_ [.^zSU]RJޫLp|b)&bDd_k'LzÄ-+d"w@#l_b[rzb~ 4B)m5S*~ JꈈTwŷ骖Oэ6>^#'sWx冈aFWL7ԡVLj NrAۆx+:.2@m(֫>oEfxd86?b}_2F8S?tUZYu&cO ԽC0_ vo7郢sT"[0~DRo|7sC&̌na~ ~^ù߂y`*^?ٔJ ->b ۉua1| 0E7yَ/wHaC! O "f}>hq뵩`NAw\0Ni0ȇ<{">R+a >pWe{3UB8?#uI=.<yWݦiZtmzpNhKv@Tl'TwfN<^7zyZDTwZc)nm˝s΅.gw&`YKR'Csp /=EQ3y#6%ʹ-gt`s 6lx}h9 U_S33p>rswWݧSTi3V+U}`tJU{z -튪DJ%;/,3`gzCsٳb m;x0 aS_@Y&zm[!XOoɯeBwR?)o~aimmM¹C{p<->c^p>K=&c^mVYU2bxaq*typ>x\:2uA]l`c&w.\75\,mT?m]$eH|1+]O0sTb8=1mP' 72ԗlI}b{1vX;d8/rCmD__Tai%ߒ>\__F̞3g` y Tp0|-njx ,mkU8W.՟k]lպ)_? 覥f8oU 9ux9{0_Kx%󡽌nj5#p~'f?D"QA+4K,=f0B ;_"=aFK8pІX'O¹Kccc)kp#|xxЄ60EwjިPZFĨuC(Q2 9UDb8}a%c*/B89`kp) cXk#}%C&[8`_ !njs8ᆃyjEC&*c0/O3cϘe503p8փ]`NݫL9u GY LAaHa0st}z8ǢN+ᜃy~)`p_8y`>3ΙBᜃy~X,v4Ub8xX˯9y`p<! f΍`~yxO!spF0U&<y -f9Sù ԽbX8`_ 5y? 5%?x^yVOu]焇0LI C*?q$s0/QpUv13\p<{9# VnX}8`^^^~^G?2.9Lp.׿u^e192?9߹sUs5'!? M]7L~_ uX.I`$Zs(̷k@tw 2a=ƜLjO{ "9bSBo{۶m_%  Ð4c88 1La<t\= 1pb ^p 0 09*xq8gasUp0 ,+03 0L>pbXHkkk-"H 0 OMMMzJ),bX,ObX,8X,bX>sbX,'pΚWM;U0 0 0᜕+܀]5X,bX|9bX,q8gX,b|",bX,ObX,8X,bX>sbX,'pbX,bDY,bX,9bX,q8gX,b| kLcu V]?DMv.`C/<$,n_0L6ܪJοoXn݄`RCCC[o=/vwwu NF@8G\x7X,vsKK?UG|'X٨rbٲe_655wvv~N?!s0 wg4 (R <|ӣ/p'Ұ$\rʩ-p/jkkCP?=s0lACsե/X%!c9WY ;w䏬-?s#g  | p80OP03X5s07Sy~pq0gr9+c8`n8W<8x 4{yb.p0g^~  <p8ϯ h^{h雎u6o"ֹ<>M[7die~Ʉ3[ Y9'|+W>`it|7r8ϓ0OP /jW}PˋD(~:oهlS@H2A3ܟe;Mo7\'E:Dёǔ>Osx)` 9{0uY6q8/#9bs\^Fl$o{}|-ZBqL֥Y|>Ֆ1*oX`ᜃy`p>>x0sE0GD2hQ<p}7S՞u};lې}f9+tw8`vډO?T0Ⴣyp`N|} wX6},[Ol[+?k1'vI~}l-a۾-pzfXo1+VLr0gN   ^ck8{%/9>8B|s 浵/_,/,Xpyw!,03\-9 3QVxpnK. &|q0Af8yGLf<ù`>AsVu8`nKҳ2TB89 T078¥\+<ۭ.^USZa0''D5Gun"_G5Z}Foo/4nƻ_y{ר&Rf8~[Lt]D])zsQĺ<3߿?\W9vm[Uӌ`>Ap{EmD|sT7m$W<O>GSQQQsP*p^jUϥ ^s$u8Om0%#fffYGviOu,:o.3s=Cx8 bkp~sDoX^6_D%һ3kG0/nmb3u+6/s`;S`ϭ7{2VD^Hz2I}^~9dR\lGo ~ejjJxE ,{L1A1DXgGss[c6k!Z瞨(s-ש}=b[dw~yYawbp5 )X ms+Ew}"^'{W]"Y=k!rY.⛕FX`CG>@Ԧ?gsGm}O`5eIv1޻%_p0g>ڔ7>c>199)AkZ5h~5ݖ> 5ضU&~y6ۨ$no:X䶉f% {rq| e<9is >C9PѶkC@KG6=ABXПه8'Es+7+^7t  Jʿ<N5ݶmHCw ܳs 瑦_!y s+WnflqJ yMMO>DxMC)WiZh~]> ̨DܷٞM4mE׉ooBcI޶TTW?~NX,gYٍexqʔ;SZ]#z'ҝuST n_o෋_>!֟n׷X\d3{W0OPOЧgșύ{ 5rDTw׊Tm,}exőQDֶ>}MK:c+V`mX*^?$33<{g˩0nW<7BXla<yf?q̃ 0Zf Y,es`GWWse߈Mp8]'(`fG|ҭN_X|yGY8X99T Nqw?y<CLxp9 0Lp0gpu15s&8X yuuq3i{(3|v`>AG Ezzϩ/1>S"~?cb9)̻uY.(^c8gPsʋDU!4QT5@&̧ZnIQU$*A#T0BcU^,+[a0_fؘ`G{{;s!,~xp8g! : EkD51]II>vbb CH?.8֘um]IbDԩsaq07##n2<s1d /k֨NrI]6,qsKbdu,`n8Op^ac8g0s=jS1/'sf\LY,n.\L`_cp8IF0#ԉ0npw\Ww7.'bvz;w:zu1'b>]&'Dg=66^lٲoe`b ᆃy<p8Opsm98{0Z]z_CXx `sa XO<p8} ,`n8Kf8op`saq07x85_pns&8X wy^L~܇29_8'?  3%%%8X.ᆺxB\5.>B]rsA>kGQOe)HA|bQed@ p?RebX,V07/ݻ@(׌SuIX,+i#R:mIENDB`
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Collections.Specialized/tests/StringDictionary/StringDictionary.ValuesTests.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.Collections.Specialized.Tests { public class StringDictionaryValuesTests { [Theory] [InlineData(0)] [InlineData(5)] public void Values(int count) { StringDictionary stringDictionary = Helpers.CreateStringDictionary(count); ICollection values = stringDictionary.Values; Assert.Equal(count, values.Count); stringDictionary.Add("duplicatevaluekey1", "value"); stringDictionary.Add("duplicatevaluekey2", "value"); Assert.Equal(count + 2, values.Count); IEnumerator enumerator = stringDictionary.GetEnumerator(); foreach (string value in values) { enumerator.MoveNext(); DictionaryEntry entry = (DictionaryEntry)enumerator.Current; Assert.Equal(value, entry.Value); Assert.True(stringDictionary.ContainsValue(value)); } } [Theory] [InlineData(0, 0)] [InlineData(0, 1)] [InlineData(5, 0)] [InlineData(5, 1)] public void Values_CopyTo(int count, int index) { StringDictionary stringDictionary = Helpers.CreateStringDictionary(count); ICollection values = stringDictionary.Values; string[] array = new string[count + index + 5]; values.CopyTo(array, index); IEnumerator enumerator = stringDictionary.GetEnumerator(); for (int i = 0; i < index; i++) { Assert.Null(array[i]); } for (int i = index; i < index + count; i++) { enumerator.MoveNext(); DictionaryEntry entry = (DictionaryEntry)enumerator.Current; string value = array[i]; Assert.Equal(entry.Value, value); Assert.True(stringDictionary.ContainsValue(value)); } for (int i = index + count; i < array.Length; i++) { Assert.Null(array[i]); } } } }
// 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.Collections.Specialized.Tests { public class StringDictionaryValuesTests { [Theory] [InlineData(0)] [InlineData(5)] public void Values(int count) { StringDictionary stringDictionary = Helpers.CreateStringDictionary(count); ICollection values = stringDictionary.Values; Assert.Equal(count, values.Count); stringDictionary.Add("duplicatevaluekey1", "value"); stringDictionary.Add("duplicatevaluekey2", "value"); Assert.Equal(count + 2, values.Count); IEnumerator enumerator = stringDictionary.GetEnumerator(); foreach (string value in values) { enumerator.MoveNext(); DictionaryEntry entry = (DictionaryEntry)enumerator.Current; Assert.Equal(value, entry.Value); Assert.True(stringDictionary.ContainsValue(value)); } } [Theory] [InlineData(0, 0)] [InlineData(0, 1)] [InlineData(5, 0)] [InlineData(5, 1)] public void Values_CopyTo(int count, int index) { StringDictionary stringDictionary = Helpers.CreateStringDictionary(count); ICollection values = stringDictionary.Values; string[] array = new string[count + index + 5]; values.CopyTo(array, index); IEnumerator enumerator = stringDictionary.GetEnumerator(); for (int i = 0; i < index; i++) { Assert.Null(array[i]); } for (int i = index; i < index + count; i++) { enumerator.MoveNext(); DictionaryEntry entry = (DictionaryEntry)enumerator.Current; string value = array[i]; Assert.Equal(entry.Value, value); Assert.True(stringDictionary.ContainsValue(value)); } for (int i = index + count; i < array.Length; i++) { Assert.Null(array[i]); } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/mono/wasm/runtime/cjs/dotnet.cjs.post.js
createDotnetRuntime.ready = createDotnetRuntime.ready.then(() => { return __dotnet_exportedAPI; })
createDotnetRuntime.ready = createDotnetRuntime.ready.then(() => { return __dotnet_exportedAPI; })
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Regression/VS-ia64-JIT/M00/b80737/b80737.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="fbug5.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="fbug5.il" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Regression/clr-x64-JIT/v4.0/devdiv374539/DevDiv_374539.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <!-- This test takes a long time to run; exclude it by default --> <CLRTestPriority>1</CLRTestPriority> <!-- Test unsupported outside of windows --> <CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="DevDiv_374539.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <!-- This test takes a long time to run; exclude it by default --> <CLRTestPriority>1</CLRTestPriority> <!-- Test unsupported outside of windows --> <CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="DevDiv_374539.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Methodical/Arrays/huge/huge_r4.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 { } .assembly 'huge_r4' { } .assembly extern xunit.core {} .namespace JitTest { .class private auto ansi Test extends [mscorlib]System.Object { .method private hidebysig static int32 Main() il managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 70 .locals (float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix, int32 count, int32[] dim) ldstr "Creating 32-dimension array" call void [System.Console]System.Console::WriteLine(string) ldc.i4 32 dup stloc count dup add newarr int32 again: dup dup ldloc count ldc.i4.1 sub dup stloc count dup add dup ldc.i4 20 mul stelem.i4 ldloc count dup add ldc.i4.1 add ldloc count ldc.i4.3 rem dup brtrue cool pop ldc.i4.1 cool: stelem.i4 ldloc count brtrue again ldc.i4.0 stloc count again2: dup ldloc count ldelem.i4 call void [System.Console]System.Console::Write(int32) ldstr " " call void [System.Console]System.Console::Write(string) ldloc count ldc.i4.1 add dup stloc count ldc.i4 64 ceq brfalse again2 stloc dim ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.1 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.3 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.5 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.7 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 9 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 11 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 13 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 15 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 17 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 19 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 21 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 23 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 25 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 27 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 29 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 31 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 33 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 35 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 37 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 39 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 41 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 43 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 45 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 47 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 49 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 51 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 53 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 55 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 57 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 59 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 61 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 ldloc dim ldc.i4 63 ldelem.i4 newobj instance void float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::.ctor( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) stloc matrix ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 ldc.i4 0x57751795 conv.r4 callvirt instance void float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Set( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, float32) ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 callvirt instance float32 float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Get( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) conv.ovf.i4 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ldc.i4 0x57751795 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ceq brtrue pass1 br throw0 cont1: ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 br go1 cont2: br cont3 go1: call instance float32 float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Get( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) conv.ovf.i4 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ldc.i4 0x57751795 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ceq brtrue pass1_5 throw0: newobj instance void [mscorlib]System.Exception::.ctor() throw1: throw pass1: br cont0 pass2: ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 ldc.i4 0x57769795 conv.r4 callvirt instance void float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Set( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, float32) ldnull stloc matrix call void [mscorlib]System.GC::Collect() ldc.i4 100 ldstr "TEST PASSED" call void [System.Console]System.Console::Write(string) ret cont0: br cont2 cont3: br cont1 pass1_5: ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 callvirt instance float32& float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Address( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) ldind.r4 conv.ovf.i4 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ldc.i4 0x57751795 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ceq call void [mscorlib]System.GC::Collect() brtrue pass2 newobj instance void [mscorlib]System.Exception::.ctor() br throw1 } // end of method 'Test::Main' .method public hidebysig specialname rtspecialname instance void .ctor() il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method 'Test::.ctor' } // end of class 'Test' } // end of namespace 'JitTest'
// 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 { } .assembly 'huge_r4' { } .assembly extern xunit.core {} .namespace JitTest { .class private auto ansi Test extends [mscorlib]System.Object { .method private hidebysig static int32 Main() il managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 70 .locals (float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix, int32 count, int32[] dim) ldstr "Creating 32-dimension array" call void [System.Console]System.Console::WriteLine(string) ldc.i4 32 dup stloc count dup add newarr int32 again: dup dup ldloc count ldc.i4.1 sub dup stloc count dup add dup ldc.i4 20 mul stelem.i4 ldloc count dup add ldc.i4.1 add ldloc count ldc.i4.3 rem dup brtrue cool pop ldc.i4.1 cool: stelem.i4 ldloc count brtrue again ldc.i4.0 stloc count again2: dup ldloc count ldelem.i4 call void [System.Console]System.Console::Write(int32) ldstr " " call void [System.Console]System.Console::Write(string) ldloc count ldc.i4.1 add dup stloc count ldc.i4 64 ceq brfalse again2 stloc dim ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.1 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.3 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.5 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.7 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 9 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 11 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 13 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 15 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 17 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 19 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 21 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 23 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 25 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 27 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 29 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 31 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 33 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 35 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 37 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 39 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 41 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 43 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 45 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 47 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 49 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 51 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 53 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 55 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 57 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 59 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 61 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 ldloc dim ldc.i4 63 ldelem.i4 newobj instance void float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::.ctor( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) stloc matrix ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 ldc.i4 0x57751795 conv.r4 callvirt instance void float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Set( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, float32) ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 callvirt instance float32 float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Get( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) conv.ovf.i4 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ldc.i4 0x57751795 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ceq brtrue pass1 br throw0 cont1: ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 br go1 cont2: br cont3 go1: call instance float32 float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Get( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) conv.ovf.i4 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ldc.i4 0x57751795 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ceq brtrue pass1_5 throw0: newobj instance void [mscorlib]System.Exception::.ctor() throw1: throw pass1: br cont0 pass2: ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 ldc.i4 0x57769795 conv.r4 callvirt instance void float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Set( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, float32) ldnull stloc matrix call void [mscorlib]System.GC::Collect() ldc.i4 100 ldstr "TEST PASSED" call void [System.Console]System.Console::Write(string) ret cont0: br cont2 cont3: br cont1 pass1_5: ldloc matrix ldloc dim ldc.i4.0 ldelem.i4 ldloc dim ldc.i4.2 ldelem.i4 ldloc dim ldc.i4.4 ldelem.i4 ldloc dim ldc.i4.6 ldelem.i4 ldloc dim ldc.i4.8 ldelem.i4 ldloc dim ldc.i4 10 ldelem.i4 ldloc dim ldc.i4 12 ldelem.i4 ldloc dim ldc.i4 14 ldelem.i4 ldloc dim ldc.i4 16 ldelem.i4 ldloc dim ldc.i4 18 ldelem.i4 ldloc dim ldc.i4 20 ldelem.i4 ldloc dim ldc.i4 22 ldelem.i4 ldloc dim ldc.i4 24 ldelem.i4 ldloc dim ldc.i4 26 ldelem.i4 ldloc dim ldc.i4 28 ldelem.i4 ldloc dim ldc.i4 30 ldelem.i4 ldloc dim ldc.i4 32 ldelem.i4 ldloc dim ldc.i4 34 ldelem.i4 ldloc dim ldc.i4 36 ldelem.i4 ldloc dim ldc.i4 38 ldelem.i4 ldloc dim ldc.i4 40 ldelem.i4 ldloc dim ldc.i4 42 ldelem.i4 ldloc dim ldc.i4 44 ldelem.i4 ldloc dim ldc.i4 46 ldelem.i4 ldloc dim ldc.i4 48 ldelem.i4 ldloc dim ldc.i4 50 ldelem.i4 ldloc dim ldc.i4 52 ldelem.i4 ldloc dim ldc.i4 54 ldelem.i4 ldloc dim ldc.i4 56 ldelem.i4 ldloc dim ldc.i4 58 ldelem.i4 ldloc dim ldc.i4 60 ldelem.i4 ldloc dim ldc.i4 62 ldelem.i4 callvirt instance float32& float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]::Address( int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32, int32) ldind.r4 conv.ovf.i4 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ldc.i4 0x57751795 ldc.i4 100 div dup call void [System.Console]System.Console::WriteLine(int32) ceq call void [mscorlib]System.GC::Collect() brtrue pass2 newobj instance void [mscorlib]System.Exception::.ctor() br throw1 } // end of method 'Test::Main' .method public hidebysig specialname rtspecialname instance void .ctor() il managed { .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method 'Test::.ctor' } // end of class 'Test' } // end of namespace 'JitTest'
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/dft2.txt
<?xml version="1.0" encoding="utf-8"?>Hello, world!
<?xml version="1.0" encoding="utf-8"?>Hello, world!
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Private.CoreLib/src/System/IO/DisableMediaInsertionPrompt.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.IO { /// <summary> /// Simple wrapper to safely disable the normal media insertion prompt for /// removable media (floppies, cds, memory cards, etc.) /// </summary> /// <remarks> /// Note that removable media file systems lazily load. After starting the OS /// they won't be loaded until you have media in the drive- and as such the /// prompt won't happen. You have to have had media in at least once to get /// the file system to load and then have removed it. /// </remarks> internal struct DisableMediaInsertionPrompt : IDisposable { private bool _disableSuccess; private uint _oldMode; public static DisableMediaInsertionPrompt Create() { DisableMediaInsertionPrompt prompt = default; prompt._disableSuccess = Interop.Kernel32.SetThreadErrorMode(Interop.Kernel32.SEM_FAILCRITICALERRORS, out prompt._oldMode); return prompt; } public void Dispose() { if (_disableSuccess) Interop.Kernel32.SetThreadErrorMode(_oldMode, out _); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.IO { /// <summary> /// Simple wrapper to safely disable the normal media insertion prompt for /// removable media (floppies, cds, memory cards, etc.) /// </summary> /// <remarks> /// Note that removable media file systems lazily load. After starting the OS /// they won't be loaded until you have media in the drive- and as such the /// prompt won't happen. You have to have had media in at least once to get /// the file system to load and then have removed it. /// </remarks> internal struct DisableMediaInsertionPrompt : IDisposable { private bool _disableSuccess; private uint _oldMode; public static DisableMediaInsertionPrompt Create() { DisableMediaInsertionPrompt prompt = default; prompt._disableSuccess = Interop.Kernel32.SetThreadErrorMode(Interop.Kernel32.SEM_FAILCRITICALERRORS, out prompt._oldMode); return prompt; } public void Dispose() { if (_disableSuccess) Interop.Kernel32.SetThreadErrorMode(_oldMode, out _); } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/jit64/valuetypes/nullable/castclass/castclass/castclass039.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="castclass039.cs" /> <Compile Include="..\structdef.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="castclass039.cs" /> <Compile Include="..\structdef.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExThreadTest/WFSOExThreadTest.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: WFSOExThreadTest.c ** ** Purpose: Tests a child thread in the middle of a ** WaitForSingleObjectEx call will be interrupted by QueueUserAPC ** if the alert flag was set. ** ** **===================================================================*/ #include <palsuite.h> /*Based on SleepEx/test2 */ const int ChildThreadWaitTime = 4000; const int InterruptTime = 2000; const DWORD AcceptableDelta = 300; void RunTest_WFSOExThreadTest(BOOL AlertThread); VOID PALAPI APCFunc_WFSOExThreadTest(ULONG_PTR dwParam); DWORD PALAPI WaiterProc_WFSOExThreadTest(LPVOID lpParameter); void WorkerThread_WFSOExThreadTest(void); int ThreadWaitDelta_WFSOExThreadTest; static volatile bool s_preWaitTimestampRecorded = false; PALTEST(threading_WaitForSingleObject_WFSOExThreadTest_paltest_waitforsingleobject_wfsoexthreadtest, "threading/WaitForSingleObject/WFSOExThreadTest/paltest_waitforsingleobject_wfsoexthreadtest") { if (0 != (PAL_Initialize(argc, argv))) { return FAIL; } /* On some platforms (e.g. FreeBSD 4.9) the first call to some synch objects (such as conditions) involves some pthread internal initialization that can make the first wait slighty longer, potentially going above the acceptable delta for this test. Let's add a dummy wait to preinitialize internal structures */ Sleep(100); /* * Check that Queueing an APC in the middle of a wait does interrupt * it, if it's in an alertable state. */ RunTest_WFSOExThreadTest(TRUE); if (abs(ThreadWaitDelta_WFSOExThreadTest - InterruptTime) > AcceptableDelta) { Fail("Expected thread to wait for %d ms (and get interrupted).\n" "Thread waited for %d ms! (Acceptable delta: %d)\n", InterruptTime, ThreadWaitDelta_WFSOExThreadTest, AcceptableDelta); } /* * Check that Queueing an APC in the middle of a wait does NOT interrupt * it, if it is not in an alertable state. */ RunTest_WFSOExThreadTest(FALSE); if (abs(ThreadWaitDelta_WFSOExThreadTest - ChildThreadWaitTime) > AcceptableDelta) { Fail("Expected thread to wait for %d ms (and not be interrupted).\n" "Thread waited for %d ms! (Acceptable delta: %d)\n", ChildThreadWaitTime, ThreadWaitDelta_WFSOExThreadTest, AcceptableDelta); } PAL_Terminate(); return PASS; } void RunTest_WFSOExThreadTest(BOOL AlertThread) { HANDLE hThread = 0; DWORD dwThreadId = 0; int ret; //Create thread s_preWaitTimestampRecorded = false; hThread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)WaiterProc_WFSOExThreadTest, (LPVOID) AlertThread, 0, &dwThreadId); if (hThread == NULL) { Fail("ERROR: Was not able to create the thread to test!\n" "GetLastError returned %d\n", GetLastError()); } // Wait for the pre-wait timestamp to be recorded on the other thread before sleeping, since the sleep duration here will be // compared against the sleep/wait duration on the other thread while (!s_preWaitTimestampRecorded) { Sleep(0); } Sleep(InterruptTime); ret = QueueUserAPC(APCFunc_WFSOExThreadTest, hThread, 0); if (ret == 0) { Fail("QueueUserAPC failed! GetLastError returned %d\n", GetLastError()); } ret = WaitForSingleObject(hThread, INFINITE); if (ret == WAIT_FAILED) { Fail("Unable to wait on child thread!\nGetLastError returned %d.\n", GetLastError()); } if (0==CloseHandle(hThread)) { Trace("Could not close Thread handle\n"); Fail ( "GetLastError returned %d\n", GetLastError()); } } /* Function doesn't do anything, just needed to interrupt the wait*/ VOID PALAPI APCFunc_WFSOExThreadTest(ULONG_PTR dwParam) { } /* Entry Point for child thread. */ DWORD PALAPI WaiterProc_WFSOExThreadTest(LPVOID lpParameter) { HANDLE hWaitThread; UINT64 OldTimeStamp; UINT64 NewTimeStamp; BOOL Alertable; DWORD ret; DWORD dwThreadId = 0; /* When a thread terminates, the thread object attains a signaled state, satisfying any threads that were waiting on the object. */ /* Create a thread that does not return immediately to maintain a non signaled test*/ hWaitThread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)WorkerThread_WFSOExThreadTest, NULL, 0, &dwThreadId); if (hWaitThread == NULL) { Fail("ERROR: Was not able to create worker thread to wait on!\n" "GetLastError returned %d\n", GetLastError()); } Alertable = (BOOL)(SIZE_T) lpParameter; LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) { Fail("Failed to query performance frequency!"); } OldTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); s_preWaitTimestampRecorded = true; ret = WaitForSingleObjectEx( hWaitThread, ChildThreadWaitTime, Alertable); NewTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); if (Alertable && ret != WAIT_IO_COMPLETION) { Fail("Expected the interrupted wait to return WAIT_IO_COMPLETION.\n" "Got %d\n", ret); } else if (!Alertable && ret != WAIT_TIMEOUT) { Fail("WaitForSingleObjectEx did not timeout.\n" "Expected return of WAIT_TIMEOUT, got %d.\n", ret); } ThreadWaitDelta_WFSOExThreadTest = NewTimeStamp - OldTimeStamp; ret = CloseHandle(hWaitThread); if (!ret) { Fail("Unable to close handle to Thread!\n" "GetLastError returned %d\n", GetLastError()); } return 0; } void WorkerThread_WFSOExThreadTest(void) { //Make the worker thread sleep to test WFSOEx Functionality Sleep(2*ChildThreadWaitTime); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: WFSOExThreadTest.c ** ** Purpose: Tests a child thread in the middle of a ** WaitForSingleObjectEx call will be interrupted by QueueUserAPC ** if the alert flag was set. ** ** **===================================================================*/ #include <palsuite.h> /*Based on SleepEx/test2 */ const int ChildThreadWaitTime = 4000; const int InterruptTime = 2000; const DWORD AcceptableDelta = 300; void RunTest_WFSOExThreadTest(BOOL AlertThread); VOID PALAPI APCFunc_WFSOExThreadTest(ULONG_PTR dwParam); DWORD PALAPI WaiterProc_WFSOExThreadTest(LPVOID lpParameter); void WorkerThread_WFSOExThreadTest(void); int ThreadWaitDelta_WFSOExThreadTest; static volatile bool s_preWaitTimestampRecorded = false; PALTEST(threading_WaitForSingleObject_WFSOExThreadTest_paltest_waitforsingleobject_wfsoexthreadtest, "threading/WaitForSingleObject/WFSOExThreadTest/paltest_waitforsingleobject_wfsoexthreadtest") { if (0 != (PAL_Initialize(argc, argv))) { return FAIL; } /* On some platforms (e.g. FreeBSD 4.9) the first call to some synch objects (such as conditions) involves some pthread internal initialization that can make the first wait slighty longer, potentially going above the acceptable delta for this test. Let's add a dummy wait to preinitialize internal structures */ Sleep(100); /* * Check that Queueing an APC in the middle of a wait does interrupt * it, if it's in an alertable state. */ RunTest_WFSOExThreadTest(TRUE); if (abs(ThreadWaitDelta_WFSOExThreadTest - InterruptTime) > AcceptableDelta) { Fail("Expected thread to wait for %d ms (and get interrupted).\n" "Thread waited for %d ms! (Acceptable delta: %d)\n", InterruptTime, ThreadWaitDelta_WFSOExThreadTest, AcceptableDelta); } /* * Check that Queueing an APC in the middle of a wait does NOT interrupt * it, if it is not in an alertable state. */ RunTest_WFSOExThreadTest(FALSE); if (abs(ThreadWaitDelta_WFSOExThreadTest - ChildThreadWaitTime) > AcceptableDelta) { Fail("Expected thread to wait for %d ms (and not be interrupted).\n" "Thread waited for %d ms! (Acceptable delta: %d)\n", ChildThreadWaitTime, ThreadWaitDelta_WFSOExThreadTest, AcceptableDelta); } PAL_Terminate(); return PASS; } void RunTest_WFSOExThreadTest(BOOL AlertThread) { HANDLE hThread = 0; DWORD dwThreadId = 0; int ret; //Create thread s_preWaitTimestampRecorded = false; hThread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)WaiterProc_WFSOExThreadTest, (LPVOID) AlertThread, 0, &dwThreadId); if (hThread == NULL) { Fail("ERROR: Was not able to create the thread to test!\n" "GetLastError returned %d\n", GetLastError()); } // Wait for the pre-wait timestamp to be recorded on the other thread before sleeping, since the sleep duration here will be // compared against the sleep/wait duration on the other thread while (!s_preWaitTimestampRecorded) { Sleep(0); } Sleep(InterruptTime); ret = QueueUserAPC(APCFunc_WFSOExThreadTest, hThread, 0); if (ret == 0) { Fail("QueueUserAPC failed! GetLastError returned %d\n", GetLastError()); } ret = WaitForSingleObject(hThread, INFINITE); if (ret == WAIT_FAILED) { Fail("Unable to wait on child thread!\nGetLastError returned %d.\n", GetLastError()); } if (0==CloseHandle(hThread)) { Trace("Could not close Thread handle\n"); Fail ( "GetLastError returned %d\n", GetLastError()); } } /* Function doesn't do anything, just needed to interrupt the wait*/ VOID PALAPI APCFunc_WFSOExThreadTest(ULONG_PTR dwParam) { } /* Entry Point for child thread. */ DWORD PALAPI WaiterProc_WFSOExThreadTest(LPVOID lpParameter) { HANDLE hWaitThread; UINT64 OldTimeStamp; UINT64 NewTimeStamp; BOOL Alertable; DWORD ret; DWORD dwThreadId = 0; /* When a thread terminates, the thread object attains a signaled state, satisfying any threads that were waiting on the object. */ /* Create a thread that does not return immediately to maintain a non signaled test*/ hWaitThread = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)WorkerThread_WFSOExThreadTest, NULL, 0, &dwThreadId); if (hWaitThread == NULL) { Fail("ERROR: Was not able to create worker thread to wait on!\n" "GetLastError returned %d\n", GetLastError()); } Alertable = (BOOL)(SIZE_T) lpParameter; LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) { Fail("Failed to query performance frequency!"); } OldTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); s_preWaitTimestampRecorded = true; ret = WaitForSingleObjectEx( hWaitThread, ChildThreadWaitTime, Alertable); NewTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); if (Alertable && ret != WAIT_IO_COMPLETION) { Fail("Expected the interrupted wait to return WAIT_IO_COMPLETION.\n" "Got %d\n", ret); } else if (!Alertable && ret != WAIT_TIMEOUT) { Fail("WaitForSingleObjectEx did not timeout.\n" "Expected return of WAIT_TIMEOUT, got %d.\n", ret); } ThreadWaitDelta_WFSOExThreadTest = NewTimeStamp - OldTimeStamp; ret = CloseHandle(hWaitThread); if (!ret) { Fail("Unable to close handle to Thread!\n" "GetLastError returned %d\n", GetLastError()); } return 0; } void WorkerThread_WFSOExThreadTest(void) { //Make the worker thread sleep to test WFSOEx Functionality Sleep(2*ChildThreadWaitTime); }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tasks/Common/LogAsErrorException.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. public class LogAsErrorException : System.Exception { public LogAsErrorException(string message) : base(message) { } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. public class LogAsErrorException : System.Exception { public LogAsErrorException(string message) : base(message) { } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/HardwareIntrinsics/General/Vector64_1/Zero.Int16.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\General\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 ZeroInt16() { var test = new VectorZero__ZeroInt16(); // Validates basic functionality works test.RunBasicScenario(); // Validates calling via reflection works test.RunReflectionScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorZero__ZeroInt16 { private static readonly int LargestVectorSize = 8; private static readonly int ElementCount = Unsafe.SizeOf<Vector64<Int16>>() / sizeof(Int16); public bool Succeeded { get; set; } = true; public void RunBasicScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario)); Vector64<Int16> result = Vector64<Int16>.Zero; ValidateResult(result); } public void RunReflectionScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario)); object result = typeof(Vector64<Int16>) .GetProperty(nameof(Vector64<Int16>.Zero), new Type[] { }) .GetGetMethod() .Invoke(null, new object[] { }); ValidateResult((Vector64<Int16>)(result)); } private void ValidateResult(Vector64<Int16> result, [CallerMemberName] string method = "") { Int16[] resultElements = new Int16[ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref resultElements[0]), result); ValidateResult(resultElements, method); } private void ValidateResult(Int16[] resultElements, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < ElementCount; i++) { if (resultElements[i] != 0) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"Vector64.Zero(Int16): {method} failed:"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", resultElements)})"); 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\General\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 ZeroInt16() { var test = new VectorZero__ZeroInt16(); // Validates basic functionality works test.RunBasicScenario(); // Validates calling via reflection works test.RunReflectionScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorZero__ZeroInt16 { private static readonly int LargestVectorSize = 8; private static readonly int ElementCount = Unsafe.SizeOf<Vector64<Int16>>() / sizeof(Int16); public bool Succeeded { get; set; } = true; public void RunBasicScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario)); Vector64<Int16> result = Vector64<Int16>.Zero; ValidateResult(result); } public void RunReflectionScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario)); object result = typeof(Vector64<Int16>) .GetProperty(nameof(Vector64<Int16>.Zero), new Type[] { }) .GetGetMethod() .Invoke(null, new object[] { }); ValidateResult((Vector64<Int16>)(result)); } private void ValidateResult(Vector64<Int16> result, [CallerMemberName] string method = "") { Int16[] resultElements = new Int16[ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref resultElements[0]), result); ValidateResult(resultElements, method); } private void ValidateResult(Int16[] resultElements, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < ElementCount; i++) { if (resultElements[i] != 0) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"Vector64.Zero(Int16): {method} failed:"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", resultElements)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/nativeaot/System.Private.CoreLib/src/System/Reflection/Emit/GenericTypeParameterBuilder.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.Reflection.Emit { public sealed partial class GenericTypeParameterBuilder : TypeInfo { internal GenericTypeParameterBuilder() { // Prevent generating a default constructor } public override Assembly Assembly { get { return default; } } public override string AssemblyQualifiedName { get { return default; } } public override Type BaseType { get { return default; } } public override bool ContainsGenericParameters { get { return default; } } public override MethodBase DeclaringMethod { get { return default; } } public override Type DeclaringType { get { return default; } } public override string FullName { get { return default; } } public override GenericParameterAttributes GenericParameterAttributes { get { return default; } } public override int GenericParameterPosition { get { return default; } } public override Guid GUID { get { return default; } } public override bool IsConstructedGenericType { get { return default; } } public override bool IsGenericParameter { get { return default; } } public override bool IsGenericType { get { return default; } } public override bool IsGenericTypeDefinition { get { return default; } } public override Module Module { get { return default; } } public override string Name { get { return default; } } public override string Namespace { get { return default; } } public override Type ReflectedType { get { return default; } } public override RuntimeTypeHandle TypeHandle { get { return default; } } public override Type UnderlyingSystemType { get { return default; } } public override bool Equals(object? o) { return default; } protected override TypeAttributes GetAttributeFlagsImpl() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { return default; } public override object[] GetCustomAttributes(bool inherit) { return default; } public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return default; } public override Type GetElementType() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.NonPublicEvents)] public override EventInfo GetEvent(string name, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents)] public override EventInfo[] GetEvents() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.NonPublicEvents)] public override EventInfo[] GetEvents(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)] public override FieldInfo GetField(string name, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)] public override FieldInfo[] GetFields(BindingFlags bindingAttr) { return default; } public override Type[] GetGenericArguments() { return default; } public override Type GetGenericTypeDefinition() { return default; } public override int GetHashCode() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] public override Type GetInterface(string name, bool ignoreCase) { return default; } public override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] public override Type[] GetInterfaces() { return default; } [DynamicallyAccessedMembers(GetAllMembers)] public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(GetAllMembers)] public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicNestedTypes | DynamicallyAccessedMemberTypes.NonPublicNestedTypes)] public override Type GetNestedType(string name, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicNestedTypes | DynamicallyAccessedMemberTypes.NonPublicNestedTypes)] public override Type[] GetNestedTypes(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { return default; } protected override bool HasElementTypeImpl() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] public override object? InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, Globalization.CultureInfo? culture, string[]? namedParameters) { return default; } protected override bool IsArrayImpl() { return default; } public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo) { return default; } public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) { return default; } protected override bool IsByRefImpl() { return default; } public override bool IsByRefLike { get { return default; } } protected override bool IsCOMObjectImpl() { return default; } public override bool IsDefined(Type attributeType, bool inherit) { return default; } protected override bool IsPointerImpl() { return default; } protected override bool IsPrimitiveImpl() { return default; } public override bool IsSubclassOf(Type c) { return default; } public override bool IsTypeDefinition { get { return default; } } public override bool IsSZArray { get { return default; } } public override bool IsVariableBoundArray { get { return default; } } protected override bool IsValueTypeImpl() { return default; } [RequiresDynamicCode("The code for an array of the specified type might not be available.")] public override Type MakeArrayType() { return default; } [RequiresDynamicCode("The code for an array of the specified type might not be available.")] public override Type MakeArrayType(int rank) { return default; } public override Type MakeByRefType() { return default; } [RequiresDynamicCode("The native code for this instantiation might not be available at runtime.")] [RequiresUnreferencedCode("If some of the generic arguments are annotated (either with DynamicallyAccessedMembersAttribute, or generic constraints), trimming can't validate that the requirements of those annotations are met.")] public override Type MakeGenericType(params Type[] typeArguments) { return default; } public override Type MakePointerType() { return default; } public void SetBaseTypeConstraint([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type baseTypeConstraint) { } public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) { } public void SetCustomAttribute(CustomAttributeBuilder customBuilder) { } public void SetGenericParameterAttributes(GenericParameterAttributes genericParameterAttributes) { } public void SetInterfaceConstraints(params Type[] interfaceConstraints) { } public override string ToString() { return default; } } }
// 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.Reflection.Emit { public sealed partial class GenericTypeParameterBuilder : TypeInfo { internal GenericTypeParameterBuilder() { // Prevent generating a default constructor } public override Assembly Assembly { get { return default; } } public override string AssemblyQualifiedName { get { return default; } } public override Type BaseType { get { return default; } } public override bool ContainsGenericParameters { get { return default; } } public override MethodBase DeclaringMethod { get { return default; } } public override Type DeclaringType { get { return default; } } public override string FullName { get { return default; } } public override GenericParameterAttributes GenericParameterAttributes { get { return default; } } public override int GenericParameterPosition { get { return default; } } public override Guid GUID { get { return default; } } public override bool IsConstructedGenericType { get { return default; } } public override bool IsGenericParameter { get { return default; } } public override bool IsGenericType { get { return default; } } public override bool IsGenericTypeDefinition { get { return default; } } public override Module Module { get { return default; } } public override string Name { get { return default; } } public override string Namespace { get { return default; } } public override Type ReflectedType { get { return default; } } public override RuntimeTypeHandle TypeHandle { get { return default; } } public override Type UnderlyingSystemType { get { return default; } } public override bool Equals(object? o) { return default; } protected override TypeAttributes GetAttributeFlagsImpl() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { return default; } public override object[] GetCustomAttributes(bool inherit) { return default; } public override object[] GetCustomAttributes(Type attributeType, bool inherit) { return default; } public override Type GetElementType() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.NonPublicEvents)] public override EventInfo GetEvent(string name, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents)] public override EventInfo[] GetEvents() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicEvents | DynamicallyAccessedMemberTypes.NonPublicEvents)] public override EventInfo[] GetEvents(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)] public override FieldInfo GetField(string name, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.NonPublicFields)] public override FieldInfo[] GetFields(BindingFlags bindingAttr) { return default; } public override Type[] GetGenericArguments() { return default; } public override Type GetGenericTypeDefinition() { return default; } public override int GetHashCode() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] public override Type GetInterface(string name, bool ignoreCase) { return default; } public override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] public override Type[] GetInterfaces() { return default; } [DynamicallyAccessedMembers(GetAllMembers)] public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(GetAllMembers)] public override MemberInfo[] GetMembers(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicNestedTypes | DynamicallyAccessedMemberTypes.NonPublicNestedTypes)] public override Type GetNestedType(string name, BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicNestedTypes | DynamicallyAccessedMemberTypes.NonPublicNestedTypes)] public override Type[] GetNestedTypes(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { return default; } protected override bool HasElementTypeImpl() { return default; } [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] public override object? InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, Globalization.CultureInfo? culture, string[]? namedParameters) { return default; } protected override bool IsArrayImpl() { return default; } public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo) { return default; } public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) { return default; } protected override bool IsByRefImpl() { return default; } public override bool IsByRefLike { get { return default; } } protected override bool IsCOMObjectImpl() { return default; } public override bool IsDefined(Type attributeType, bool inherit) { return default; } protected override bool IsPointerImpl() { return default; } protected override bool IsPrimitiveImpl() { return default; } public override bool IsSubclassOf(Type c) { return default; } public override bool IsTypeDefinition { get { return default; } } public override bool IsSZArray { get { return default; } } public override bool IsVariableBoundArray { get { return default; } } protected override bool IsValueTypeImpl() { return default; } [RequiresDynamicCode("The code for an array of the specified type might not be available.")] public override Type MakeArrayType() { return default; } [RequiresDynamicCode("The code for an array of the specified type might not be available.")] public override Type MakeArrayType(int rank) { return default; } public override Type MakeByRefType() { return default; } [RequiresDynamicCode("The native code for this instantiation might not be available at runtime.")] [RequiresUnreferencedCode("If some of the generic arguments are annotated (either with DynamicallyAccessedMembersAttribute, or generic constraints), trimming can't validate that the requirements of those annotations are met.")] public override Type MakeGenericType(params Type[] typeArguments) { return default; } public override Type MakePointerType() { return default; } public void SetBaseTypeConstraint([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type baseTypeConstraint) { } public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute) { } public void SetCustomAttribute(CustomAttributeBuilder customBuilder) { } public void SetGenericParameterAttributes(GenericParameterAttributes genericParameterAttributes) { } public void SetInterfaceConstraints(params Type[] interfaceConstraints) { } public override string ToString() { return default; } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Diagnostics.Tracing/tests/CustomEventSources/InvalidEventSources.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; #if USE_MDT_EVENTSOURCE using Microsoft.Diagnostics.Tracing; #else using System.Diagnostics.Tracing; #endif // We wish to test both Microsoft.Diagnostics.Tracing (Nuget) // and System.Diagnostics.Tracing (Framework), we use this Ifdef make each kind namespace SdtEventSources { public class UnsealedEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } } public sealed class EventWithReturnEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public int WriteInteger(int n) { WriteEvent(1, n); return n; } } public sealed class NegativeEventIdEventSource : EventSource { [Event(-10, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(-10, n); } } // this behaves differently in 4.5 vs. 4.5.1 so just skip it for those scenarios public sealed class OutOfRangeKwdEventSource : EventSource { [Event(1, Keywords = Keywords.Kwd1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels public static class Keywords { public const EventKeywords Kwd1 = (EventKeywords)0x0000100000000000UL; } #endregion } public sealed class ReservedOpcodeEventSource : EventSource { [Event(1, Opcode = Opcodes.Op1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels public static class Opcodes { public const EventOpcode Op1 = (EventOpcode)3; // values <= 10 are reserved } #endregion } public sealed class EnumKindMismatchEventSource : EventSource { [Event(1, Keywords = Opcodes.Op1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels public static class Opcodes { public const EventKeywords Op1 = (EventKeywords)0x1; } #endregion } public sealed class MismatchIdEventSource : EventSource { [Event(10, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } } public sealed class EventIdReusedEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public void WriteInteger1(int n) { WriteEvent(1, n); } [Event(1, Level = EventLevel.Informational)] public void WriteInteger2(int n) { WriteEvent(1, n); } } public sealed class EventNameReusedEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } [Event(2, Level = EventLevel.Informational)] public void WriteInteger(uint n) { WriteEvent(2, n); } } public sealed class TaskOpcodePairReusedEventSource : EventSource { [Event(1, Task = Tasks.MyTask, Opcode = Opcodes.Op1)] public void WriteInteger1(int n) { WriteEvent(1, n); } [Event(2, Task = Tasks.MyTask, Opcode = Opcodes.Op1)] public void WriteInteger2(int n) { WriteEvent(2, n); } #region Keywords / Tasks /Opcodes / Channels public static class Tasks { public const EventTask MyTask = (EventTask)1; } public static class Opcodes { public const EventOpcode Op1 = (EventOpcode)15; } #endregion } public sealed class EventWithOpcodeNoTaskEventSource : EventSource { [Event(1, Opcode = EventOpcode.Send)] public void WriteInteger(int n) { WriteEvent(1, n); } } public sealed class EventWithInvalidMessageEventSource : EventSource { [Event(1, Message = "Message = {0,12:G}")] public void WriteString(string msg) { WriteEvent(1, msg); } } #if FEATURE_ADVANCED_MANAGED_ETW_CHANNELS public sealed class TooManyChannelsEventSource : EventSource { [Event(1, Channel = Channels.Analytic, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels /// <summary> /// The Channels definition for the ETW manifest /// </summary> public static class Channels { [Channel(Enabled = true, ChannelType = ChannelType.Admin)] public const EventChannel Admin = (EventChannel)16; [Channel(Enabled = true, ChannelType = ChannelType.Operational)] public const EventChannel Operational = (EventChannel)17; [Channel(Enabled = false, ChannelType = ChannelType.Analytic)] public const EventChannel Analytic = (EventChannel)18; [Channel(Enabled = false, ChannelType = ChannelType.Debug)] public const EventChannel Debug = (EventChannel)19; [Channel(Enabled = true, ChannelType = ChannelType.Admin)] public const EventChannel Admin2 = (EventChannel)20; [Channel(Enabled = true, ChannelType = ChannelType.Operational)] public const EventChannel Operational2 = (EventChannel)21; [Channel(Enabled = false, ChannelType = ChannelType.Analytic)] public const EventChannel Analytic2 = (EventChannel)22; [Channel(Enabled = false, ChannelType = ChannelType.Debug)] public const EventChannel Debug2 = (EventChannel)23; [Channel(Enabled = false, ChannelType = ChannelType.Debug)] public const EventChannel BrokeCamelsBack = (EventChannel)24; } #endregion } #endif public sealed class EventWithAdminChannelNoMessageEventSource : EventSource { [Event(1, Channel = EventChannel.Admin, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels #if FEATURE_ADVANCED_MANAGED_ETW_CHANNELS /// <summary> /// The Channels definition for the ETW manifest /// </summary> public static class Channels { [Channel(Enabled = true, ChannelType = ChannelType.Admin)] public const EventChannel Admin = (EventChannel)16; } #endif #endregion } public abstract class AbstractWithKwdTaskOpcodeEventSource : EventSource { #region Keywords / Tasks /Opcodes / Channels public static class Keywords { public const EventKeywords Kwd1 = (EventKeywords)1; } public static class Tasks { public const EventTask Task1 = (EventTask)1; } public static class Opcodes { public const EventOpcode Op1 = (EventOpcode)15; } #endregion } public abstract class AbstractWithEventsEventSource : EventSource { [Event(1)] public void WriteInteger(int n) { WriteEvent(1, n); } } public interface ILogging { void Error(int errorCode, string msg); } public sealed class ImplementsInterfaceEventSource : EventSource, ILogging { public static MyLoggingEventSource Log = new MyLoggingEventSource(); [Event(1)] void ILogging.Error(int errorCode, string msg) { WriteEvent(1, errorCode, msg); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; #if USE_MDT_EVENTSOURCE using Microsoft.Diagnostics.Tracing; #else using System.Diagnostics.Tracing; #endif // We wish to test both Microsoft.Diagnostics.Tracing (Nuget) // and System.Diagnostics.Tracing (Framework), we use this Ifdef make each kind namespace SdtEventSources { public class UnsealedEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } } public sealed class EventWithReturnEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public int WriteInteger(int n) { WriteEvent(1, n); return n; } } public sealed class NegativeEventIdEventSource : EventSource { [Event(-10, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(-10, n); } } // this behaves differently in 4.5 vs. 4.5.1 so just skip it for those scenarios public sealed class OutOfRangeKwdEventSource : EventSource { [Event(1, Keywords = Keywords.Kwd1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels public static class Keywords { public const EventKeywords Kwd1 = (EventKeywords)0x0000100000000000UL; } #endregion } public sealed class ReservedOpcodeEventSource : EventSource { [Event(1, Opcode = Opcodes.Op1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels public static class Opcodes { public const EventOpcode Op1 = (EventOpcode)3; // values <= 10 are reserved } #endregion } public sealed class EnumKindMismatchEventSource : EventSource { [Event(1, Keywords = Opcodes.Op1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels public static class Opcodes { public const EventKeywords Op1 = (EventKeywords)0x1; } #endregion } public sealed class MismatchIdEventSource : EventSource { [Event(10, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } } public sealed class EventIdReusedEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public void WriteInteger1(int n) { WriteEvent(1, n); } [Event(1, Level = EventLevel.Informational)] public void WriteInteger2(int n) { WriteEvent(1, n); } } public sealed class EventNameReusedEventSource : EventSource { [Event(1, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } [Event(2, Level = EventLevel.Informational)] public void WriteInteger(uint n) { WriteEvent(2, n); } } public sealed class TaskOpcodePairReusedEventSource : EventSource { [Event(1, Task = Tasks.MyTask, Opcode = Opcodes.Op1)] public void WriteInteger1(int n) { WriteEvent(1, n); } [Event(2, Task = Tasks.MyTask, Opcode = Opcodes.Op1)] public void WriteInteger2(int n) { WriteEvent(2, n); } #region Keywords / Tasks /Opcodes / Channels public static class Tasks { public const EventTask MyTask = (EventTask)1; } public static class Opcodes { public const EventOpcode Op1 = (EventOpcode)15; } #endregion } public sealed class EventWithOpcodeNoTaskEventSource : EventSource { [Event(1, Opcode = EventOpcode.Send)] public void WriteInteger(int n) { WriteEvent(1, n); } } public sealed class EventWithInvalidMessageEventSource : EventSource { [Event(1, Message = "Message = {0,12:G}")] public void WriteString(string msg) { WriteEvent(1, msg); } } #if FEATURE_ADVANCED_MANAGED_ETW_CHANNELS public sealed class TooManyChannelsEventSource : EventSource { [Event(1, Channel = Channels.Analytic, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels /// <summary> /// The Channels definition for the ETW manifest /// </summary> public static class Channels { [Channel(Enabled = true, ChannelType = ChannelType.Admin)] public const EventChannel Admin = (EventChannel)16; [Channel(Enabled = true, ChannelType = ChannelType.Operational)] public const EventChannel Operational = (EventChannel)17; [Channel(Enabled = false, ChannelType = ChannelType.Analytic)] public const EventChannel Analytic = (EventChannel)18; [Channel(Enabled = false, ChannelType = ChannelType.Debug)] public const EventChannel Debug = (EventChannel)19; [Channel(Enabled = true, ChannelType = ChannelType.Admin)] public const EventChannel Admin2 = (EventChannel)20; [Channel(Enabled = true, ChannelType = ChannelType.Operational)] public const EventChannel Operational2 = (EventChannel)21; [Channel(Enabled = false, ChannelType = ChannelType.Analytic)] public const EventChannel Analytic2 = (EventChannel)22; [Channel(Enabled = false, ChannelType = ChannelType.Debug)] public const EventChannel Debug2 = (EventChannel)23; [Channel(Enabled = false, ChannelType = ChannelType.Debug)] public const EventChannel BrokeCamelsBack = (EventChannel)24; } #endregion } #endif public sealed class EventWithAdminChannelNoMessageEventSource : EventSource { [Event(1, Channel = EventChannel.Admin, Level = EventLevel.Informational)] public void WriteInteger(int n) { WriteEvent(1, n); } #region Keywords / Tasks /Opcodes / Channels #if FEATURE_ADVANCED_MANAGED_ETW_CHANNELS /// <summary> /// The Channels definition for the ETW manifest /// </summary> public static class Channels { [Channel(Enabled = true, ChannelType = ChannelType.Admin)] public const EventChannel Admin = (EventChannel)16; } #endif #endregion } public abstract class AbstractWithKwdTaskOpcodeEventSource : EventSource { #region Keywords / Tasks /Opcodes / Channels public static class Keywords { public const EventKeywords Kwd1 = (EventKeywords)1; } public static class Tasks { public const EventTask Task1 = (EventTask)1; } public static class Opcodes { public const EventOpcode Op1 = (EventOpcode)15; } #endregion } public abstract class AbstractWithEventsEventSource : EventSource { [Event(1)] public void WriteInteger(int n) { WriteEvent(1, n); } } public interface ILogging { void Error(int errorCode, string msg); } public sealed class ImplementsInterfaceEventSource : EventSource, ILogging { public static MyLoggingEventSource Log = new MyLoggingEventSource(); [Event(1)] void ILogging.Error(int errorCode, string msg) { WriteEvent(1, errorCode, msg); } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/pal/src/safecrt/mbusafecrt_internal.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*** * mbusafecrt_internal.h - internal declarations for SafeCRT functions * * * Purpose: * This file contains the internal declarations SafeCRT * functions ported to MacOS. These are the safe versions of * functions standard functions banned by SWI ****/ /* shields! */ #ifndef MBUSAFECRT_INTERNAL_H #define MBUSAFECRT_INTERNAL_H #define PAL_IMPLEMENTATION #include "pal_mstypes.h" #ifndef DLLEXPORT #ifdef _MSC_VER #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT __attribute__ ((visibility ("default"))) #endif // _MSC_VER #endif // !DLLEXPORT typedef __builtin_va_list va_list; // The ifdef below are to accommodate Unix build // that complains about them being declared in stdarg.h already. #ifndef va_start #define va_start __builtin_va_start #endif #ifndef va_end #define va_end __builtin_va_end #endif #include "mbusafecrt.h" #ifdef EOF #undef EOF #endif #define EOF -1 #ifdef WEOF #undef WEOF #endif #define WEOF -1 #define CASSERT(p) extern int sanity_check_dummy[1+((!(p))*(-2))]; extern tSafeCRT_AssertFuncPtr sMBUSafeCRTAssertFunc; typedef struct miniFILE_struct { char* _ptr; int _cnt; char* _base; int _flag; } miniFILE; #undef _IOWRT #undef _IOREAD #undef _IOMYBUF #define _IOSTRG 1 #define _IOWRT 2 #define _IOREAD 4 #define _IOMYBUF 8 int _putc_nolock( char inChar, miniFILE* inStream ); int _putwc_nolock( char16_t inChar, miniFILE* inStream ); int _getc_nolock( miniFILE* inStream ); int _getwc_nolock( miniFILE* inStream ); int _ungetc_nolock( char inChar, miniFILE* inStream ); int _ungetwc_nolock( char16_t inChar, miniFILE* inStream ); errno_t _safecrt_cfltcvt(double *arg, char *buffer, size_t sizeInBytes, int type, int precision, int flags); void _safecrt_fassign(int flag, void* argument, char * number ); void _safecrt_wfassign(int flag, void* argument, char16_t * number ); int _minimal_chartowchar( char16_t* outWChar, const char* inChar ); int _output_s( miniFILE* outfile, const char* _Format, va_list _ArgList); int _woutput_s( miniFILE* outfile, const char16_t* _Format, va_list _ArgList); int _output( miniFILE *outfile, const char* _Format, va_list _ArgList); int __tinput_s( miniFILE* inFile, const unsigned char * inFormat, va_list inArgList ); int __twinput_s( miniFILE* inFile, const char16_t * inFormat, va_list inArgList ); #endif /* MBUSAFECRT_INTERNAL_H */
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*** * mbusafecrt_internal.h - internal declarations for SafeCRT functions * * * Purpose: * This file contains the internal declarations SafeCRT * functions ported to MacOS. These are the safe versions of * functions standard functions banned by SWI ****/ /* shields! */ #ifndef MBUSAFECRT_INTERNAL_H #define MBUSAFECRT_INTERNAL_H #define PAL_IMPLEMENTATION #include "pal_mstypes.h" #ifndef DLLEXPORT #ifdef _MSC_VER #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT __attribute__ ((visibility ("default"))) #endif // _MSC_VER #endif // !DLLEXPORT typedef __builtin_va_list va_list; // The ifdef below are to accommodate Unix build // that complains about them being declared in stdarg.h already. #ifndef va_start #define va_start __builtin_va_start #endif #ifndef va_end #define va_end __builtin_va_end #endif #include "mbusafecrt.h" #ifdef EOF #undef EOF #endif #define EOF -1 #ifdef WEOF #undef WEOF #endif #define WEOF -1 #define CASSERT(p) extern int sanity_check_dummy[1+((!(p))*(-2))]; extern tSafeCRT_AssertFuncPtr sMBUSafeCRTAssertFunc; typedef struct miniFILE_struct { char* _ptr; int _cnt; char* _base; int _flag; } miniFILE; #undef _IOWRT #undef _IOREAD #undef _IOMYBUF #define _IOSTRG 1 #define _IOWRT 2 #define _IOREAD 4 #define _IOMYBUF 8 int _putc_nolock( char inChar, miniFILE* inStream ); int _putwc_nolock( char16_t inChar, miniFILE* inStream ); int _getc_nolock( miniFILE* inStream ); int _getwc_nolock( miniFILE* inStream ); int _ungetc_nolock( char inChar, miniFILE* inStream ); int _ungetwc_nolock( char16_t inChar, miniFILE* inStream ); errno_t _safecrt_cfltcvt(double *arg, char *buffer, size_t sizeInBytes, int type, int precision, int flags); void _safecrt_fassign(int flag, void* argument, char * number ); void _safecrt_wfassign(int flag, void* argument, char16_t * number ); int _minimal_chartowchar( char16_t* outWChar, const char* inChar ); int _output_s( miniFILE* outfile, const char* _Format, va_list _ArgList); int _woutput_s( miniFILE* outfile, const char16_t* _Format, va_list _ArgList); int _output( miniFILE *outfile, const char* _Format, va_list _ArgList); int __tinput_s( miniFILE* inFile, const unsigned char * inFormat, va_list inArgList ); int __twinput_s( miniFILE* inFile, const char16_t * inFormat, va_list inArgList ); #endif /* MBUSAFECRT_INTERNAL_H */
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Threading.Overlapped/src/System.Threading.Overlapped.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <IsPartialFacadeAssembly>true</IsPartialFacadeAssembly> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <ProjectReference Include="$(CoreLibProject)" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <IsPartialFacadeAssembly>true</IsPartialFacadeAssembly> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <ProjectReference Include="$(CoreLibProject)" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Reflection.Emit/tests/ConstructorBuilder/ConstructorBuilderSetCustomAttribute.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.Linq; using Xunit; namespace System.Reflection.Emit.Tests { public class ConstructorBuilderSetCustomAttribute { [Fact] public void SetCustomAttribute_ConstructorBuilder_ByteArray() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[] { typeof(int) }); ConstructorInfo attributeConstructor = typeof(IntAllAttribute).GetConstructor(new Type[] { typeof(int) }); constructor.SetCustomAttribute(attributeConstructor, new byte[] { 1, 0, 5, 0, 0, 0 }); constructor.GetILGenerator().Emit(OpCodes.Ret); Type createdType = type.CreateTypeInfo().AsType(); ConstructorInfo createdConstructor = createdType.GetConstructor(new Type[] { typeof(int) }); Attribute[] attributes = createdConstructor.GetCustomAttributes().ToArray(); IntAllAttribute attribute = Assert.IsType<IntAllAttribute>(attributes[0]); Assert.Equal(5, attribute._i); } [Fact] public void SetCustomAttribute_ConstructorBuilder_ByteArray_NullConstructorBuilder_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); AssertExtensions.Throws<ArgumentNullException>("con", () => constructor.SetCustomAttribute(null, new byte[0])); } [Fact] public void SetCustomAttribute_CustomAttributeBuilder() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); ILGenerator ilGenerator = constructor.GetILGenerator(); ilGenerator.Emit(OpCodes.Ldarg_1); ConstructorInfo attributeConstructor = typeof(IntAllAttribute).GetConstructor(new Type[] { typeof(int) }); CustomAttributeBuilder attributeBuilder = new CustomAttributeBuilder(attributeConstructor, new object[] { 2 }); constructor.SetCustomAttribute(attributeBuilder); Type createdType = type.CreateTypeInfo().AsType(); ConstructorInfo createdConstructor = createdType.GetConstructor(new Type[0]); Attribute[] customAttributes = (Attribute[])CustomAttributeExtensions.GetCustomAttributes(createdConstructor, true).ToArray(); Assert.Equal(1, customAttributes.Length); Assert.Equal(2, ((IntAllAttribute)customAttributes[0])._i); } [Fact] public void SetCustomAttribute_NullCustomAttributeBuilder_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); ILGenerator ilGenerator = constructor.GetILGenerator(); ilGenerator.Emit(OpCodes.Ldarg_1); AssertExtensions.Throws<ArgumentNullException>("customBuilder", () => constructor.SetCustomAttribute(null)); } [Fact] public void GetCustomAttributes_ThrowsNotSupportedException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); Assert.Throws<NotSupportedException>(() => constructor.GetCustomAttributes()); } [Fact] public void IsDefined_ThrowsNotSupportedException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); Assert.Throws<NotSupportedException>(() => constructor.IsDefined(typeof(IntAllAttribute))); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Linq; using Xunit; namespace System.Reflection.Emit.Tests { public class ConstructorBuilderSetCustomAttribute { [Fact] public void SetCustomAttribute_ConstructorBuilder_ByteArray() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[] { typeof(int) }); ConstructorInfo attributeConstructor = typeof(IntAllAttribute).GetConstructor(new Type[] { typeof(int) }); constructor.SetCustomAttribute(attributeConstructor, new byte[] { 1, 0, 5, 0, 0, 0 }); constructor.GetILGenerator().Emit(OpCodes.Ret); Type createdType = type.CreateTypeInfo().AsType(); ConstructorInfo createdConstructor = createdType.GetConstructor(new Type[] { typeof(int) }); Attribute[] attributes = createdConstructor.GetCustomAttributes().ToArray(); IntAllAttribute attribute = Assert.IsType<IntAllAttribute>(attributes[0]); Assert.Equal(5, attribute._i); } [Fact] public void SetCustomAttribute_ConstructorBuilder_ByteArray_NullConstructorBuilder_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); AssertExtensions.Throws<ArgumentNullException>("con", () => constructor.SetCustomAttribute(null, new byte[0])); } [Fact] public void SetCustomAttribute_CustomAttributeBuilder() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); ILGenerator ilGenerator = constructor.GetILGenerator(); ilGenerator.Emit(OpCodes.Ldarg_1); ConstructorInfo attributeConstructor = typeof(IntAllAttribute).GetConstructor(new Type[] { typeof(int) }); CustomAttributeBuilder attributeBuilder = new CustomAttributeBuilder(attributeConstructor, new object[] { 2 }); constructor.SetCustomAttribute(attributeBuilder); Type createdType = type.CreateTypeInfo().AsType(); ConstructorInfo createdConstructor = createdType.GetConstructor(new Type[0]); Attribute[] customAttributes = (Attribute[])CustomAttributeExtensions.GetCustomAttributes(createdConstructor, true).ToArray(); Assert.Equal(1, customAttributes.Length); Assert.Equal(2, ((IntAllAttribute)customAttributes[0])._i); } [Fact] public void SetCustomAttribute_NullCustomAttributeBuilder_ThrowsArgumentNullException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); ILGenerator ilGenerator = constructor.GetILGenerator(); ilGenerator.Emit(OpCodes.Ldarg_1); AssertExtensions.Throws<ArgumentNullException>("customBuilder", () => constructor.SetCustomAttribute(null)); } [Fact] public void GetCustomAttributes_ThrowsNotSupportedException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); Assert.Throws<NotSupportedException>(() => constructor.GetCustomAttributes()); } [Fact] public void IsDefined_ThrowsNotSupportedException() { TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public); ConstructorBuilder constructor = type.DefineConstructor(MethodAttributes.Public, CallingConventions.Standard, new Type[0]); Assert.Throws<NotSupportedException>(() => constructor.IsDefined(typeof(IntAllAttribute))); } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/AstNode.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.Xml.XPath; namespace MS.Internal.Xml.XPath { internal abstract class AstNode { public enum AstType { Axis, Operator, Filter, ConstantOperand, Function, Group, Root, Variable, Error }; public abstract AstType Type { get; } public abstract XPathResultType ReturnType { get; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Xml.XPath; namespace MS.Internal.Xml.XPath { internal abstract class AstNode { public enum AstType { Axis, Operator, Filter, ConstantOperand, Function, Group, Root, Variable, Error }; public abstract AstType Type { get; } public abstract XPathResultType ReturnType { get; } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/System.Private.CoreLib/src/System/Runtime/InteropServices/IException.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================= ** ** Interface: _Exception ** ** ** Purpose: COM backwards compatibility with v1 Exception ** object layout. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Reflection; using System.Runtime.Serialization; [Guid("b36b5c63-42ef-38bc-a07e-0b34c98f164a")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] [CLSCompliant(false)] internal interface _Exception { // // This method is intentionally included in CoreCLR to make Exception.get_InnerException "newslot virtual final". // Some phone apps include MEF from desktop Silverlight. MEF's ComposablePartException depends on implicit interface // implementations of get_InnerException to be provided by the base class. It works only if Exception.get_InnerException // is virtual. // Exception? InnerException { get; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================= ** ** Interface: _Exception ** ** ** Purpose: COM backwards compatibility with v1 Exception ** object layout. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Reflection; using System.Runtime.Serialization; [Guid("b36b5c63-42ef-38bc-a07e-0b34c98f164a")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] [CLSCompliant(false)] internal interface _Exception { // // This method is intentionally included in CoreCLR to make Exception.get_InnerException "newslot virtual final". // Some phone apps include MEF from desktop Silverlight. MEF's ComposablePartException depends on implicit interface // implementations of get_InnerException to be provided by the base class. It works only if Exception.get_InnerException // is virtual. // Exception? InnerException { get; } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Private.Xml/tests/XmlReaderLib/ReadValue.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; using System.IO; using XmlCoreTest.Common; namespace System.Xml.Tests { ///////////////////////////////////////////////////////////////////////// // TestCase ReadValue // ///////////////////////////////////////////////////////////////////////// [InheritRequired()] public abstract partial class TCReadValue : TCXMLReaderBaseGeneral { public const string ST_TEST_NAME = "CHARS1"; public const string ST_GEN_ENT_NAME = "e1"; public const string ST_GEN_ENT_VALUE = "e1foo"; private bool VerifyInvalidReadValue(int iBufferSize, int iIndex, int iCount, Type exceptionType) { bool bPassed = false; char[] buffer = new char[iBufferSize]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return bPassed; } catch (NotSupportedException) { return true; } } try { DataReader.ReadValueChunk(buffer, iIndex, iCount); } catch (Exception e) { CError.WriteLine("Actual exception:{0}", e.GetType().ToString()); CError.WriteLine("Expected exception:{0}", exceptionType.ToString()); bPassed = (e.GetType().ToString() == exceptionType.ToString()); } return bPassed; } [Variation("ReadValue", Pri = 0)] public int TestReadValuePri0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue on Element", Pri = 0)] public int TestReadValuePri0onElement() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, 0, 5); } catch (InvalidOperationException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue on Attribute", Pri = 0)] public int TestReadValueOnAttribute0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root name=\"value\">value</root>")); DataReader.PositionOnElement("root"); DataReader.MoveToNextAttribute(); //This takes to text node of attribute. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 0, "Did read 5 chars"); return TEST_PASS; } [Variation("ReadValue on Attribute after ReadAttributeValue", Pri = 2)] public int TestReadValueOnAttribute1() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root name=\"value\">value</root>")); DataReader.PositionOnElement("root"); DataReader.MoveToNextAttribute(); //This takes to text node of attribute. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadAttributeValue(), true, "Didn't read attribute value"); CError.Compare(DataReader.Value, "value", "Didn't read correct attribute value"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 0, "Did read 5 chars"); CError.WriteLineIgnore(DataReader.MoveToElement() + ""); DataReader.Read(); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars on text node"); CError.Compare("value", new string(buffer), "Strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 0, "Did read 5 chars on text node"); return TEST_PASS; } [Variation("ReadValue on empty buffer", Pri = 0)] public int TestReadValue2Pri0() { char[] buffer = new char[0]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, 0, 5); } catch (ArgumentException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue on negative count", Pri = 0)] public int TestReadValue3Pri0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, -1); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, 0, -1); } catch (ArgumentOutOfRangeException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue on negative offset", Pri = 0)] public int TestReadValue4Pri0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, -1, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, -1, 5); } catch (ArgumentOutOfRangeException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue with buffer = element content / 2", Pri = 0)] public int TestReadValue1() { char[] buffer = new char[5]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read first 5"); CError.Compare("01234", new string(buffer), "First strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read second 5 chars"); CError.Compare("56789", new string(buffer), "Second strings don't match"); return TEST_PASS; } [Variation("ReadValue entire value in one call", Pri = 0)] public int TestReadValue2() { char[] buffer = new char[10]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 10), 10, "Didn't read 10"); CError.Compare("0123456789", new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue bit by bit", Pri = 0)] public int TestReadValue3() { char[] buffer = new char[10]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare("0123456789", new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue for value more than 4K", Pri = 0)] public int TestReadValue4() { int size = 8192; char[] buffer = new char[size]; string val = new string('x', size); ReloadSource(new StringReader("<root>" + val + "</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare(val, new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue for value more than 4K and invalid element", Pri = 1)] public int TestReadValue5() { int size = 8192; char[] buffer = new char[size]; string val = new string('x', size); if (IsRoundTrippedReader()) return TEST_SKIPPED; ReloadSource(new StringReader("<root>" + val + "</notroot>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare(val, new string(buffer), "Strings don't match"); try { DataReader.Read(); return TEST_FAIL; } catch (XmlException) { return TEST_PASS; } } [Variation("ReadValue with count > buffer size")] public int TestReadValue7() { return BoolToLTMResult(VerifyInvalidReadValue(5, 0, 6, typeof(ArgumentOutOfRangeException))); } [Variation("ReadValue with index > buffer size")] public int TestReadValue8() { return BoolToLTMResult(VerifyInvalidReadValue(5, 5, 1, typeof(ArgumentOutOfRangeException))); } [Variation("ReadValue with index + count exceeds buffer")] public int TestReadValue10() { return BoolToLTMResult(VerifyInvalidReadValue(5, 2, 5, typeof(ArgumentOutOfRangeException))); } [Variation("ReadValue with combination Text, CDATA and Whitespace")] public int TestReadChar11() { string strExpected = "AB"; ReloadSource(); DataReader.PositionOnElement("CAT"); DataReader.Read(); char[] buffer = new char[strExpected.Length]; if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue"); CError.Compare(new string(buffer), strExpected, "str"); return TEST_PASS; } [Variation("ReadValue with combination Text, CDATA and SignificantWhitespace")] public int TestReadChar12() { string strExpected = "AB"; ReloadSource(); DataReader.PositionOnElement("CATMIXED"); DataReader.Read(); char[] buffer = new char[strExpected.Length]; if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue"); CError.Compare(new string(buffer), strExpected, "str"); return TEST_PASS; } [Variation("ReadValue with buffer == null")] public int TestReadChar13() { ReloadSource(); DataReader.PositionOnElement("CHARS1"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(null, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(null, 0, 0); } catch (ArgumentNullException) { return TEST_PASS; } return TEST_FAIL; } [Variation("ReadValue with multiple different inner nodes")] public int TestReadChar14() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue<![CDATA[somevalue]]>somevalue</ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue1"); CError.Compare(new string(buffer), strExpected, "str1"); DataReader.Read();//Now on CDATA. CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue2"); CError.Compare(new string(buffer), strExpected, "str2"); DataReader.Read();//Now back on Text CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue3"); CError.Compare(new string(buffer), strExpected, "str3"); return TEST_PASS; } [Variation("ReadValue after failed ReadValue")] public int TestReadChar15() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue</ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int nChars; try { nChars = DataReader.ReadValueChunk(buffer, strExpected.Length, 3); } catch (ArgumentException) { CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue Count"); CError.Compare(new string(buffer), strExpected, "str"); return TEST_PASS; } CError.WriteLine("Couldn't read after ArgumentException"); return TEST_FAIL; } [Variation("Read after partial ReadValue")] public int TestReadChar16() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue</ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int nChars = DataReader.ReadValueChunk(buffer, 0, 2); CError.Compare(nChars, 2, "Read 2"); DataReader.Read(); CError.Compare(DataReader.VerifyNode(XmlNodeType.EndElement, "ROOT", string.Empty), "1vn"); return TEST_PASS; } [Variation("Test error after successful ReadValue")] public int TestReadChar19() { if (IsRoundTrippedReader() || IsSubtreeReader()) return TEST_SKIPPED; char[] buffer = new char[9]; ReloadSource(new StringReader("<root>somevalue</root></root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare("somevalue", new string(buffer), "Strings don't match"); try { while (DataReader.Read()) ; } catch (XmlException) { return TEST_PASS; } return TEST_FAIL; } //[Variation("Call on invalid element content after 4k boundary", Pri = 1, Params = new object[] { false, 1024 * 4})] //[Variation("Call on invalid element content after 64k boundary for Async", Pri = 1, Params = new object[] { true, 1024 * 64 })] public int TestReadChar21() { if (IsRoundTrippedReader()) return TEST_SKIPPED; bool forAsync = (bool)CurVariation.Params[0]; if (forAsync != AsyncUtil.IsAsyncEnabled) return TEST_SKIPPED; int size = (int)CurVariation.Params[1]; string somechar = new string('x', size); string strxml = string.Format("<ROOT>a" + somechar + "{0}c</ROOT>", Convert.ToChar(0)); ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); char[] buffer = new char[1]; if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } DataReader.Read(); try { while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; } catch (XmlException xe) { CError.WriteLineIgnore(xe.ToString()); return TEST_PASS; } return TEST_FAIL; } [Variation("ReadValue with whitespace")] public int TestTextReadValue25() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue<![CDATA[somevalue]]><test1/> <test2/></ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue1"); CError.Compare(new string(buffer), strExpected, "str1"); DataReader.Read();//Now on CDATA. CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue2"); CError.Compare(new string(buffer), strExpected, "str2"); DataReader.Read();//Now on test char[] spaces = new char[4]; DataReader.Read();//Now on whitespace. CError.Compare(DataReader.ReadValueChunk(spaces, 0, spaces.Length), spaces.Length, "ReadValue3"); CError.Compare(new string(spaces), " ", "str3"); return TEST_PASS; } [Variation("ReadValue when end tag doesn't exist")] public int TestTextReadValue26() { if (IsRoundTrippedReader()) return TEST_SKIPPED; char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</notroot>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); try { DataReader.Read(); return TEST_FAIL; } catch (XmlException) { return TEST_PASS; } } [Variation("Testing with character entities")] public int TestCharEntities0() { char[] buffer = new char[1]; ReloadSource(new StringReader("<root>va&lt;/root&gt;lue</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; DataReader.Read();//This takes you to end element DataReader.Read();//This finishes the reading and sets nodetype to none. CError.Compare(DataReader.NodeType, XmlNodeType.None, "Not on End"); return TEST_PASS; } [Variation("Testing with character entities when value more than 4k")] public int TestCharEntities1() { char[] buffer = new char[1]; ReloadSource(new StringReader("<root>va" + new string('x', 5000) + "l&lt;/root&gt;ue</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; DataReader.Read();//This takes you to end element DataReader.Read();//This finishes the reading and sets nodetype to none. CError.Compare(DataReader.NodeType, XmlNodeType.None, "Not on End"); return TEST_PASS; } [Variation("Testing with character entities with another pattern")] public int TestCharEntities2() { char[] buffer = new char[1]; ReloadSource(new StringReader("<!DOCTYPE root[<!ENTITY x \"somevalue\"><!ELEMENT root ANY>]><root>value&amp;x;</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; DataReader.Read();//This takes you to end element DataReader.Read();//This finishes the reading and sets nodetype to none. CError.Compare(DataReader.NodeType, XmlNodeType.None, "Not on End"); return TEST_PASS; } [Variation("Testing a use case pattern with large file")] public int TestReadValueOnBig() { ReloadSource(); char[] buffer = new char[1]; while (DataReader.Read()) { if (DataReader.HasValue && DataReader.CanReadValueChunk) { Random rand = new Random(); if (rand.Next(1) == 1) { CError.WriteLineIgnore(DataReader.Value); } int count; do { count = rand.Next(4) + 1; buffer = new char[count]; if (rand.Next(1) == 1) { CError.WriteLineIgnore(DataReader.Value); break; } } while (DataReader.ReadValueChunk(buffer, 0, count) > 0); CError.WriteLineIgnore(DataReader.Value); } else { if (!DataReader.CanReadValueChunk) { try { buffer = new char[1]; DataReader.ReadValueChunk(buffer, 0, 1); } catch (NotSupportedException) { } } else { try { buffer = new char[1]; DataReader.ReadValueChunk(buffer, 0, 1); } catch (InvalidOperationException) { } } } } return TEST_PASS; } [Variation("ReadValue on Comments with IgnoreComments")] public int TestReadValueOnComments0() { if (!IsFactoryReader()) return TEST_SKIPPED; char[] buffer = null; buffer = new char[3]; XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreComments = true; MyDict<string, object> ht = new MyDict<string, object>(); ht[ReaderFactory.HT_CURDESC] = GetDescription().ToLowerInvariant(); ht[ReaderFactory.HT_CURVAR] = CurVariation.Desc.ToLowerInvariant(); ht[ReaderFactory.HT_STRINGREADER] = new StringReader("<root>val<!--Comment-->ue</root>"); ht[ReaderFactory.HT_READERSETTINGS] = settings; ReloadSource(ht); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Didn't read 3 chars"); CError.Compare("val", new string(buffer), "Strings don't match"); buffer = new char[2]; DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 2), 2, "Didn't read 2 chars"); CError.Compare("ue", new string(buffer), "Strings don't match"); while (DataReader.Read()) ; DataReader.Close(); return TEST_PASS; } [Variation("ReadValue on PI with IgnorePI")] public int TestReadValueOnPIs0() { if (!IsFactoryReader()) return TEST_SKIPPED; char[] buffer = null; buffer = new char[3]; XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreProcessingInstructions = true; MyDict<string, object> ht = new MyDict<string, object>(); ht[ReaderFactory.HT_CURDESC] = GetDescription().ToLowerInvariant(); ht[ReaderFactory.HT_CURVAR] = CurVariation.Desc.ToLowerInvariant(); ht[ReaderFactory.HT_STRINGREADER] = new StringReader("<root>val<?pi target?>ue</root>"); ht[ReaderFactory.HT_READERSETTINGS] = settings; ReloadSource(ht); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Didn't read 3 chars"); CError.Compare("val", new string(buffer), "Strings don't match"); buffer = new char[2]; DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 2), 2, "Didn't read 2 chars"); CError.Compare("ue", new string(buffer), "Strings don't match"); while (DataReader.Read()) ; DataReader.Close(); return TEST_PASS; } [Variation("Skip after ReadAttributeValue/ReadValueChunk")] public int SkipAfterReadAttributeValueAndReadValueChunkDoesNotThrow() { XmlReaderSettings settings = new XmlReaderSettings(); settings.DtdProcessing = DtdProcessing.Ignore; XmlReader reader = XmlReader.Create(FilePathUtil.getStream(this.StandardPath + @"\XML10\ms_xml\vs084.xml"), settings); reader.ReadToFollowing("a"); reader.MoveToNextAttribute(); reader.ReadAttributeValue(); reader.ReadValueChunk(new char[3], 0, 3); //<< removing this line works fine. reader.Skip(); CError.Compare(reader.NodeType, XmlNodeType.Whitespace, "NT"); reader.Read(); CError.Compare(reader.NodeType, XmlNodeType.Element, "NT1"); CError.Compare(reader.Name, "a", "Name"); return TEST_PASS; } [Variation("ReadValueChunk - doesn't work correctly on attributes")] public int ReadValueChunkDoesWorkProperlyOnAttributes() { if (!IsFactoryReader()) return TEST_SKIPPED; string xml = @"<root a1='12345' a2='value'/>"; ReloadSource(new StringReader(xml)); char[] buffer = new char[10]; CError.Compare(DataReader.Read(), "Read"); CError.Compare(DataReader.MoveToNextAttribute(), "MoveToNextAttribute"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer1"); CError.Compare(buffer[1].ToString(), "2", "buffer1"); CError.Compare(buffer[2].ToString(), "3", "buffer1"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); CError.Compare(DataReader.MoveToNextAttribute(), "MoveToNextAttribute"); CError.Compare(DataReader.MoveToFirstAttribute(), "MoveToFirstAttribute"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer2"); CError.Compare(buffer[1].ToString(), "2", "buffer2"); CError.Compare(buffer[2].ToString(), "3", "buffer2"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); return TEST_PASS; } [Variation("ReadValueChunk - doesn't work correctly on special attributes")] public int ReadValueChunkDoesWorkProperlyOnSpecialAttributes() { if (!IsFactoryReader()) return TEST_SKIPPED; string xml = @"<?xml version='1.0'?><root/>"; ReloadSource(new StringReader(xml)); char[] buffer = new char[10]; CError.Compare(DataReader.Read(), "Read"); CError.Compare(DataReader.MoveToFirstAttribute(), "MoveToFirstAttribute"); CError.Compare(DataReader.Name, "version", "Name"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer1"); CError.Compare(buffer[1].ToString(), ".", "buffer1"); CError.Compare(buffer[2].ToString(), "0", "buffer1"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); CError.Compare(DataReader.MoveToElement(), "MoveToElement"); CError.Compare(DataReader.MoveToFirstAttribute(), "MoveToFirstAttribute"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer2"); CError.Compare(buffer[1].ToString(), ".", "buffer2"); CError.Compare(buffer[2].ToString(), "0", "buffer2"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); return TEST_PASS; } [Variation("SubtreeReader inserted attributes don't work with ReadValueChunk")] public int ReadValueChunkWorksProperlyWithSubtreeReaderInsertedAttributes() { if (!IsFactoryReader()) return TEST_SKIPPED; string xml = "<root xmlns='foo'><bar/></root>"; ReloadSource(new StringReader(xml)); DataReader.Read(); DataReader.Read(); using (XmlReader sr = DataReader.ReadSubtree()) { sr.Read(); sr.MoveToFirstAttribute(); CError.WriteLine("Value: " + sr.Value); sr.MoveToFirstAttribute(); char[] chars = new char[100]; int i = sr.ReadValueChunk(chars, 0, 100); CError.WriteLine("ReadValueChunk: length = " + i + " value = '" + new string(chars, 0, i) + "'"); } return TEST_PASS; } [Variation("goto to text node, ask got.Value, ReadValueChunk")] public int TestReadValue_1() { string xml = "<elem0>123</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); CError.Compare(DataReader.Value, "123", "value"); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 1), 1, "size"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("goto to text node, ReadValueChunk, ask got.Value")] public int TestReadValue_2() { string xml = "<elem0>123</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 1), 1, "size"); CError.Compare(DataReader.Value, "23", "value"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("goto to huge text node, read several chars with ReadValueChank and Move forward with .Read()")] public int TestReadValue_3() { string xml = "<elem0>123 $^ 56789 abcdefg hij klmn opqrst 12345 uvw xy ^ z</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 5), 5, "size"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Read(); DataReader.Close(); return TEST_PASS; } [Variation("goto to huge text node with invalid chars, read several chars with ReadValueChank and Move forward with .Read()")] public int TestReadValue_4() { string xml = "<elem0>123 $^ 56789 abcdefg hij klmn opqrst 12345 uvw xy ^ z</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 5), 5, "size"); DataReader.Read(); } catch (XmlException e) { CError.WriteLine(e); } catch (NotSupportedException e) { CError.WriteLine(e); } finally { DataReader.Close(); } return TEST_PASS; } [Variation("Call ReadValueChunk on two or more nodes")] public int TestReadValue_5() { string xml = "<elem0>123<elem1>123<elem2>123</elem2>123</elem1>123</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; int startPos = 0; int readSize = 3; int currentSize = 0; while (DataReader.Read()) { DataReader.Read(); if (DataReader.NodeType == XmlNodeType.Text || DataReader.NodeType == XmlNodeType.None) continue; currentSize = DataReader.ReadValueChunk(chars, startPos, readSize); CError.Equals(currentSize, 3, "size"); CError.Equals(chars[0].ToString(), "1", "buffer1"); CError.Equals(chars[1].ToString(), "2", "buffer2"); CError.Equals(chars[2].ToString(), "3", "buffer3"); CError.Equals(DataReader.LineNumber, 0, "LineNumber"); CError.Equals(DataReader.LinePosition, 0, "LinePosition"); } DataReader.Close(); return TEST_PASS; } //[Variation("ReadValueChunk on an xmlns attribute", Param = "<foo xmlns='default'> <bar > id='1'/> </foo>")] //[Variation("ReadValueChunk on an xmlns:k attribute", Param = "<k:foo xmlns:k='default'> <k:bar id='1'/> </k:foo>")] //[Variation("ReadValueChunk on an xml:space attribute", Param = "<foo xml:space='default'> <bar > id='1'/> </foo>")] //[Variation("ReadValueChunk on an xml:lang attribute", Param = "<foo xml:lang='default'> <bar > id='1'/> </foo>")] public int TestReadValue_6() { string xml = (string)this.CurVariation.Param; ReloadSource(new StringReader(xml)); char[] chars = new char[8]; DataReader.Read(); DataReader.MoveToAttribute(0); try { CError.Equals(DataReader.Value, "default", "value"); CError.Equals(DataReader.ReadValueChunk(chars, 0, 8), 7, "size"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("Call ReadValueChunk on two or more nodes and whitespace")] public int TestReadValue_7() { string xml = @"<elem0> 123" + "\n" + @" <elem1>" + "\r" + @"123 <elem2> 123 </elem2>" + "\r\n" + @" 123</elem1> 123 </elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; int startPos = 0; int readSize = 3; int currentSize = 0; try { while (DataReader.Read()) { DataReader.Read(); if (DataReader.NodeType == XmlNodeType.Text || DataReader.NodeType == XmlNodeType.None) continue; currentSize = DataReader.ReadValueChunk(chars, startPos, readSize); CError.Equals(currentSize, 3, "size"); CError.Equals(DataReader.LineNumber, 0, "LineNumber"); CError.Equals(DataReader.LinePosition, 0, "LinePosition"); } } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("Call ReadValueChunk on two or more nodes and whitespace after call Value")] public int TestReadValue_8() { string xml = @"<elem0> 123" + "\n" + @" <elem1>" + "\r" + @"123 <elem2> 123 </elem2>" + "\r\n" + @" 123</elem1> 123 </elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; int startPos = 0; int readSize = 3; int currentSize = 0; try { while (DataReader.Read()) { DataReader.Read(); if (DataReader.NodeType == XmlNodeType.Text || DataReader.NodeType == XmlNodeType.None) continue; CError.Equals(DataReader.Value.Contains("123"), "Value"); currentSize = DataReader.ReadValueChunk(chars, startPos, readSize); CError.Equals(currentSize, 3, "size"); CError.Equals(DataReader.LineNumber, 0, "LineNumber"); CError.Equals(DataReader.LinePosition, 0, "LinePosition"); } } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } } }
// 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; using System.IO; using XmlCoreTest.Common; namespace System.Xml.Tests { ///////////////////////////////////////////////////////////////////////// // TestCase ReadValue // ///////////////////////////////////////////////////////////////////////// [InheritRequired()] public abstract partial class TCReadValue : TCXMLReaderBaseGeneral { public const string ST_TEST_NAME = "CHARS1"; public const string ST_GEN_ENT_NAME = "e1"; public const string ST_GEN_ENT_VALUE = "e1foo"; private bool VerifyInvalidReadValue(int iBufferSize, int iIndex, int iCount, Type exceptionType) { bool bPassed = false; char[] buffer = new char[iBufferSize]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return bPassed; } catch (NotSupportedException) { return true; } } try { DataReader.ReadValueChunk(buffer, iIndex, iCount); } catch (Exception e) { CError.WriteLine("Actual exception:{0}", e.GetType().ToString()); CError.WriteLine("Expected exception:{0}", exceptionType.ToString()); bPassed = (e.GetType().ToString() == exceptionType.ToString()); } return bPassed; } [Variation("ReadValue", Pri = 0)] public int TestReadValuePri0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue on Element", Pri = 0)] public int TestReadValuePri0onElement() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, 0, 5); } catch (InvalidOperationException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue on Attribute", Pri = 0)] public int TestReadValueOnAttribute0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root name=\"value\">value</root>")); DataReader.PositionOnElement("root"); DataReader.MoveToNextAttribute(); //This takes to text node of attribute. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 0, "Did read 5 chars"); return TEST_PASS; } [Variation("ReadValue on Attribute after ReadAttributeValue", Pri = 2)] public int TestReadValueOnAttribute1() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root name=\"value\">value</root>")); DataReader.PositionOnElement("root"); DataReader.MoveToNextAttribute(); //This takes to text node of attribute. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadAttributeValue(), true, "Didn't read attribute value"); CError.Compare(DataReader.Value, "value", "Didn't read correct attribute value"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 0, "Did read 5 chars"); CError.WriteLineIgnore(DataReader.MoveToElement() + ""); DataReader.Read(); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars on text node"); CError.Compare("value", new string(buffer), "Strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 0, "Did read 5 chars on text node"); return TEST_PASS; } [Variation("ReadValue on empty buffer", Pri = 0)] public int TestReadValue2Pri0() { char[] buffer = new char[0]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, 0, 5); } catch (ArgumentException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue on negative count", Pri = 0)] public int TestReadValue3Pri0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, -1); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, 0, -1); } catch (ArgumentOutOfRangeException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue on negative offset", Pri = 0)] public int TestReadValue4Pri0() { char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, -1, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(buffer, -1, 5); } catch (ArgumentOutOfRangeException) { return TEST_PASS; } throw new CTestFailedException("ReadValue didn't throw expected exception"); } [Variation("ReadValue with buffer = element content / 2", Pri = 0)] public int TestReadValue1() { char[] buffer = new char[5]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read first 5"); CError.Compare("01234", new string(buffer), "First strings don't match"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read second 5 chars"); CError.Compare("56789", new string(buffer), "Second strings don't match"); return TEST_PASS; } [Variation("ReadValue entire value in one call", Pri = 0)] public int TestReadValue2() { char[] buffer = new char[10]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 10), 10, "Didn't read 10"); CError.Compare("0123456789", new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue bit by bit", Pri = 0)] public int TestReadValue3() { char[] buffer = new char[10]; ReloadSource(); DataReader.PositionOnElement(ST_TEST_NAME); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare("0123456789", new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue for value more than 4K", Pri = 0)] public int TestReadValue4() { int size = 8192; char[] buffer = new char[size]; string val = new string('x', size); ReloadSource(new StringReader("<root>" + val + "</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare(val, new string(buffer), "Strings don't match"); return TEST_PASS; } [Variation("ReadValue for value more than 4K and invalid element", Pri = 1)] public int TestReadValue5() { int size = 8192; char[] buffer = new char[size]; string val = new string('x', size); if (IsRoundTrippedReader()) return TEST_SKIPPED; ReloadSource(new StringReader("<root>" + val + "</notroot>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare(val, new string(buffer), "Strings don't match"); try { DataReader.Read(); return TEST_FAIL; } catch (XmlException) { return TEST_PASS; } } [Variation("ReadValue with count > buffer size")] public int TestReadValue7() { return BoolToLTMResult(VerifyInvalidReadValue(5, 0, 6, typeof(ArgumentOutOfRangeException))); } [Variation("ReadValue with index > buffer size")] public int TestReadValue8() { return BoolToLTMResult(VerifyInvalidReadValue(5, 5, 1, typeof(ArgumentOutOfRangeException))); } [Variation("ReadValue with index + count exceeds buffer")] public int TestReadValue10() { return BoolToLTMResult(VerifyInvalidReadValue(5, 2, 5, typeof(ArgumentOutOfRangeException))); } [Variation("ReadValue with combination Text, CDATA and Whitespace")] public int TestReadChar11() { string strExpected = "AB"; ReloadSource(); DataReader.PositionOnElement("CAT"); DataReader.Read(); char[] buffer = new char[strExpected.Length]; if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue"); CError.Compare(new string(buffer), strExpected, "str"); return TEST_PASS; } [Variation("ReadValue with combination Text, CDATA and SignificantWhitespace")] public int TestReadChar12() { string strExpected = "AB"; ReloadSource(); DataReader.PositionOnElement("CATMIXED"); DataReader.Read(); char[] buffer = new char[strExpected.Length]; if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue"); CError.Compare(new string(buffer), strExpected, "str"); return TEST_PASS; } [Variation("ReadValue with buffer == null")] public int TestReadChar13() { ReloadSource(); DataReader.PositionOnElement("CHARS1"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(null, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } try { DataReader.ReadValueChunk(null, 0, 0); } catch (ArgumentNullException) { return TEST_PASS; } return TEST_FAIL; } [Variation("ReadValue with multiple different inner nodes")] public int TestReadChar14() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue<![CDATA[somevalue]]>somevalue</ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue1"); CError.Compare(new string(buffer), strExpected, "str1"); DataReader.Read();//Now on CDATA. CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue2"); CError.Compare(new string(buffer), strExpected, "str2"); DataReader.Read();//Now back on Text CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue3"); CError.Compare(new string(buffer), strExpected, "str3"); return TEST_PASS; } [Variation("ReadValue after failed ReadValue")] public int TestReadChar15() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue</ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int nChars; try { nChars = DataReader.ReadValueChunk(buffer, strExpected.Length, 3); } catch (ArgumentException) { CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue Count"); CError.Compare(new string(buffer), strExpected, "str"); return TEST_PASS; } CError.WriteLine("Couldn't read after ArgumentException"); return TEST_FAIL; } [Variation("Read after partial ReadValue")] public int TestReadChar16() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue</ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int nChars = DataReader.ReadValueChunk(buffer, 0, 2); CError.Compare(nChars, 2, "Read 2"); DataReader.Read(); CError.Compare(DataReader.VerifyNode(XmlNodeType.EndElement, "ROOT", string.Empty), "1vn"); return TEST_PASS; } [Variation("Test error after successful ReadValue")] public int TestReadChar19() { if (IsRoundTrippedReader() || IsSubtreeReader()) return TEST_SKIPPED; char[] buffer = new char[9]; ReloadSource(new StringReader("<root>somevalue</root></root>")); DataReader.PositionOnElement("root"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } int index = 0; for (index = 0; index < buffer.Length; index++) { CError.Compare(DataReader.ReadValueChunk(buffer, index, 1), 1, "Read " + index); } CError.Compare("somevalue", new string(buffer), "Strings don't match"); try { while (DataReader.Read()) ; } catch (XmlException) { return TEST_PASS; } return TEST_FAIL; } //[Variation("Call on invalid element content after 4k boundary", Pri = 1, Params = new object[] { false, 1024 * 4})] //[Variation("Call on invalid element content after 64k boundary for Async", Pri = 1, Params = new object[] { true, 1024 * 64 })] public int TestReadChar21() { if (IsRoundTrippedReader()) return TEST_SKIPPED; bool forAsync = (bool)CurVariation.Params[0]; if (forAsync != AsyncUtil.IsAsyncEnabled) return TEST_SKIPPED; int size = (int)CurVariation.Params[1]; string somechar = new string('x', size); string strxml = string.Format("<ROOT>a" + somechar + "{0}c</ROOT>", Convert.ToChar(0)); ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); char[] buffer = new char[1]; if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } DataReader.Read(); try { while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; } catch (XmlException xe) { CError.WriteLineIgnore(xe.ToString()); return TEST_PASS; } return TEST_FAIL; } [Variation("ReadValue with whitespace")] public int TestTextReadValue25() { string strExpected = "somevalue"; char[] buffer = new char[strExpected.Length]; string strxml = "<ROOT>somevalue<![CDATA[somevalue]]><test1/> <test2/></ROOT>"; ReloadSourceStr(strxml); DataReader.PositionOnElement("ROOT"); DataReader.Read(); if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue1"); CError.Compare(new string(buffer), strExpected, "str1"); DataReader.Read();//Now on CDATA. CError.Compare(DataReader.ReadValueChunk(buffer, 0, buffer.Length), strExpected.Length, "ReadValue2"); CError.Compare(new string(buffer), strExpected, "str2"); DataReader.Read();//Now on test char[] spaces = new char[4]; DataReader.Read();//Now on whitespace. CError.Compare(DataReader.ReadValueChunk(spaces, 0, spaces.Length), spaces.Length, "ReadValue3"); CError.Compare(new string(spaces), " ", "str3"); return TEST_PASS; } [Variation("ReadValue when end tag doesn't exist")] public int TestTextReadValue26() { if (IsRoundTrippedReader()) return TEST_SKIPPED; char[] buffer = new char[5]; ReloadSource(new StringReader("<root>value</notroot>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } CError.Compare(DataReader.ReadValueChunk(buffer, 0, 5), 5, "Didn't read 5 chars"); CError.Compare("value", new string(buffer), "Strings don't match"); try { DataReader.Read(); return TEST_FAIL; } catch (XmlException) { return TEST_PASS; } } [Variation("Testing with character entities")] public int TestCharEntities0() { char[] buffer = new char[1]; ReloadSource(new StringReader("<root>va&lt;/root&gt;lue</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; DataReader.Read();//This takes you to end element DataReader.Read();//This finishes the reading and sets nodetype to none. CError.Compare(DataReader.NodeType, XmlNodeType.None, "Not on End"); return TEST_PASS; } [Variation("Testing with character entities when value more than 4k")] public int TestCharEntities1() { char[] buffer = new char[1]; ReloadSource(new StringReader("<root>va" + new string('x', 5000) + "l&lt;/root&gt;ue</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; DataReader.Read();//This takes you to end element DataReader.Read();//This finishes the reading and sets nodetype to none. CError.Compare(DataReader.NodeType, XmlNodeType.None, "Not on End"); return TEST_PASS; } [Variation("Testing with character entities with another pattern")] public int TestCharEntities2() { char[] buffer = new char[1]; ReloadSource(new StringReader("<!DOCTYPE root[<!ENTITY x \"somevalue\"><!ELEMENT root ANY>]><root>value&amp;x;</root>")); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. if (!DataReader.CanReadValueChunk) { try { DataReader.ReadValueChunk(buffer, 0, 5); return TEST_FAIL; } catch (NotSupportedException) { return TEST_PASS; } } while (DataReader.ReadValueChunk(buffer, 0, 1) > 0) ; DataReader.Read();//This takes you to end element DataReader.Read();//This finishes the reading and sets nodetype to none. CError.Compare(DataReader.NodeType, XmlNodeType.None, "Not on End"); return TEST_PASS; } [Variation("Testing a use case pattern with large file")] public int TestReadValueOnBig() { ReloadSource(); char[] buffer = new char[1]; while (DataReader.Read()) { if (DataReader.HasValue && DataReader.CanReadValueChunk) { Random rand = new Random(); if (rand.Next(1) == 1) { CError.WriteLineIgnore(DataReader.Value); } int count; do { count = rand.Next(4) + 1; buffer = new char[count]; if (rand.Next(1) == 1) { CError.WriteLineIgnore(DataReader.Value); break; } } while (DataReader.ReadValueChunk(buffer, 0, count) > 0); CError.WriteLineIgnore(DataReader.Value); } else { if (!DataReader.CanReadValueChunk) { try { buffer = new char[1]; DataReader.ReadValueChunk(buffer, 0, 1); } catch (NotSupportedException) { } } else { try { buffer = new char[1]; DataReader.ReadValueChunk(buffer, 0, 1); } catch (InvalidOperationException) { } } } } return TEST_PASS; } [Variation("ReadValue on Comments with IgnoreComments")] public int TestReadValueOnComments0() { if (!IsFactoryReader()) return TEST_SKIPPED; char[] buffer = null; buffer = new char[3]; XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreComments = true; MyDict<string, object> ht = new MyDict<string, object>(); ht[ReaderFactory.HT_CURDESC] = GetDescription().ToLowerInvariant(); ht[ReaderFactory.HT_CURVAR] = CurVariation.Desc.ToLowerInvariant(); ht[ReaderFactory.HT_STRINGREADER] = new StringReader("<root>val<!--Comment-->ue</root>"); ht[ReaderFactory.HT_READERSETTINGS] = settings; ReloadSource(ht); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Didn't read 3 chars"); CError.Compare("val", new string(buffer), "Strings don't match"); buffer = new char[2]; DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 2), 2, "Didn't read 2 chars"); CError.Compare("ue", new string(buffer), "Strings don't match"); while (DataReader.Read()) ; DataReader.Close(); return TEST_PASS; } [Variation("ReadValue on PI with IgnorePI")] public int TestReadValueOnPIs0() { if (!IsFactoryReader()) return TEST_SKIPPED; char[] buffer = null; buffer = new char[3]; XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreProcessingInstructions = true; MyDict<string, object> ht = new MyDict<string, object>(); ht[ReaderFactory.HT_CURDESC] = GetDescription().ToLowerInvariant(); ht[ReaderFactory.HT_CURVAR] = CurVariation.Desc.ToLowerInvariant(); ht[ReaderFactory.HT_STRINGREADER] = new StringReader("<root>val<?pi target?>ue</root>"); ht[ReaderFactory.HT_READERSETTINGS] = settings; ReloadSource(ht); DataReader.PositionOnElement("root"); DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Didn't read 3 chars"); CError.Compare("val", new string(buffer), "Strings don't match"); buffer = new char[2]; DataReader.Read(); //This takes to text node. CError.Compare(DataReader.ReadValueChunk(buffer, 0, 2), 2, "Didn't read 2 chars"); CError.Compare("ue", new string(buffer), "Strings don't match"); while (DataReader.Read()) ; DataReader.Close(); return TEST_PASS; } [Variation("Skip after ReadAttributeValue/ReadValueChunk")] public int SkipAfterReadAttributeValueAndReadValueChunkDoesNotThrow() { XmlReaderSettings settings = new XmlReaderSettings(); settings.DtdProcessing = DtdProcessing.Ignore; XmlReader reader = XmlReader.Create(FilePathUtil.getStream(this.StandardPath + @"\XML10\ms_xml\vs084.xml"), settings); reader.ReadToFollowing("a"); reader.MoveToNextAttribute(); reader.ReadAttributeValue(); reader.ReadValueChunk(new char[3], 0, 3); //<< removing this line works fine. reader.Skip(); CError.Compare(reader.NodeType, XmlNodeType.Whitespace, "NT"); reader.Read(); CError.Compare(reader.NodeType, XmlNodeType.Element, "NT1"); CError.Compare(reader.Name, "a", "Name"); return TEST_PASS; } [Variation("ReadValueChunk - doesn't work correctly on attributes")] public int ReadValueChunkDoesWorkProperlyOnAttributes() { if (!IsFactoryReader()) return TEST_SKIPPED; string xml = @"<root a1='12345' a2='value'/>"; ReloadSource(new StringReader(xml)); char[] buffer = new char[10]; CError.Compare(DataReader.Read(), "Read"); CError.Compare(DataReader.MoveToNextAttribute(), "MoveToNextAttribute"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer1"); CError.Compare(buffer[1].ToString(), "2", "buffer1"); CError.Compare(buffer[2].ToString(), "3", "buffer1"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); CError.Compare(DataReader.MoveToNextAttribute(), "MoveToNextAttribute"); CError.Compare(DataReader.MoveToFirstAttribute(), "MoveToFirstAttribute"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer2"); CError.Compare(buffer[1].ToString(), "2", "buffer2"); CError.Compare(buffer[2].ToString(), "3", "buffer2"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); return TEST_PASS; } [Variation("ReadValueChunk - doesn't work correctly on special attributes")] public int ReadValueChunkDoesWorkProperlyOnSpecialAttributes() { if (!IsFactoryReader()) return TEST_SKIPPED; string xml = @"<?xml version='1.0'?><root/>"; ReloadSource(new StringReader(xml)); char[] buffer = new char[10]; CError.Compare(DataReader.Read(), "Read"); CError.Compare(DataReader.MoveToFirstAttribute(), "MoveToFirstAttribute"); CError.Compare(DataReader.Name, "version", "Name"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer1"); CError.Compare(buffer[1].ToString(), ".", "buffer1"); CError.Compare(buffer[2].ToString(), "0", "buffer1"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); CError.Compare(DataReader.MoveToElement(), "MoveToElement"); CError.Compare(DataReader.MoveToFirstAttribute(), "MoveToFirstAttribute"); CError.Compare(DataReader.ReadValueChunk(buffer, 0, 3), 3, "Error"); CError.Compare(buffer[0].ToString(), "1", "buffer2"); CError.Compare(buffer[1].ToString(), ".", "buffer2"); CError.Compare(buffer[2].ToString(), "0", "buffer2"); CError.WriteLine("LineNumber" + DataReader.LineNumber); CError.WriteLine("LinePosition" + DataReader.LinePosition); return TEST_PASS; } [Variation("SubtreeReader inserted attributes don't work with ReadValueChunk")] public int ReadValueChunkWorksProperlyWithSubtreeReaderInsertedAttributes() { if (!IsFactoryReader()) return TEST_SKIPPED; string xml = "<root xmlns='foo'><bar/></root>"; ReloadSource(new StringReader(xml)); DataReader.Read(); DataReader.Read(); using (XmlReader sr = DataReader.ReadSubtree()) { sr.Read(); sr.MoveToFirstAttribute(); CError.WriteLine("Value: " + sr.Value); sr.MoveToFirstAttribute(); char[] chars = new char[100]; int i = sr.ReadValueChunk(chars, 0, 100); CError.WriteLine("ReadValueChunk: length = " + i + " value = '" + new string(chars, 0, i) + "'"); } return TEST_PASS; } [Variation("goto to text node, ask got.Value, ReadValueChunk")] public int TestReadValue_1() { string xml = "<elem0>123</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); CError.Compare(DataReader.Value, "123", "value"); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 1), 1, "size"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("goto to text node, ReadValueChunk, ask got.Value")] public int TestReadValue_2() { string xml = "<elem0>123</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 1), 1, "size"); CError.Compare(DataReader.Value, "23", "value"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("goto to huge text node, read several chars with ReadValueChank and Move forward with .Read()")] public int TestReadValue_3() { string xml = "<elem0>123 $^ 56789 abcdefg hij klmn opqrst 12345 uvw xy ^ z</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 5), 5, "size"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Read(); DataReader.Close(); return TEST_PASS; } [Variation("goto to huge text node with invalid chars, read several chars with ReadValueChank and Move forward with .Read()")] public int TestReadValue_4() { string xml = "<elem0>123 $^ 56789 abcdefg hij klmn opqrst 12345 uvw xy ^ z</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; DataReader.Read(); DataReader.Read(); try { CError.Compare(DataReader.ReadValueChunk(chars, 0, 5), 5, "size"); DataReader.Read(); } catch (XmlException e) { CError.WriteLine(e); } catch (NotSupportedException e) { CError.WriteLine(e); } finally { DataReader.Close(); } return TEST_PASS; } [Variation("Call ReadValueChunk on two or more nodes")] public int TestReadValue_5() { string xml = "<elem0>123<elem1>123<elem2>123</elem2>123</elem1>123</elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; int startPos = 0; int readSize = 3; int currentSize = 0; while (DataReader.Read()) { DataReader.Read(); if (DataReader.NodeType == XmlNodeType.Text || DataReader.NodeType == XmlNodeType.None) continue; currentSize = DataReader.ReadValueChunk(chars, startPos, readSize); CError.Equals(currentSize, 3, "size"); CError.Equals(chars[0].ToString(), "1", "buffer1"); CError.Equals(chars[1].ToString(), "2", "buffer2"); CError.Equals(chars[2].ToString(), "3", "buffer3"); CError.Equals(DataReader.LineNumber, 0, "LineNumber"); CError.Equals(DataReader.LinePosition, 0, "LinePosition"); } DataReader.Close(); return TEST_PASS; } //[Variation("ReadValueChunk on an xmlns attribute", Param = "<foo xmlns='default'> <bar > id='1'/> </foo>")] //[Variation("ReadValueChunk on an xmlns:k attribute", Param = "<k:foo xmlns:k='default'> <k:bar id='1'/> </k:foo>")] //[Variation("ReadValueChunk on an xml:space attribute", Param = "<foo xml:space='default'> <bar > id='1'/> </foo>")] //[Variation("ReadValueChunk on an xml:lang attribute", Param = "<foo xml:lang='default'> <bar > id='1'/> </foo>")] public int TestReadValue_6() { string xml = (string)this.CurVariation.Param; ReloadSource(new StringReader(xml)); char[] chars = new char[8]; DataReader.Read(); DataReader.MoveToAttribute(0); try { CError.Equals(DataReader.Value, "default", "value"); CError.Equals(DataReader.ReadValueChunk(chars, 0, 8), 7, "size"); } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("Call ReadValueChunk on two or more nodes and whitespace")] public int TestReadValue_7() { string xml = @"<elem0> 123" + "\n" + @" <elem1>" + "\r" + @"123 <elem2> 123 </elem2>" + "\r\n" + @" 123</elem1> 123 </elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; int startPos = 0; int readSize = 3; int currentSize = 0; try { while (DataReader.Read()) { DataReader.Read(); if (DataReader.NodeType == XmlNodeType.Text || DataReader.NodeType == XmlNodeType.None) continue; currentSize = DataReader.ReadValueChunk(chars, startPos, readSize); CError.Equals(currentSize, 3, "size"); CError.Equals(DataReader.LineNumber, 0, "LineNumber"); CError.Equals(DataReader.LinePosition, 0, "LinePosition"); } } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } [Variation("Call ReadValueChunk on two or more nodes and whitespace after call Value")] public int TestReadValue_8() { string xml = @"<elem0> 123" + "\n" + @" <elem1>" + "\r" + @"123 <elem2> 123 </elem2>" + "\r\n" + @" 123</elem1> 123 </elem0>"; ReloadSource(new StringReader(xml)); char[] chars = new char[100]; int startPos = 0; int readSize = 3; int currentSize = 0; try { while (DataReader.Read()) { DataReader.Read(); if (DataReader.NodeType == XmlNodeType.Text || DataReader.NodeType == XmlNodeType.None) continue; CError.Equals(DataReader.Value.Contains("123"), "Value"); currentSize = DataReader.ReadValueChunk(chars, startPos, readSize); CError.Equals(currentSize, 3, "size"); CError.Equals(DataReader.LineNumber, 0, "LineNumber"); CError.Equals(DataReader.LinePosition, 0, "LinePosition"); } } catch (NotSupportedException e) { CError.WriteLine(e); } DataReader.Close(); return TEST_PASS; } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/Max.Vector128.Int32.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 Max_Vector128_Int32() { var test = new SimpleBinaryOpTest__Max_Vector128_Int32(); 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 SimpleBinaryOpTest__Max_Vector128_Int32 { 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(Int32[] inArray1, Int32[] inArray2, Int32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); 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<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, 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<Int32> _fld1; public Vector128<Int32> _fld2; 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>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__Max_Vector128_Int32 testClass) { var result = AdvSimd.Max(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__Max_Vector128_Int32 testClass) { fixed (Vector128<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, 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 RetElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32); private static Int32[] _data1 = new Int32[Op1ElementCount]; private static Int32[] _data2 = new Int32[Op2ElementCount]; private static Vector128<Int32> _clsVar1; private static Vector128<Int32> _clsVar2; private Vector128<Int32> _fld1; private Vector128<Int32> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__Max_Vector128_Int32() { 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>>()); } public SimpleBinaryOpTest__Max_Vector128_Int32() { 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 < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } _dataTable = new DataTable(_data1, _data2, 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.Max( Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_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 = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_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(AdvSimd).GetMethod(nameof(AdvSimd.Max), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Max), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Max( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Int32>* pClsVar1 = &_clsVar1) fixed (Vector128<Int32>* pClsVar2 = &_clsVar2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(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<Vector128<Int32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr); var result = AdvSimd.Max(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _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 result = AdvSimd.Max(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__Max_Vector128_Int32(); var result = AdvSimd.Max(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__Max_Vector128_Int32(); fixed (Vector128<Int32>* pFld1 = &test._fld1) fixed (Vector128<Int32>* pFld2 = &test._fld2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Max(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(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 = AdvSimd.Max(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 = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&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(Vector128<Int32> op1, Vector128<Int32> op2, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; 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.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; 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 outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Int32[] left, Int32[] right, Int32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.Max(left[i], right[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.Max)}<Int32>(Vector128<Int32>, Vector128<Int32>): {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.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 Max_Vector128_Int32() { var test = new SimpleBinaryOpTest__Max_Vector128_Int32(); 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 SimpleBinaryOpTest__Max_Vector128_Int32 { 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(Int32[] inArray1, Int32[] inArray2, Int32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); 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<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, 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<Int32> _fld1; public Vector128<Int32> _fld2; 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>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__Max_Vector128_Int32 testClass) { var result = AdvSimd.Max(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__Max_Vector128_Int32 testClass) { fixed (Vector128<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, 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 RetElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32); private static Int32[] _data1 = new Int32[Op1ElementCount]; private static Int32[] _data2 = new Int32[Op2ElementCount]; private static Vector128<Int32> _clsVar1; private static Vector128<Int32> _clsVar2; private Vector128<Int32> _fld1; private Vector128<Int32> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__Max_Vector128_Int32() { 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>>()); } public SimpleBinaryOpTest__Max_Vector128_Int32() { 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 < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } _dataTable = new DataTable(_data1, _data2, 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.Max( Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_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 = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_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(AdvSimd).GetMethod(nameof(AdvSimd.Max), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Max), new Type[] { typeof(Vector128<Int32>), typeof(Vector128<Int32>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Max( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Int32>* pClsVar1 = &_clsVar1) fixed (Vector128<Int32>* pClsVar2 = &_clsVar2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(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<Vector128<Int32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr); var result = AdvSimd.Max(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _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 result = AdvSimd.Max(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__Max_Vector128_Int32(); var result = AdvSimd.Max(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__Max_Vector128_Int32(); fixed (Vector128<Int32>* pFld1 = &test._fld1) fixed (Vector128<Int32>* pFld2 = &test._fld2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Max(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(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 = AdvSimd.Max(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 = AdvSimd.Max( AdvSimd.LoadVector128((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&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(Vector128<Int32> op1, Vector128<Int32> op2, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; 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.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; 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 outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Int32[] left, Int32[] right, Int32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.Max(left[i], right[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.Max)}<Int32>(Vector128<Int32>, Vector128<Int32>): {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,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/HardwareIntrinsics/General/Vector64/Max.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 MaxDouble() { var test = new VectorBinaryOpTest__MaxDouble(); // 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__MaxDouble { 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 Vector64<Double> _fld1; public Vector64<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<Vector64<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); return testStruct; } public void RunStructFldScenario(VectorBinaryOpTest__MaxDouble testClass) { var result = Vector64.Max(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector64<Double> _clsVar1; private static Vector64<Double> _clsVar2; private Vector64<Double> _fld1; private Vector64<Double> _fld2; private DataTable _dataTable; static VectorBinaryOpTest__MaxDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); } public VectorBinaryOpTest__MaxDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<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 = Vector64.Max( Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<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(Vector64).GetMethod(nameof(Vector64.Max), new Type[] { typeof(Vector64<Double>), typeof(Vector64<Double>) }); if (method is null) { method = typeof(Vector64).GetMethod(nameof(Vector64.Max), 1, new Type[] { typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(Double)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<Double>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector64.Max( _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<Vector64<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector64<Double>>(_dataTable.inArray2Ptr); var result = Vector64.Max(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBinaryOpTest__MaxDouble(); var result = Vector64.Max(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 = Vector64.Max(_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 = Vector64.Max(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(Vector64<Double> op1, Vector64<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<Vector64<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<Vector64<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector64<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Double>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Double[] left, Double[] right, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != ((left[0] > right[0]) ? left[0] : right[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != ((left[i] > right[i]) ? left[i] : right[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.{nameof(Vector64.Max)}<Double>(Vector64<Double>, Vector64<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 MaxDouble() { var test = new VectorBinaryOpTest__MaxDouble(); // 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__MaxDouble { 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 Vector64<Double> _fld1; public Vector64<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<Vector64<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); return testStruct; } public void RunStructFldScenario(VectorBinaryOpTest__MaxDouble testClass) { var result = Vector64.Max(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector64<Double> _clsVar1; private static Vector64<Double> _clsVar2; private Vector64<Double> _fld1; private Vector64<Double> _fld2; private DataTable _dataTable; static VectorBinaryOpTest__MaxDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); } public VectorBinaryOpTest__MaxDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector64<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 = Vector64.Max( Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<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(Vector64).GetMethod(nameof(Vector64.Max), new Type[] { typeof(Vector64<Double>), typeof(Vector64<Double>) }); if (method is null) { method = typeof(Vector64).GetMethod(nameof(Vector64.Max), 1, new Type[] { typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector64<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(Double)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector64<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector64<Double>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector64.Max( _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<Vector64<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector64<Double>>(_dataTable.inArray2Ptr); var result = Vector64.Max(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBinaryOpTest__MaxDouble(); var result = Vector64.Max(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 = Vector64.Max(_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 = Vector64.Max(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(Vector64<Double> op1, Vector64<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<Vector64<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<Vector64<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector64<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Double>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Double[] left, Double[] right, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != ((left[0] > right[0]) ? left[0] : right[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != ((left[i] > right[i]) ? left[i] : right[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.{nameof(Vector64.Max)}<Double>(Vector64<Double>, Vector64<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,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.Aot.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 Internal.IL; using Internal.IL.Stubs; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem.Interop { public static partial class MarshalHelpers { public static bool IsStructMarshallingRequired(TypeDesc typeDesc) { if (typeDesc is ByRefType) { typeDesc = typeDesc.GetParameterType(); } typeDesc = typeDesc.UnderlyingType; // TODO: There are primitive types which require marshalling, such as bool, char. if (typeDesc.IsPrimitive) { return false; } MetadataType type = typeDesc as MetadataType; if (type == null) { return false; } // // For struct marshalling it is required to have either Sequential // or Explicit layout. For Auto layout the P/Invoke marshalling code // will throw appropriate error message. // if (!type.HasLayout()) return false; if (!type.IsValueType) return true; // If it is not blittable we will need struct marshalling return !MarshalUtils.IsBlittableType(type); } internal static TypeDesc GetNativeMethodParameterType(TypeDesc type, MarshalAsDescriptor marshalAs, InteropStateManager interopStateManager, bool isReturn, bool isAnsi) { MarshallerKind elementMarshallerKind; MarshallerKind marshallerKind = MarshalHelpers.GetMarshallerKind(type, null, /* parameterIndex */ null, /* customModifierData */ marshalAs, isReturn, isAnsi, MarshallerType.Argument, out elementMarshallerKind); return GetNativeTypeFromMarshallerKind(type, marshallerKind, elementMarshallerKind, interopStateManager, marshalAs); } internal static TypeDesc GetNativeStructFieldType(TypeDesc type, MarshalAsDescriptor marshalAs, InteropStateManager interopStateManager, bool isAnsi) { MarshallerKind elementMarshallerKind; MarshallerKind marshallerKind = MarshalHelpers.GetMarshallerKind(type, null, /* parameterIndex */ null, /* customModifierData */ marshalAs, false, /* isReturn */ isAnsi, /* isAnsi */ MarshallerType.Field, out elementMarshallerKind); return GetNativeTypeFromMarshallerKind(type, marshallerKind, elementMarshallerKind, interopStateManager, marshalAs); } internal static InlineArrayCandidate GetInlineArrayCandidate(TypeDesc managedElementType, MarshallerKind elementMarshallerKind, InteropStateManager interopStateManager, MarshalAsDescriptor marshalAs) { TypeDesc nativeType = GetNativeTypeFromMarshallerKind( managedElementType, elementMarshallerKind, MarshallerKind.Unknown, interopStateManager, null); var elementNativeType = nativeType as MetadataType; if (elementNativeType == null) { Debug.Assert(nativeType.IsPointer || nativeType.IsFunctionPointer); // If it is a pointer type we will create InlineArray for IntPtr elementNativeType = (MetadataType)managedElementType.Context.GetWellKnownType(WellKnownType.IntPtr); } Debug.Assert(marshalAs != null && marshalAs.SizeConst.HasValue); // if SizeConst is not specified, we will default to 1. // the marshaller will throw appropriate exception uint size = 1; if (marshalAs.SizeConst.HasValue) { size = marshalAs.SizeConst.Value; } return new InlineArrayCandidate(elementNativeType, size); } //TODO: https://github.com/dotnet/corert/issues/2675 // This exception messages need to localized // TODO: Log as warning public static MethodIL EmitExceptionBody(string message, MethodDesc method) { ILEmitter emitter = new ILEmitter(); TypeSystemContext context = method.Context; MethodSignature ctorSignature = new MethodSignature(0, 0, context.GetWellKnownType(WellKnownType.Void), new TypeDesc[] { context.GetWellKnownType(WellKnownType.String) }); MethodDesc exceptionCtor = InteropTypes.GetMarshalDirectiveException(context).GetKnownMethod(".ctor", ctorSignature); ILCodeStream codeStream = emitter.NewCodeStream(); codeStream.Emit(ILOpcode.ldstr, emitter.NewToken(message)); codeStream.Emit(ILOpcode.newobj, emitter.NewToken(exceptionCtor)); codeStream.Emit(ILOpcode.throw_); return new PInvokeILStubMethodIL((ILStubMethodIL)emitter.Link(method), isStubRequired: true); } } }
// 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 Internal.IL; using Internal.IL.Stubs; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem.Interop { public static partial class MarshalHelpers { public static bool IsStructMarshallingRequired(TypeDesc typeDesc) { if (typeDesc is ByRefType) { typeDesc = typeDesc.GetParameterType(); } typeDesc = typeDesc.UnderlyingType; // TODO: There are primitive types which require marshalling, such as bool, char. if (typeDesc.IsPrimitive) { return false; } MetadataType type = typeDesc as MetadataType; if (type == null) { return false; } // // For struct marshalling it is required to have either Sequential // or Explicit layout. For Auto layout the P/Invoke marshalling code // will throw appropriate error message. // if (!type.HasLayout()) return false; if (!type.IsValueType) return true; // If it is not blittable we will need struct marshalling return !MarshalUtils.IsBlittableType(type); } internal static TypeDesc GetNativeMethodParameterType(TypeDesc type, MarshalAsDescriptor marshalAs, InteropStateManager interopStateManager, bool isReturn, bool isAnsi) { MarshallerKind elementMarshallerKind; MarshallerKind marshallerKind = MarshalHelpers.GetMarshallerKind(type, null, /* parameterIndex */ null, /* customModifierData */ marshalAs, isReturn, isAnsi, MarshallerType.Argument, out elementMarshallerKind); return GetNativeTypeFromMarshallerKind(type, marshallerKind, elementMarshallerKind, interopStateManager, marshalAs); } internal static TypeDesc GetNativeStructFieldType(TypeDesc type, MarshalAsDescriptor marshalAs, InteropStateManager interopStateManager, bool isAnsi) { MarshallerKind elementMarshallerKind; MarshallerKind marshallerKind = MarshalHelpers.GetMarshallerKind(type, null, /* parameterIndex */ null, /* customModifierData */ marshalAs, false, /* isReturn */ isAnsi, /* isAnsi */ MarshallerType.Field, out elementMarshallerKind); return GetNativeTypeFromMarshallerKind(type, marshallerKind, elementMarshallerKind, interopStateManager, marshalAs); } internal static InlineArrayCandidate GetInlineArrayCandidate(TypeDesc managedElementType, MarshallerKind elementMarshallerKind, InteropStateManager interopStateManager, MarshalAsDescriptor marshalAs) { TypeDesc nativeType = GetNativeTypeFromMarshallerKind( managedElementType, elementMarshallerKind, MarshallerKind.Unknown, interopStateManager, null); var elementNativeType = nativeType as MetadataType; if (elementNativeType == null) { Debug.Assert(nativeType.IsPointer || nativeType.IsFunctionPointer); // If it is a pointer type we will create InlineArray for IntPtr elementNativeType = (MetadataType)managedElementType.Context.GetWellKnownType(WellKnownType.IntPtr); } Debug.Assert(marshalAs != null && marshalAs.SizeConst.HasValue); // if SizeConst is not specified, we will default to 1. // the marshaller will throw appropriate exception uint size = 1; if (marshalAs.SizeConst.HasValue) { size = marshalAs.SizeConst.Value; } return new InlineArrayCandidate(elementNativeType, size); } //TODO: https://github.com/dotnet/corert/issues/2675 // This exception messages need to localized // TODO: Log as warning public static MethodIL EmitExceptionBody(string message, MethodDesc method) { ILEmitter emitter = new ILEmitter(); TypeSystemContext context = method.Context; MethodSignature ctorSignature = new MethodSignature(0, 0, context.GetWellKnownType(WellKnownType.Void), new TypeDesc[] { context.GetWellKnownType(WellKnownType.String) }); MethodDesc exceptionCtor = InteropTypes.GetMarshalDirectiveException(context).GetKnownMethod(".ctor", ctorSignature); ILCodeStream codeStream = emitter.NewCodeStream(); codeStream.Emit(ILOpcode.ldstr, emitter.NewToken(message)); codeStream.Emit(ILOpcode.newobj, emitter.NewToken(exceptionCtor)); codeStream.Emit(ILOpcode.throw_); return new PInvokeILStubMethodIL((ILStubMethodIL)emitter.Link(method), isStubRequired: true); } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Net.Quic/src/System.Net.Quic.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)</TargetFrameworks> <Nullable>enable</Nullable> </PropertyGroup> <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> <PropertyGroup> <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier> <DefineConstants Condition="'$(TargetPlatformIdentifier)' == 'FreeBSD' or '$(TargetPlatformIdentifier)' == 'OSX'">$(DefineConstants);SOCKADDR_HAS_LENGTH</DefineConstants> <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == ''">SR.SystemNetQuic_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage> </PropertyGroup> <!-- Source files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' != ''"> <Compile Include="System\Net\Quic\*.cs" /> <Compile Include="System\Net\Quic\Implementations\*.cs" /> <Compile Include="System\Net\Quic\Implementations\Mock\*.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\*.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Internal\*.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicAlpnHelper.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicEnums.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicNativeMethods.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusHelper.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicTraceHelper.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicConfigurationHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicConnectionHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicListenerHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicRegistrationHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicStreamHandle.cs" /> <Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs"> <Link>Common\DisableRuntimeMarshalling.cs</Link> </Compile> <!-- System.Net common --> <Compile Include="$(CommonPath)System\Threading\Tasks\TaskToApm.cs" Link="Common\System\Threading\Tasks\TaskToApm.cs" /> <Compile Include="$(CommonPath)System\Net\ArrayBuffer.cs" Link="Common\System\Net\ArrayBuffer.cs" /> <Compile Include="$(CommonPath)System\Net\MultiArrayBuffer.cs" Link="Common\System\Net\MultiArrayBuffer.cs" /> <Compile Include="$(CommonPath)System\Net\Logging\NetEventSource.Common.cs" Link="Common\System\Net\Logging\NetEventSource.Common.cs" /> <Compile Include="$(CommonPath)System\Net\StreamBuffer.cs" Link="Common\System\Net\StreamBuffer.cs" /> </ItemGroup> <!-- Windows specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'"> <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs" Link="Common\Interop\Windows\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" Link="Common\Interop\Windows\Crypt32\Interop.Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.Interop.CRYPT_BIT_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates_types.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates_types.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.MsgEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.Interop.MsgEncodingType.cs" /> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.Windows.cs" Link="Common\System\Net\Security\CertificateValidation.Windows.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.Windows.cs" /> </ItemGroup> <!-- Unix (OSX + Linux) specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Linux' or '$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'FreeBSD'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Name.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Name.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Net.Security.Native\Interop.Initialization.cs" Link="Common\Interop\Unix\System.Net.Security.Native\Interop.Initialization.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHandleCache.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHandleCache.cs" /> </ItemGroup> <!-- Linux specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Linux'"> <Compile Include="$(CommonPath)Interop\Linux\Interop.Libraries.cs" Link="Common\Interop\Linux\Interop.Libraries.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.Linux.cs" /> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.Unix.cs" Link="Common\System\Net\Security\CertificateValidation.Unix.cs" /> </ItemGroup> <!-- FreeBSD specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'FreeBSD' "> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.Unix.cs" Link="Common\System\Net\Security\CertificateValidation.Unix.cs" /> <Compile Include="$(CommonPath)Interop\FreeBSD\Interop.Libraries.cs" Link="Common\Interop\FreeBSD\Interop.Libraries.cs" /> <!-- Assume similarity with OSX for now --> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.OSX.cs" /> </ItemGroup> <!-- OSX specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'OSX'"> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.OSX.cs" Link="Common\System\Net\Security\CertificateValidation.OSX.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.Libraries.cs" Link="Common\Interop\OSX\Interop.Libraries.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.OSX.cs" /> </ItemGroup> <!-- Project references --> <ItemGroup> <PackageReference Include="System.Net.MsQuic.Transport" Version="$(SystemNetMsQuicTransportVersion)" PrivateAssets="all" GeneratePathProperty="true" Condition="'$(DotNetBuildFromSource)' != 'true'" /> </ItemGroup> <ItemGroup> <Reference Include="System.Collections" /> <Reference Include="System.Collections.Concurrent" /> <Reference Include="System.Collections.NonGeneric" /> <Reference Include="System.Console" Condition="'$(Configuration)' == 'Debug'" /> <Reference Include="System.Diagnostics.Tracing" /> <Reference Include="System.Memory" /> <Reference Include="System.Net.Primitives" /> <Reference Include="System.Net.Security" /> <Reference Include="System.Net.Sockets" /> <Reference Include="System.Runtime" /> <Reference Include="System.Runtime.CompilerServices.Unsafe" /> <Reference Include="System.Runtime.InteropServices" /> <Reference Include="System.Security.Cryptography" /> <Reference Include="System.Security.Cryptography.X509Certificates" /> <Reference Include="System.Threading" /> <Reference Include="System.Threading.Channels" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Linux' or '$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'FreeBSD'"> <Reference Include="System.Diagnostics.StackTrace" Condition="'$(Configuration)' == 'Debug'" /> <Reference Include="System.Security.Cryptography.OpenSsl" /> </ItemGroup> <!-- Support for deploying msquic --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows' and ('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'x86') and '$(DotNetBuildFromSource)' != 'true'"> <BinPlaceDir Include="$(MicrosoftNetCoreAppRuntimePackNativeDir)" ItemName="NativeBinPlaceItem" /> <BinPlaceDir Include="$(NetCoreAppCurrentTestHostSharedFrameworkPath)" ItemName="NativeBinPlaceItem" /> <BinPlaceDir Include="$(LibrariesAllBinArtifactsPath)" ItemName="NativeBinPlaceItem" /> <BinPlaceDir Include="$(LibrariesNativeArtifactsPath)" ItemName="NativeBinPlaceItem" /> <NativeBinPlaceItem Include="$(PkgSystem_Net_MsQuic_Transport)\runtimes\win10-$(TargetArchitecture)\native\*" /> </ItemGroup> <ItemGroup> <Content Include="libmsquic.dylib" Condition="Exists('libmsquic.dylib')"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Include="libmsquic.so" Condition="Exists('libmsquic.so')"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Include="libmsquic.lttng.so" Condition="Exists('libmsquic.lttng.so')"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)</TargetFrameworks> <Nullable>enable</Nullable> </PropertyGroup> <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> <PropertyGroup> <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier> <DefineConstants Condition="'$(TargetPlatformIdentifier)' == 'FreeBSD' or '$(TargetPlatformIdentifier)' == 'OSX'">$(DefineConstants);SOCKADDR_HAS_LENGTH</DefineConstants> <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == ''">SR.SystemNetQuic_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage> </PropertyGroup> <!-- Source files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' != ''"> <Compile Include="System\Net\Quic\*.cs" /> <Compile Include="System\Net\Quic\Implementations\*.cs" /> <Compile Include="System\Net\Quic\Implementations\Mock\*.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\*.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Internal\*.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicAlpnHelper.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicEnums.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicNativeMethods.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusHelper.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicTraceHelper.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicConfigurationHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicConnectionHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicListenerHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicRegistrationHandle.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\SafeMsQuicStreamHandle.cs" /> <Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs"> <Link>Common\DisableRuntimeMarshalling.cs</Link> </Compile> <!-- System.Net common --> <Compile Include="$(CommonPath)System\Threading\Tasks\TaskToApm.cs" Link="Common\System\Threading\Tasks\TaskToApm.cs" /> <Compile Include="$(CommonPath)System\Net\ArrayBuffer.cs" Link="Common\System\Net\ArrayBuffer.cs" /> <Compile Include="$(CommonPath)System\Net\MultiArrayBuffer.cs" Link="Common\System\Net\MultiArrayBuffer.cs" /> <Compile Include="$(CommonPath)System\Net\Logging\NetEventSource.Common.cs" Link="Common\System\Net\Logging\NetEventSource.Common.cs" /> <Compile Include="$(CommonPath)System\Net\StreamBuffer.cs" Link="Common\System\Net\StreamBuffer.cs" /> </ItemGroup> <!-- Windows specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'"> <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs" Link="Common\Interop\Windows\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" Link="Common\Interop\Windows\Crypt32\Interop.Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.Interop.CRYPT_BIT_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates_types.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates_types.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.MsgEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.Interop.MsgEncodingType.cs" /> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.Windows.cs" Link="Common\System\Net\Security\CertificateValidation.Windows.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.Windows.cs" /> </ItemGroup> <!-- Unix (OSX + Linux) specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Linux' or '$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'FreeBSD'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.SetProtocolOptions.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Name.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Name.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Net.Security.Native\Interop.Initialization.cs" Link="Common\Interop\Unix\System.Net.Security.Native\Interop.Initialization.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHandleCache.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHandleCache.cs" /> </ItemGroup> <!-- Linux specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Linux'"> <Compile Include="$(CommonPath)Interop\Linux\Interop.Libraries.cs" Link="Common\Interop\Linux\Interop.Libraries.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.Linux.cs" /> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.Unix.cs" Link="Common\System\Net\Security\CertificateValidation.Unix.cs" /> </ItemGroup> <!-- FreeBSD specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'FreeBSD' "> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.Unix.cs" Link="Common\System\Net\Security\CertificateValidation.Unix.cs" /> <Compile Include="$(CommonPath)Interop\FreeBSD\Interop.Libraries.cs" Link="Common\Interop\FreeBSD\Interop.Libraries.cs" /> <!-- Assume similarity with OSX for now --> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.OSX.cs" /> </ItemGroup> <!-- OSX specific files --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'OSX'"> <Compile Include="$(CommonPath)System\Net\Security\CertificateValidation.OSX.cs" Link="Common\System\Net\Security\CertificateValidation.OSX.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.Libraries.cs" Link="Common\Interop\OSX\Interop.Libraries.cs" /> <Compile Include="System\Net\Quic\Implementations\MsQuic\Interop\MsQuicStatusCodes.OSX.cs" /> </ItemGroup> <!-- Project references --> <ItemGroup> <PackageReference Include="System.Net.MsQuic.Transport" Version="$(SystemNetMsQuicTransportVersion)" PrivateAssets="all" GeneratePathProperty="true" Condition="'$(DotNetBuildFromSource)' != 'true'" /> </ItemGroup> <ItemGroup> <Reference Include="System.Collections" /> <Reference Include="System.Collections.Concurrent" /> <Reference Include="System.Collections.NonGeneric" /> <Reference Include="System.Console" Condition="'$(Configuration)' == 'Debug'" /> <Reference Include="System.Diagnostics.Tracing" /> <Reference Include="System.Memory" /> <Reference Include="System.Net.Primitives" /> <Reference Include="System.Net.Security" /> <Reference Include="System.Net.Sockets" /> <Reference Include="System.Runtime" /> <Reference Include="System.Runtime.CompilerServices.Unsafe" /> <Reference Include="System.Runtime.InteropServices" /> <Reference Include="System.Security.Cryptography" /> <Reference Include="System.Security.Cryptography.X509Certificates" /> <Reference Include="System.Threading" /> <Reference Include="System.Threading.Channels" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Linux' or '$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'FreeBSD'"> <Reference Include="System.Diagnostics.StackTrace" Condition="'$(Configuration)' == 'Debug'" /> <Reference Include="System.Security.Cryptography.OpenSsl" /> </ItemGroup> <!-- Support for deploying msquic --> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows' and ('$(TargetArchitecture)' == 'x64' or '$(TargetArchitecture)' == 'x86') and '$(DotNetBuildFromSource)' != 'true'"> <BinPlaceDir Include="$(MicrosoftNetCoreAppRuntimePackNativeDir)" ItemName="NativeBinPlaceItem" /> <BinPlaceDir Include="$(NetCoreAppCurrentTestHostSharedFrameworkPath)" ItemName="NativeBinPlaceItem" /> <BinPlaceDir Include="$(LibrariesAllBinArtifactsPath)" ItemName="NativeBinPlaceItem" /> <BinPlaceDir Include="$(LibrariesNativeArtifactsPath)" ItemName="NativeBinPlaceItem" /> <NativeBinPlaceItem Include="$(PkgSystem_Net_MsQuic_Transport)\runtimes\win10-$(TargetArchitecture)\native\*" /> </ItemGroup> <ItemGroup> <Content Include="libmsquic.dylib" Condition="Exists('libmsquic.dylib')"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Include="libmsquic.so" Condition="Exists('libmsquic.so')"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Include="libmsquic.lttng.so" Condition="Exists('libmsquic.lttng.so')"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/HardwareIntrinsics/X86/Avx2_Vector128/MaskStore.UInt32.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.Reflection; 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 MaskStoreUInt32() { var test = new StoreBinaryOpTest__MaskStoreUInt32(); 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 StoreBinaryOpTest__MaskStoreUInt32 { private struct TestStruct { public Vector128<UInt32> _fld1; public Vector128<UInt32> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); return testStruct; } public void RunStructFldScenario(StoreBinaryOpTest__MaskStoreUInt32 testClass) { Avx2.MaskStore((UInt32*)testClass._dataTable.outArrayPtr, _fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static UInt32[] _data2 = new UInt32[Op2ElementCount]; private static Vector128<UInt32> _clsVar1; private static Vector128<UInt32> _clsVar2; private Vector128<UInt32> _fld1; private Vector128<UInt32> _fld2; private SimpleBinaryOpTest__DataTable<UInt32, UInt32, UInt32> _dataTable; static StoreBinaryOpTest__MaskStoreUInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); } public StoreBinaryOpTest__MaskStoreUInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new SimpleBinaryOpTest__DataTable<UInt32, UInt32, UInt32>(_data1, _data2, new UInt32[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, Sse2.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray2Ptr)) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); typeof(Avx2).GetMethod(nameof(Avx2.MaskStore), new Type[] { typeof(UInt32*), typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.outArrayPtr, typeof(UInt32*)), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); typeof(Avx2).GetMethod(nameof(Avx2.MaskStore), new Type[] { typeof(UInt32*), typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.outArrayPtr, typeof(UInt32*)), Sse2.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); typeof(Avx2).GetMethod(nameof(Avx2.MaskStore), new Type[] { typeof(UInt32*), typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.outArrayPtr, typeof(UInt32*)), Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray2Ptr)) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var left = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr); var right = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, left, right); ValidateResult(left, right, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var left = Sse2.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)); var right = Sse2.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, left, right); ValidateResult(left, right, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var left = Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray1Ptr)); var right = Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray2Ptr)); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, left, right); ValidateResult(left, right, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new StoreBinaryOpTest__MaskStoreUInt32(); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, _fld1, _fld2); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, test._fld1, test._fld2); ValidateResult(test._fld1, 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(Vector128<UInt32> left, Vector128<UInt32> right, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), left); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), right); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* left, void* right, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(right), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(UInt32[] left, UInt32[] right, UInt32[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != (((left[0] & (1U << 31)) != 0) ? right[0] : result[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != (((left[i] & (1U << 31)) != 0) ? right[i] : result[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.MaskStore)}<UInt32>(Vector128<UInt32>, Vector128<UInt32>): {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.Reflection; 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 MaskStoreUInt32() { var test = new StoreBinaryOpTest__MaskStoreUInt32(); 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 StoreBinaryOpTest__MaskStoreUInt32 { private struct TestStruct { public Vector128<UInt32> _fld1; public Vector128<UInt32> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); return testStruct; } public void RunStructFldScenario(StoreBinaryOpTest__MaskStoreUInt32 testClass) { Avx2.MaskStore((UInt32*)testClass._dataTable.outArrayPtr, _fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static UInt32[] _data2 = new UInt32[Op2ElementCount]; private static Vector128<UInt32> _clsVar1; private static Vector128<UInt32> _clsVar2; private Vector128<UInt32> _fld1; private Vector128<UInt32> _fld2; private SimpleBinaryOpTest__DataTable<UInt32, UInt32, UInt32> _dataTable; static StoreBinaryOpTest__MaskStoreUInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); } public StoreBinaryOpTest__MaskStoreUInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new SimpleBinaryOpTest__DataTable<UInt32, UInt32, UInt32>(_data1, _data2, new UInt32[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, Sse2.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray2Ptr)) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); typeof(Avx2).GetMethod(nameof(Avx2.MaskStore), new Type[] { typeof(UInt32*), typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.outArrayPtr, typeof(UInt32*)), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); typeof(Avx2).GetMethod(nameof(Avx2.MaskStore), new Type[] { typeof(UInt32*), typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.outArrayPtr, typeof(UInt32*)), Sse2.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); typeof(Avx2).GetMethod(nameof(Avx2.MaskStore), new Type[] { typeof(UInt32*), typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.outArrayPtr, typeof(UInt32*)), Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray2Ptr)) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); Avx2.MaskStore( (UInt32*)_dataTable.outArrayPtr, _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var left = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr); var right = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, left, right); ValidateResult(left, right, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var left = Sse2.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)); var right = Sse2.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, left, right); ValidateResult(left, right, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var left = Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray1Ptr)); var right = Sse2.LoadAlignedVector128((UInt32*)(_dataTable.inArray2Ptr)); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, left, right); ValidateResult(left, right, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new StoreBinaryOpTest__MaskStoreUInt32(); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, _fld1, _fld2); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); Avx2.MaskStore((UInt32*)_dataTable.outArrayPtr, test._fld1, test._fld2); ValidateResult(test._fld1, 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(Vector128<UInt32> left, Vector128<UInt32> right, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), left); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), right); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* left, void* right, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(left), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(right), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(UInt32[] left, UInt32[] right, UInt32[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != (((left[0] & (1U << 31)) != 0) ? right[0] : result[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != (((left[i] & (1U << 31)) != 0) ? right[i] : result[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.MaskStore)}<UInt32>(Vector128<UInt32>, Vector128<UInt32>): {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,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Methodical/refany/array3_il_d.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="array3.il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="array3.il" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/pal/tests/palsuite/miscellaneous/GetEnvironmentVariableA/test1/test.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** Source : test.c ** ** Purpose: Test for GetEnvironmentVariable() function ** Assign a properly sized buffer and get an environment ** variable, check to ensure it returns the correct values. ** ** **=========================================================*/ #include <palsuite.h> PALTEST(miscellaneous_GetEnvironmentVariableA_test1_paltest_getenvironmentvariablea_test1, "miscellaneous/GetEnvironmentVariableA/test1/paltest_getenvironmentvariablea_test1") { /* Define some buffers needed for the function */ char * pResultBuffer = NULL; int size = 0; /* A place to stash the returned values */ int ReturnValueForLargeBuffer = 0; /* * Initialize the PAL and return FAILURE if this fails */ if(0 != (PAL_Initialize(argc, argv))) { return FAIL; } /* Receive and allocate the correct amount of memory for the buffer */ size = ReturnValueForLargeBuffer = GetEnvironmentVariable("PATH", pResultBuffer, 0); pResultBuffer = (char*)malloc(size); if ( pResultBuffer == NULL ) { Fail("ERROR: Failed to allocate memory for pResultBuffer pointer. " "Can't properly exec test case without this.\n"); } /* Normal case, PATH should fit into this buffer */ ReturnValueForLargeBuffer = GetEnvironmentVariable("PATH", pResultBuffer, size); /* Ensure that it returned a positive value */ if(ReturnValueForLargeBuffer <= 0) { free(pResultBuffer); Fail("The return was %d, which indicates that the function failed.\n", ReturnValueForLargeBuffer); } /* Ensure that it succeeded and copied the correct number of characters. If this is true, then the return value should be one less of the size of the buffer. (Doesn't include that NULL byte) */ if(ReturnValueForLargeBuffer != size-1) { free(pResultBuffer); Fail("The value returned was %d when it should have been %d. " "This should be the number of characters copied, minus the " "NULL byte.\n",ReturnValueForLargeBuffer, size-1); } free(pResultBuffer); PAL_Terminate(); return PASS; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** Source : test.c ** ** Purpose: Test for GetEnvironmentVariable() function ** Assign a properly sized buffer and get an environment ** variable, check to ensure it returns the correct values. ** ** **=========================================================*/ #include <palsuite.h> PALTEST(miscellaneous_GetEnvironmentVariableA_test1_paltest_getenvironmentvariablea_test1, "miscellaneous/GetEnvironmentVariableA/test1/paltest_getenvironmentvariablea_test1") { /* Define some buffers needed for the function */ char * pResultBuffer = NULL; int size = 0; /* A place to stash the returned values */ int ReturnValueForLargeBuffer = 0; /* * Initialize the PAL and return FAILURE if this fails */ if(0 != (PAL_Initialize(argc, argv))) { return FAIL; } /* Receive and allocate the correct amount of memory for the buffer */ size = ReturnValueForLargeBuffer = GetEnvironmentVariable("PATH", pResultBuffer, 0); pResultBuffer = (char*)malloc(size); if ( pResultBuffer == NULL ) { Fail("ERROR: Failed to allocate memory for pResultBuffer pointer. " "Can't properly exec test case without this.\n"); } /* Normal case, PATH should fit into this buffer */ ReturnValueForLargeBuffer = GetEnvironmentVariable("PATH", pResultBuffer, size); /* Ensure that it returned a positive value */ if(ReturnValueForLargeBuffer <= 0) { free(pResultBuffer); Fail("The return was %d, which indicates that the function failed.\n", ReturnValueForLargeBuffer); } /* Ensure that it succeeded and copied the correct number of characters. If this is true, then the return value should be one less of the size of the buffer. (Doesn't include that NULL byte) */ if(ReturnValueForLargeBuffer != size-1) { free(pResultBuffer); Fail("The value returned was %d when it should have been %d. " "This should be the number of characters copied, minus the " "NULL byte.\n",ReturnValueForLargeBuffer, size-1); } free(pResultBuffer); PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/jit/dllmain.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #include "emit.h" #include "corexcep.h" #ifndef DLLEXPORT #define DLLEXPORT #endif // !DLLEXPORT extern void jitShutdown(bool processIsTerminating); /*****************************************************************************/ extern "C" DLLEXPORT BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID pvReserved) { if (dwReason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls((HINSTANCE)hInstance); } else if (dwReason == DLL_PROCESS_DETACH) { // From MSDN: If fdwReason is DLL_PROCESS_DETACH, lpvReserved is NULL if FreeLibrary has // been called or the DLL load failed and non-NULL if the process is terminating. bool processIsTerminating = (pvReserved != nullptr); jitShutdown(processIsTerminating); } return TRUE; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #include "emit.h" #include "corexcep.h" #ifndef DLLEXPORT #define DLLEXPORT #endif // !DLLEXPORT extern void jitShutdown(bool processIsTerminating); /*****************************************************************************/ extern "C" DLLEXPORT BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID pvReserved) { if (dwReason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls((HINSTANCE)hInstance); } else if (dwReason == DLL_PROCESS_DETACH) { // From MSDN: If fdwReason is DLL_PROCESS_DETACH, lpvReserved is NULL if FreeLibrary has // been called or the DLL load failed and non-NULL if the process is terminating. bool processIsTerminating = (pvReserved != nullptr); jitShutdown(processIsTerminating); } return TRUE; }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/reflection/regression/hfa/hfaParam.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="hfaParam.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="hfaParam.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.IO.Compression/src/System/IO/Compression/ZipArchiveEntry.Unix.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.IO.Compression { public partial class ZipArchiveEntry { internal const ZipVersionMadeByPlatform CurrentZipPlatform = ZipVersionMadeByPlatform.Unix; /// <summary> /// To get the file name of a ZipArchiveEntry, we should be parsing the FullName based /// on the path specifications and requirements of the OS that ZipArchive was created on. /// This method takes in a FullName and the platform of the ZipArchiveEntry and returns /// the platform-correct file name. /// </summary> /// <remarks>This method ensures no validation on the paths. Invalid characters are allowed.</remarks> internal static string ParseFileName(string path, ZipVersionMadeByPlatform madeByPlatform) => madeByPlatform == ZipVersionMadeByPlatform.Windows ? GetFileName_Windows(path) : GetFileName_Unix(path); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.IO.Compression { public partial class ZipArchiveEntry { internal const ZipVersionMadeByPlatform CurrentZipPlatform = ZipVersionMadeByPlatform.Unix; /// <summary> /// To get the file name of a ZipArchiveEntry, we should be parsing the FullName based /// on the path specifications and requirements of the OS that ZipArchive was created on. /// This method takes in a FullName and the platform of the ZipArchiveEntry and returns /// the platform-correct file name. /// </summary> /// <remarks>This method ensures no validation on the paths. Invalid characters are allowed.</remarks> internal static string ParseFileName(string path, ZipVersionMadeByPlatform madeByPlatform) => madeByPlatform == ZipVersionMadeByPlatform.Windows ? GetFileName_Windows(path) : GetFileName_Unix(path); } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/jit64/valuetypes/nullable/castclass/castclass/castclass038.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="castclass038.cs" /> <Compile Include="..\structdef.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="castclass038.cs" /> <Compile Include="..\structdef.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Directed/leave/filter1.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 { } .assembly extern xunit.core {} .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly filter1 { } .class private sealed VT extends [mscorlib]System.ValueType { .field public int32 m .field public static int32 n .method private specialname rtspecialname static void .cctor() il managed { // Code size 7 (0x7) .maxstack 20 IL_0000: ldc.i4.3 IL_0001: stsfld int32 VT::n IL_0006: ret } // end of method VT::.cctor } // end of class VT .class private sealed Days extends [mscorlib]System.Enum { .field public specialname rtspecialname int32 value__ .field public static literal value class Days Sun = int32(0x00000000) .field public static literal value class Days Mon = int32(0x00000001) } // end of class Days .class public sealed delegate1 extends [mscorlib]System.MulticastDelegate { .method public specialname rtspecialname instance void .ctor(class System.Object o, native unsigned int 'method') runtime managed { } // end of method delegate1::.ctor .method public virtual instance void Invoke() runtime managed { } // end of method delegate1::Invoke .method public newslot virtual instance class [mscorlib]System.IAsyncResult BeginInvoke(class [mscorlib]System.AsyncCallback callback, class System.Object o) runtime managed { } // end of method delegate1::BeginInvoke .method public newslot virtual instance void EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed { } // end of method delegate1::EndInvoke } // end of class delegate1 .class interface public abstract ITest { .method public newslot virtual abstract instance int32 test() il managed { } // end of method ITest::test } // end of class ITest .class public CTest extends [mscorlib]System.Object implements ITest { .field private class delegate1 dg .method public specialname instance void add_dg(class delegate1 'value') il managed synchronized { // Code size 24 (0x18) .maxstack 20 IL_0000: ldarg.0 IL_0001: ldarg.0 IL_0002: ldfld class delegate1 CTest::dg IL_0007: ldarg.1 IL_0008: call class [mscorlib]System.Delegate [mscorlib]System.Delegate::Combine(class [mscorlib]System.Delegate, class [mscorlib]System.Delegate) IL_000d: castclass delegate1 IL_0012: stfld class delegate1 CTest::dg IL_0017: ret } // end of method CTest::add_dg .method public specialname instance void remove_dg(class delegate1 'value') il managed synchronized { // Code size 24 (0x18) .maxstack 20 IL_0000: ldarg.0 IL_0001: ldarg.0 IL_0002: ldfld class delegate1 CTest::dg IL_0007: ldarg.1 IL_0008: call class [mscorlib]System.Delegate [mscorlib]System.Delegate::Remove(class [mscorlib]System.Delegate, class [mscorlib]System.Delegate) IL_000d: castclass delegate1 IL_0012: stfld class delegate1 CTest::dg IL_0017: ret } // end of method CTest::remove_dg .method public instance void f() il managed { // Code size 1 (0x1) .maxstack 20 IL_0000: ret } // end of method CTest::f .method public newslot final virtual instance int32 test() il managed { // Code size 6 (0x6) .maxstack 10 .locals (int32 V_0) IL_0000: ldc.i4.0 IL_0001: stloc.0 IL_0002: br.s IL_0004 IL_0004: ldloc.0 IL_0005: ret } // end of method CTest::test .method public specialname rtspecialname instance void .ctor() il managed { // Code size 7 (0x7) .maxstack 20 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method CTest::.ctor .event delegate1 dg { .addon instance void CTest::add_dg(class delegate1) .removeon instance void CTest::remove_dg(class delegate1) } // end of event CTest::dg } // end of class CTest .class public filter1 extends [mscorlib]System.Object { .method public static void f1() il managed { // Code size 6 (0x6) .maxstack 10 .try { IL_0000: leave.s IL_0005 } // end .try filter { pop ldc.i4.1 endfilter } { IL_0001: leave.s IL_0005 } catch [mscorlib]System.Object { //IL_0002: pop IL_0003: leave.s IL_0005 } // end handler IL_0005: ret } // end of method filter1::f1 .method public static void f2() il managed { // Code size 18 (0x12) .maxstack 10 .locals (int32 V_0, int32 V_1) IL_0000: ldc.i4 0xffff63c0 IL_0005: stloc.0 start_try2: ldc.i4 0xffff63c0 leave.s IL_0011 end_try2: // start_handler2: ldc.i4 0xffff63c0 leave.s IL_0011 end_handler2: // exception_filter: pop ldc.i4.1 endfilter start_filter2: ldc.i4 0xffff63c0 leave.s IL_0011 end_filter2: // .try start_try2 to end_try2 filter exception_filter handler start_filter2 to end_filter2 catch [mscorlib]System.Object handler start_handler2 to end_handler2 IL_0011: ret } // end of method filter1::f2 .method public static void f3() il managed { // Code size 38 (0x26) .maxstack 20 .locals (unsigned int32 V_0, unsigned int32 V_1, unsigned int32 V_2) ldc.i4 0x9c40 stloc.0 ldloc.0 stloc.2 ldloc.2 ldc.i4.1 beq.s BL_0016 ldloc.2 ldc.i4 0x9c40 beq.s BL_0018 br.s BL_0025 BL_0016: br.s BL_0025 start_try3: BL_0018: ldc.i4 0x9c40 BL_001e: leave.s BL_0023 end_try3: // exception_filter: pop ldc.i4.1 endfilter start_filter3: ldc.i4 0x9c40 leave.s BL_0023 end_filter3: // start_handler3: ldc.i4 0x9c40 BL_0021: leave.s BL_0023 end_handler3: // BL_0023: br.s BL_0025 BL_0025: ret .try start_try3 to end_try3 filter exception_filter handler start_filter3 to end_filter3 catch [mscorlib]System.Object handler start_handler3 to end_handler3 } // end of method filter1::f3 .method public static void f4() il managed { // Code size 28 (0x1c) .maxstack 20 .locals (int16 V_0, int16 V_1) ldc.i4 0xfffffc18 stloc.0 ldloc.0 ldc.i4 0x7d0 add ldc.i4.0 ble.s BL_001b .try { ldc.i4 0xfffffc18 //stloc.1 leave.s BL_001b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4 0xfffffc18 leave.s BL_001b } catch [mscorlib]System.Object { //pop leave.s BL_001b } // end handler BL_001b: ret } // end of method filter1::f4 .method public static void f5() il managed { // Code size 35 (0x23) .maxstack 20 .locals (unsigned int16 V_0, unsigned int16 V_1) ldc.i4 0x3e8 stloc.0 br.s BL_001d br start_try5 exception_filter: pop ldc.i4.1 endfilter start_filter5: ldc.i4 0x3e8 leave.s BL_0013 end_filter5: // start_try5: BL_0008: ldc.i4 0x3e8 //stloc.1 leave.s BL_0013 end_try5: // start_handler5: ldc.i4 0x3e8 leave.s BL_0013 end_handler5: // BL_0013: ldloc.0 conv.i4 ldc.i4 0x1f4 sub conv.u2 stloc.0 BL_001d: ldloc.0 conv.i4 ldc.i4.0 blt.s BL_0008 ret .try start_try5 to end_try5 filter exception_filter handler start_filter5 to end_filter5 catch [mscorlib]System.Object handler start_handler5 to end_handler5 } // end of method filter1::f5 .method public static void f6() il managed { // Code size 12 (0xc) .maxstack 10 .locals (unsigned int8 V_0, unsigned int8 V_1) IL_0000: ldc.i4.s 20 IL_0002: stloc.0 .try { IL_0003: ldc.i4.s 20 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.s 20 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.s 20 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f6 .method public static void f7() il managed { // Code size 12 (0xc) .maxstack 10 .locals (int8 V_0, int8 V_1) IL_0000: ldc.i4.s -20 IL_0002: stloc.0 .try { IL_0003: ldc.i4.s -20 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.s -20 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.s -20 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f7 .method public static void f8() il managed { // Code size 26 (0x1a) .maxstack 10 .locals (int64 V_0, int64 V_1) IL_0000: ldc.i8 0x8000000000000000 IL_0009: stloc.0 .try { IL_000a: ldc.i8 0x7fffffffffffffff //IL_0013: stloc.1 IL_0014: leave.s IL_0019 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i8 0x7fffffffffffffff leave.s IL_0019 } catch [mscorlib]System.Object { //IL_0016: pop ldc.i8 0x7fffffffffffffff IL_0017: leave.s IL_0019 } // end handler IL_0019: ret } // end of method filter1::f8 .method public static void f9() il managed { // Code size 12 (0xc) .maxstack 10 .locals (unsigned int64 V_0, unsigned int64 V_1) IL_0000: ldc.i4.0 IL_0001: conv.i8 IL_0002: stloc.0 .try { IL_0003: ldc.i4.m1 IL_0004: conv.i8 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.m1 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.m1 conv.i8 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f9 .method public static void f10() il managed { // Code size 12 (0xc) .maxstack 10 .locals (wchar V_0, wchar V_1) IL_0000: ldc.i4.s 49 IL_0002: stloc.0 .try { IL_0003: ldc.i4.s 65 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.s 49 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.s 65 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f10 .method public static void f11() il managed { // Code size 18 (0x12) .maxstack 10 .locals (float32 V_0, float32 V_1) IL_0000: ldc.r4 (E1 7A 24 C0) IL_0005: stloc.0 .try { IL_0006: ldc.r4 (E1 7A 24 40) //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.r4 (E1 7A 24 C0) leave.s IL_0011 } catch [mscorlib]System.Object { //IL_000e: pop ldc.r4 (E1 7A 24 40) IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f11 .method public static void f12() il managed { // Code size 26 (0x1a) .maxstack 10 .locals (float64 V_0, float64 V_1) IL_0000: ldc.r8 -1.2888888888888881 IL_0009: stloc.0 .try { IL_000a: ldc.r8 1.2888888888888881 //IL_0013: stloc.1 IL_0014: leave.s IL_0019 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.r8 1.2888888888888881 leave.s IL_0019 } catch [mscorlib]System.Object { //IL_0016: pop ldc.r8 1.2888888888888881 IL_0017: leave.s IL_0019 } // end handler IL_0019: ret } // end of method filter1::f12 .method public static void f13() il managed { // Code size 10 (0xa) .maxstack 10 .locals (bool V_0, bool V_1) IL_0000: ldc.i4.1 IL_0001: stloc.0 .try { IL_0002: ldc.i4.0 //IL_0003: stloc.1 IL_0004: leave.s IL_0009 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.r8 1.2888888888888881 leave.s IL_0009 } catch [mscorlib]System.Object { //IL_0006: pop ldc.i4.0 IL_0007: leave.s IL_0009 } // end handler IL_0009: ret } // end of method filter1::f13 .method public static void f14() il managed { // Code size 40 (0x28) .maxstack 6 .locals (value class [mscorlib]System.Decimal V_0, value class [mscorlib]System.Decimal V_1) IL_0000: ldc.i4 0x2715 IL_0005: ldc.i4.0 IL_0006: ldc.i4.0 IL_0007: ldc.i4 0x80 IL_000c: ldc.i4.2 IL_000d: newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) IL_0012: stloc.0 start_try14: IL_0013: ldc.i4 0x676 IL_0018: ldc.i4.0 IL_0019: ldc.i4.0 IL_001a: ldc.i4.0 IL_001b: ldc.i4.3 IL_001c: newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) //IL_0021: stloc.1 IL_0022: leave.s IL_0027 end_try14: // start_handler14: //IL_0024: pop ldc.i4 0x676 ldc.i4.0 ldc.i4.0 ldc.i4.0 ldc.i4.3 newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) IL_0025: leave.s IL_0027 end_handler14: // exception_filter: pop ldc.i4.1 endfilter start_filter14: ldc.i4 0x676 ldc.i4.0 ldc.i4.0 ldc.i4.0 ldc.i4.3 newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) leave.s IL_0027 end_filter14: // .try start_try14 to end_try14 filter exception_filter handler start_filter14 to end_filter14 catch [mscorlib]System.Object handler start_handler14 to end_handler14 IL_0027: ret } // end of method filter1::f14 .method public static void f15() il managed { // Code size 76 (0x4c) .maxstack 20 .locals (value class VT V_0, int32 V_1, int32 V_2, value class VT V_3, int32 V_4, int32 V_5) IL_0000: ldloca.s V_0 IL_0002: initobj VT IL_0008: ldloca.s V_3 IL_000a: initobj VT IL_0010: ldloca.s V_0 IL_0012: ldc.i4 0xfffffed4 IL_0017: stfld int32 VT::m IL_001c: ldloca.s V_0 IL_001e: ldfld int32 VT::m IL_0023: stloc.1 IL_0024: ldsfld int32 VT::n IL_0029: stloc.2 .try { IL_002a: ldloca.s V_3 IL_002c: ldc.i4 0x12c IL_0031: stfld int32 VT::m IL_0036: ldloca.s V_3 IL_0038: ldfld int32 VT::m //IL_003d: stloc.s V_4 IL_003f: ldsfld int32 VT::n //IL_0044: stloc.s V_5 IL_0046: leave.s IL_004b } // end .try filter { pop ldc.i4.1 endfilter } { ldloca.s V_3 ldc.i4 0x12c stfld int32 VT::m ldloca.s V_3 ldfld int32 VT::m ldsfld int32 VT::n leave.s IL_004b } catch [mscorlib]System.Object { //IL_0048: pop ldloca.s V_3 ldc.i4 0x12c stfld int32 VT::m ldloca.s V_3 ldfld int32 VT::m //stloc.s V_4 ldsfld int32 VT::n //stloc.s V_5 IL_0049: leave.s IL_004b } // end handler IL_004b: ret } // end of method filter1::f15 .method public static void f16() il managed { // Code size 21 (0x15) .maxstack 10 .locals (value class Days V_0, value class Days V_1) IL_0000: ldc.i4.0 IL_0001: stloc.0 .try { IL_0002: ldc.i4.1 IL_0003: stloc.1 IL_0004: ldloc.1 IL_0005: box Days //IL_000a: call void [System.Console]System.Console::WriteLine(class System.Object) IL_000f: leave.s IL_0014 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.1 stloc.1 ldloc.1 box Days //call void [System.Console]System.Console::WriteLine(class System.Object) leave.s IL_0014 } catch [mscorlib]System.Object { //IL_0011: pop ldc.i4.1 stloc.1 ldloc.1 box Days //call void [System.Console]System.Console::WriteLine(class System.Object) IL_0012: leave.s IL_0014 } // end handler IL_0014: ret } // end of method filter1::f16 .method public static void f17() il managed { // Code size 18 (0x12) .maxstack 10 .locals (class System.Object V_0, class System.Object V_1) IL_0000: newobj instance void [mscorlib]System.Object::.ctor() IL_0005: stloc.0 .try { IL_0006: newobj instance void [mscorlib]System.Object::.ctor() //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void [mscorlib]System.Object::.ctor() leave.s IL_0011 } catch [mscorlib]System.Object { IL_000e: pop newobj instance void [mscorlib]System.Object::.ctor() //stloc.1 IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f17 .method public static void f18() il managed { // Code size 18 (0x12) .maxstack 10 .locals (class filter1 V_0, class filter1 V_1) IL_0000: newobj instance void filter1::.ctor() IL_0005: stloc.0 .try { IL_0006: newobj instance void filter1::.ctor() //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void filter1::.ctor() leave.s IL_0011 } catch [mscorlib]System.Object { IL_000e: pop newobj instance void filter1::.ctor() //stloc.1 IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f18 .method public static void f19() il managed { // Code size 18 (0x12) .maxstack 10 .locals (class System.String V_0, class System.String V_1) IL_0000: ldstr "test string" IL_0005: stloc.0 .try { IL_0006: ldstr "string test" //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { ldstr "string test" leave.s IL_0011 } catch [mscorlib]System.Object { //IL_000e: pop ldstr "string test" IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f19 .method public static void f20a() il managed { // Code size 44 (0x2c) .maxstack 20 .locals (int32[] V_0, int32[] V_1, int32 V_2, int32[] V_3) IL_0000: ldc.i4.2 IL_0001: newarr [mscorlib]System.Int32 IL_0006: stloc.3 IL_0007: ldloc.3 IL_0008: ldc.i4.0 IL_0009: ldc.i4.1 IL_000a: stelem.i4 IL_000b: ldloc.3 IL_000c: ldc.i4.1 IL_000d: ldc.i4.2 IL_000e: stelem.i4 IL_000f: ldloc.3 IL_0010: stloc.0 .try { IL_0011: ldc.i4.2 IL_0012: newarr [mscorlib]System.Int32 //IL_0017: stloc.3 //IL_0018: ldloc.3 //IL_0019: ldc.i4.0 //IL_001a: ldc.i4.3 //IL_001b: stelem.i4 //IL_001c: ldloc.3 //IL_001d: ldc.i4.1 //IL_001e: ldc.i4.4 //IL_001f: stelem.i4 //IL_0020: ldloc.3 //IL_0021: stloc.1 //IL_0022: ldloc.1 //IL_0023: ldc.i4.0 //IL_0024: ldelem.i4 //IL_0025: stloc.2 IL_0026: leave.s IL_002b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.2 newarr [mscorlib]System.Int32 leave.s IL_002b } catch [mscorlib]System.Object { //IL_0028: pop ldc.i4.2 newarr [mscorlib]System.Int32 IL_0029: leave.s IL_002b } // end handler IL_002b: ret } // end of method filter1::f20a .method public static void f20b() il managed { // Code size 44 (0x2c) .maxstack 20 .locals (int32[] V_0, int32[] V_1, int32 V_2, int32[] V_3) IL_0000: ldc.i4.2 IL_0001: newarr [mscorlib]System.Int32 IL_0006: stloc.3 IL_0007: ldloc.3 IL_0008: ldc.i4.0 IL_0009: ldc.i4.1 IL_000a: stelem.i4 IL_000b: ldloc.3 IL_000c: ldc.i4.1 IL_000d: ldc.i4.2 IL_000e: stelem.i4 IL_000f: ldloc.3 IL_0010: stloc.0 br start_try start_handler: //IL_0028: pop ldc.i4.2 newarr [mscorlib]System.Int32 stloc.3 ldloc.3 ldc.i4.0 ldc.i4.3 stelem.i4 ldloc.3 ldc.i4.1 ldc.i4.4 stelem.i4 ldloc.3 stloc.1 //get NullReferenceException exception if un-commented ldloc.1 ldc.i4.0 ldelem.i4 leave.s IL_002b end_handler: // exception_filter: pop ldc.i4.1 endfilter start_filter: ldc.i4.2 newarr [mscorlib]System.Int32 stloc.3 ldloc.3 ldc.i4.0 ldc.i4.3 stelem.i4 ldloc.3 ldc.i4.1 ldc.i4.4 stelem.i4 ldloc.3 stloc.1 //get NullReferenceException exception if un-commented ldloc.1 ldc.i4.0 ldelem.i4 leave.s IL_002b end_filter: // start_try: IL_0011: ldc.i4.2 IL_0012: newarr [mscorlib]System.Int32 IL_0017: stloc.3 IL_0018: ldloc.3 IL_0019: ldc.i4.0 IL_001a: ldc.i4.3 IL_001b: stelem.i4 IL_001c: ldloc.3 IL_001d: ldc.i4.1 IL_001e: ldc.i4.4 IL_001f: stelem.i4 IL_0020: ldloc.3 IL_0021: stloc.1 IL_0022: ldloc.1 IL_0023: ldc.i4.0 IL_0024: ldelem.i4 //IL_0025: stloc.2 IL_0026: leave.s IL_002b end_try: // .try start_try to end_try filter exception_filter handler start_filter to end_filter catch [mscorlib]System.Object handler start_handler to end_handler IL_002b: ret } // end of method filter1::f20b .method public static void f21() il managed { // Code size 53 (0x35) .maxstack 20 .locals (int32[0...,0...] V_0, int32[0...,0...] V_1, int32 V_2) IL_0000: ldc.i4.2 IL_0001: ldc.i4.2 IL_0002: newobj instance void int32[0...,0...]::.ctor(int32, int32) IL_0007: dup IL_0008: ldtoken field value class '<GlobalName>'/'$$struct0x6000020-1' '<GlobalName>'::'$$method0x6000020-1' IL_000d: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0012: stloc.0 .try { IL_0013: ldc.i4.2 IL_0014: ldc.i4.2 IL_0015: newobj instance void int32[0...,0...]::.ctor(int32, int32) IL_001a: dup IL_001b: ldtoken field value class '<GlobalName>'/'$$struct0x6000020-2' '<GlobalName>'::'$$method0x6000020-2' IL_0020: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) //IL_0025: stloc.1 //IL_0026: ldloc.1 //IL_0027: ldc.i4.0 //IL_0028: ldc.i4.1 //IL_0029: call instance int32 int32[0...,0...]::Get(int32, // int32) //IL_002e: stloc.2 IL_002f: leave.s IL_0034 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.2 ldc.i4.2 newobj instance void int32[0...,0...]::.ctor(int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000020-2' '<GlobalName>'::'$$method0x6000020-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) leave.s IL_0034 } catch [mscorlib]System.Object { //IL_0031: pop ldc.i4.2 ldc.i4.2 newobj instance void int32[0...,0...]::.ctor(int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000020-2' '<GlobalName>'::'$$method0x6000020-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0032: leave.s IL_0034 } // end handler IL_0034: ret } // end of method filter1::f21 .method public static void f22() il managed { // Code size 56 (0x38) .maxstack 20 .locals (int32[0...,0...,0...] V_0, int32[0...,0...,0...] V_1, int32 V_2) IL_0000: ldc.i4.3 IL_0001: ldc.i4.1 IL_0002: ldc.i4.3 IL_0003: newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) IL_0008: dup IL_0009: ldtoken field value class '<GlobalName>'/'$$struct0x6000021-1' '<GlobalName>'::'$$method0x6000021-1' IL_000e: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0013: stloc.0 .try { IL_0014: ldc.i4.3 IL_0015: ldc.i4.1 IL_0016: ldc.i4.3 IL_0017: newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) IL_001c: dup IL_001d: ldtoken field value class '<GlobalName>'/'$$struct0x6000021-2' '<GlobalName>'::'$$method0x6000021-2' IL_0022: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0027: stloc.1 IL_0028: ldloc.1 IL_0029: ldc.i4.0 IL_002a: ldc.i4.0 IL_002b: ldc.i4.1 IL_002c: call instance int32 int32[0...,0...,0...]::Get(int32, int32, int32) //IL_0031: stloc.2 IL_0032: leave.s IL_0037 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.3 ldc.i4.1 ldc.i4.3 newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000021-2' '<GlobalName>'::'$$method0x6000021-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) stloc.1 ldloc.1 ldc.i4.0 ldc.i4.0 ldc.i4.1 call instance int32 int32[0...,0...,0...]::Get(int32, int32, int32) leave.s IL_0037 } catch [mscorlib]System.Object { //IL_0034: pop ldc.i4.3 ldc.i4.1 ldc.i4.3 newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000021-2' '<GlobalName>'::'$$method0x6000021-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) stloc.1 ldloc.1 ldc.i4.0 ldc.i4.0 ldc.i4.1 call instance int32 int32[0...,0...,0...]::Get(int32, int32, int32) IL_0035: leave.s IL_0037 } // end handler IL_0037: ret } // end of method filter1::f22 .method public static void f23() il managed { // Code size 32 (0x20) .maxstack 10 .locals (class CTest V_0, int32 V_1, class CTest V_2, int32 V_3) IL_0000: newobj instance void CTest::.ctor() IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: callvirt instance int32 CTest::test() IL_000c: stloc.1 .try { IL_000d: newobj instance void CTest::.ctor() IL_0012: stloc.2 IL_0013: ldloc.2 IL_0014: callvirt instance int32 CTest::test() //IL_0019: stloc.3 IL_001a: leave.s IL_001f } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void CTest::.ctor() stloc.2 ldloc.2 callvirt instance int32 CTest::test() //stloc.3 leave.s IL_001f } catch [mscorlib]System.Object { pop newobj instance void CTest::.ctor() stloc.2 ldloc.2 callvirt instance int32 CTest::test() //stloc.3 IL_001d: leave.s IL_001f } // end handler IL_001f: ret } // end of method filter1::f23 .method public static void f24() il managed { // Code size 54 (0x36) .maxstack 20 .locals (class CTest V_0, class CTest V_1) IL_0000: newobj instance void CTest::.ctor() IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: ldloc.0 IL_0008: ldftn instance void CTest::f() IL_000e: newobj instance void delegate1::.ctor(class System.Object, native unsigned int) IL_0013: callvirt instance void CTest::add_dg(class delegate1) .try { IL_0018: newobj instance void CTest::.ctor() IL_001d: stloc.1 IL_001e: ldloc.1 IL_001f: ldloc.1 IL_0020: ldftn instance void CTest::f() //IL_0026: newobj instance void delegate1::.ctor(class System.Object, // native unsigned int) //IL_002b: callvirt instance void CTest::add_dg(class delegate1) IL_0030: leave.s IL_0035 } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void CTest::.ctor() stloc.1 ldloc.1 ldloc.1 ldftn instance void CTest::f() leave.s IL_0035 } catch [mscorlib]System.Object { IL_0032: pop newobj instance void CTest::.ctor() stloc.1 ldloc.1 ldloc.1 ldftn instance void CTest::f() IL_0033: leave.s IL_0035 } // end handler IL_0035: ret } // end of method filter1::f24 .method public hidebysig static void f25(int32 arg) il managed { // Code size 10 (0xa) .maxstack 10 .locals (int32 V_0, int32 V_1) IL_0000: ldarg.0 IL_0001: stloc.0 .try { IL_0002: ldarg.0 //IL_0003: stloc.1 IL_0004: leave.s IL_0009 } // end .try filter { pop ldc.i4.1 endfilter } { ldarg.0 leave.s IL_0009 } catch [mscorlib]System.Object { //IL_0006: pop ldarg.0 IL_0007: leave.s IL_0009 } // end handler IL_0009: ret } // end of method filter1::f25 .method public hidebysig static void f26(unsigned int16 arg1, int32 arg2, class System.String arg3, class System.Object arg4) il managed { // Code size 26 (0x1a) .maxstack 10 .locals (unsigned int16 V_0, int32 V_1, class System.String V_2, class System.Object V_3, unsigned int16 V_4, int32 V_5, class System.String V_6, class System.Object V_7) IL_0000: ldarg.0 IL_0001: stloc.0 IL_0002: ldarg.1 IL_0003: stloc.1 IL_0004: ldarg.2 IL_0005: stloc.2 IL_0006: ldarg.3 IL_0007: stloc.3 .try { IL_0008: ldarg.0 //IL_0009: stloc.s V_4 IL_000b: ldarg.1 //IL_000c: stloc.s V_5 IL_000e: ldarg.2 //IL_000f: stloc.s V_6 IL_0011: ldarg.3 //IL_0012: stloc.s V_7 IL_0014: leave.s IL_0019 } // end .try filter { pop ldc.i4.1 endfilter } { ldarg.0 ldarg.1 ldarg.2 ldarg.3 leave.s IL_0019 } catch [mscorlib]System.Object { //IL_0016: pop ldarg.0 ldarg.1 ldarg.2 ldarg.3 IL_0017: leave.s IL_0019 } // end handler IL_0019: ret } // end of method filter1::f26 .method public hidebysig static void f27() il managed { // Code size 14 (0xe) .maxstack 10 .locals (int16 V_0, int16 V_1) IL_0000: ldc.i4 0xfffffc18 IL_0005: stloc.0 .try { IL_0006: ldloc.0 //IL_0007: stloc.1 IL_0008: leave.s IL_000d } // end .try filter { pop ldc.i4.1 endfilter } { ldloc.0 leave.s IL_000d } catch [mscorlib]System.Object { //IL_000a: pop ldloc.0 IL_000b: leave.s IL_000d } // end handler IL_000d: ret } // end of method filter1::f27 .method public hidebysig static void f28() il managed { // Code size 67 (0x43) .maxstack 20 .locals (unsigned int8 V_0, class System.String V_1, int32 V_2, class System.String[] V_3, unsigned int8 V_4, class System.String V_5, int32 V_6, class System.String[] V_7, int32 V_8, class System.String[] V_9) IL_0000: ldc.i4.s 20 IL_0002: stloc.0 IL_0003: ldstr "f28" IL_0008: stloc.1 IL_0009: ldc.i4 0xffff15a0 IL_000e: stloc.2 IL_000f: ldc.i4.2 IL_0010: newarr [mscorlib]System.String IL_0015: stloc.s V_9 IL_0017: ldloc.s V_9 IL_0019: ldc.i4.0 IL_001a: ldstr "a" IL_001f: stelem.ref IL_0020: ldloc.s V_9 IL_0022: ldc.i4.1 IL_0023: ldstr "b" IL_0028: stelem.ref IL_0029: ldloc.s V_9 IL_002b: stloc.3 .try { IL_002c: ldloc.0 //IL_002d: stloc.s V_4 IL_002f: ldloc.1 //IL_0030: stloc.s V_5 IL_0032: ldloc.2 //IL_0033: stloc.s V_6 IL_0035: ldloc.3 //IL_0036: stloc.s V_7 IL_0038: ldloc.3 IL_0039: ldlen IL_003a: conv.i4 //IL_003b: stloc.s V_8 IL_003d: leave.s IL_0042 } // end .try filter { pop ldc.i4.1 endfilter } { ldloc.0 ldloc.1 ldloc.2 ldloc.3 ldloc.3 ldlen leave.s IL_0042 } catch [mscorlib]System.Object { //IL_003f: pop ldloc.0 ldloc.1 ldloc.2 ldloc.3 ldloc.3 ldlen IL_0040: leave.s IL_0042 } // end handler IL_0042: ret } // end of method filter1::f28 .method public hidebysig static void f29() il managed { // Code size 24 (0x18) .maxstack 20 .locals (unsigned int16 V_0, unsigned int16* V_1, unsigned int16 V_2, unsigned int16 BUF) IL_0000: ldc.i4 0x3e8 IL_0005: stloc.0 .try { IL_0006: ldc.i4.2 IL_0007: ldc.i4.1 IL_0008: mul IL_0009: localloc IL_000b: stloc.1 IL_000c: ldloc.1 IL_000d: ldloc.0 IL_000e: stind.i2 IL_000f: ldloc.1 IL_0010: ldind.u2 //IL_0011: stloc.2 IL_0012: leave.s IL_0017 } // end .try filter { pop ldc.i4.1 endfilter } { pop ldc.i4.2 ldc.i4.1 mul pop ldloca.s BUF //localloc stloc.1 //nullref exception if un-commented ldloc.1 ldloc.0 stind.i2 ldloc.1 ldind.u2 leave.s IL_0017 } catch [mscorlib]System.Object { IL_0014: pop ldc.i4.2 ldc.i4.1 mul pop ldloca.s BUF //localloc stloc.1 //nullref exception if un-commented ldloc.1 ldloc.0 stind.i2 ldloc.1 ldind.u2 IL_0015: leave.s IL_0017 } // end handler IL_0017: ret } // end of method filter1::f29 .method public static int32 Main() il managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint // Code size 156 (0x9c) .maxstack 20 .locals (bool V_0, int32 V_1) IL_0000: ldc.i4.1 IL_0001: stloc.0 IL_0002: call void filter1::f1() IL_0007: call void filter1::f2() IL_000c: call void filter1::f3() IL_0011: call void filter1::f4() IL_0016: call void filter1::f5() IL_001b: call void filter1::f6() IL_0020: call void filter1::f7() IL_0025: call void filter1::f8() IL_002a: call void filter1::f9() IL_002f: call void filter1::f10() IL_0034: call void filter1::f11() IL_0039: call void filter1::f12() IL_003e: call void filter1::f13() IL_0043: call void filter1::f14() IL_0048: call void filter1::f15() IL_004d: call void filter1::f16() IL_0052: call void filter1::f17() IL_0057: call void filter1::f18() IL_005c: call void filter1::f19() IL_0061: call void filter1::f20a() call void filter1::f20b() IL_0066: call void filter1::f21() IL_006b: call void filter1::f22() IL_0070: call void filter1::f23() IL_0075: call void filter1::f24() ldc.i4 0x9c40 call void filter1::f25(int32) ldc.i4 0xff ldc.i4 0x80000000 ldstr "f26" newobj instance void [mscorlib]System.Object::.ctor() call void filter1::f26(unsigned int16, int32, class System.String, class System.Object) call void filter1::f27() call void filter1::f28() call void filter1::f29() IL_007a: ldloc.0 IL_007b: brfalse.s IL_008c IL_007d: ldstr "PASSED" IL_0082: call void [System.Console]System.Console::WriteLine(class System.String) IL_0087: ldc.i4.s 100 IL_0089: stloc.1 IL_008a: br.s IL_009a IL_008c: ldstr "FAILED" IL_0091: call void [System.Console]System.Console::WriteLine(class System.String) IL_0096: ldc.i4.1 IL_0097: stloc.1 IL_0098: br.s IL_009a IL_009a: ldloc.1 IL_009b: ret } // end of method filter1::Main .method public hidebysig specialname rtspecialname instance void .ctor() { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method filter1::.ctor } // end of class filter1 .class private '<GlobalName>' extends [mscorlib]System.Object { .class explicit sealed nested private '$$struct0x6000020-1' extends [mscorlib]System.ValueType { .pack 1 .size 16 } // end of class '$$struct0x6000020-1' .class explicit sealed nested private '$$struct0x6000020-2' extends [mscorlib]System.ValueType { .pack 1 .size 16 } // end of class '$$struct0x6000020-2' .class explicit sealed nested private '$$struct0x6000021-1' extends [mscorlib]System.ValueType { .pack 1 .size 36 } // end of class '$$struct0x6000021-1' .class explicit sealed nested private '$$struct0x6000021-2' extends [mscorlib]System.ValueType { .pack 1 .size 36 } // end of class '$$struct0x6000021-2' .field static assembly value class '<GlobalName>'/'$$struct0x6000020-1' '$$method0x6000020-1' at D_000025A0 .field static assembly value class '<GlobalName>'/'$$struct0x6000020-2' '$$method0x6000020-2' at D_000025B0 .field static assembly value class '<GlobalName>'/'$$struct0x6000021-1' '$$method0x6000021-1' at D_00002620 .field static assembly value class '<GlobalName>'/'$$struct0x6000021-2' '$$method0x6000021-2' at D_00002648 } // end of class '<GlobalName>' .data D_000025A0 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00) .data D_000025B0 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 0B 30 03 00 35 00 00 00 15 00 00 11 18 18 73 07 // .0..5.........s. 00 00 0A 25 D0 07 00 00 04 28 08 00 00 0A 0A 18 // ...%.....(...... 18 73 07 00 00 0A 25 D0 08 00 00 04 28 08 00 00 // .s....%.....(... 0A 0B 07 16 17 28 09 00 00 0A 0C DE 03 26 DE 00 // .....(.......&.. 2A 00 00 00 01 10 00 00 00 00 13 00 1E 31 00 03 // *............1.. 04 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00) .data D_00002620 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 06 00 00 00 07 00 00 00 08 00 00 00 00 00 00 00) .data D_00002648 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 06 00 00 00 07 00 00 00 08 00 00 00 0B 30 04 00 38 00 00 00 16 00 00 11 // .....0..8....... 19 17 19 73 0A 00 00 0A 25 D0 09 00 00 04 28 08 // ...s....%.....(. 00 00 0A 0A 19 17 19 73 0A 00 00 0A 25 D0 0A 00 // .......s....%... 00 04 28 08 00 00 0A 0B 07 16 16 17 28 0B 00 00 // ..(.........(... 0A 0C DE 03 26 DE 00 2A 01 10 00 00 00 00 14 00 // ....&..*........ 20 34 00 03 04 00 00 01 00 00 00 00 00 00 00 00 // 4.............. 00 00 00 00 0B 30 01 00 20 00 00 00 17 00 00 11 // .....0.. ....... 73 0B 00 00 06 0A 06 6F 0A 00 00 06 0B 73 0B 00 // s......o.....s.. 00 06 0C 08 6F 0A 00 00 06 0D DE 03 26 DE 00 2A // ....o.......&..* 01 10 00 00 00 00 0D 00 0F 1C 00 03 04 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 0B 30 04 00 // .............0.. 36 00 00 00 18 00 00 11 73 0B 00 00 06 0A 06 06 // 6.......s....... FE 06 09 00 00 06 73 02 00 00 06 6F 07 00 00 06 // ......s....o.... 73 0B 00 00 06 0B 07 07 FE 06 09 00 00 06 73 02 // s.............s. 00 00 06 6F 07 00 00 06 DE 03 26 DE 00 2A 00 00 // ...o......&..*.. 01 10 00 00 00 00 18 00 1A 32 00 03 04 00 00 01 // .........2...... 00 00 00 00 00 00 00 00 00 00 00 00 03 30 01 00 // .............0.. 9C 00 00 00 19 00 00 11 17 0A 28 0C 00 00 06 28 // ..........(....( 0D 00 00 06 28 0E 00 00 06 28 0F 00 00 06 28 10 // ....(....(....(. 00 00 06 28 11 00 00 06 28 12 00 00 06 28 13 00 // ...(....(....(.. 00 06 28 14 00 00 06 28 15 00 00 06 28 16 00 00 // ..(....(....(... 06 28 17 00 00 06 28 18 00 00 06 28 19 00 00 06 // .(....(....(.... 28 1A 00 00 06 28 1B 00 00 06 28 1C 00 00 06 28 // (....(....(....( 1D 00 00 06 28 1E 00 00 06 28 1F 00 00 06 28 20 // ....(....(....( 00 00 06 28 21 00 00 06 28 22 00 00 06 28 23 00 // ...(!...("...(#. 00 06 06 2C 0F 72 31 00 00 70 28 0C 00 00 0A 1F // ...,.r1..p(..... 64 0B 2B 0E 72 3F 00 00 70 28 0C 00 00 0A 17 0B // d.+.r?..p(...... 2B 00 07 2A 1E 02 28 04 00 00 0A 2A 42 53 4A 42 // +..*..(....*BSJB 01 00 01 00 00 00 00 00 10 00 00 00 76 31 2E 30 // ............v1.0 2E 32 34 31 33 46 53 54 43 48 4B 00 00 00 05 00 // .2413FSTCHK..... 70 00 00 00 F8 04 00 00 23 7E 00 00 68 05 00 00 // p.......#~..h... 0C 03 00 00 23 53 74 72 69 6E 67 73 00 00 00 00 // ....#Strings.... 74 08 00 00 7C 01 00 00 23 42 6C 6F 62 00 00 00 // t...|...#Blob... F0 09 00 00 50 00 00 00 23 55 53 00 40 0A 00 00 // ....P...#US.@... 10 00 00 00 23 47 55 49 44 00 00 00 00 00 00 00 // ....#GUID....... 01 00 00 01 57 9F 16 29 09 02 00 00 00 FA 01 33 // ....W..).......3 00 02 00 00 01 00 00 00 0E 00 00 00 0C 00 00 00 0A 00 00 00 25 00 00 00 07 00 00 00 01 00 00 00 // ....%........... 0C 00 00 00 02 00 00 00 01 00 00 00 04 00 00 00 19 00 00 00 01 00 00 00 01 00 00 00 02 00 00 00 02 00 00 00 04 00 00 00 01 00 00 00 01 00 00 00 04 00 00 00 00 00 4C 00 01 00 00 00 00 00 06 00 // ......L......... 65 00 5E 00 06 00 72 00 5E 00 06 00 7C 00 5E 00 // e.^...r.^...|.^. 06 00 9E 00 5E 00 06 00 D8 00 5E 00 06 00 E5 00 // ....^.....^..... 5E 00 06 00 93 01 80 01 06 00 CB 01 5E 00 06 00 // ^...........^... E3 01 5E 00 06 00 EB 01 5E 00 06 00 FD 01 5E 00 // ..^.....^.....^. 06 00 58 02 38 02 06 00 67 02 5E 00 06 00 6D 02 // ..X.8...g.^...m. 5E 00 00 00 00 00 43 00 00 00 00 00 01 00 01 00 // ^.....C......... 08 01 10 00 6F 00 00 00 05 00 01 00 01 00 00 21 // ....o..........! 00 00 77 00 00 00 09 00 03 00 02 00 01 01 00 00 // ..w............. 8E 00 00 00 0D 00 06 00 02 00 A1 00 00 00 98 00 00 00 00 00 06 00 06 00 01 00 10 00 A5 00 00 00 11 00 06 00 07 00 01 00 10 00 AB 00 00 00 11 00 07 00 0C 00 00 00 00 00 03 02 00 00 11 00 07 00 26 00 03 01 00 00 10 02 00 00 05 00 0B 00 26 00 // &.............&. 03 01 00 00 90 02 00 00 05 00 0B 00 26 00 03 01 // ............&... 00 00 BC 02 00 00 05 00 0B 00 26 00 03 01 00 00 // ..........&..... E4 02 00 00 05 00 0B 00 26 00 06 00 B0 00 1F 00 // ........&....... 16 00 B2 00 1F 00 06 06 BB 00 1F 00 56 80 C3 00 // ............V... 26 00 56 80 C7 00 26 00 01 00 0E 01 50 00 13 01 // &.V...&.....P... 24 02 FD 00 13 01 A4 02 09 01 13 01 D0 02 35 01 // $.............5. 13 01 F8 02 39 01 50 20 00 00 00 00 91 18 B4 00 // ....9.P ........ 22 00 01 00 00 00 00 00 03 00 86 18 CB 00 34 00 // ".............4. 01 00 00 00 00 00 03 00 C6 00 D1 00 3A 00 03 00 // ............:... 00 00 00 00 03 00 C6 01 F3 00 3E 00 03 00 00 00 // ..........>..... 00 00 03 00 C6 01 FF 00 46 00 05 00 00 00 00 00 // ........F....... 00 00 C6 05 09 01 4C 00 06 00 58 20 00 00 20 00 // ......L...X .. . 86 08 11 01 54 00 06 00 71 20 00 00 20 00 86 08 // ....T...q .. ... 18 01 54 00 07 00 8A 20 00 00 00 00 86 00 22 01 // ..T.... ......". 3A 00 08 00 8C 20 00 00 00 00 E6 01 09 01 4C 00 // :.... ........L. 08 00 9E 20 00 00 00 00 86 18 CB 00 3A 00 08 00 // ... ........:... A8 20 00 00 00 00 96 00 24 01 22 00 08 00 D8 20 // . ......$.".... 00 00 00 00 96 00 27 01 22 00 08 00 14 21 00 00 // ......'."....!.. 00 00 96 00 2A 01 22 00 08 00 50 21 00 00 00 00 // ....*."...P!.... 96 00 2D 01 22 00 08 00 8C 21 00 00 00 00 96 00 // ..-."....!...... 30 01 22 00 08 00 C8 21 00 00 00 00 96 00 33 01 // 0."....!......3. 22 00 08 00 FC 21 00 00 00 00 96 00 36 01 22 00 // "....!......6.". 08 00 30 22 00 00 00 00 96 00 39 01 22 00 08 00 // ..0"......9."... 74 22 00 00 00 00 96 00 3C 01 22 00 08 00 A8 22 // t"......<."...." 00 00 00 00 96 00 3F 01 22 00 08 00 DC 22 00 00 // ......?."....".. 00 00 96 00 43 01 22 00 08 00 18 23 00 00 00 00 // ....C."....#.... 96 00 47 01 22 00 08 00 5C 23 00 00 00 00 96 00 // ..G."...\#...... 4B 01 22 00 08 00 90 23 00 00 00 00 96 00 4F 01 // K."....#......O. 22 00 08 00 E0 23 00 00 00 00 96 00 53 01 22 00 // "....#......S.". 08 00 54 24 00 00 00 00 96 00 57 01 22 00 08 00 // ..T$......W."... 94 24 00 00 00 00 96 00 5B 01 22 00 08 00 D0 24 // .$......[."....$ 00 00 00 00 96 00 5F 01 22 00 08 00 0C 25 00 00 // ......_."....%.. 00 00 96 00 63 01 22 00 08 00 48 25 00 00 00 00 // ....c."...H%.... 96 00 67 01 22 00 08 00 C0 25 00 00 00 00 96 00 // ..g."....%...... 6B 01 22 00 08 00 6C 26 00 00 00 00 96 00 6F 01 // k."...l&......o. 22 00 08 00 CC 26 00 00 00 00 96 00 73 01 22 00 // "....&......s.". 08 00 14 27 00 00 00 00 96 00 77 01 22 00 08 00 // ...'......w."... 74 27 00 00 00 00 96 00 7B 01 5A 00 08 00 1C 28 // t'......{.Z....( 00 00 00 00 86 18 CB 00 3A 00 08 00 00 00 01 00 // ........:....... A7 01 00 00 02 00 AE 01 00 00 01 00 B5 01 00 00 02 00 A7 01 00 00 01 00 BE 01 00 00 01 00 C5 01 00 00 01 00 C5 01 06 00 14 00 39 00 CB 00 5E 00 // ..........9...^. 41 00 D4 01 64 00 41 00 DC 01 64 00 21 00 CB 00 // A...d.A...d.!... 3A 00 49 00 CB 00 AD 00 51 00 F3 01 C8 00 0C 00 // :.I.....Q....... CB 00 F7 00 61 00 80 02 01 01 0C 00 B8 02 0D 01 // ....a........... 14 00 CB 00 2E 01 14 00 B8 02 3D 01 51 00 F3 01 // ..........=.Q... 68 01 08 00 10 00 2A 00 08 00 14 00 2F 00 2E 00 // h.....*...../... 0B 00 72 01 01 00 10 00 00 00 09 00 01 00 10 00 // ..r............. 00 00 0A 00 01 00 24 00 00 00 0B 00 01 00 24 00 // ......$.......$. 00 00 0C 00 6D 00 71 00 76 00 7B 00 80 00 85 00 // ....m.q.v.{..... 8A 00 8F 00 94 00 99 00 9E 00 A3 00 A8 00 B6 00 BD 00 CD 00 D4 00 D9 00 E0 00 E5 00 13 01 44 01 // ..............D. 58 01 61 01 6D 01 06 00 01 00 00 00 0E 01 10 00 // X.a.m........... 08 00 07 00 02 00 10 00 08 00 02 00 EF 00 25 01 // ..............%. A0 25 00 00 07 00 B0 25 00 00 08 00 20 26 00 00 // .%.....%.... &.. 09 00 48 26 00 00 0A 00 04 80 00 00 00 00 00 00 // ..H&............ 00 00 00 00 00 00 00 00 00 00 AB 00 00 00 01 00 00 00 6B 09 00 00 00 00 00 00 01 00 55 00 00 00 // ..k.........U... 0A 00 09 00 08 00 0A 00 08 00 0B 00 08 00 0C 00 08 00 00 00 00 56 65 72 73 69 6F 6E 20 6F 66 20 // .....Version of 72 75 6E 74 69 6D 65 20 61 67 61 69 6E 73 74 20 // runtime against 77 68 69 63 68 20 74 68 65 20 62 69 6E 61 72 79 // which the binary 20 69 73 20 62 75 69 6C 74 20 3A 20 31 2E 30 2E // is built : 1.0. 32 34 31 33 2E 30 00 3C 4D 6F 64 75 6C 65 3E 00 // 2413.0.<Module>. 74 72 79 31 2E 65 78 65 00 6D 73 63 6F 72 6C 69 // filter1.exe.mscorli 62 00 53 79 73 74 65 6D 00 56 61 6C 75 65 54 79 // b.System.ValueTy 70 65 00 56 54 00 45 6E 75 6D 00 44 61 79 73 00 // pe.VT.Enum.Days. 4D 75 6C 74 69 63 61 73 74 44 65 6C 65 67 61 74 // MulticastDelegat 65 00 64 65 6C 65 67 61 74 65 31 00 49 54 65 73 // e.delegate1.ITes 74 00 4F 62 6A 65 63 74 00 43 54 65 73 74 00 74 // t.Object.CTest.t 72 79 31 00 6D 00 6E 00 2E 63 63 74 6F 72 00 76 // ry1.m.n..cctor.v 61 6C 75 65 5F 5F 00 53 75 6E 00 4D 6F 6E 00 2E // alue__.Sun.Mon.. 63 74 6F 72 00 49 6E 76 6F 6B 65 00 49 41 73 79 // ctor.Invoke.IAsy 6E 63 52 65 73 75 6C 74 00 41 73 79 6E 63 43 61 // ncResult.AsyncCa 6C 6C 62 61 63 6B 00 42 65 67 69 6E 49 6E 76 6F // llback.BeginInvo 6B 65 00 45 6E 64 49 6E 76 6F 6B 65 00 74 65 73 // ke.EndInvoke.tes 74 00 64 67 00 61 64 64 5F 64 67 00 72 65 6D 6F // t.dg.add_dg.remo 76 65 5F 64 67 00 66 00 66 31 00 66 32 00 66 33 // ve_dg.f.f1.f2.f3 00 66 34 00 66 35 00 66 36 00 66 37 00 66 38 00 // .f4.f5.f6.f7.f8. 66 39 00 66 31 30 00 66 31 31 00 66 31 32 00 66 // f9.f10.f11.f12.f 31 33 00 66 31 34 00 66 31 35 00 66 31 36 00 66 // 13.f14.f15.f16.f 31 37 00 66 31 38 00 66 31 39 00 66 32 30 00 66 // 17.f18.f19.f20.f 32 31 00 66 32 32 00 66 32 33 00 66 32 34 00 4D // 21.f22.f23.f24.M 61 69 6E 00 53 79 73 74 65 6D 2E 44 69 61 67 6E // ain.System.Diagn 6F 73 74 69 63 73 00 44 65 62 75 67 67 61 62 6C // ostics.Debuggabl 65 41 74 74 72 69 62 75 74 65 00 6F 62 6A 65 63 // eAttribute.objec 74 00 6D 65 74 68 6F 64 00 63 61 6C 6C 62 61 63 // t.method.callbac 6B 00 72 65 73 75 6C 74 00 76 61 6C 75 65 00 44 // k.result.value.D 65 6C 65 67 61 74 65 00 43 6F 6D 62 69 6E 65 00 // elegate.Combine. 52 65 6D 6F 76 65 00 44 65 63 69 6D 61 6C 00 43 // Remove.Decimal.C 6F 6E 73 6F 6C 65 00 57 72 69 74 65 4C 69 6E 65 // onsole.WriteLine 00 49 6E 74 33 32 00 3C 47 6C 6F 62 61 6C 4E 61 // .Int32.<GlobalNa 6D 65 3E 00 24 24 73 74 72 75 63 74 30 78 36 30 // me>.$$struct0x60 30 30 30 32 30 2D 31 00 24 24 6D 65 74 68 6F 64 // 00020-1.$$method 30 78 36 30 30 30 30 32 30 2D 31 00 53 79 73 74 // 0x6000020-1.Syst 65 6D 2E 52 75 6E 74 69 6D 65 2E 43 6F 6D 70 69 // em.Runtime.Compi 6C 65 72 53 65 72 76 69 63 65 73 00 52 75 6E 74 // lerServices.Runt 69 6D 65 48 65 6C 70 65 72 73 00 41 72 72 61 79 // imeHelpers.Array 00 52 75 6E 74 69 6D 65 46 69 65 6C 64 48 61 6E // .RuntimeFieldHan 64 6C 65 00 49 6E 69 74 69 61 6C 69 7A 65 41 72 // dle.InitializeAr 72 61 79 00 24 24 73 74 72 75 63 74 30 78 36 30 // ray.$$struct0x60 30 30 30 32 30 2D 32 00 24 24 6D 65 74 68 6F 64 // 00020-2.$$method 30 78 36 30 30 30 30 32 30 2D 32 00 47 65 74 00 // 0x6000020-2.Get. 24 24 73 74 72 75 63 74 30 78 36 30 30 30 30 32 // $$struct0x600002 31 2D 31 00 24 24 6D 65 74 68 6F 64 30 78 36 30 // 1-1.$$method0x60 30 30 30 32 31 2D 31 00 24 24 73 74 72 75 63 74 // 00021-1.$$struct 30 78 36 30 30 30 30 32 31 2D 32 00 24 24 6D 65 // 0x6000021-2.$$me 74 68 6F 64 30 78 36 30 30 30 30 32 31 2D 32 00 // thod0x6000021-2. 00 08 B7 7A 5C 56 19 34 E0 89 14 11 29 F4 49 85 // ...z\V.4....).I. 0C 7F 24 30 CE E2 FD A4 90 78 8D 09 50 3B 04 02 // ..$0.....x..P;.. 06 08 03 00 00 01 03 06 11 0C 04 00 00 00 00 04 01 00 00 00 05 20 02 01 1C 19 03 20 00 01 07 20 // ..... ..... ... 02 12 15 12 19 1C 05 20 01 01 12 15 03 20 00 08 // ....... ..... .. 03 06 12 10 05 20 01 01 12 10 03 00 00 08 05 20 // ..... ......... 02 01 02 02 08 00 02 12 21 12 21 12 21 03 07 01 // ........!.!.!... 08 04 07 02 08 08 04 07 02 09 09 04 07 02 06 06 04 07 02 07 07 04 07 02 05 05 04 07 02 04 04 04 07 02 0A 0A 04 07 02 0B 0B 04 07 02 03 03 04 07 02 0C 0C 04 07 02 0D 0D 04 07 02 02 02 08 20 05 // .............. . 01 08 08 08 02 05 06 07 02 11 25 11 25 0A 07 06 // ..........%.%... 11 08 08 08 11 08 08 08 04 00 01 01 1C 06 07 02 11 0C 11 0C 04 07 02 1C 1C 06 07 02 12 1C 12 1C 04 07 02 0E 0E 09 07 04 1D 08 1D 08 08 1D 08 07 14 08 02 00 02 00 00 05 20 02 01 08 08 03 06 11 // ........ ....... 24 07 00 02 01 12 35 11 39 03 06 11 28 05 20 02 // $.....5.9...(. . 08 08 08 11 07 03 14 08 02 00 02 00 00 14 08 02 00 02 00 00 08 08 14 08 03 00 03 00 00 00 06 20 // ............... 03 01 08 08 08 03 06 11 2C 03 06 11 30 06 20 03 // ........,...0. . 08 08 08 08 13 07 03 14 08 03 00 03 00 00 00 14 08 03 00 03 00 00 00 08 08 07 04 12 18 08 12 18 08 06 07 02 12 18 12 18 04 00 01 01 0E 04 07 02 02 08 06 01 00 00 01 00 00 00 00 00 00 17 74 00 // ..............t. 65 00 73 00 74 00 20 00 73 00 74 00 72 00 69 00 // e.s.t. .s.t.r.i. 6E 00 67 00 00 17 73 00 74 00 72 00 69 00 6E 00 // n.g...s.t.r.i.n. 67 00 20 00 74 00 65 00 73 00 74 00 00 0D 50 00 // g. .t.e.s.t...P. 41 00 53 00 53 00 45 00 44 00 00 0D 46 00 41 00 // A.S.S.E.D...F.A. 49 00 4C 00 45 00 44 00 00 00 00 00 27 D8 F7 3C // I.L.E.D.....'..< 47 A8 09 42 86 5E 26 68 20 F5 4C 22 9C 32 00 00 // G..B.^&h .L".2.. 00 00 00 00 00 00 00 00 BE 32 00 00 00 20 00 00 // .........2... .. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B0 32 00 00 00 00 00 00 00 00 00 00 // .....2.......... 00 00 00 00 00 00 00 00 00 00 5F 43 6F 72 45 78 // .........._CorEx 65 4D 61 69 6E 00 6D 73 63 6F 72 65 65 2E 64 6C // eMain.mscoree.dl 6C 00 00 00 00 00 FF 25 00 20 40 00) // l......%. @. //*********** DISASSEMBLY COMPLETE ***********************
// 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 { } .assembly extern xunit.core {} .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly filter1 { } .class private sealed VT extends [mscorlib]System.ValueType { .field public int32 m .field public static int32 n .method private specialname rtspecialname static void .cctor() il managed { // Code size 7 (0x7) .maxstack 20 IL_0000: ldc.i4.3 IL_0001: stsfld int32 VT::n IL_0006: ret } // end of method VT::.cctor } // end of class VT .class private sealed Days extends [mscorlib]System.Enum { .field public specialname rtspecialname int32 value__ .field public static literal value class Days Sun = int32(0x00000000) .field public static literal value class Days Mon = int32(0x00000001) } // end of class Days .class public sealed delegate1 extends [mscorlib]System.MulticastDelegate { .method public specialname rtspecialname instance void .ctor(class System.Object o, native unsigned int 'method') runtime managed { } // end of method delegate1::.ctor .method public virtual instance void Invoke() runtime managed { } // end of method delegate1::Invoke .method public newslot virtual instance class [mscorlib]System.IAsyncResult BeginInvoke(class [mscorlib]System.AsyncCallback callback, class System.Object o) runtime managed { } // end of method delegate1::BeginInvoke .method public newslot virtual instance void EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed { } // end of method delegate1::EndInvoke } // end of class delegate1 .class interface public abstract ITest { .method public newslot virtual abstract instance int32 test() il managed { } // end of method ITest::test } // end of class ITest .class public CTest extends [mscorlib]System.Object implements ITest { .field private class delegate1 dg .method public specialname instance void add_dg(class delegate1 'value') il managed synchronized { // Code size 24 (0x18) .maxstack 20 IL_0000: ldarg.0 IL_0001: ldarg.0 IL_0002: ldfld class delegate1 CTest::dg IL_0007: ldarg.1 IL_0008: call class [mscorlib]System.Delegate [mscorlib]System.Delegate::Combine(class [mscorlib]System.Delegate, class [mscorlib]System.Delegate) IL_000d: castclass delegate1 IL_0012: stfld class delegate1 CTest::dg IL_0017: ret } // end of method CTest::add_dg .method public specialname instance void remove_dg(class delegate1 'value') il managed synchronized { // Code size 24 (0x18) .maxstack 20 IL_0000: ldarg.0 IL_0001: ldarg.0 IL_0002: ldfld class delegate1 CTest::dg IL_0007: ldarg.1 IL_0008: call class [mscorlib]System.Delegate [mscorlib]System.Delegate::Remove(class [mscorlib]System.Delegate, class [mscorlib]System.Delegate) IL_000d: castclass delegate1 IL_0012: stfld class delegate1 CTest::dg IL_0017: ret } // end of method CTest::remove_dg .method public instance void f() il managed { // Code size 1 (0x1) .maxstack 20 IL_0000: ret } // end of method CTest::f .method public newslot final virtual instance int32 test() il managed { // Code size 6 (0x6) .maxstack 10 .locals (int32 V_0) IL_0000: ldc.i4.0 IL_0001: stloc.0 IL_0002: br.s IL_0004 IL_0004: ldloc.0 IL_0005: ret } // end of method CTest::test .method public specialname rtspecialname instance void .ctor() il managed { // Code size 7 (0x7) .maxstack 20 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method CTest::.ctor .event delegate1 dg { .addon instance void CTest::add_dg(class delegate1) .removeon instance void CTest::remove_dg(class delegate1) } // end of event CTest::dg } // end of class CTest .class public filter1 extends [mscorlib]System.Object { .method public static void f1() il managed { // Code size 6 (0x6) .maxstack 10 .try { IL_0000: leave.s IL_0005 } // end .try filter { pop ldc.i4.1 endfilter } { IL_0001: leave.s IL_0005 } catch [mscorlib]System.Object { //IL_0002: pop IL_0003: leave.s IL_0005 } // end handler IL_0005: ret } // end of method filter1::f1 .method public static void f2() il managed { // Code size 18 (0x12) .maxstack 10 .locals (int32 V_0, int32 V_1) IL_0000: ldc.i4 0xffff63c0 IL_0005: stloc.0 start_try2: ldc.i4 0xffff63c0 leave.s IL_0011 end_try2: // start_handler2: ldc.i4 0xffff63c0 leave.s IL_0011 end_handler2: // exception_filter: pop ldc.i4.1 endfilter start_filter2: ldc.i4 0xffff63c0 leave.s IL_0011 end_filter2: // .try start_try2 to end_try2 filter exception_filter handler start_filter2 to end_filter2 catch [mscorlib]System.Object handler start_handler2 to end_handler2 IL_0011: ret } // end of method filter1::f2 .method public static void f3() il managed { // Code size 38 (0x26) .maxstack 20 .locals (unsigned int32 V_0, unsigned int32 V_1, unsigned int32 V_2) ldc.i4 0x9c40 stloc.0 ldloc.0 stloc.2 ldloc.2 ldc.i4.1 beq.s BL_0016 ldloc.2 ldc.i4 0x9c40 beq.s BL_0018 br.s BL_0025 BL_0016: br.s BL_0025 start_try3: BL_0018: ldc.i4 0x9c40 BL_001e: leave.s BL_0023 end_try3: // exception_filter: pop ldc.i4.1 endfilter start_filter3: ldc.i4 0x9c40 leave.s BL_0023 end_filter3: // start_handler3: ldc.i4 0x9c40 BL_0021: leave.s BL_0023 end_handler3: // BL_0023: br.s BL_0025 BL_0025: ret .try start_try3 to end_try3 filter exception_filter handler start_filter3 to end_filter3 catch [mscorlib]System.Object handler start_handler3 to end_handler3 } // end of method filter1::f3 .method public static void f4() il managed { // Code size 28 (0x1c) .maxstack 20 .locals (int16 V_0, int16 V_1) ldc.i4 0xfffffc18 stloc.0 ldloc.0 ldc.i4 0x7d0 add ldc.i4.0 ble.s BL_001b .try { ldc.i4 0xfffffc18 //stloc.1 leave.s BL_001b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4 0xfffffc18 leave.s BL_001b } catch [mscorlib]System.Object { //pop leave.s BL_001b } // end handler BL_001b: ret } // end of method filter1::f4 .method public static void f5() il managed { // Code size 35 (0x23) .maxstack 20 .locals (unsigned int16 V_0, unsigned int16 V_1) ldc.i4 0x3e8 stloc.0 br.s BL_001d br start_try5 exception_filter: pop ldc.i4.1 endfilter start_filter5: ldc.i4 0x3e8 leave.s BL_0013 end_filter5: // start_try5: BL_0008: ldc.i4 0x3e8 //stloc.1 leave.s BL_0013 end_try5: // start_handler5: ldc.i4 0x3e8 leave.s BL_0013 end_handler5: // BL_0013: ldloc.0 conv.i4 ldc.i4 0x1f4 sub conv.u2 stloc.0 BL_001d: ldloc.0 conv.i4 ldc.i4.0 blt.s BL_0008 ret .try start_try5 to end_try5 filter exception_filter handler start_filter5 to end_filter5 catch [mscorlib]System.Object handler start_handler5 to end_handler5 } // end of method filter1::f5 .method public static void f6() il managed { // Code size 12 (0xc) .maxstack 10 .locals (unsigned int8 V_0, unsigned int8 V_1) IL_0000: ldc.i4.s 20 IL_0002: stloc.0 .try { IL_0003: ldc.i4.s 20 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.s 20 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.s 20 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f6 .method public static void f7() il managed { // Code size 12 (0xc) .maxstack 10 .locals (int8 V_0, int8 V_1) IL_0000: ldc.i4.s -20 IL_0002: stloc.0 .try { IL_0003: ldc.i4.s -20 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.s -20 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.s -20 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f7 .method public static void f8() il managed { // Code size 26 (0x1a) .maxstack 10 .locals (int64 V_0, int64 V_1) IL_0000: ldc.i8 0x8000000000000000 IL_0009: stloc.0 .try { IL_000a: ldc.i8 0x7fffffffffffffff //IL_0013: stloc.1 IL_0014: leave.s IL_0019 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i8 0x7fffffffffffffff leave.s IL_0019 } catch [mscorlib]System.Object { //IL_0016: pop ldc.i8 0x7fffffffffffffff IL_0017: leave.s IL_0019 } // end handler IL_0019: ret } // end of method filter1::f8 .method public static void f9() il managed { // Code size 12 (0xc) .maxstack 10 .locals (unsigned int64 V_0, unsigned int64 V_1) IL_0000: ldc.i4.0 IL_0001: conv.i8 IL_0002: stloc.0 .try { IL_0003: ldc.i4.m1 IL_0004: conv.i8 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.m1 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.m1 conv.i8 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f9 .method public static void f10() il managed { // Code size 12 (0xc) .maxstack 10 .locals (wchar V_0, wchar V_1) IL_0000: ldc.i4.s 49 IL_0002: stloc.0 .try { IL_0003: ldc.i4.s 65 //IL_0005: stloc.1 IL_0006: leave.s IL_000b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.s 49 leave.s IL_000b } catch [mscorlib]System.Object { //IL_0008: pop ldc.i4.s 65 IL_0009: leave.s IL_000b } // end handler IL_000b: ret } // end of method filter1::f10 .method public static void f11() il managed { // Code size 18 (0x12) .maxstack 10 .locals (float32 V_0, float32 V_1) IL_0000: ldc.r4 (E1 7A 24 C0) IL_0005: stloc.0 .try { IL_0006: ldc.r4 (E1 7A 24 40) //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.r4 (E1 7A 24 C0) leave.s IL_0011 } catch [mscorlib]System.Object { //IL_000e: pop ldc.r4 (E1 7A 24 40) IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f11 .method public static void f12() il managed { // Code size 26 (0x1a) .maxstack 10 .locals (float64 V_0, float64 V_1) IL_0000: ldc.r8 -1.2888888888888881 IL_0009: stloc.0 .try { IL_000a: ldc.r8 1.2888888888888881 //IL_0013: stloc.1 IL_0014: leave.s IL_0019 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.r8 1.2888888888888881 leave.s IL_0019 } catch [mscorlib]System.Object { //IL_0016: pop ldc.r8 1.2888888888888881 IL_0017: leave.s IL_0019 } // end handler IL_0019: ret } // end of method filter1::f12 .method public static void f13() il managed { // Code size 10 (0xa) .maxstack 10 .locals (bool V_0, bool V_1) IL_0000: ldc.i4.1 IL_0001: stloc.0 .try { IL_0002: ldc.i4.0 //IL_0003: stloc.1 IL_0004: leave.s IL_0009 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.r8 1.2888888888888881 leave.s IL_0009 } catch [mscorlib]System.Object { //IL_0006: pop ldc.i4.0 IL_0007: leave.s IL_0009 } // end handler IL_0009: ret } // end of method filter1::f13 .method public static void f14() il managed { // Code size 40 (0x28) .maxstack 6 .locals (value class [mscorlib]System.Decimal V_0, value class [mscorlib]System.Decimal V_1) IL_0000: ldc.i4 0x2715 IL_0005: ldc.i4.0 IL_0006: ldc.i4.0 IL_0007: ldc.i4 0x80 IL_000c: ldc.i4.2 IL_000d: newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) IL_0012: stloc.0 start_try14: IL_0013: ldc.i4 0x676 IL_0018: ldc.i4.0 IL_0019: ldc.i4.0 IL_001a: ldc.i4.0 IL_001b: ldc.i4.3 IL_001c: newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) //IL_0021: stloc.1 IL_0022: leave.s IL_0027 end_try14: // start_handler14: //IL_0024: pop ldc.i4 0x676 ldc.i4.0 ldc.i4.0 ldc.i4.0 ldc.i4.3 newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) IL_0025: leave.s IL_0027 end_handler14: // exception_filter: pop ldc.i4.1 endfilter start_filter14: ldc.i4 0x676 ldc.i4.0 ldc.i4.0 ldc.i4.0 ldc.i4.3 newobj instance void [mscorlib]System.Decimal::.ctor(int32, int32, int32, bool, unsigned int8) leave.s IL_0027 end_filter14: // .try start_try14 to end_try14 filter exception_filter handler start_filter14 to end_filter14 catch [mscorlib]System.Object handler start_handler14 to end_handler14 IL_0027: ret } // end of method filter1::f14 .method public static void f15() il managed { // Code size 76 (0x4c) .maxstack 20 .locals (value class VT V_0, int32 V_1, int32 V_2, value class VT V_3, int32 V_4, int32 V_5) IL_0000: ldloca.s V_0 IL_0002: initobj VT IL_0008: ldloca.s V_3 IL_000a: initobj VT IL_0010: ldloca.s V_0 IL_0012: ldc.i4 0xfffffed4 IL_0017: stfld int32 VT::m IL_001c: ldloca.s V_0 IL_001e: ldfld int32 VT::m IL_0023: stloc.1 IL_0024: ldsfld int32 VT::n IL_0029: stloc.2 .try { IL_002a: ldloca.s V_3 IL_002c: ldc.i4 0x12c IL_0031: stfld int32 VT::m IL_0036: ldloca.s V_3 IL_0038: ldfld int32 VT::m //IL_003d: stloc.s V_4 IL_003f: ldsfld int32 VT::n //IL_0044: stloc.s V_5 IL_0046: leave.s IL_004b } // end .try filter { pop ldc.i4.1 endfilter } { ldloca.s V_3 ldc.i4 0x12c stfld int32 VT::m ldloca.s V_3 ldfld int32 VT::m ldsfld int32 VT::n leave.s IL_004b } catch [mscorlib]System.Object { //IL_0048: pop ldloca.s V_3 ldc.i4 0x12c stfld int32 VT::m ldloca.s V_3 ldfld int32 VT::m //stloc.s V_4 ldsfld int32 VT::n //stloc.s V_5 IL_0049: leave.s IL_004b } // end handler IL_004b: ret } // end of method filter1::f15 .method public static void f16() il managed { // Code size 21 (0x15) .maxstack 10 .locals (value class Days V_0, value class Days V_1) IL_0000: ldc.i4.0 IL_0001: stloc.0 .try { IL_0002: ldc.i4.1 IL_0003: stloc.1 IL_0004: ldloc.1 IL_0005: box Days //IL_000a: call void [System.Console]System.Console::WriteLine(class System.Object) IL_000f: leave.s IL_0014 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.1 stloc.1 ldloc.1 box Days //call void [System.Console]System.Console::WriteLine(class System.Object) leave.s IL_0014 } catch [mscorlib]System.Object { //IL_0011: pop ldc.i4.1 stloc.1 ldloc.1 box Days //call void [System.Console]System.Console::WriteLine(class System.Object) IL_0012: leave.s IL_0014 } // end handler IL_0014: ret } // end of method filter1::f16 .method public static void f17() il managed { // Code size 18 (0x12) .maxstack 10 .locals (class System.Object V_0, class System.Object V_1) IL_0000: newobj instance void [mscorlib]System.Object::.ctor() IL_0005: stloc.0 .try { IL_0006: newobj instance void [mscorlib]System.Object::.ctor() //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void [mscorlib]System.Object::.ctor() leave.s IL_0011 } catch [mscorlib]System.Object { IL_000e: pop newobj instance void [mscorlib]System.Object::.ctor() //stloc.1 IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f17 .method public static void f18() il managed { // Code size 18 (0x12) .maxstack 10 .locals (class filter1 V_0, class filter1 V_1) IL_0000: newobj instance void filter1::.ctor() IL_0005: stloc.0 .try { IL_0006: newobj instance void filter1::.ctor() //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void filter1::.ctor() leave.s IL_0011 } catch [mscorlib]System.Object { IL_000e: pop newobj instance void filter1::.ctor() //stloc.1 IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f18 .method public static void f19() il managed { // Code size 18 (0x12) .maxstack 10 .locals (class System.String V_0, class System.String V_1) IL_0000: ldstr "test string" IL_0005: stloc.0 .try { IL_0006: ldstr "string test" //IL_000b: stloc.1 IL_000c: leave.s IL_0011 } // end .try filter { pop ldc.i4.1 endfilter } { ldstr "string test" leave.s IL_0011 } catch [mscorlib]System.Object { //IL_000e: pop ldstr "string test" IL_000f: leave.s IL_0011 } // end handler IL_0011: ret } // end of method filter1::f19 .method public static void f20a() il managed { // Code size 44 (0x2c) .maxstack 20 .locals (int32[] V_0, int32[] V_1, int32 V_2, int32[] V_3) IL_0000: ldc.i4.2 IL_0001: newarr [mscorlib]System.Int32 IL_0006: stloc.3 IL_0007: ldloc.3 IL_0008: ldc.i4.0 IL_0009: ldc.i4.1 IL_000a: stelem.i4 IL_000b: ldloc.3 IL_000c: ldc.i4.1 IL_000d: ldc.i4.2 IL_000e: stelem.i4 IL_000f: ldloc.3 IL_0010: stloc.0 .try { IL_0011: ldc.i4.2 IL_0012: newarr [mscorlib]System.Int32 //IL_0017: stloc.3 //IL_0018: ldloc.3 //IL_0019: ldc.i4.0 //IL_001a: ldc.i4.3 //IL_001b: stelem.i4 //IL_001c: ldloc.3 //IL_001d: ldc.i4.1 //IL_001e: ldc.i4.4 //IL_001f: stelem.i4 //IL_0020: ldloc.3 //IL_0021: stloc.1 //IL_0022: ldloc.1 //IL_0023: ldc.i4.0 //IL_0024: ldelem.i4 //IL_0025: stloc.2 IL_0026: leave.s IL_002b } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.2 newarr [mscorlib]System.Int32 leave.s IL_002b } catch [mscorlib]System.Object { //IL_0028: pop ldc.i4.2 newarr [mscorlib]System.Int32 IL_0029: leave.s IL_002b } // end handler IL_002b: ret } // end of method filter1::f20a .method public static void f20b() il managed { // Code size 44 (0x2c) .maxstack 20 .locals (int32[] V_0, int32[] V_1, int32 V_2, int32[] V_3) IL_0000: ldc.i4.2 IL_0001: newarr [mscorlib]System.Int32 IL_0006: stloc.3 IL_0007: ldloc.3 IL_0008: ldc.i4.0 IL_0009: ldc.i4.1 IL_000a: stelem.i4 IL_000b: ldloc.3 IL_000c: ldc.i4.1 IL_000d: ldc.i4.2 IL_000e: stelem.i4 IL_000f: ldloc.3 IL_0010: stloc.0 br start_try start_handler: //IL_0028: pop ldc.i4.2 newarr [mscorlib]System.Int32 stloc.3 ldloc.3 ldc.i4.0 ldc.i4.3 stelem.i4 ldloc.3 ldc.i4.1 ldc.i4.4 stelem.i4 ldloc.3 stloc.1 //get NullReferenceException exception if un-commented ldloc.1 ldc.i4.0 ldelem.i4 leave.s IL_002b end_handler: // exception_filter: pop ldc.i4.1 endfilter start_filter: ldc.i4.2 newarr [mscorlib]System.Int32 stloc.3 ldloc.3 ldc.i4.0 ldc.i4.3 stelem.i4 ldloc.3 ldc.i4.1 ldc.i4.4 stelem.i4 ldloc.3 stloc.1 //get NullReferenceException exception if un-commented ldloc.1 ldc.i4.0 ldelem.i4 leave.s IL_002b end_filter: // start_try: IL_0011: ldc.i4.2 IL_0012: newarr [mscorlib]System.Int32 IL_0017: stloc.3 IL_0018: ldloc.3 IL_0019: ldc.i4.0 IL_001a: ldc.i4.3 IL_001b: stelem.i4 IL_001c: ldloc.3 IL_001d: ldc.i4.1 IL_001e: ldc.i4.4 IL_001f: stelem.i4 IL_0020: ldloc.3 IL_0021: stloc.1 IL_0022: ldloc.1 IL_0023: ldc.i4.0 IL_0024: ldelem.i4 //IL_0025: stloc.2 IL_0026: leave.s IL_002b end_try: // .try start_try to end_try filter exception_filter handler start_filter to end_filter catch [mscorlib]System.Object handler start_handler to end_handler IL_002b: ret } // end of method filter1::f20b .method public static void f21() il managed { // Code size 53 (0x35) .maxstack 20 .locals (int32[0...,0...] V_0, int32[0...,0...] V_1, int32 V_2) IL_0000: ldc.i4.2 IL_0001: ldc.i4.2 IL_0002: newobj instance void int32[0...,0...]::.ctor(int32, int32) IL_0007: dup IL_0008: ldtoken field value class '<GlobalName>'/'$$struct0x6000020-1' '<GlobalName>'::'$$method0x6000020-1' IL_000d: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0012: stloc.0 .try { IL_0013: ldc.i4.2 IL_0014: ldc.i4.2 IL_0015: newobj instance void int32[0...,0...]::.ctor(int32, int32) IL_001a: dup IL_001b: ldtoken field value class '<GlobalName>'/'$$struct0x6000020-2' '<GlobalName>'::'$$method0x6000020-2' IL_0020: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) //IL_0025: stloc.1 //IL_0026: ldloc.1 //IL_0027: ldc.i4.0 //IL_0028: ldc.i4.1 //IL_0029: call instance int32 int32[0...,0...]::Get(int32, // int32) //IL_002e: stloc.2 IL_002f: leave.s IL_0034 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.2 ldc.i4.2 newobj instance void int32[0...,0...]::.ctor(int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000020-2' '<GlobalName>'::'$$method0x6000020-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) leave.s IL_0034 } catch [mscorlib]System.Object { //IL_0031: pop ldc.i4.2 ldc.i4.2 newobj instance void int32[0...,0...]::.ctor(int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000020-2' '<GlobalName>'::'$$method0x6000020-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0032: leave.s IL_0034 } // end handler IL_0034: ret } // end of method filter1::f21 .method public static void f22() il managed { // Code size 56 (0x38) .maxstack 20 .locals (int32[0...,0...,0...] V_0, int32[0...,0...,0...] V_1, int32 V_2) IL_0000: ldc.i4.3 IL_0001: ldc.i4.1 IL_0002: ldc.i4.3 IL_0003: newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) IL_0008: dup IL_0009: ldtoken field value class '<GlobalName>'/'$$struct0x6000021-1' '<GlobalName>'::'$$method0x6000021-1' IL_000e: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0013: stloc.0 .try { IL_0014: ldc.i4.3 IL_0015: ldc.i4.1 IL_0016: ldc.i4.3 IL_0017: newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) IL_001c: dup IL_001d: ldtoken field value class '<GlobalName>'/'$$struct0x6000021-2' '<GlobalName>'::'$$method0x6000021-2' IL_0022: call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) IL_0027: stloc.1 IL_0028: ldloc.1 IL_0029: ldc.i4.0 IL_002a: ldc.i4.0 IL_002b: ldc.i4.1 IL_002c: call instance int32 int32[0...,0...,0...]::Get(int32, int32, int32) //IL_0031: stloc.2 IL_0032: leave.s IL_0037 } // end .try filter { pop ldc.i4.1 endfilter } { ldc.i4.3 ldc.i4.1 ldc.i4.3 newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000021-2' '<GlobalName>'::'$$method0x6000021-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) stloc.1 ldloc.1 ldc.i4.0 ldc.i4.0 ldc.i4.1 call instance int32 int32[0...,0...,0...]::Get(int32, int32, int32) leave.s IL_0037 } catch [mscorlib]System.Object { //IL_0034: pop ldc.i4.3 ldc.i4.1 ldc.i4.3 newobj instance void int32[0...,0...,0...]::.ctor(int32, int32, int32) dup ldtoken field value class '<GlobalName>'/'$$struct0x6000021-2' '<GlobalName>'::'$$method0x6000021-2' call void [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class [mscorlib]System.Array, value class [mscorlib]System.RuntimeFieldHandle) stloc.1 ldloc.1 ldc.i4.0 ldc.i4.0 ldc.i4.1 call instance int32 int32[0...,0...,0...]::Get(int32, int32, int32) IL_0035: leave.s IL_0037 } // end handler IL_0037: ret } // end of method filter1::f22 .method public static void f23() il managed { // Code size 32 (0x20) .maxstack 10 .locals (class CTest V_0, int32 V_1, class CTest V_2, int32 V_3) IL_0000: newobj instance void CTest::.ctor() IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: callvirt instance int32 CTest::test() IL_000c: stloc.1 .try { IL_000d: newobj instance void CTest::.ctor() IL_0012: stloc.2 IL_0013: ldloc.2 IL_0014: callvirt instance int32 CTest::test() //IL_0019: stloc.3 IL_001a: leave.s IL_001f } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void CTest::.ctor() stloc.2 ldloc.2 callvirt instance int32 CTest::test() //stloc.3 leave.s IL_001f } catch [mscorlib]System.Object { pop newobj instance void CTest::.ctor() stloc.2 ldloc.2 callvirt instance int32 CTest::test() //stloc.3 IL_001d: leave.s IL_001f } // end handler IL_001f: ret } // end of method filter1::f23 .method public static void f24() il managed { // Code size 54 (0x36) .maxstack 20 .locals (class CTest V_0, class CTest V_1) IL_0000: newobj instance void CTest::.ctor() IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: ldloc.0 IL_0008: ldftn instance void CTest::f() IL_000e: newobj instance void delegate1::.ctor(class System.Object, native unsigned int) IL_0013: callvirt instance void CTest::add_dg(class delegate1) .try { IL_0018: newobj instance void CTest::.ctor() IL_001d: stloc.1 IL_001e: ldloc.1 IL_001f: ldloc.1 IL_0020: ldftn instance void CTest::f() //IL_0026: newobj instance void delegate1::.ctor(class System.Object, // native unsigned int) //IL_002b: callvirt instance void CTest::add_dg(class delegate1) IL_0030: leave.s IL_0035 } // end .try filter { pop ldc.i4.1 endfilter } { pop newobj instance void CTest::.ctor() stloc.1 ldloc.1 ldloc.1 ldftn instance void CTest::f() leave.s IL_0035 } catch [mscorlib]System.Object { IL_0032: pop newobj instance void CTest::.ctor() stloc.1 ldloc.1 ldloc.1 ldftn instance void CTest::f() IL_0033: leave.s IL_0035 } // end handler IL_0035: ret } // end of method filter1::f24 .method public hidebysig static void f25(int32 arg) il managed { // Code size 10 (0xa) .maxstack 10 .locals (int32 V_0, int32 V_1) IL_0000: ldarg.0 IL_0001: stloc.0 .try { IL_0002: ldarg.0 //IL_0003: stloc.1 IL_0004: leave.s IL_0009 } // end .try filter { pop ldc.i4.1 endfilter } { ldarg.0 leave.s IL_0009 } catch [mscorlib]System.Object { //IL_0006: pop ldarg.0 IL_0007: leave.s IL_0009 } // end handler IL_0009: ret } // end of method filter1::f25 .method public hidebysig static void f26(unsigned int16 arg1, int32 arg2, class System.String arg3, class System.Object arg4) il managed { // Code size 26 (0x1a) .maxstack 10 .locals (unsigned int16 V_0, int32 V_1, class System.String V_2, class System.Object V_3, unsigned int16 V_4, int32 V_5, class System.String V_6, class System.Object V_7) IL_0000: ldarg.0 IL_0001: stloc.0 IL_0002: ldarg.1 IL_0003: stloc.1 IL_0004: ldarg.2 IL_0005: stloc.2 IL_0006: ldarg.3 IL_0007: stloc.3 .try { IL_0008: ldarg.0 //IL_0009: stloc.s V_4 IL_000b: ldarg.1 //IL_000c: stloc.s V_5 IL_000e: ldarg.2 //IL_000f: stloc.s V_6 IL_0011: ldarg.3 //IL_0012: stloc.s V_7 IL_0014: leave.s IL_0019 } // end .try filter { pop ldc.i4.1 endfilter } { ldarg.0 ldarg.1 ldarg.2 ldarg.3 leave.s IL_0019 } catch [mscorlib]System.Object { //IL_0016: pop ldarg.0 ldarg.1 ldarg.2 ldarg.3 IL_0017: leave.s IL_0019 } // end handler IL_0019: ret } // end of method filter1::f26 .method public hidebysig static void f27() il managed { // Code size 14 (0xe) .maxstack 10 .locals (int16 V_0, int16 V_1) IL_0000: ldc.i4 0xfffffc18 IL_0005: stloc.0 .try { IL_0006: ldloc.0 //IL_0007: stloc.1 IL_0008: leave.s IL_000d } // end .try filter { pop ldc.i4.1 endfilter } { ldloc.0 leave.s IL_000d } catch [mscorlib]System.Object { //IL_000a: pop ldloc.0 IL_000b: leave.s IL_000d } // end handler IL_000d: ret } // end of method filter1::f27 .method public hidebysig static void f28() il managed { // Code size 67 (0x43) .maxstack 20 .locals (unsigned int8 V_0, class System.String V_1, int32 V_2, class System.String[] V_3, unsigned int8 V_4, class System.String V_5, int32 V_6, class System.String[] V_7, int32 V_8, class System.String[] V_9) IL_0000: ldc.i4.s 20 IL_0002: stloc.0 IL_0003: ldstr "f28" IL_0008: stloc.1 IL_0009: ldc.i4 0xffff15a0 IL_000e: stloc.2 IL_000f: ldc.i4.2 IL_0010: newarr [mscorlib]System.String IL_0015: stloc.s V_9 IL_0017: ldloc.s V_9 IL_0019: ldc.i4.0 IL_001a: ldstr "a" IL_001f: stelem.ref IL_0020: ldloc.s V_9 IL_0022: ldc.i4.1 IL_0023: ldstr "b" IL_0028: stelem.ref IL_0029: ldloc.s V_9 IL_002b: stloc.3 .try { IL_002c: ldloc.0 //IL_002d: stloc.s V_4 IL_002f: ldloc.1 //IL_0030: stloc.s V_5 IL_0032: ldloc.2 //IL_0033: stloc.s V_6 IL_0035: ldloc.3 //IL_0036: stloc.s V_7 IL_0038: ldloc.3 IL_0039: ldlen IL_003a: conv.i4 //IL_003b: stloc.s V_8 IL_003d: leave.s IL_0042 } // end .try filter { pop ldc.i4.1 endfilter } { ldloc.0 ldloc.1 ldloc.2 ldloc.3 ldloc.3 ldlen leave.s IL_0042 } catch [mscorlib]System.Object { //IL_003f: pop ldloc.0 ldloc.1 ldloc.2 ldloc.3 ldloc.3 ldlen IL_0040: leave.s IL_0042 } // end handler IL_0042: ret } // end of method filter1::f28 .method public hidebysig static void f29() il managed { // Code size 24 (0x18) .maxstack 20 .locals (unsigned int16 V_0, unsigned int16* V_1, unsigned int16 V_2, unsigned int16 BUF) IL_0000: ldc.i4 0x3e8 IL_0005: stloc.0 .try { IL_0006: ldc.i4.2 IL_0007: ldc.i4.1 IL_0008: mul IL_0009: localloc IL_000b: stloc.1 IL_000c: ldloc.1 IL_000d: ldloc.0 IL_000e: stind.i2 IL_000f: ldloc.1 IL_0010: ldind.u2 //IL_0011: stloc.2 IL_0012: leave.s IL_0017 } // end .try filter { pop ldc.i4.1 endfilter } { pop ldc.i4.2 ldc.i4.1 mul pop ldloca.s BUF //localloc stloc.1 //nullref exception if un-commented ldloc.1 ldloc.0 stind.i2 ldloc.1 ldind.u2 leave.s IL_0017 } catch [mscorlib]System.Object { IL_0014: pop ldc.i4.2 ldc.i4.1 mul pop ldloca.s BUF //localloc stloc.1 //nullref exception if un-commented ldloc.1 ldloc.0 stind.i2 ldloc.1 ldind.u2 IL_0015: leave.s IL_0017 } // end handler IL_0017: ret } // end of method filter1::f29 .method public static int32 Main() il managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint // Code size 156 (0x9c) .maxstack 20 .locals (bool V_0, int32 V_1) IL_0000: ldc.i4.1 IL_0001: stloc.0 IL_0002: call void filter1::f1() IL_0007: call void filter1::f2() IL_000c: call void filter1::f3() IL_0011: call void filter1::f4() IL_0016: call void filter1::f5() IL_001b: call void filter1::f6() IL_0020: call void filter1::f7() IL_0025: call void filter1::f8() IL_002a: call void filter1::f9() IL_002f: call void filter1::f10() IL_0034: call void filter1::f11() IL_0039: call void filter1::f12() IL_003e: call void filter1::f13() IL_0043: call void filter1::f14() IL_0048: call void filter1::f15() IL_004d: call void filter1::f16() IL_0052: call void filter1::f17() IL_0057: call void filter1::f18() IL_005c: call void filter1::f19() IL_0061: call void filter1::f20a() call void filter1::f20b() IL_0066: call void filter1::f21() IL_006b: call void filter1::f22() IL_0070: call void filter1::f23() IL_0075: call void filter1::f24() ldc.i4 0x9c40 call void filter1::f25(int32) ldc.i4 0xff ldc.i4 0x80000000 ldstr "f26" newobj instance void [mscorlib]System.Object::.ctor() call void filter1::f26(unsigned int16, int32, class System.String, class System.Object) call void filter1::f27() call void filter1::f28() call void filter1::f29() IL_007a: ldloc.0 IL_007b: brfalse.s IL_008c IL_007d: ldstr "PASSED" IL_0082: call void [System.Console]System.Console::WriteLine(class System.String) IL_0087: ldc.i4.s 100 IL_0089: stloc.1 IL_008a: br.s IL_009a IL_008c: ldstr "FAILED" IL_0091: call void [System.Console]System.Console::WriteLine(class System.String) IL_0096: ldc.i4.1 IL_0097: stloc.1 IL_0098: br.s IL_009a IL_009a: ldloc.1 IL_009b: ret } // end of method filter1::Main .method public hidebysig specialname rtspecialname instance void .ctor() { // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Object::.ctor() IL_0006: ret } // end of method filter1::.ctor } // end of class filter1 .class private '<GlobalName>' extends [mscorlib]System.Object { .class explicit sealed nested private '$$struct0x6000020-1' extends [mscorlib]System.ValueType { .pack 1 .size 16 } // end of class '$$struct0x6000020-1' .class explicit sealed nested private '$$struct0x6000020-2' extends [mscorlib]System.ValueType { .pack 1 .size 16 } // end of class '$$struct0x6000020-2' .class explicit sealed nested private '$$struct0x6000021-1' extends [mscorlib]System.ValueType { .pack 1 .size 36 } // end of class '$$struct0x6000021-1' .class explicit sealed nested private '$$struct0x6000021-2' extends [mscorlib]System.ValueType { .pack 1 .size 36 } // end of class '$$struct0x6000021-2' .field static assembly value class '<GlobalName>'/'$$struct0x6000020-1' '$$method0x6000020-1' at D_000025A0 .field static assembly value class '<GlobalName>'/'$$struct0x6000020-2' '$$method0x6000020-2' at D_000025B0 .field static assembly value class '<GlobalName>'/'$$struct0x6000021-1' '$$method0x6000021-1' at D_00002620 .field static assembly value class '<GlobalName>'/'$$struct0x6000021-2' '$$method0x6000021-2' at D_00002648 } // end of class '<GlobalName>' .data D_000025A0 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00) .data D_000025B0 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 0B 30 03 00 35 00 00 00 15 00 00 11 18 18 73 07 // .0..5.........s. 00 00 0A 25 D0 07 00 00 04 28 08 00 00 0A 0A 18 // ...%.....(...... 18 73 07 00 00 0A 25 D0 08 00 00 04 28 08 00 00 // .s....%.....(... 0A 0B 07 16 17 28 09 00 00 0A 0C DE 03 26 DE 00 // .....(.......&.. 2A 00 00 00 01 10 00 00 00 00 13 00 1E 31 00 03 // *............1.. 04 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00) .data D_00002620 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 06 00 00 00 07 00 00 00 08 00 00 00 00 00 00 00) .data D_00002648 = bytearray ( 00 00 00 00 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 06 00 00 00 07 00 00 00 08 00 00 00 0B 30 04 00 38 00 00 00 16 00 00 11 // .....0..8....... 19 17 19 73 0A 00 00 0A 25 D0 09 00 00 04 28 08 // ...s....%.....(. 00 00 0A 0A 19 17 19 73 0A 00 00 0A 25 D0 0A 00 // .......s....%... 00 04 28 08 00 00 0A 0B 07 16 16 17 28 0B 00 00 // ..(.........(... 0A 0C DE 03 26 DE 00 2A 01 10 00 00 00 00 14 00 // ....&..*........ 20 34 00 03 04 00 00 01 00 00 00 00 00 00 00 00 // 4.............. 00 00 00 00 0B 30 01 00 20 00 00 00 17 00 00 11 // .....0.. ....... 73 0B 00 00 06 0A 06 6F 0A 00 00 06 0B 73 0B 00 // s......o.....s.. 00 06 0C 08 6F 0A 00 00 06 0D DE 03 26 DE 00 2A // ....o.......&..* 01 10 00 00 00 00 0D 00 0F 1C 00 03 04 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 0B 30 04 00 // .............0.. 36 00 00 00 18 00 00 11 73 0B 00 00 06 0A 06 06 // 6.......s....... FE 06 09 00 00 06 73 02 00 00 06 6F 07 00 00 06 // ......s....o.... 73 0B 00 00 06 0B 07 07 FE 06 09 00 00 06 73 02 // s.............s. 00 00 06 6F 07 00 00 06 DE 03 26 DE 00 2A 00 00 // ...o......&..*.. 01 10 00 00 00 00 18 00 1A 32 00 03 04 00 00 01 // .........2...... 00 00 00 00 00 00 00 00 00 00 00 00 03 30 01 00 // .............0.. 9C 00 00 00 19 00 00 11 17 0A 28 0C 00 00 06 28 // ..........(....( 0D 00 00 06 28 0E 00 00 06 28 0F 00 00 06 28 10 // ....(....(....(. 00 00 06 28 11 00 00 06 28 12 00 00 06 28 13 00 // ...(....(....(.. 00 06 28 14 00 00 06 28 15 00 00 06 28 16 00 00 // ..(....(....(... 06 28 17 00 00 06 28 18 00 00 06 28 19 00 00 06 // .(....(....(.... 28 1A 00 00 06 28 1B 00 00 06 28 1C 00 00 06 28 // (....(....(....( 1D 00 00 06 28 1E 00 00 06 28 1F 00 00 06 28 20 // ....(....(....( 00 00 06 28 21 00 00 06 28 22 00 00 06 28 23 00 // ...(!...("...(#. 00 06 06 2C 0F 72 31 00 00 70 28 0C 00 00 0A 1F // ...,.r1..p(..... 64 0B 2B 0E 72 3F 00 00 70 28 0C 00 00 0A 17 0B // d.+.r?..p(...... 2B 00 07 2A 1E 02 28 04 00 00 0A 2A 42 53 4A 42 // +..*..(....*BSJB 01 00 01 00 00 00 00 00 10 00 00 00 76 31 2E 30 // ............v1.0 2E 32 34 31 33 46 53 54 43 48 4B 00 00 00 05 00 // .2413FSTCHK..... 70 00 00 00 F8 04 00 00 23 7E 00 00 68 05 00 00 // p.......#~..h... 0C 03 00 00 23 53 74 72 69 6E 67 73 00 00 00 00 // ....#Strings.... 74 08 00 00 7C 01 00 00 23 42 6C 6F 62 00 00 00 // t...|...#Blob... F0 09 00 00 50 00 00 00 23 55 53 00 40 0A 00 00 // ....P...#US.@... 10 00 00 00 23 47 55 49 44 00 00 00 00 00 00 00 // ....#GUID....... 01 00 00 01 57 9F 16 29 09 02 00 00 00 FA 01 33 // ....W..).......3 00 02 00 00 01 00 00 00 0E 00 00 00 0C 00 00 00 0A 00 00 00 25 00 00 00 07 00 00 00 01 00 00 00 // ....%........... 0C 00 00 00 02 00 00 00 01 00 00 00 04 00 00 00 19 00 00 00 01 00 00 00 01 00 00 00 02 00 00 00 02 00 00 00 04 00 00 00 01 00 00 00 01 00 00 00 04 00 00 00 00 00 4C 00 01 00 00 00 00 00 06 00 // ......L......... 65 00 5E 00 06 00 72 00 5E 00 06 00 7C 00 5E 00 // e.^...r.^...|.^. 06 00 9E 00 5E 00 06 00 D8 00 5E 00 06 00 E5 00 // ....^.....^..... 5E 00 06 00 93 01 80 01 06 00 CB 01 5E 00 06 00 // ^...........^... E3 01 5E 00 06 00 EB 01 5E 00 06 00 FD 01 5E 00 // ..^.....^.....^. 06 00 58 02 38 02 06 00 67 02 5E 00 06 00 6D 02 // ..X.8...g.^...m. 5E 00 00 00 00 00 43 00 00 00 00 00 01 00 01 00 // ^.....C......... 08 01 10 00 6F 00 00 00 05 00 01 00 01 00 00 21 // ....o..........! 00 00 77 00 00 00 09 00 03 00 02 00 01 01 00 00 // ..w............. 8E 00 00 00 0D 00 06 00 02 00 A1 00 00 00 98 00 00 00 00 00 06 00 06 00 01 00 10 00 A5 00 00 00 11 00 06 00 07 00 01 00 10 00 AB 00 00 00 11 00 07 00 0C 00 00 00 00 00 03 02 00 00 11 00 07 00 26 00 03 01 00 00 10 02 00 00 05 00 0B 00 26 00 // &.............&. 03 01 00 00 90 02 00 00 05 00 0B 00 26 00 03 01 // ............&... 00 00 BC 02 00 00 05 00 0B 00 26 00 03 01 00 00 // ..........&..... E4 02 00 00 05 00 0B 00 26 00 06 00 B0 00 1F 00 // ........&....... 16 00 B2 00 1F 00 06 06 BB 00 1F 00 56 80 C3 00 // ............V... 26 00 56 80 C7 00 26 00 01 00 0E 01 50 00 13 01 // &.V...&.....P... 24 02 FD 00 13 01 A4 02 09 01 13 01 D0 02 35 01 // $.............5. 13 01 F8 02 39 01 50 20 00 00 00 00 91 18 B4 00 // ....9.P ........ 22 00 01 00 00 00 00 00 03 00 86 18 CB 00 34 00 // ".............4. 01 00 00 00 00 00 03 00 C6 00 D1 00 3A 00 03 00 // ............:... 00 00 00 00 03 00 C6 01 F3 00 3E 00 03 00 00 00 // ..........>..... 00 00 03 00 C6 01 FF 00 46 00 05 00 00 00 00 00 // ........F....... 00 00 C6 05 09 01 4C 00 06 00 58 20 00 00 20 00 // ......L...X .. . 86 08 11 01 54 00 06 00 71 20 00 00 20 00 86 08 // ....T...q .. ... 18 01 54 00 07 00 8A 20 00 00 00 00 86 00 22 01 // ..T.... ......". 3A 00 08 00 8C 20 00 00 00 00 E6 01 09 01 4C 00 // :.... ........L. 08 00 9E 20 00 00 00 00 86 18 CB 00 3A 00 08 00 // ... ........:... A8 20 00 00 00 00 96 00 24 01 22 00 08 00 D8 20 // . ......$.".... 00 00 00 00 96 00 27 01 22 00 08 00 14 21 00 00 // ......'."....!.. 00 00 96 00 2A 01 22 00 08 00 50 21 00 00 00 00 // ....*."...P!.... 96 00 2D 01 22 00 08 00 8C 21 00 00 00 00 96 00 // ..-."....!...... 30 01 22 00 08 00 C8 21 00 00 00 00 96 00 33 01 // 0."....!......3. 22 00 08 00 FC 21 00 00 00 00 96 00 36 01 22 00 // "....!......6.". 08 00 30 22 00 00 00 00 96 00 39 01 22 00 08 00 // ..0"......9."... 74 22 00 00 00 00 96 00 3C 01 22 00 08 00 A8 22 // t"......<."...." 00 00 00 00 96 00 3F 01 22 00 08 00 DC 22 00 00 // ......?."....".. 00 00 96 00 43 01 22 00 08 00 18 23 00 00 00 00 // ....C."....#.... 96 00 47 01 22 00 08 00 5C 23 00 00 00 00 96 00 // ..G."...\#...... 4B 01 22 00 08 00 90 23 00 00 00 00 96 00 4F 01 // K."....#......O. 22 00 08 00 E0 23 00 00 00 00 96 00 53 01 22 00 // "....#......S.". 08 00 54 24 00 00 00 00 96 00 57 01 22 00 08 00 // ..T$......W."... 94 24 00 00 00 00 96 00 5B 01 22 00 08 00 D0 24 // .$......[."....$ 00 00 00 00 96 00 5F 01 22 00 08 00 0C 25 00 00 // ......_."....%.. 00 00 96 00 63 01 22 00 08 00 48 25 00 00 00 00 // ....c."...H%.... 96 00 67 01 22 00 08 00 C0 25 00 00 00 00 96 00 // ..g."....%...... 6B 01 22 00 08 00 6C 26 00 00 00 00 96 00 6F 01 // k."...l&......o. 22 00 08 00 CC 26 00 00 00 00 96 00 73 01 22 00 // "....&......s.". 08 00 14 27 00 00 00 00 96 00 77 01 22 00 08 00 // ...'......w."... 74 27 00 00 00 00 96 00 7B 01 5A 00 08 00 1C 28 // t'......{.Z....( 00 00 00 00 86 18 CB 00 3A 00 08 00 00 00 01 00 // ........:....... A7 01 00 00 02 00 AE 01 00 00 01 00 B5 01 00 00 02 00 A7 01 00 00 01 00 BE 01 00 00 01 00 C5 01 00 00 01 00 C5 01 06 00 14 00 39 00 CB 00 5E 00 // ..........9...^. 41 00 D4 01 64 00 41 00 DC 01 64 00 21 00 CB 00 // A...d.A...d.!... 3A 00 49 00 CB 00 AD 00 51 00 F3 01 C8 00 0C 00 // :.I.....Q....... CB 00 F7 00 61 00 80 02 01 01 0C 00 B8 02 0D 01 // ....a........... 14 00 CB 00 2E 01 14 00 B8 02 3D 01 51 00 F3 01 // ..........=.Q... 68 01 08 00 10 00 2A 00 08 00 14 00 2F 00 2E 00 // h.....*...../... 0B 00 72 01 01 00 10 00 00 00 09 00 01 00 10 00 // ..r............. 00 00 0A 00 01 00 24 00 00 00 0B 00 01 00 24 00 // ......$.......$. 00 00 0C 00 6D 00 71 00 76 00 7B 00 80 00 85 00 // ....m.q.v.{..... 8A 00 8F 00 94 00 99 00 9E 00 A3 00 A8 00 B6 00 BD 00 CD 00 D4 00 D9 00 E0 00 E5 00 13 01 44 01 // ..............D. 58 01 61 01 6D 01 06 00 01 00 00 00 0E 01 10 00 // X.a.m........... 08 00 07 00 02 00 10 00 08 00 02 00 EF 00 25 01 // ..............%. A0 25 00 00 07 00 B0 25 00 00 08 00 20 26 00 00 // .%.....%.... &.. 09 00 48 26 00 00 0A 00 04 80 00 00 00 00 00 00 // ..H&............ 00 00 00 00 00 00 00 00 00 00 AB 00 00 00 01 00 00 00 6B 09 00 00 00 00 00 00 01 00 55 00 00 00 // ..k.........U... 0A 00 09 00 08 00 0A 00 08 00 0B 00 08 00 0C 00 08 00 00 00 00 56 65 72 73 69 6F 6E 20 6F 66 20 // .....Version of 72 75 6E 74 69 6D 65 20 61 67 61 69 6E 73 74 20 // runtime against 77 68 69 63 68 20 74 68 65 20 62 69 6E 61 72 79 // which the binary 20 69 73 20 62 75 69 6C 74 20 3A 20 31 2E 30 2E // is built : 1.0. 32 34 31 33 2E 30 00 3C 4D 6F 64 75 6C 65 3E 00 // 2413.0.<Module>. 74 72 79 31 2E 65 78 65 00 6D 73 63 6F 72 6C 69 // filter1.exe.mscorli 62 00 53 79 73 74 65 6D 00 56 61 6C 75 65 54 79 // b.System.ValueTy 70 65 00 56 54 00 45 6E 75 6D 00 44 61 79 73 00 // pe.VT.Enum.Days. 4D 75 6C 74 69 63 61 73 74 44 65 6C 65 67 61 74 // MulticastDelegat 65 00 64 65 6C 65 67 61 74 65 31 00 49 54 65 73 // e.delegate1.ITes 74 00 4F 62 6A 65 63 74 00 43 54 65 73 74 00 74 // t.Object.CTest.t 72 79 31 00 6D 00 6E 00 2E 63 63 74 6F 72 00 76 // ry1.m.n..cctor.v 61 6C 75 65 5F 5F 00 53 75 6E 00 4D 6F 6E 00 2E // alue__.Sun.Mon.. 63 74 6F 72 00 49 6E 76 6F 6B 65 00 49 41 73 79 // ctor.Invoke.IAsy 6E 63 52 65 73 75 6C 74 00 41 73 79 6E 63 43 61 // ncResult.AsyncCa 6C 6C 62 61 63 6B 00 42 65 67 69 6E 49 6E 76 6F // llback.BeginInvo 6B 65 00 45 6E 64 49 6E 76 6F 6B 65 00 74 65 73 // ke.EndInvoke.tes 74 00 64 67 00 61 64 64 5F 64 67 00 72 65 6D 6F // t.dg.add_dg.remo 76 65 5F 64 67 00 66 00 66 31 00 66 32 00 66 33 // ve_dg.f.f1.f2.f3 00 66 34 00 66 35 00 66 36 00 66 37 00 66 38 00 // .f4.f5.f6.f7.f8. 66 39 00 66 31 30 00 66 31 31 00 66 31 32 00 66 // f9.f10.f11.f12.f 31 33 00 66 31 34 00 66 31 35 00 66 31 36 00 66 // 13.f14.f15.f16.f 31 37 00 66 31 38 00 66 31 39 00 66 32 30 00 66 // 17.f18.f19.f20.f 32 31 00 66 32 32 00 66 32 33 00 66 32 34 00 4D // 21.f22.f23.f24.M 61 69 6E 00 53 79 73 74 65 6D 2E 44 69 61 67 6E // ain.System.Diagn 6F 73 74 69 63 73 00 44 65 62 75 67 67 61 62 6C // ostics.Debuggabl 65 41 74 74 72 69 62 75 74 65 00 6F 62 6A 65 63 // eAttribute.objec 74 00 6D 65 74 68 6F 64 00 63 61 6C 6C 62 61 63 // t.method.callbac 6B 00 72 65 73 75 6C 74 00 76 61 6C 75 65 00 44 // k.result.value.D 65 6C 65 67 61 74 65 00 43 6F 6D 62 69 6E 65 00 // elegate.Combine. 52 65 6D 6F 76 65 00 44 65 63 69 6D 61 6C 00 43 // Remove.Decimal.C 6F 6E 73 6F 6C 65 00 57 72 69 74 65 4C 69 6E 65 // onsole.WriteLine 00 49 6E 74 33 32 00 3C 47 6C 6F 62 61 6C 4E 61 // .Int32.<GlobalNa 6D 65 3E 00 24 24 73 74 72 75 63 74 30 78 36 30 // me>.$$struct0x60 30 30 30 32 30 2D 31 00 24 24 6D 65 74 68 6F 64 // 00020-1.$$method 30 78 36 30 30 30 30 32 30 2D 31 00 53 79 73 74 // 0x6000020-1.Syst 65 6D 2E 52 75 6E 74 69 6D 65 2E 43 6F 6D 70 69 // em.Runtime.Compi 6C 65 72 53 65 72 76 69 63 65 73 00 52 75 6E 74 // lerServices.Runt 69 6D 65 48 65 6C 70 65 72 73 00 41 72 72 61 79 // imeHelpers.Array 00 52 75 6E 74 69 6D 65 46 69 65 6C 64 48 61 6E // .RuntimeFieldHan 64 6C 65 00 49 6E 69 74 69 61 6C 69 7A 65 41 72 // dle.InitializeAr 72 61 79 00 24 24 73 74 72 75 63 74 30 78 36 30 // ray.$$struct0x60 30 30 30 32 30 2D 32 00 24 24 6D 65 74 68 6F 64 // 00020-2.$$method 30 78 36 30 30 30 30 32 30 2D 32 00 47 65 74 00 // 0x6000020-2.Get. 24 24 73 74 72 75 63 74 30 78 36 30 30 30 30 32 // $$struct0x600002 31 2D 31 00 24 24 6D 65 74 68 6F 64 30 78 36 30 // 1-1.$$method0x60 30 30 30 32 31 2D 31 00 24 24 73 74 72 75 63 74 // 00021-1.$$struct 30 78 36 30 30 30 30 32 31 2D 32 00 24 24 6D 65 // 0x6000021-2.$$me 74 68 6F 64 30 78 36 30 30 30 30 32 31 2D 32 00 // thod0x6000021-2. 00 08 B7 7A 5C 56 19 34 E0 89 14 11 29 F4 49 85 // ...z\V.4....).I. 0C 7F 24 30 CE E2 FD A4 90 78 8D 09 50 3B 04 02 // ..$0.....x..P;.. 06 08 03 00 00 01 03 06 11 0C 04 00 00 00 00 04 01 00 00 00 05 20 02 01 1C 19 03 20 00 01 07 20 // ..... ..... ... 02 12 15 12 19 1C 05 20 01 01 12 15 03 20 00 08 // ....... ..... .. 03 06 12 10 05 20 01 01 12 10 03 00 00 08 05 20 // ..... ......... 02 01 02 02 08 00 02 12 21 12 21 12 21 03 07 01 // ........!.!.!... 08 04 07 02 08 08 04 07 02 09 09 04 07 02 06 06 04 07 02 07 07 04 07 02 05 05 04 07 02 04 04 04 07 02 0A 0A 04 07 02 0B 0B 04 07 02 03 03 04 07 02 0C 0C 04 07 02 0D 0D 04 07 02 02 02 08 20 05 // .............. . 01 08 08 08 02 05 06 07 02 11 25 11 25 0A 07 06 // ..........%.%... 11 08 08 08 11 08 08 08 04 00 01 01 1C 06 07 02 11 0C 11 0C 04 07 02 1C 1C 06 07 02 12 1C 12 1C 04 07 02 0E 0E 09 07 04 1D 08 1D 08 08 1D 08 07 14 08 02 00 02 00 00 05 20 02 01 08 08 03 06 11 // ........ ....... 24 07 00 02 01 12 35 11 39 03 06 11 28 05 20 02 // $.....5.9...(. . 08 08 08 11 07 03 14 08 02 00 02 00 00 14 08 02 00 02 00 00 08 08 14 08 03 00 03 00 00 00 06 20 // ............... 03 01 08 08 08 03 06 11 2C 03 06 11 30 06 20 03 // ........,...0. . 08 08 08 08 13 07 03 14 08 03 00 03 00 00 00 14 08 03 00 03 00 00 00 08 08 07 04 12 18 08 12 18 08 06 07 02 12 18 12 18 04 00 01 01 0E 04 07 02 02 08 06 01 00 00 01 00 00 00 00 00 00 17 74 00 // ..............t. 65 00 73 00 74 00 20 00 73 00 74 00 72 00 69 00 // e.s.t. .s.t.r.i. 6E 00 67 00 00 17 73 00 74 00 72 00 69 00 6E 00 // n.g...s.t.r.i.n. 67 00 20 00 74 00 65 00 73 00 74 00 00 0D 50 00 // g. .t.e.s.t...P. 41 00 53 00 53 00 45 00 44 00 00 0D 46 00 41 00 // A.S.S.E.D...F.A. 49 00 4C 00 45 00 44 00 00 00 00 00 27 D8 F7 3C // I.L.E.D.....'..< 47 A8 09 42 86 5E 26 68 20 F5 4C 22 9C 32 00 00 // G..B.^&h .L".2.. 00 00 00 00 00 00 00 00 BE 32 00 00 00 20 00 00 // .........2... .. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B0 32 00 00 00 00 00 00 00 00 00 00 // .....2.......... 00 00 00 00 00 00 00 00 00 00 5F 43 6F 72 45 78 // .........._CorEx 65 4D 61 69 6E 00 6D 73 63 6F 72 65 65 2E 64 6C // eMain.mscoree.dl 6C 00 00 00 00 00 FF 25 00 20 40 00) // l......%. @. //*********** DISASSEMBLY COMPLETE ***********************
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/tracing/eventcounter/gh53564.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #if USE_MDT_EVENTSOURCE using Microsoft.Diagnostics.Tracing; #else using System.Diagnostics.Tracing; #endif using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using System.Diagnostics; namespace gh53564Tests { public class RuntimeCounterListener : EventListener { public RuntimeCounterListener(){} private DateTime? setToZeroTimestamp = null; private DateTime? mostRecentTimestamp = null; private ManualResetEvent setToZero = new ManualResetEvent(initialState: false); public ManualResetEvent ReadyToVerify { get; } = new ManualResetEvent(initialState: false); protected override void OnEventSourceCreated(EventSource source) { if (source.Name.Equals("System.Runtime")) { Dictionary<string, string> refreshInterval = new Dictionary<string, string>(); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventSourceCreated :: Setting interval to 1"); // first set interval to 1 seconds refreshInterval["EventCounterIntervalSec"] = "1"; EnableEvents(source, EventLevel.Informational, (EventKeywords)(-1), refreshInterval); // wait a moment to get some events Thread.Sleep(TimeSpan.FromSeconds(3)); // then set interval to 0 Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventSourceCreated :: Setting interval to 0"); refreshInterval["EventCounterIntervalSec"] = "0"; EnableEvents(source, EventLevel.Informational, (EventKeywords)(-1), refreshInterval); setToZeroTimestamp = DateTime.UtcNow + TimeSpan.FromSeconds(1); // Stash timestamp 1 second after setting to 0 setToZero.Set(); // then attempt to set interval back to 1 Thread.Sleep(TimeSpan.FromSeconds(3)); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventSourceCreated :: Setting interval to 1"); refreshInterval["EventCounterIntervalSec"] = "1"; EnableEvents(source, EventLevel.Informational, (EventKeywords)(-1), refreshInterval); } } protected override void OnEventWritten(EventWrittenEventArgs eventData) { if (!ReadyToVerify.WaitOne(0)) { mostRecentTimestamp = eventData.TimeStamp; if (setToZero.WaitOne(0) && mostRecentTimestamp > setToZeroTimestamp) { Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventWritten :: Setting ReadyToVerify"); ReadyToVerify.Set(); } } } public bool Verify() { if (!ReadyToVerify.WaitOne(0)) return false; Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] Verify :: Verifying"); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] setToZeroTimestamp = {setToZeroTimestamp?.ToString("hh:mm:ss.fff") ?? "NULL"}"); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] mostRecentTimestamp = {mostRecentTimestamp?.ToString("hh:mm:ss.fff") ?? "NULL"}"); return (setToZeroTimestamp is null || mostRecentTimestamp is null) ? false : setToZeroTimestamp < mostRecentTimestamp; } } public partial class TestRuntimeEventCounter { public static int Main(string[] args) { // Create an EventListener. using (RuntimeCounterListener myListener = new RuntimeCounterListener()) { if (myListener.ReadyToVerify.WaitOne(TimeSpan.FromSeconds(30))) { if (myListener.Verify()) { Console.WriteLine("Test passed"); return 100; } else { Console.WriteLine($"Test Failed - did not see one or more of the expected runtime counters."); return 1; } } else { Console.WriteLine("Test Failed - timed out waiting for reset"); return 1; } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #if USE_MDT_EVENTSOURCE using Microsoft.Diagnostics.Tracing; #else using System.Diagnostics.Tracing; #endif using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using System.Diagnostics; namespace gh53564Tests { public class RuntimeCounterListener : EventListener { public RuntimeCounterListener(){} private DateTime? setToZeroTimestamp = null; private DateTime? mostRecentTimestamp = null; private ManualResetEvent setToZero = new ManualResetEvent(initialState: false); public ManualResetEvent ReadyToVerify { get; } = new ManualResetEvent(initialState: false); protected override void OnEventSourceCreated(EventSource source) { if (source.Name.Equals("System.Runtime")) { Dictionary<string, string> refreshInterval = new Dictionary<string, string>(); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventSourceCreated :: Setting interval to 1"); // first set interval to 1 seconds refreshInterval["EventCounterIntervalSec"] = "1"; EnableEvents(source, EventLevel.Informational, (EventKeywords)(-1), refreshInterval); // wait a moment to get some events Thread.Sleep(TimeSpan.FromSeconds(3)); // then set interval to 0 Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventSourceCreated :: Setting interval to 0"); refreshInterval["EventCounterIntervalSec"] = "0"; EnableEvents(source, EventLevel.Informational, (EventKeywords)(-1), refreshInterval); setToZeroTimestamp = DateTime.UtcNow + TimeSpan.FromSeconds(1); // Stash timestamp 1 second after setting to 0 setToZero.Set(); // then attempt to set interval back to 1 Thread.Sleep(TimeSpan.FromSeconds(3)); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventSourceCreated :: Setting interval to 1"); refreshInterval["EventCounterIntervalSec"] = "1"; EnableEvents(source, EventLevel.Informational, (EventKeywords)(-1), refreshInterval); } } protected override void OnEventWritten(EventWrittenEventArgs eventData) { if (!ReadyToVerify.WaitOne(0)) { mostRecentTimestamp = eventData.TimeStamp; if (setToZero.WaitOne(0) && mostRecentTimestamp > setToZeroTimestamp) { Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] OnEventWritten :: Setting ReadyToVerify"); ReadyToVerify.Set(); } } } public bool Verify() { if (!ReadyToVerify.WaitOne(0)) return false; Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] Verify :: Verifying"); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] setToZeroTimestamp = {setToZeroTimestamp?.ToString("hh:mm:ss.fff") ?? "NULL"}"); Console.WriteLine($"[{DateTime.UtcNow:hh:mm:ss.fff}] mostRecentTimestamp = {mostRecentTimestamp?.ToString("hh:mm:ss.fff") ?? "NULL"}"); return (setToZeroTimestamp is null || mostRecentTimestamp is null) ? false : setToZeroTimestamp < mostRecentTimestamp; } } public partial class TestRuntimeEventCounter { public static int Main(string[] args) { // Create an EventListener. using (RuntimeCounterListener myListener = new RuntimeCounterListener()) { if (myListener.ReadyToVerify.WaitOne(TimeSpan.FromSeconds(30))) { if (myListener.Verify()) { Console.WriteLine("Test passed"); return 100; } else { Console.WriteLine($"Test Failed - did not see one or more of the expected runtime counters."); return 1; } } else { Console.WriteLine("Test Failed - timed out waiting for reset"); return 1; } } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Net.Http/tests/UnitTests/Headers/GenericHeaderParserTest/RetryConditionParserTest.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.Linq; using System.Net.Http.Headers; using System.Text; using Xunit; namespace System.Net.Http.Tests { public class RetryConditionParserTest { [Fact] public void Properties_ReadValues_MatchExpectation() { HttpHeaderParser parser = GenericHeaderParser.RetryConditionParser; Assert.False(parser.SupportsMultipleValues); Assert.Null(parser.Comparer); } [Fact] public void TryParse_SetOfValidValueStrings_ParsedCorrectly() { CheckValidParsedValue("X 123456789 ", 1, new RetryConditionHeaderValue(new TimeSpan(0, 0, 123456789)), 13); CheckValidParsedValue(" Sun, 06 Nov 1994 08:49:37 GMT ", 0, new RetryConditionHeaderValue(new DateTimeOffset(1994, 11, 6, 8, 49, 37, TimeSpan.Zero)), 32); } [Fact] public void TryParse_SetOfInvalidValueStrings_ReturnsFalse() { CheckInvalidParsedValue("123 ,", 0); // no delimiter allowed CheckInvalidParsedValue("Sun, 06 Nov 1994 08:49:37 GMT ,", 0); // no delimiter allowed CheckInvalidParsedValue("123 Sun, 06 Nov 1994 08:49:37 GMT", 0); CheckInvalidParsedValue("Sun, 06 Nov 1994 08:49:37 GMT \"x\"", 0); CheckInvalidParsedValue(null, 0); CheckInvalidParsedValue(string.Empty, 0); } #region Helper methods private void CheckValidParsedValue(string input, int startIndex, RetryConditionHeaderValue expectedResult, int expectedIndex) { HttpHeaderParser parser = GenericHeaderParser.RetryConditionParser; object result = null; Assert.True(parser.TryParseValue(input, null, ref startIndex, out result), string.Format("TryParse returned false. Input: '{0}'", input)); Assert.Equal(expectedIndex, startIndex); Assert.Equal(expectedResult, result); } private void CheckInvalidParsedValue(string input, int startIndex) { HttpHeaderParser parser = GenericHeaderParser.RetryConditionParser; object result = null; int newIndex = startIndex; Assert.False(parser.TryParseValue(input, null, ref newIndex, out result), string.Format("TryParse returned true. Input: '{0}'", input)); Assert.Null(result); Assert.Equal(startIndex, newIndex); } #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; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using System.Text; using Xunit; namespace System.Net.Http.Tests { public class RetryConditionParserTest { [Fact] public void Properties_ReadValues_MatchExpectation() { HttpHeaderParser parser = GenericHeaderParser.RetryConditionParser; Assert.False(parser.SupportsMultipleValues); Assert.Null(parser.Comparer); } [Fact] public void TryParse_SetOfValidValueStrings_ParsedCorrectly() { CheckValidParsedValue("X 123456789 ", 1, new RetryConditionHeaderValue(new TimeSpan(0, 0, 123456789)), 13); CheckValidParsedValue(" Sun, 06 Nov 1994 08:49:37 GMT ", 0, new RetryConditionHeaderValue(new DateTimeOffset(1994, 11, 6, 8, 49, 37, TimeSpan.Zero)), 32); } [Fact] public void TryParse_SetOfInvalidValueStrings_ReturnsFalse() { CheckInvalidParsedValue("123 ,", 0); // no delimiter allowed CheckInvalidParsedValue("Sun, 06 Nov 1994 08:49:37 GMT ,", 0); // no delimiter allowed CheckInvalidParsedValue("123 Sun, 06 Nov 1994 08:49:37 GMT", 0); CheckInvalidParsedValue("Sun, 06 Nov 1994 08:49:37 GMT \"x\"", 0); CheckInvalidParsedValue(null, 0); CheckInvalidParsedValue(string.Empty, 0); } #region Helper methods private void CheckValidParsedValue(string input, int startIndex, RetryConditionHeaderValue expectedResult, int expectedIndex) { HttpHeaderParser parser = GenericHeaderParser.RetryConditionParser; object result = null; Assert.True(parser.TryParseValue(input, null, ref startIndex, out result), string.Format("TryParse returned false. Input: '{0}'", input)); Assert.Equal(expectedIndex, startIndex); Assert.Equal(expectedResult, result); } private void CheckInvalidParsedValue(string input, int startIndex) { HttpHeaderParser parser = GenericHeaderParser.RetryConditionParser; object result = null; int newIndex = startIndex; Assert.False(parser.TryParseValue(input, null, ref newIndex, out result), string.Format("TryParse returned true. Input: '{0}'", input)); Assert.Null(result); Assert.Equal(startIndex, newIndex); } #endregion } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/Regressions/coreclr/GitHub_16833/Test16833.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="test16833.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="$(TestSourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="test16833.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="$(TestSourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/AesCcm.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; using Internal.Cryptography; namespace System.Security.Cryptography { [UnsupportedOSPlatform("browser")] [UnsupportedOSPlatform("ios")] [UnsupportedOSPlatform("tvos")] public sealed partial class AesCcm : IDisposable { public static KeySizes NonceByteSizes { get; } = new KeySizes(7, 13, 1); public static KeySizes TagByteSizes { get; } = new KeySizes(4, 16, 2); public AesCcm(ReadOnlySpan<byte> key) { ThrowIfNotSupported(); AesAEAD.CheckKeySize(key.Length); ImportKey(key); } public AesCcm(byte[] key) { ThrowIfNotSupported(); ArgumentNullException.ThrowIfNull(key); AesAEAD.CheckKeySize(key.Length); ImportKey(key); } public void Encrypt(byte[] nonce!!, byte[] plaintext!!, byte[] ciphertext!!, byte[] tag!!, byte[]? associatedData = null) { Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData); } public void Encrypt( ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, Span<byte> tag, ReadOnlySpan<byte> associatedData = default) { CheckParameters(plaintext, ciphertext, nonce, tag); EncryptCore(nonce, plaintext, ciphertext, tag, associatedData); } public void Decrypt(byte[] nonce!!, byte[] ciphertext!!, byte[] tag!!, byte[] plaintext!!, byte[]? associatedData = null) { Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData); } public void Decrypt( ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> tag, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = default) { CheckParameters(plaintext, ciphertext, nonce, tag); DecryptCore(nonce, ciphertext, tag, plaintext, associatedData); } private static void CheckParameters( ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> tag) { if (plaintext.Length != ciphertext.Length) throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch); if (!nonce.Length.IsLegalSize(NonceByteSizes)) throw new ArgumentException(SR.Cryptography_InvalidNonceLength, nameof(nonce)); if (!tag.Length.IsLegalSize(TagByteSizes)) throw new ArgumentException(SR.Cryptography_InvalidTagLength, nameof(tag)); } private static void ThrowIfNotSupported() { if (!IsSupported) { throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(AesCcm))); } } } }
// 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; using Internal.Cryptography; namespace System.Security.Cryptography { [UnsupportedOSPlatform("browser")] [UnsupportedOSPlatform("ios")] [UnsupportedOSPlatform("tvos")] public sealed partial class AesCcm : IDisposable { public static KeySizes NonceByteSizes { get; } = new KeySizes(7, 13, 1); public static KeySizes TagByteSizes { get; } = new KeySizes(4, 16, 2); public AesCcm(ReadOnlySpan<byte> key) { ThrowIfNotSupported(); AesAEAD.CheckKeySize(key.Length); ImportKey(key); } public AesCcm(byte[] key) { ThrowIfNotSupported(); ArgumentNullException.ThrowIfNull(key); AesAEAD.CheckKeySize(key.Length); ImportKey(key); } public void Encrypt(byte[] nonce!!, byte[] plaintext!!, byte[] ciphertext!!, byte[] tag!!, byte[]? associatedData = null) { Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData); } public void Encrypt( ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, Span<byte> tag, ReadOnlySpan<byte> associatedData = default) { CheckParameters(plaintext, ciphertext, nonce, tag); EncryptCore(nonce, plaintext, ciphertext, tag, associatedData); } public void Decrypt(byte[] nonce!!, byte[] ciphertext!!, byte[] tag!!, byte[] plaintext!!, byte[]? associatedData = null) { Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData); } public void Decrypt( ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> tag, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = default) { CheckParameters(plaintext, ciphertext, nonce, tag); DecryptCore(nonce, ciphertext, tag, plaintext, associatedData); } private static void CheckParameters( ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> tag) { if (plaintext.Length != ciphertext.Length) throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch); if (!nonce.Length.IsLegalSize(NonceByteSizes)) throw new ArgumentException(SR.Cryptography_InvalidNonceLength, nameof(nonce)); if (!tag.Length.IsLegalSize(TagByteSizes)) throw new ArgumentException(SR.Cryptography_InvalidTagLength, nameof(tag)); } private static void ThrowIfNotSupported() { if (!IsSupported) { throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(AesCcm))); } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Methodical/explicit/coverage/seq_gc_short_1_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> <DebugType>None</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="seq_gc_short_1.cs" /> <Compile Include="body_safe_short.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> <DebugType>None</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="seq_gc_short_1.cs" /> <Compile Include="body_safe_short.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Fakes/FakeService.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; namespace Microsoft.Extensions.Hosting.Fakes { public class FakeService : IFakeEveryService, IDisposable { public bool Disposed { get; private set; } public void Dispose() { Disposed = true; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace Microsoft.Extensions.Hosting.Fakes { public class FakeService : IFakeEveryService, IDisposable { public bool Disposed { get; private set; } public void Dispose() { Disposed = true; } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/Common/tests/System/Xml/XPath/TestData/xp005.xml
<Doc> <Test1 Attr1='First' Attr2='Second' Attr3='Third' Attr4='Fourth' Attr5='Last'> <Child1>First</Child1> <Child2>Second</Child2> <Child3>Third</Child3> <Child4>Fourth</Child4> <Child5>Last</Child5> </Test1> <Test2 Attr1='only one'> <Child1>only one</Child1> </Test2> </Doc>
<Doc> <Test1 Attr1='First' Attr2='Second' Attr3='Third' Attr4='Fourth' Attr5='Last'> <Child1>First</Child1> <Child2>Second</Child2> <Child3>Third</Child3> <Child4>Fourth</Child4> <Child5>Last</Child5> </Test1> <Test2 Attr1='only one'> <Child1>only one</Child1> </Test2> </Doc>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECCurve.NamedCurves.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 System.Security.Cryptography { public partial struct ECCurve { /// <summary> /// Factory class for creating named curves. /// </summary> public static class NamedCurves { private const string ECDSA_P256_OID_VALUE = "1.2.840.10045.3.1.7"; // nistP256 or secP256r1 private const string ECDSA_P384_OID_VALUE = "1.3.132.0.34"; // nistP384 or secP384r1 private const string ECDSA_P521_OID_VALUE = "1.3.132.0.35"; // nistP521 or secP521r1 public static ECCurve brainpoolP160r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP160r1)); } } public static ECCurve brainpoolP160t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP160t1)); } } public static ECCurve brainpoolP192r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP192r1)); } } public static ECCurve brainpoolP192t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP192t1)); } } public static ECCurve brainpoolP224r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP224r1)); } } public static ECCurve brainpoolP224t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP224t1)); } } public static ECCurve brainpoolP256r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP256r1)); } } public static ECCurve brainpoolP256t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP256t1)); } } public static ECCurve brainpoolP320r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP320r1)); } } public static ECCurve brainpoolP320t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP320t1)); } } public static ECCurve brainpoolP384r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP384r1)); } } public static ECCurve brainpoolP384t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP384t1)); } } public static ECCurve brainpoolP512r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP512r1)); } } public static ECCurve brainpoolP512t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP512t1)); } } public static ECCurve nistP256 { get { // Hard-code nist curve as friendly name is not consistent with algorithm name return ECCurve.CreateFromValueAndName(ECDSA_P256_OID_VALUE, nameof(nistP256)); } } public static ECCurve nistP384 { get { // Hard-code nist curve as friendly name is not consistent with algorithm name return ECCurve.CreateFromValueAndName(ECDSA_P384_OID_VALUE, nameof(nistP384)); } } public static ECCurve nistP521 { get { // Hard-code nist curve as friendly name is not consistent with algorithm name return ECCurve.CreateFromValueAndName(ECDSA_P521_OID_VALUE, nameof(nistP521)); } } } } }
// 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 System.Security.Cryptography { public partial struct ECCurve { /// <summary> /// Factory class for creating named curves. /// </summary> public static class NamedCurves { private const string ECDSA_P256_OID_VALUE = "1.2.840.10045.3.1.7"; // nistP256 or secP256r1 private const string ECDSA_P384_OID_VALUE = "1.3.132.0.34"; // nistP384 or secP384r1 private const string ECDSA_P521_OID_VALUE = "1.3.132.0.35"; // nistP521 or secP521r1 public static ECCurve brainpoolP160r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP160r1)); } } public static ECCurve brainpoolP160t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP160t1)); } } public static ECCurve brainpoolP192r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP192r1)); } } public static ECCurve brainpoolP192t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP192t1)); } } public static ECCurve brainpoolP224r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP224r1)); } } public static ECCurve brainpoolP224t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP224t1)); } } public static ECCurve brainpoolP256r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP256r1)); } } public static ECCurve brainpoolP256t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP256t1)); } } public static ECCurve brainpoolP320r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP320r1)); } } public static ECCurve brainpoolP320t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP320t1)); } } public static ECCurve brainpoolP384r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP384r1)); } } public static ECCurve brainpoolP384t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP384t1)); } } public static ECCurve brainpoolP512r1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP512r1)); } } public static ECCurve brainpoolP512t1 { get { return ECCurve.CreateFromFriendlyName(nameof(brainpoolP512t1)); } } public static ECCurve nistP256 { get { // Hard-code nist curve as friendly name is not consistent with algorithm name return ECCurve.CreateFromValueAndName(ECDSA_P256_OID_VALUE, nameof(nistP256)); } } public static ECCurve nistP384 { get { // Hard-code nist curve as friendly name is not consistent with algorithm name return ECCurve.CreateFromValueAndName(ECDSA_P384_OID_VALUE, nameof(nistP384)); } } public static ECCurve nistP521 { get { // Hard-code nist curve as friendly name is not consistent with algorithm name return ECCurve.CreateFromValueAndName(ECDSA_P521_OID_VALUE, nameof(nistP521)); } } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1107/Generated1107.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 Generated1107 { .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_C1579`1<T0> extends class G2_C587`2<!T0,!T0> implements class IBase2`2<!T0,class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1579::Method7.16901<" 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 ClassMethod4546() cil managed noinlining { ldstr "G3_C1579::ClassMethod4546.16902()" ret } .method public hidebysig newslot virtual instance string ClassMethod4547() cil managed noinlining { ldstr "G3_C1579::ClassMethod4547.16903()" ret } .method public hidebysig newslot virtual instance string 'G2_C587<T0,T0>.ClassMethod2548'() cil managed noinlining { .override method instance string class G2_C587`2<!T0,!T0>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ret } .method public hidebysig newslot virtual instance string 'G2_C587<T0,T0>.ClassMethod2550'<M0>() cil managed noinlining { .override method instance string class G2_C587`2<!T0,!T0>::ClassMethod2550<[1]>() ldstr "G3_C1579::ClassMethod2550.MI.16905<" 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_C587`2<!T0,!T0>::.ctor() ret } } .class public G2_C587`2<T0, T1> extends class G1_C11`2<class BaseClass1,!T1> implements class IBase1`1<class BaseClass0>, class IBase2`2<!T1,!T0> { .method public hidebysig newslot virtual instance string Method4() cil managed noinlining { ldstr "G2_C587::Method4.10407()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C587::Method5.10408()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C587::Method6.10409<" 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 string Method7<M0>() cil managed noinlining { ldstr "G2_C587::Method7.10410<" 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 "G2_C587::Method7.MI.10411<" 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 ClassMethod2547() cil managed noinlining { ldstr "G2_C587::ClassMethod2547.10412()" ret } .method public hidebysig newslot virtual instance string ClassMethod2548() cil managed noinlining { ldstr "G2_C587::ClassMethod2548.10413()" ret } .method public hidebysig newslot virtual instance string ClassMethod2549<M0>() cil managed noinlining { ldstr "G2_C587::ClassMethod2549.10414<" 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 ClassMethod2550<M0>() cil managed noinlining { ldstr "G2_C587::ClassMethod2550.10415<" 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_C11<class BaseClass1,T1>.ClassMethod1344'<M0>() cil managed noinlining { .override method instance string class G1_C11`2<class BaseClass1,!T1>::ClassMethod1344<[1]>() ldstr "G2_C587::ClassMethod1344.MI.10416<" 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_C11<class BaseClass1,T1>.ClassMethod1345'<M0>() cil managed noinlining { .override method instance string class G1_C11`2<class BaseClass1,!T1>::ClassMethod1345<[1]>() ldstr "G2_C587::ClassMethod1345.MI.10417<" 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_C11`2<class BaseClass1,!T1>::.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_C11`2<T0, T1> implements class IBase2`2<class BaseClass1,!T1>, class IBase1`1<class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C11::Method7.4854<" 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<class BaseClass1,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,!T1>::Method7<[1]>() ldstr "G1_C11::Method7.MI.4855<" 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 string Method4() cil managed noinlining { ldstr "G1_C11::Method4.4856()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G1_C11::Method4.MI.4857()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G1_C11::Method5.4858()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G1_C11::Method6.4859<" 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 "G1_C11::Method6.MI.4860<" 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 ClassMethod1344<M0>() cil managed noinlining { ldstr "G1_C11::ClassMethod1344.4861<" 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 ClassMethod1345<M0>() cil managed noinlining { ldstr "G1_C11::ClassMethod1345.4862<" 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 Generated1107 { .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_C1579.T<T0,(class G3_C1579`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 17 .locals init (string[] actualResults) ldc.i4.s 12 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1579.T<T0,(class G3_C1579`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 12 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod4546() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod4547() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1579.A<(class G3_C1579`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 17 .locals init (string[] actualResults) ldc.i4.s 12 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1579.A<(class G3_C1579`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 12 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4546() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4547() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`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_C1579.B<(class G3_C1579`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 17 .locals init (string[] actualResults) ldc.i4.s 12 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1579.B<(class G3_C1579`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 12 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4546() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4547() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`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_C587.T.T<T0,T1,(class G2_C587`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.T.T<T0,T1,(class G2_C587`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.A.T<T1,(class G2_C587`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.A.T<T1,(class G2_C587`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.A.A<(class G2_C587`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.A.A<(class G2_C587`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.A.B<(class G2_C587`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.A.B<(class G2_C587`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.B.T<T1,(class G2_C587`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.B.T<T1,(class G2_C587`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.B.A<(class G2_C587`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.B.A<(class G2_C587`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.B.B<(class G2_C587`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.B.B<(class G2_C587`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C11.T.T<T0,T1,(class G1_C11`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.T.T<T0,T1,(class G1_C11`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.A.T<T1,(class G1_C11`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.A.T<T1,(class G1_C11`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.A.A<(class G1_C11`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.A.A<(class G1_C11`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.A.B<(class G1_C11`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.A.B<(class G1_C11`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.B.T<T1,(class G1_C11`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.B.T<T1,(class G1_C11`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.B.A<(class G1_C11`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.B.A<(class G1_C11`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.B.B<(class G1_C11`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.B.B<(class G1_C11`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C1579`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4547() ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4546() ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method7<object>() ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1579`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4547() ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4546() ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method7<object>() ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<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 "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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 "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C1579`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass0,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.A<class G3_C1579`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1579`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G3_C1579`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass0,class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.B<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G1_C11`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`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_C1579`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod4547() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod4546() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method5() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method4() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1579`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod4547() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod4546() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method5() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method4() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<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 G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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 Generated1107::MethodCallingTest() call void Generated1107::ConstrainedCallsTest() call void Generated1107::StructConstrainedInterfaceCallsTest() call void Generated1107::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 Generated1107 { .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_C1579`1<T0> extends class G2_C587`2<!T0,!T0> implements class IBase2`2<!T0,class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1579::Method7.16901<" 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 ClassMethod4546() cil managed noinlining { ldstr "G3_C1579::ClassMethod4546.16902()" ret } .method public hidebysig newslot virtual instance string ClassMethod4547() cil managed noinlining { ldstr "G3_C1579::ClassMethod4547.16903()" ret } .method public hidebysig newslot virtual instance string 'G2_C587<T0,T0>.ClassMethod2548'() cil managed noinlining { .override method instance string class G2_C587`2<!T0,!T0>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ret } .method public hidebysig newslot virtual instance string 'G2_C587<T0,T0>.ClassMethod2550'<M0>() cil managed noinlining { .override method instance string class G2_C587`2<!T0,!T0>::ClassMethod2550<[1]>() ldstr "G3_C1579::ClassMethod2550.MI.16905<" 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_C587`2<!T0,!T0>::.ctor() ret } } .class public G2_C587`2<T0, T1> extends class G1_C11`2<class BaseClass1,!T1> implements class IBase1`1<class BaseClass0>, class IBase2`2<!T1,!T0> { .method public hidebysig newslot virtual instance string Method4() cil managed noinlining { ldstr "G2_C587::Method4.10407()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C587::Method5.10408()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C587::Method6.10409<" 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 string Method7<M0>() cil managed noinlining { ldstr "G2_C587::Method7.10410<" 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 "G2_C587::Method7.MI.10411<" 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 ClassMethod2547() cil managed noinlining { ldstr "G2_C587::ClassMethod2547.10412()" ret } .method public hidebysig newslot virtual instance string ClassMethod2548() cil managed noinlining { ldstr "G2_C587::ClassMethod2548.10413()" ret } .method public hidebysig newslot virtual instance string ClassMethod2549<M0>() cil managed noinlining { ldstr "G2_C587::ClassMethod2549.10414<" 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 ClassMethod2550<M0>() cil managed noinlining { ldstr "G2_C587::ClassMethod2550.10415<" 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_C11<class BaseClass1,T1>.ClassMethod1344'<M0>() cil managed noinlining { .override method instance string class G1_C11`2<class BaseClass1,!T1>::ClassMethod1344<[1]>() ldstr "G2_C587::ClassMethod1344.MI.10416<" 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_C11<class BaseClass1,T1>.ClassMethod1345'<M0>() cil managed noinlining { .override method instance string class G1_C11`2<class BaseClass1,!T1>::ClassMethod1345<[1]>() ldstr "G2_C587::ClassMethod1345.MI.10417<" 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_C11`2<class BaseClass1,!T1>::.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_C11`2<T0, T1> implements class IBase2`2<class BaseClass1,!T1>, class IBase1`1<class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C11::Method7.4854<" 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<class BaseClass1,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,!T1>::Method7<[1]>() ldstr "G1_C11::Method7.MI.4855<" 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 string Method4() cil managed noinlining { ldstr "G1_C11::Method4.4856()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G1_C11::Method4.MI.4857()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G1_C11::Method5.4858()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G1_C11::Method6.4859<" 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 "G1_C11::Method6.MI.4860<" 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 ClassMethod1344<M0>() cil managed noinlining { ldstr "G1_C11::ClassMethod1344.4861<" 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 ClassMethod1345<M0>() cil managed noinlining { ldstr "G1_C11::ClassMethod1345.4862<" 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 Generated1107 { .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_C1579.T<T0,(class G3_C1579`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 17 .locals init (string[] actualResults) ldc.i4.s 12 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1579.T<T0,(class G3_C1579`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 12 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod4546() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::ClassMethod4547() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1579.A<(class G3_C1579`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 17 .locals init (string[] actualResults) ldc.i4.s 12 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1579.A<(class G3_C1579`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 12 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4546() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4547() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`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_C1579.B<(class G3_C1579`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 17 .locals init (string[] actualResults) ldc.i4.s 12 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1579.B<(class G3_C1579`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 12 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4546() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4547() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1579`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_C587.T.T<T0,T1,(class G2_C587`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.T.T<T0,T1,(class G2_C587`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.A.T<T1,(class G2_C587`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.A.T<T1,(class G2_C587`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.A.A<(class G2_C587`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.A.A<(class G2_C587`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.A.B<(class G2_C587`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.A.B<(class G2_C587`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.B.T<T1,(class G2_C587`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.B.T<T1,(class G2_C587`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.B.A<(class G2_C587`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.B.A<(class G2_C587`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C587.B.B<(class G2_C587`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 15 .locals init (string[] actualResults) ldc.i4.s 10 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C587.B.B<(class G2_C587`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 10 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C587`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_C11.T.T<T0,T1,(class G1_C11`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.T.T<T0,T1,(class G1_C11`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.A.T<T1,(class G1_C11`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.A.T<T1,(class G1_C11`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.A.A<(class G1_C11`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.A.A<(class G1_C11`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.A.B<(class G1_C11`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.A.B<(class G1_C11`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.B.T<T1,(class G1_C11`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.B.T<T1,(class G1_C11`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.B.A<(class G1_C11`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.B.A<(class G1_C11`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C11.B.B<(class G1_C11`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C11.B.B<(class G1_C11`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C11`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_C1579`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4547() ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod4546() ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method7<object>() ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass0> callvirt instance string class G3_C1579`1<class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1579`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4547() ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod4546() ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method7<object>() ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2550<object>() ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2548() ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1579`1<class BaseClass1> callvirt instance string class G3_C1579`1<class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<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 "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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 "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C587`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C587`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C11`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C11`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C1579`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass0,class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.A<class G3_C1579`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.T<class BaseClass0,class G3_C1579`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.A<class G3_C1579`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1579`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass1,class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.T<class BaseClass1,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G3_C1579::ClassMethod2548.MI.16904()#G2_C587::ClassMethod2549.10414<System.Object>()#G3_C1579::ClassMethod2550.MI.16905<System.Object>()#G3_C1579::ClassMethod4546.16902()#G3_C1579::ClassMethod4547.16903()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.G3_C1579.B<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G3_C1579`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G3_C1579`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1579::Method7.16901<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G3_C1579`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.A<class G2_C587`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.T<class BaseClass1,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.A.B<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G2_C587`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G2_C587`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass1,class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.A<class G2_C587`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G1_C11::Method4.4856()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#" call void Generated1107::M.IBase1.A<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::Method7.MI.10411<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.T.T<class BaseClass1,class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.T<class BaseClass1,class G2_C587`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()#G2_C587::ClassMethod1345.MI.10417<System.Object>()#G2_C587::ClassMethod2547.10412()#G2_C587::ClassMethod2548.10413()#G2_C587::ClassMethod2549.10414<System.Object>()#G2_C587::ClassMethod2550.10415<System.Object>()#G2_C587::Method4.10407()#G2_C587::Method5.10408()#G2_C587::Method6.10409<System.Object>()#G2_C587::Method7.10410<System.Object>()#" call void Generated1107::M.G2_C587.B.B<class G2_C587`2<class BaseClass1,class BaseClass1>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass0,class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.A.B<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.A<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::ClassMethod1344.4861<System.Object>()#G1_C11::ClassMethod1345.4862<System.Object>()#G1_C11::Method4.4856()#G1_C11::Method5.4858()#G1_C11::Method6.4859<System.Object>()#G1_C11::Method7.4854<System.Object>()#" call void Generated1107::M.G1_C11.B.B<class G1_C11`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.B.B<class G1_C11`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.T<class BaseClass0,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method4.MI.4857()#G1_C11::Method5.4858()#G1_C11::Method6.MI.4860<System.Object>()#" call void Generated1107::M.IBase1.A<class G1_C11`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.T<class BaseClass1,class G1_C11`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C11::Method7.MI.4855<System.Object>()#" call void Generated1107::M.IBase2.A.B<class G1_C11`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_C1579`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`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_C1579`1<class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod4547() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod4546() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method5() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::Method4() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass0>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass0> on type class G3_C1579`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1579`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1579`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_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod4547() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod4547.16903()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod4546() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod4546.16902()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2550<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2550.MI.16905<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2549<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2548() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::ClassMethod2548.MI.16904()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod2547() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method5() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::Method4() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod1345<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1579`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1579`1<class BaseClass1>::ClassMethod1344<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G3_C1579`1<class BaseClass1> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1579`1<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 G3_C1579`1<class BaseClass1>) ldstr "G3_C1579::Method7.16901<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1579`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass0,class BaseClass1> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass0,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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 BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass0>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass0> on type class G2_C587`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C587`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C587`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_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.MI.10411<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2550<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2550.10415<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2549<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2549.10414<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2548() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2548.10413()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod2547() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod2547.10412()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method7.10410<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method6.10409<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method5.10408()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::Method4.10407()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1345.MI.10417<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C587`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C587`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G2_C587`2<class BaseClass1,class BaseClass1>) ldstr "G2_C587::ClassMethod1344.MI.10416<System.Object>()" ldstr "class G2_C587`2<class BaseClass1,class BaseClass1> on type class G2_C587`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 G1_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass0,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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 BaseClass0>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass0>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C11`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1345<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::ClassMethod1345.4862<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::ClassMethod1344<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::ClassMethod1344.4861<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method6.4859<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method4.4856()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C11`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C11`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method7.4854<System.Object>()" ldstr "class G1_C11`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method4.MI.4857()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method5.4858()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method6.MI.4860<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G1_C11`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_C11`2<class BaseClass1,class BaseClass1>) ldstr "G1_C11::Method7.MI.4855<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C11`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 Generated1107::MethodCallingTest() call void Generated1107::ConstrainedCallsTest() call void Generated1107::StructConstrainedInterfaceCallsTest() call void Generated1107::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/mono/mono/component/diagnostics_server-stub.c
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // #include <config.h> #include "mono/component/diagnostics_server.h" #include "mono/metadata/components.h" /* * Forward declares of all static functions. */ static bool diagnostics_server_stub_available (void); static bool diagnostics_server_stub_init (void); static bool diagnostics_server_stub_shutdown (void); static void diagnostics_server_stub_pause_for_diagnostics_monitor (void); static void diagnostics_server_stub_disable (void); static MonoComponentDiagnosticsServer * component_diagnostics_server_stub_init (void); static MonoComponentDiagnosticsServer fn_table = { { MONO_COMPONENT_ITF_VERSION, &diagnostics_server_stub_available }, &diagnostics_server_stub_init, &diagnostics_server_stub_shutdown, &diagnostics_server_stub_pause_for_diagnostics_monitor, &diagnostics_server_stub_disable }; static bool diagnostics_server_stub_available (void) { return false; } static bool diagnostics_server_stub_init (void) { return true; } static bool diagnostics_server_stub_shutdown (void) { return true; } static void diagnostics_server_stub_pause_for_diagnostics_monitor (void) { } static void diagnostics_server_stub_disable (void) { } static MonoComponentDiagnosticsServer * component_diagnostics_server_stub_init (void) { return &fn_table; } MONO_COMPONENT_EXPORT_ENTRYPOINT MonoComponentDiagnosticsServer * mono_component_diagnostics_server_init (void) { return component_diagnostics_server_stub_init (); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // #include <config.h> #include "mono/component/diagnostics_server.h" #include "mono/metadata/components.h" /* * Forward declares of all static functions. */ static bool diagnostics_server_stub_available (void); static bool diagnostics_server_stub_init (void); static bool diagnostics_server_stub_shutdown (void); static void diagnostics_server_stub_pause_for_diagnostics_monitor (void); static void diagnostics_server_stub_disable (void); static MonoComponentDiagnosticsServer * component_diagnostics_server_stub_init (void); static MonoComponentDiagnosticsServer fn_table = { { MONO_COMPONENT_ITF_VERSION, &diagnostics_server_stub_available }, &diagnostics_server_stub_init, &diagnostics_server_stub_shutdown, &diagnostics_server_stub_pause_for_diagnostics_monitor, &diagnostics_server_stub_disable }; static bool diagnostics_server_stub_available (void) { return false; } static bool diagnostics_server_stub_init (void) { return true; } static bool diagnostics_server_stub_shutdown (void) { return true; } static void diagnostics_server_stub_pause_for_diagnostics_monitor (void) { } static void diagnostics_server_stub_disable (void) { } static MonoComponentDiagnosticsServer * component_diagnostics_server_stub_init (void) { return &fn_table; } MONO_COMPONENT_EXPORT_ENTRYPOINT MonoComponentDiagnosticsServer * mono_component_diagnostics_server_init (void) { return component_diagnostics_server_stub_init (); }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest492/Generated492.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 Generated492 { .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 MyStruct542`2<T0, T1> extends [mscorlib]System.ValueType implements class IBase2`2<!T0,class BaseClass0>, class IBase2`2<class BaseClass0,class BaseClass0> { .pack 0 .size 1 .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "MyStruct542::Method7.4133<" 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<T0,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,class BaseClass0>::Method7<[1]>() ldstr "MyStruct542::Method7.MI.4134<" 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 ClassMethod1079() cil managed noinlining { ldstr "MyStruct542::ClassMethod1079.4136()" ret } .method public hidebysig newslot instance string ClassMethod1080<M0>() cil managed noinlining { ldstr "MyStruct542::ClassMethod1080.4137<" 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 Generated492 { .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.MyStruct542.T.T<T0,T1,(valuetype MyStruct542`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.MyStruct542.T.T<T0,T1,(valuetype MyStruct542`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct542`2<!!T0,!!T1> callvirt instance string class IBase2`2<!!T0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct542`2<!!T0,!!T1> 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.MyStruct542.B.T<T1,(valuetype MyStruct542`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.MyStruct542.B.T<T1,(valuetype MyStruct542`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 MyStruct542`2<class BaseClass1,!!T1> 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 MyStruct542`2<class BaseClass1,!!T1> 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.MyStruct542.B.A<(valuetype MyStruct542`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.MyStruct542.B.A<(valuetype MyStruct542`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 MyStruct542`2<class BaseClass1,class BaseClass0> 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 MyStruct542`2<class BaseClass1,class BaseClass0> 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.MyStruct542.B.B<(valuetype MyStruct542`2<class BaseClass1,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.MyStruct542.B.B<(valuetype MyStruct542`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct542`2<class BaseClass1,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 MyStruct542`2<class BaseClass1,class BaseClass1> 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 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 MyStruct542`2<class BaseClass1,class BaseClass0> V_3) ldloca V_3 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloca V_3 dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1079() ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1080<object>() ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ToString() pop pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_4) ldloca V_4 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloca V_4 dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1079() ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1080<object>() ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ToString() pop pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`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) .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass0> V_7) ldloca V_7 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .try { ldloc V_7 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_7 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_7 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_8) ldloca V_8 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV12 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV13 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV14 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14: .try { ldloc V_8 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV15 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15: .try { ldloc V_8 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV16 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16: .try { ldloc V_8 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV17 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV18 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV19 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV20 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV21 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV22 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV23 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23: 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 MyStruct542`2<class BaseClass1,class BaseClass0> V_11) ldloca V_11 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> .try { ldloc V_11 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_11 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_11 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_12) ldloca V_12 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> .try { ldloc V_12 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_12 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_12 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: 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 MyStruct542`2<class BaseClass1,class BaseClass0> V_15) ldloca V_15 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1079() calli default string(object) ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1080<object>() calli default string(object) ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldnull ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_16) ldloca V_16 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1079() calli default string(object) ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1080<object>() calli default string(object) ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldnull ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`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 Generated492::MethodCallingTest() call void Generated492::ConstrainedCallsTest() call void Generated492::StructConstrainedInterfaceCallsTest() call void Generated492::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 Generated492 { .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 MyStruct542`2<T0, T1> extends [mscorlib]System.ValueType implements class IBase2`2<!T0,class BaseClass0>, class IBase2`2<class BaseClass0,class BaseClass0> { .pack 0 .size 1 .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "MyStruct542::Method7.4133<" 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<T0,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,class BaseClass0>::Method7<[1]>() ldstr "MyStruct542::Method7.MI.4134<" 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 ClassMethod1079() cil managed noinlining { ldstr "MyStruct542::ClassMethod1079.4136()" ret } .method public hidebysig newslot instance string ClassMethod1080<M0>() cil managed noinlining { ldstr "MyStruct542::ClassMethod1080.4137<" 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 Generated492 { .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.MyStruct542.T.T<T0,T1,(valuetype MyStruct542`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.MyStruct542.T.T<T0,T1,(valuetype MyStruct542`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct542`2<!!T0,!!T1> callvirt instance string class IBase2`2<!!T0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct542`2<!!T0,!!T1> 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.MyStruct542.B.T<T1,(valuetype MyStruct542`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.MyStruct542.B.T<T1,(valuetype MyStruct542`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 MyStruct542`2<class BaseClass1,!!T1> 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 MyStruct542`2<class BaseClass1,!!T1> 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.MyStruct542.B.A<(valuetype MyStruct542`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.MyStruct542.B.A<(valuetype MyStruct542`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 MyStruct542`2<class BaseClass1,class BaseClass0> 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 MyStruct542`2<class BaseClass1,class BaseClass0> 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.MyStruct542.B.B<(valuetype MyStruct542`2<class BaseClass1,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.MyStruct542.B.B<(valuetype MyStruct542`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct542`2<class BaseClass1,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 MyStruct542`2<class BaseClass1,class BaseClass1> 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 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 MyStruct542`2<class BaseClass1,class BaseClass0> V_3) ldloca V_3 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloca V_3 dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1079() ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1080<object>() ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ToString() pop pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_4) ldloca V_4 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloca V_4 dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1079() ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1080<object>() ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type MyStruct542" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ToString() pop pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`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) .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass0> V_7) ldloca V_7 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .try { ldloc V_7 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_7 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_7 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_7 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_8) ldloca V_8 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV12 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV13 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV14 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14: .try { ldloc V_8 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV15 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15: .try { ldloc V_8 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV16 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16: .try { ldloc V_8 ldstr "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.IBase2.A.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV17 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV18 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV19 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.A.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV20 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV21 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV22 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22: .try { ldloc V_8 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" call void Generated492::M.IBase2.B.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV23 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23: 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 MyStruct542`2<class BaseClass1,class BaseClass0> V_11) ldloca V_11 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> .try { ldloc V_11 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_11 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.T<class BaseClass0,valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_11 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.A<valuetype MyStruct542`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_12) ldloca V_12 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> .try { ldloc V_12 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_12 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.T<class BaseClass1,valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_12 ldstr "MyStruct542::Method7.MI.4134<System.Object>()#" + "MyStruct542::Method7.4133<System.Object>()#" call void Generated492::M.MyStruct542.B.B<valuetype MyStruct542`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: 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 MyStruct542`2<class BaseClass1,class BaseClass0> V_15) ldloca V_15 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1079() calli default string(object) ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ClassMethod1080<object>() calli default string(object) ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldnull ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct542`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct542`2<class BaseClass1,class BaseClass1> V_16) ldloca V_16 initobj valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1079() calli default string(object) ldstr "MyStruct542::ClassMethod1079.4136()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ClassMethod1080<object>() calli default string(object) ldstr "MyStruct542::ClassMethod1080.4137<System.Object>()" ldstr "valuetype MyStruct542`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldnull ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance bool valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct542`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.4133<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct542`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct542`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct542::Method7.MI.4134<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct542`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 Generated492::MethodCallingTest() call void Generated492::ConstrainedCallsTest() call void Generated492::StructConstrainedInterfaceCallsTest() call void Generated492::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest83/Generated83.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated83.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated83.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/HardwareIntrinsics/X86/Avx2_Vector128/BroadcastScalarToVector256.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.Reflection; 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 BroadcastScalarToVector256UInt16() { var test = new SimpleUnaryOpTest__BroadcastScalarToVector256UInt16(); if (test.IsSupported) { // Validates basic functionality works test.RunBasicScenario_Load(); // Validates calling via reflection works test.RunReflectionScenario_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__BroadcastScalarToVector256UInt16 { private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16); private static UInt16[] _data = new UInt16[Op1ElementCount]; private SimpleUnaryOpTest__DataTable<UInt16, UInt16> _dataTable; public SimpleUnaryOpTest__BroadcastScalarToVector256UInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new SimpleUnaryOpTest__DataTable<UInt16, UInt16>(_data, new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Avx2.BroadcastScalarToVector256( (UInt16*)(_dataTable.inArrayPtr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Avx2).GetMethod(nameof(Avx2.BroadcastScalarToVector256), new Type[] { typeof(UInt16*) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.inArrayPtr, typeof(UInt16*)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); Succeeded = false; try { RunBasicScenario_Load(); } catch (PlatformNotSupportedException) { Succeeded = true; } } private void ValidateResult(Vector128<UInt16> firstOp, void* result, [CallerMemberName] string method = "") { UInt16[] inArray = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray[0]), firstOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "") { UInt16[] inArray = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(UInt16[] firstOp, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (firstOp[0] != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if ((firstOp[0] != result[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.BroadcastScalarToVector256)}<UInt16>(Vector128<UInt16>): {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.Reflection; 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 BroadcastScalarToVector256UInt16() { var test = new SimpleUnaryOpTest__BroadcastScalarToVector256UInt16(); if (test.IsSupported) { // Validates basic functionality works test.RunBasicScenario_Load(); // Validates calling via reflection works test.RunReflectionScenario_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__BroadcastScalarToVector256UInt16 { private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16); private static UInt16[] _data = new UInt16[Op1ElementCount]; private SimpleUnaryOpTest__DataTable<UInt16, UInt16> _dataTable; public SimpleUnaryOpTest__BroadcastScalarToVector256UInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new SimpleUnaryOpTest__DataTable<UInt16, UInt16>(_data, new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Avx2.BroadcastScalarToVector256( (UInt16*)(_dataTable.inArrayPtr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Avx2).GetMethod(nameof(Avx2.BroadcastScalarToVector256), new Type[] { typeof(UInt16*) }) .Invoke(null, new object[] { Pointer.Box(_dataTable.inArrayPtr, typeof(UInt16*)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<UInt16>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); Succeeded = false; try { RunBasicScenario_Load(); } catch (PlatformNotSupportedException) { Succeeded = true; } } private void ValidateResult(Vector128<UInt16> firstOp, void* result, [CallerMemberName] string method = "") { UInt16[] inArray = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray[0]), firstOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "") { UInt16[] inArray = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(UInt16[] firstOp, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (firstOp[0] != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if ((firstOp[0] != result[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx2)}.{nameof(Avx2.BroadcastScalarToVector256)}<UInt16>(Vector128<UInt16>): {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,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/LoadAndInsertScalar.Vector128.Double.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.Reflection; 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 LoadAndInsertScalar_Vector128_Double_1() { var test = new LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_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 LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Double[] inArray1, Double[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Double>(); 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<Double, 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 Vector128<Double> _fld1; public Double _fld3; 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<Vector128<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); testStruct._fld3 = TestLibrary.Generator.GetDouble(); return testStruct; } public void RunStructFldScenario(LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1 testClass) { fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar(_fld1, 1, pFld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); } testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1 testClass) { fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pFld1), 1, pFld3 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly byte ElementIndex = 1; private static Double[] _data1 = new Double[Op1ElementCount]; private static Vector128<Double> _clsVar1; private static Double _clsVar3; private Vector128<Double> _fld1; private Double _fld3; private DataTable _dataTable; static LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); _clsVar3 = TestLibrary.Generator.GetDouble(); } public LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); _fld3 = TestLibrary.Generator.GetDouble(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, new Double[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); Double op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar( Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), 1, &op3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); Double op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), 1, &op3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); Double op3 = TestLibrary.Generator.GetDouble(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.LoadAndInsertScalar), new Type[] { typeof(Vector128<Double>), typeof(byte), typeof(Double*) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), ElementIndex, Pointer.Box(&op3, typeof(Double*)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); Double op3 = TestLibrary.Generator.GetDouble(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.LoadAndInsertScalar), new Type[] { typeof(Vector128<Double>), typeof(byte), typeof(Double*) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), ElementIndex, Pointer.Box(&op3, typeof(Double*)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); fixed (Double* pClsVar3 = &_clsVar3) { var result = AdvSimd.LoadAndInsertScalar( _clsVar1, 1, pClsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); } ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Double>* pClsVar1 = &_clsVar1) fixed (Double* pClsVar3 = &_clsVar3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pClsVar1), 1, pClsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); } ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr); var op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar(op1, 1, &op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)); var op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar(op1, 1, &op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1(); fixed (Double* pFld3 = &test._fld3) { var result = AdvSimd.LoadAndInsertScalar(test._fld1, 1, pFld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1(); fixed (Vector128<Double>* pFld1 = &test._fld1) fixed (Double* pFld3 = &test._fld3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pFld1), 1, pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar(_fld1, 1, pFld3); Unsafe.Write(_dataTable.outArrayPtr, result); } ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pFld1), 1, pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.LoadAndInsertScalar(test._fld1, 1, &test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)(&test._fld1)), 1, &test._fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, 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<Double> op1, Double op3, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(void* op1, Double op3, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(Double[] firstOp, Double thirdOp, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (BitConverter.DoubleToInt64Bits(Helpers.Insert(firstOp, ElementIndex, thirdOp, i)) != BitConverter.DoubleToInt64Bits(result[i])) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.LoadAndInsertScalar)}<Double>(Vector128<Double>, 1, Double*): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: {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.Reflection; 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 LoadAndInsertScalar_Vector128_Double_1() { var test = new LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_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 LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Double[] inArray1, Double[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Double>(); 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<Double, 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 Vector128<Double> _fld1; public Double _fld3; 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<Vector128<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); testStruct._fld3 = TestLibrary.Generator.GetDouble(); return testStruct; } public void RunStructFldScenario(LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1 testClass) { fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar(_fld1, 1, pFld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); } testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1 testClass) { fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pFld1), 1, pFld3 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly byte ElementIndex = 1; private static Double[] _data1 = new Double[Op1ElementCount]; private static Vector128<Double> _clsVar1; private static Double _clsVar3; private Vector128<Double> _fld1; private Double _fld3; private DataTable _dataTable; static LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); _clsVar3 = TestLibrary.Generator.GetDouble(); } public LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); _fld3 = TestLibrary.Generator.GetDouble(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, new Double[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); Double op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar( Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), 1, &op3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); Double op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), 1, &op3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); Double op3 = TestLibrary.Generator.GetDouble(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.LoadAndInsertScalar), new Type[] { typeof(Vector128<Double>), typeof(byte), typeof(Double*) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), ElementIndex, Pointer.Box(&op3, typeof(Double*)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); Double op3 = TestLibrary.Generator.GetDouble(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.LoadAndInsertScalar), new Type[] { typeof(Vector128<Double>), typeof(byte), typeof(Double*) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), ElementIndex, Pointer.Box(&op3, typeof(Double*)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); fixed (Double* pClsVar3 = &_clsVar3) { var result = AdvSimd.LoadAndInsertScalar( _clsVar1, 1, pClsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); } ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Double>* pClsVar1 = &_clsVar1) fixed (Double* pClsVar3 = &_clsVar3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pClsVar1), 1, pClsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); } ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr); var op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar(op1, 1, &op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)); var op3 = TestLibrary.Generator.GetDouble(); var result = AdvSimd.LoadAndInsertScalar(op1, 1, &op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1(); fixed (Double* pFld3 = &test._fld3) { var result = AdvSimd.LoadAndInsertScalar(test._fld1, 1, pFld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new LoadAndInsertTest__LoadAndInsertScalar_Vector128_Double_1(); fixed (Vector128<Double>* pFld1 = &test._fld1) fixed (Double* pFld3 = &test._fld3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pFld1), 1, pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar(_fld1, 1, pFld3); Unsafe.Write(_dataTable.outArrayPtr, result); } ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Double* pFld3 = &_fld3) { var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)pFld1), 1, pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.LoadAndInsertScalar(test._fld1, 1, &test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.LoadAndInsertScalar( AdvSimd.LoadVector128((Double*)(&test._fld1)), 1, &test._fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, 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<Double> op1, Double op3, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(void* op1, Double op3, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(Double[] firstOp, Double thirdOp, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (BitConverter.DoubleToInt64Bits(Helpers.Insert(firstOp, ElementIndex, thirdOp, i)) != BitConverter.DoubleToInt64Bits(result[i])) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.LoadAndInsertScalar)}<Double>(Vector128<Double>, 1, Double*): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: {thirdOp}"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/pal/src/libunwind/include/tdep-riscv/dwarf-config.h
/* libunwind - a platform-independent unwind library Copyright (c) 2003, 2005 Hewlett-Packard Development Company, L.P. Contributed by David Mosberger-Tang <[email protected]> Modified for riscv by Zhaofeng Li <[email protected]> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef dwarf_config_h #define dwarf_config_h /* 32 integer registers + 32 floating-point registers + 2 pseudo-registers */ #define DWARF_NUM_PRESERVED_REGS 66 #define DWARF_REGNUM_MAP_LENGTH DWARF_NUM_PRESERVED_REGS /* Not big-endian. */ #define dwarf_is_big_endian(addr_space) 0 /* Convert a pointer to a dwarf_cursor structure to a pointer to unw_cursor_t. */ #define dwarf_to_cursor(c) ((unw_cursor_t *) (c)) typedef struct dwarf_loc { unw_word_t val; unw_word_t type; /* see RISCV_LOC_TYPE_* macros. */ } dwarf_loc_t; #endif /* dwarf_config_h */
/* libunwind - a platform-independent unwind library Copyright (c) 2003, 2005 Hewlett-Packard Development Company, L.P. Contributed by David Mosberger-Tang <[email protected]> Modified for riscv by Zhaofeng Li <[email protected]> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef dwarf_config_h #define dwarf_config_h /* 32 integer registers + 32 floating-point registers + 2 pseudo-registers */ #define DWARF_NUM_PRESERVED_REGS 66 #define DWARF_REGNUM_MAP_LENGTH DWARF_NUM_PRESERVED_REGS /* Not big-endian. */ #define dwarf_is_big_endian(addr_space) 0 /* Convert a pointer to a dwarf_cursor structure to a pointer to unw_cursor_t. */ #define dwarf_to_cursor(c) ((unw_cursor_t *) (c)) typedef struct dwarf_loc { unw_word_t val; unw_word_t type; /* see RISCV_LOC_TYPE_* macros. */ } dwarf_loc_t; #endif /* dwarf_config_h */
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/CodeGenBringUpTests/div1_d.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="div1.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="div1.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Generics/Instantiation/delegates/Delegate011.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.Threading; internal delegate T GenDelegate<T>(T p1, out T p2); internal struct Foo { public T Function<T>(T i, out T j) { j = i; return i; } } internal class Test_Delegate011 { public static int Main() { int i, j; Foo inst = new Foo(); GenDelegate<int> MyDelegate = new GenDelegate<int>(inst.Function<int>); i = MyDelegate(10, out j); if ((i != 10) || (j != 10)) { Console.WriteLine("Failed Sync Invokation"); return 1; } Console.WriteLine("Test Passes"); return 100; } }
// 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.Threading; internal delegate T GenDelegate<T>(T p1, out T p2); internal struct Foo { public T Function<T>(T i, out T j) { j = i; return i; } } internal class Test_Delegate011 { public static int Main() { int i, j; Foo inst = new Foo(); GenDelegate<int> MyDelegate = new GenDelegate<int>(inst.Function<int>); i = MyDelegate(10, out j); if ((i != 10) || (j != 10)) { Console.WriteLine("Failed Sync Invokation"); return 1; } Console.WriteLine("Test Passes"); return 100; } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/coreclr/inc/check.inl
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef CHECK_INL_ #define CHECK_INL_ #include "check.h" #include "clrhost.h" #include "debugmacros.h" #include "clrtypes.h" FORCEINLINE BOOL CHECK::EnterAssert() { if (s_neverEnforceAsserts) return FALSE; #ifdef _DEBUG_IMPL m_pCount = &t_count; if (!*m_pCount) { *m_pCount = 1; return TRUE; } else return FALSE; #else // Don't bother doing recursive checks on a free build, since checks should // be extremely isolated return TRUE; #endif } FORCEINLINE void CHECK::LeaveAssert() { #ifdef _DEBUG_IMPL *m_pCount = 0; #endif } FORCEINLINE BOOL CHECK::IsInAssert() { #ifdef _DEBUG_IMPL if (!m_pCount) m_pCount = &t_count; return *m_pCount; #else return FALSE; #endif } FORCEINLINE BOOL CHECK::EnforceAssert() { if (s_neverEnforceAsserts) return FALSE; else { CHECK chk; return !chk.IsInAssert(); } } FORCEINLINE void CHECK::ResetAssert() { CHECK chk; if (chk.IsInAssert()) chk.LeaveAssert(); } inline void CHECK::SetAssertEnforcement(BOOL value) { s_neverEnforceAsserts = !value; } // Fail records the result of a condition check. Can take either a // boolean value or another check result FORCEINLINE BOOL CHECK::Fail(BOOL condition) { #ifdef _DEBUG if (!condition) { m_condition = NULL; m_file = NULL; m_line = 0; } #endif return !condition; } FORCEINLINE BOOL CHECK::Fail(const CHECK &check) { m_message = check.m_message; #ifdef _DEBUG if (m_message != NULL) { m_condition = check.m_condition; m_file = check.m_file; m_line = check.m_line; } #endif return m_message != NULL; } #ifndef _DEBUG FORCEINLINE void CHECK::Setup(LPCSTR message) { m_message = message; } FORCEINLINE LPCSTR CHECK::FormatMessage(LPCSTR messageFormat, ...) { return messageFormat; } #endif FORCEINLINE CHECK::operator BOOL () { return m_message == NULL; } FORCEINLINE BOOL CHECK::operator!() { return m_message != NULL; } inline CHECK CheckAlignment(UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK((alignment & (alignment-1)) == 0); CHECK_OK; } inline CHECK CheckAligned(UINT value, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim(value, alignment) == 0); CHECK_OK; } #ifndef HOST_UNIX // For Unix this and the previous function get the same types. // So, exclude this one. inline CHECK CheckAligned(ULONG value, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim(value, alignment) == 0); CHECK_OK; } #endif // HOST_UNIX inline CHECK CheckAligned(UINT64 value, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim(value, alignment) == 0); CHECK_OK; } inline CHECK CheckAligned(const void *address, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim((SIZE_T)address, alignment) == 0); CHECK_OK; } inline CHECK CheckOverflow(UINT value1, UINT value2) { CHECK(value1 + value2 >= value1); CHECK_OK; } #if defined(_MSC_VER) inline CHECK CheckOverflow(ULONG value1, ULONG value2) { CHECK(value1 + value2 >= value1); CHECK_OK; } #endif inline CHECK CheckOverflow(UINT64 value1, UINT64 value2) { CHECK(value1 + value2 >= value1); CHECK_OK; } inline CHECK CheckOverflow(PTR_CVOID address, UINT offset) { TADDR targetAddr = dac_cast<TADDR>(address); #if POINTER_BITS == 32 CHECK((UINT) (SIZE_T)(targetAddr) + offset >= (UINT) (SIZE_T) (targetAddr)); #else CHECK((UINT64) targetAddr + offset >= (UINT64) targetAddr); #endif CHECK_OK; } #if defined(_MSC_VER) inline CHECK CheckOverflow(const void *address, ULONG offset) { #if POINTER_BITS == 32 CHECK((ULONG) (SIZE_T) address + offset >= (ULONG) (SIZE_T) address); #else CHECK((UINT64) address + offset >= (UINT64) address); #endif CHECK_OK; } #endif inline CHECK CheckOverflow(const void *address, UINT64 offset) { #if POINTER_BITS == 32 CHECK(offset >> 32 == 0); CHECK((UINT) (SIZE_T) address + (UINT) offset >= (UINT) (SIZE_T) address); #else CHECK((UINT64) address + offset >= (UINT64) address); #endif CHECK_OK; } inline CHECK CheckUnderflow(UINT value1, UINT value2) { CHECK(value1 - value2 <= value1); CHECK_OK; } #ifndef HOST_UNIX // For Unix this and the previous function get the same types. // So, exclude this one. inline CHECK CheckUnderflow(ULONG value1, ULONG value2) { CHECK(value1 - value2 <= value1); CHECK_OK; } #endif // HOST_UNIX inline CHECK CheckUnderflow(UINT64 value1, UINT64 value2) { CHECK(value1 - value2 <= value1); CHECK_OK; } inline CHECK CheckUnderflow(const void *address, UINT offset) { #if POINTER_BITS == 32 CHECK((UINT) (SIZE_T) address - offset <= (UINT) (SIZE_T) address); #else CHECK((UINT64) address - offset <= (UINT64) address); #endif CHECK_OK; } #if defined(_MSC_VER) inline CHECK CheckUnderflow(const void *address, ULONG offset) { #if POINTER_BITS == 32 CHECK((ULONG) (SIZE_T) address - offset <= (ULONG) (SIZE_T) address); #else CHECK((UINT64) address - offset <= (UINT64) address); #endif CHECK_OK; } #endif inline CHECK CheckUnderflow(const void *address, UINT64 offset) { #if POINTER_BITS == 32 CHECK(offset >> 32 == 0); CHECK((UINT) (SIZE_T) address - (UINT) offset <= (UINT) (SIZE_T) address); #else CHECK((UINT64) address - offset <= (UINT64) address); #endif CHECK_OK; } inline CHECK CheckUnderflow(const void *address, void *address2) { #if POINTER_BITS == 32 CHECK((UINT) (SIZE_T) address - (UINT) (SIZE_T) address2 <= (UINT) (SIZE_T) address); #else CHECK((UINT64) address - (UINT64) address2 <= (UINT64) address); #endif CHECK_OK; } inline CHECK CheckZeroedMemory(const void *memory, SIZE_T size) { CHECK(CheckOverflow(memory, size)); BYTE *p = (BYTE *) memory; BYTE *pEnd = p + size; while (p < pEnd) CHECK(*p++ == 0); CHECK_OK; } inline CHECK CheckBounds(const void *rangeBase, UINT32 rangeSize, UINT32 offset) { CHECK(CheckOverflow(dac_cast<PTR_CVOID>(rangeBase), rangeSize)); CHECK(offset <= rangeSize); CHECK_OK; } inline CHECK CheckBounds(const void *rangeBase, UINT32 rangeSize, UINT32 offset, UINT32 size) { CHECK(CheckOverflow(dac_cast<PTR_CVOID>(rangeBase), rangeSize)); CHECK(CheckOverflow(offset, size)); CHECK(offset + size <= rangeSize); CHECK_OK; } #endif // CHECK_INL_
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef CHECK_INL_ #define CHECK_INL_ #include "check.h" #include "clrhost.h" #include "debugmacros.h" #include "clrtypes.h" FORCEINLINE BOOL CHECK::EnterAssert() { if (s_neverEnforceAsserts) return FALSE; #ifdef _DEBUG_IMPL m_pCount = &t_count; if (!*m_pCount) { *m_pCount = 1; return TRUE; } else return FALSE; #else // Don't bother doing recursive checks on a free build, since checks should // be extremely isolated return TRUE; #endif } FORCEINLINE void CHECK::LeaveAssert() { #ifdef _DEBUG_IMPL *m_pCount = 0; #endif } FORCEINLINE BOOL CHECK::IsInAssert() { #ifdef _DEBUG_IMPL if (!m_pCount) m_pCount = &t_count; return *m_pCount; #else return FALSE; #endif } FORCEINLINE BOOL CHECK::EnforceAssert() { if (s_neverEnforceAsserts) return FALSE; else { CHECK chk; return !chk.IsInAssert(); } } FORCEINLINE void CHECK::ResetAssert() { CHECK chk; if (chk.IsInAssert()) chk.LeaveAssert(); } inline void CHECK::SetAssertEnforcement(BOOL value) { s_neverEnforceAsserts = !value; } // Fail records the result of a condition check. Can take either a // boolean value or another check result FORCEINLINE BOOL CHECK::Fail(BOOL condition) { #ifdef _DEBUG if (!condition) { m_condition = NULL; m_file = NULL; m_line = 0; } #endif return !condition; } FORCEINLINE BOOL CHECK::Fail(const CHECK &check) { m_message = check.m_message; #ifdef _DEBUG if (m_message != NULL) { m_condition = check.m_condition; m_file = check.m_file; m_line = check.m_line; } #endif return m_message != NULL; } #ifndef _DEBUG FORCEINLINE void CHECK::Setup(LPCSTR message) { m_message = message; } FORCEINLINE LPCSTR CHECK::FormatMessage(LPCSTR messageFormat, ...) { return messageFormat; } #endif FORCEINLINE CHECK::operator BOOL () { return m_message == NULL; } FORCEINLINE BOOL CHECK::operator!() { return m_message != NULL; } inline CHECK CheckAlignment(UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK((alignment & (alignment-1)) == 0); CHECK_OK; } inline CHECK CheckAligned(UINT value, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim(value, alignment) == 0); CHECK_OK; } #ifndef HOST_UNIX // For Unix this and the previous function get the same types. // So, exclude this one. inline CHECK CheckAligned(ULONG value, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim(value, alignment) == 0); CHECK_OK; } #endif // HOST_UNIX inline CHECK CheckAligned(UINT64 value, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim(value, alignment) == 0); CHECK_OK; } inline CHECK CheckAligned(const void *address, UINT alignment) { STATIC_CONTRACT_WRAPPER; CHECK(AlignmentTrim((SIZE_T)address, alignment) == 0); CHECK_OK; } inline CHECK CheckOverflow(UINT value1, UINT value2) { CHECK(value1 + value2 >= value1); CHECK_OK; } #if defined(_MSC_VER) inline CHECK CheckOverflow(ULONG value1, ULONG value2) { CHECK(value1 + value2 >= value1); CHECK_OK; } #endif inline CHECK CheckOverflow(UINT64 value1, UINT64 value2) { CHECK(value1 + value2 >= value1); CHECK_OK; } inline CHECK CheckOverflow(PTR_CVOID address, UINT offset) { TADDR targetAddr = dac_cast<TADDR>(address); #if POINTER_BITS == 32 CHECK((UINT) (SIZE_T)(targetAddr) + offset >= (UINT) (SIZE_T) (targetAddr)); #else CHECK((UINT64) targetAddr + offset >= (UINT64) targetAddr); #endif CHECK_OK; } #if defined(_MSC_VER) inline CHECK CheckOverflow(const void *address, ULONG offset) { #if POINTER_BITS == 32 CHECK((ULONG) (SIZE_T) address + offset >= (ULONG) (SIZE_T) address); #else CHECK((UINT64) address + offset >= (UINT64) address); #endif CHECK_OK; } #endif inline CHECK CheckOverflow(const void *address, UINT64 offset) { #if POINTER_BITS == 32 CHECK(offset >> 32 == 0); CHECK((UINT) (SIZE_T) address + (UINT) offset >= (UINT) (SIZE_T) address); #else CHECK((UINT64) address + offset >= (UINT64) address); #endif CHECK_OK; } inline CHECK CheckUnderflow(UINT value1, UINT value2) { CHECK(value1 - value2 <= value1); CHECK_OK; } #ifndef HOST_UNIX // For Unix this and the previous function get the same types. // So, exclude this one. inline CHECK CheckUnderflow(ULONG value1, ULONG value2) { CHECK(value1 - value2 <= value1); CHECK_OK; } #endif // HOST_UNIX inline CHECK CheckUnderflow(UINT64 value1, UINT64 value2) { CHECK(value1 - value2 <= value1); CHECK_OK; } inline CHECK CheckUnderflow(const void *address, UINT offset) { #if POINTER_BITS == 32 CHECK((UINT) (SIZE_T) address - offset <= (UINT) (SIZE_T) address); #else CHECK((UINT64) address - offset <= (UINT64) address); #endif CHECK_OK; } #if defined(_MSC_VER) inline CHECK CheckUnderflow(const void *address, ULONG offset) { #if POINTER_BITS == 32 CHECK((ULONG) (SIZE_T) address - offset <= (ULONG) (SIZE_T) address); #else CHECK((UINT64) address - offset <= (UINT64) address); #endif CHECK_OK; } #endif inline CHECK CheckUnderflow(const void *address, UINT64 offset) { #if POINTER_BITS == 32 CHECK(offset >> 32 == 0); CHECK((UINT) (SIZE_T) address - (UINT) offset <= (UINT) (SIZE_T) address); #else CHECK((UINT64) address - offset <= (UINT64) address); #endif CHECK_OK; } inline CHECK CheckUnderflow(const void *address, void *address2) { #if POINTER_BITS == 32 CHECK((UINT) (SIZE_T) address - (UINT) (SIZE_T) address2 <= (UINT) (SIZE_T) address); #else CHECK((UINT64) address - (UINT64) address2 <= (UINT64) address); #endif CHECK_OK; } inline CHECK CheckZeroedMemory(const void *memory, SIZE_T size) { CHECK(CheckOverflow(memory, size)); BYTE *p = (BYTE *) memory; BYTE *pEnd = p + size; while (p < pEnd) CHECK(*p++ == 0); CHECK_OK; } inline CHECK CheckBounds(const void *rangeBase, UINT32 rangeSize, UINT32 offset) { CHECK(CheckOverflow(dac_cast<PTR_CVOID>(rangeBase), rangeSize)); CHECK(offset <= rangeSize); CHECK_OK; } inline CHECK CheckBounds(const void *rangeBase, UINT32 rangeSize, UINT32 offset, UINT32 size) { CHECK(CheckOverflow(dac_cast<PTR_CVOID>(rangeBase), rangeSize)); CHECK(CheckOverflow(offset, size)); CHECK(offset + size <= rangeSize); CHECK_OK; } #endif // CHECK_INL_
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b33361/b33361.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 'b33361' {} .assembly extern xunit.core {} .class ILGEN_0x8b849bfe { .field static unsigned int8 field_0x3 .method static int32 Method_0x83() { .maxstack 9 .locals (unsigned int64 local_0x0,unsigned int32 local_0x2,int8 local_0x4) ldc.i4 0x249e758f stloc local_0x2 ldc.i4 0x69e95125 stloc local_0x4 ldc.i4 0x53b22398 stsfld unsigned int8 ILGEN_0x8b849bfe::field_0x3 Start_Orphan_0: ldsfld unsigned int8 ILGEN_0x8b849bfe::field_0x3 conv.i8 ldloc local_0x4 conv.ovf.u8 mul stloc local_0x0 End_Orphan_0: ldc.i4 55 ret } .method static int32 Main() { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 20 call int32 ILGEN_0x8b849bfe::Method_0x83() ldc.i4 55 sub ldc.i4 100 add 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 'b33361' {} .assembly extern xunit.core {} .class ILGEN_0x8b849bfe { .field static unsigned int8 field_0x3 .method static int32 Method_0x83() { .maxstack 9 .locals (unsigned int64 local_0x0,unsigned int32 local_0x2,int8 local_0x4) ldc.i4 0x249e758f stloc local_0x2 ldc.i4 0x69e95125 stloc local_0x4 ldc.i4 0x53b22398 stsfld unsigned int8 ILGEN_0x8b849bfe::field_0x3 Start_Orphan_0: ldsfld unsigned int8 ILGEN_0x8b849bfe::field_0x3 conv.i8 ldloc local_0x4 conv.ovf.u8 mul stloc local_0x0 End_Orphan_0: ldc.i4 55 ret } .method static int32 Main() { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 20 call int32 ILGEN_0x8b849bfe::Method_0x83() ldc.i4 55 sub ldc.i4 100 add ret } }
-1
dotnet/runtime
66,234
Remove compiler warning suppression
Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
AaronRobinsonMSFT
2022-03-05T03:45:49Z
2022-03-09T00:57:12Z
220e67755ae6323a01011b83070dff6f84b02519
853e494abd1c1e12d28a76829b4680af7f694afa
Remove compiler warning suppression. Contributes to https://github.com/dotnet/runtime/issues/66154 All changes, except warning 4267, impact both mono and coreclr. Warning 4267 is extensive in mono and will require more effort to address. ~~@janvorli or @am11 - there are updates to the libunwind source. I was planning on submitting a PR to https://github.com/libunwind/libunwind, is that appropriate?~~ Upstream PR: https://github.com/libunwind/libunwind/pull/333 /cc @GrabYourPitchforks
./src/tests/JIT/IL_Conformance/Old/directed/ldloc_s_i8.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 ldloc_s_i8 {} .class ldloc_s_i8 { .method public static int32 test_int64() { .locals (int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64) .zeroinit .maxstack 2 ldloc.s 0x00 ldc.i8 1 add stloc.s 0x01 ldloc.s 0x01 ldc.i8 1 add stloc.s 0x02 ldloc.s 0x02 ldc.i8 1 add stloc.s 0x03 ldloc.s 0x03 ldc.i8 1 add stloc.s 0x04 ldloc.s 0x04 ldc.i8 1 add stloc.s 0x05 ldloc.s 0x05 ldc.i8 1 add stloc.s 0x06 ldloc.s 0x06 ldc.i8 1 add stloc.s 0x07 ldloc.s 0x07 ldc.i8 1 add stloc.s 0x08 ldloc.s 0x08 ldc.i8 1 add stloc.s 0x09 ldloc.s 0x09 ldc.i8 1 add stloc.s 0x0a ldloc.s 0x0a ldc.i8 1 add stloc.s 0x0b ldloc.s 0x0b ldc.i8 1 add stloc.s 0x0c ldloc.s 0x0c ldc.i8 1 add stloc.s 0x0d ldloc.s 0x0d ldc.i8 1 add stloc.s 0x0e ldloc.s 0x0e ldc.i8 1 add stloc.s 0x0f ldloc.s 0x0f ldc.i8 1 add stloc.s 0x10 ldloc.s 0x10 ldc.i8 1 add stloc.s 0x11 ldloc.s 0x11 ldc.i8 1 add stloc.s 0x12 ldloc.s 0x12 ldc.i8 1 add stloc.s 0x13 ldloc.s 0x13 ldc.i8 1 add stloc.s 0x14 ldloc.s 0x14 ldc.i8 1 add stloc.s 0x15 ldloc.s 0x15 ldc.i8 1 add stloc.s 0x8 ldloc.s 0x8 ldc.i8 1 add stloc.s 0x17 ldloc.s 0x17 ldc.i8 1 add stloc.s 0x18 ldloc.s 0x18 ldc.i8 1 add stloc.s 0x19 ldloc.s 0x19 ldc.i8 1 add stloc.s 0x1a ldloc.s 0x1a ldc.i8 1 add stloc.s 0x1b ldloc.s 0x1b ldc.i8 1 add stloc.s 0x1c ldloc.s 0x1c ldc.i8 1 add stloc.s 0x1d ldloc.s 0x1d ldc.i8 1 add stloc.s 0x1e ldloc.s 0x1e ldc.i8 1 add stloc.s 0x1f ldloc.s 0x1f ldc.i8 1 add stloc.s 0x20 ldloc.s 0x20 ldc.i8 1 add stloc.s 0x21 ldloc.s 0x21 ldc.i8 1 add stloc.s 0x22 ldloc.s 0x22 ldc.i8 1 add stloc.s 0x23 ldloc.s 0x23 ldc.i8 1 add stloc.s 0x24 ldloc.s 0x24 ldc.i8 1 add stloc.s 0x25 ldloc.s 0x25 ldc.i8 1 add stloc.s 0x26 ldloc.s 0x26 ldc.i8 1 add stloc.s 0x27 ldloc.s 0x27 ldc.i8 1 add stloc.s 0x28 ldloc.s 0x28 ldc.i8 1 add stloc.s 0x29 ldloc.s 0x29 ldc.i8 1 add stloc.s 0x2a ldloc.s 0x2a ldc.i8 1 add stloc.s 0x2b ldloc.s 0x2b ldc.i8 1 add stloc.s 0x2c ldloc.s 0x2c ldc.i8 1 add stloc.s 0x2d ldloc.s 0x2d ldc.i8 1 add stloc.s 0x2e ldloc.s 0x2e ldc.i8 1 add stloc.s 0x2f ldloc.s 0x2f ldc.i8 1 add stloc.s 0x30 ldloc.s 0x30 ldc.i8 1 add stloc.s 0x31 ldloc.s 0x31 ldc.i8 1 add stloc.s 0x8 ldloc.s 0x8 ldc.i8 1 add stloc.s 0x33 ldloc.s 0x33 ldc.i8 1 add stloc.s 0x34 ldloc.s 0x34 ldc.i8 1 add stloc.s 0x35 ldloc.s 0x35 ldc.i8 1 add stloc.s 0x36 ldloc.s 0x36 ldc.i8 1 add stloc.s 0x37 ldloc.s 0x37 ldc.i8 1 add stloc.s 0x38 ldloc.s 0x38 ldc.i8 1 add stloc.s 0x39 ldloc.s 0x39 ldc.i8 1 add stloc.s 0x3a ldloc.s 0x3a ldc.i8 1 add stloc.s 0x3b ldloc.s 0x3b ldc.i8 1 add stloc.s 0x3c ldloc.s 0x3c ldc.i8 1 add stloc.s 0x3d ldloc.s 0x3d ldc.i8 1 add stloc.s 0x3e ldloc.s 0x3e ldc.i8 1 add stloc.s 0x3f ldloc.s 0x3f ldc.i8 1 add stloc.s 0x40 ldloc.s 0x40 ldc.i8 1 add stloc.s 0x41 ldloc.s 0x41 ldc.i8 1 add stloc.s 0x42 ldloc.s 0x42 ldc.i8 1 add stloc.s 0x43 ldloc.s 0x43 ldc.i8 1 add stloc.s 0x44 ldloc.s 0x44 ldc.i8 1 add stloc.s 0x45 ldloc.s 0x45 ldc.i8 1 add stloc.s 0x46 ldloc.s 0x46 ldc.i8 1 add stloc.s 0x47 ldloc.s 0x47 ldc.i8 1 add stloc.s 0x48 ldloc.s 0x48 ldc.i8 1 add stloc.s 0x49 ldloc.s 0x49 ldc.i8 1 add stloc.s 0x4a ldloc.s 0x4a ldc.i8 1 add stloc.s 0x4b ldloc.s 0x4b ldc.i8 1 add stloc.s 0x4c ldloc.s 0x4c ldc.i8 1 add stloc.s 0x4d ldloc.s 0x4d ldc.i8 1 add stloc.s 0x4e ldloc.s 0x4e ldc.i8 1 add stloc.s 0x4f ldloc.s 0x4f ldc.i8 1 add stloc.s 0x50 ldloc.s 0x50 ldc.i8 1 add stloc.s 0x51 ldloc.s 0x51 ldc.i8 1 add stloc.s 0x52 ldloc.s 0x52 ldc.i8 1 add stloc.s 0x53 ldloc.s 0x53 ldc.i8 1 add stloc.s 0x54 ldloc.s 0x54 ldc.i8 1 add stloc.s 0x55 ldloc.s 0x55 ldc.i8 1 add stloc.s 0x56 ldloc.s 0x56 ldc.i8 1 add stloc.s 0x57 ldloc.s 0x57 ldc.i8 1 add stloc.s 0x58 ldloc.s 0x58 ldc.i8 1 add stloc.s 0x59 ldloc.s 0x59 ldc.i8 1 add stloc.s 0x5a ldloc.s 0x5a ldc.i8 1 add stloc.s 0x5b ldloc.s 0x5b ldc.i8 1 add stloc.s 0x5c ldloc.s 0x5c ldc.i8 1 add stloc.s 0x5d ldloc.s 0x5d ldc.i8 1 add stloc.s 0x5e ldloc.s 0x5e ldc.i8 1 add stloc.s 0x5f ldloc.s 0x5f ldc.i8 1 add stloc.s 0x60 ldloc.s 0x60 ldc.i8 1 add stloc.s 0x61 ldloc.s 0x61 ldc.i8 1 add stloc.s 0x62 ldloc.s 0x62 ldc.i8 1 add stloc.s 0x63 ldloc.s 0x63 ldc.i8 1 add stloc.s 0x64 ldloc.s 0x64 ldc.i8 1 add stloc.s 0x65 ldloc.s 0x65 ldc.i8 1 add stloc.s 0x66 ldloc.s 0x66 ldc.i8 1 add stloc.s 0x67 ldloc.s 0x67 ldc.i8 1 add stloc.s 0x68 ldloc.s 0x68 ldc.i8 1 add stloc.s 0x69 ldloc.s 0x69 ldc.i8 1 add stloc.s 0x6a ldloc.s 0x6a ldc.i8 1 add stloc.s 0x6b ldloc.s 0x6b ldc.i8 1 add stloc.s 0x6c ldloc.s 0x6c ldc.i8 1 add stloc.s 0x6d ldloc.s 0x6d ldc.i8 1 add stloc.s 0x6e ldloc.s 0x6e ldc.i8 1 add stloc.s 0x6f ldloc.s 0x6f ldc.i8 1 add stloc.s 0x70 ldloc.s 0x70 ldc.i8 1 add stloc.s 0x71 ldloc.s 0x71 ldc.i8 1 add stloc.s 0x72 ldloc.s 0x72 ldc.i8 1 add stloc.s 0x73 ldloc.s 0x73 ldc.i8 1 add stloc.s 0x74 ldloc.s 0x74 ldc.i8 1 add stloc.s 0x75 ldloc.s 0x75 ldc.i8 1 add stloc.s 0x76 ldloc.s 0x76 ldc.i8 1 add stloc.s 0x77 ldloc.s 0x77 ldc.i8 1 add stloc.s 0x78 ldloc.s 0x78 ldc.i8 1 add stloc.s 0x79 ldloc.s 0x79 ldc.i8 1 add stloc.s 0x7a ldloc.s 0x7a ldc.i8 1 add stloc.s 0x7b ldloc.s 0x7b ldc.i8 1 add stloc.s 0x7c ldloc.s 0x7c ldc.i8 1 add stloc.s 0x7d ldloc.s 0x7d ldc.i8 1 add stloc.s 0x7e ldloc.s 0x7e ldc.i8 1 add stloc.s 0x7f ldloc.s 0x7f ldc.i8 1 add stloc.s 0x80 ldloc.s 0x80 ldc.i8 1 add stloc.s 0x81 ldloc.s 0x81 ldc.i8 1 add stloc.s 0x82 ldloc.s 0x82 ldc.i8 1 add stloc.s 0x83 ldloc.s 0x83 ldc.i8 1 add stloc.s 0x84 ldloc.s 0x84 ldc.i8 1 add stloc.s 0x85 ldloc.s 0x85 ldc.i8 1 add stloc.s 0x86 ldloc.s 0x86 ldc.i8 1 add stloc.s 0x87 ldloc.s 0x87 ldc.i8 1 add stloc.s 0x88 ldloc.s 0x88 ldc.i8 1 add stloc.s 0x89 ldloc.s 0x89 ldc.i8 1 add stloc.s 0x8a ldloc.s 0x8a ldc.i8 1 add stloc.s 0x8b ldloc.s 0x8b ldc.i8 1 add stloc.s 0x8c ldloc.s 0x8c ldc.i8 1 add stloc.s 0x8d ldloc.s 0x8d ldc.i8 1 add stloc.s 0x8e ldloc.s 0x8e ldc.i8 1 add stloc.s 0x8f ldloc.s 0x8f ldc.i8 1 add stloc.s 0x90 ldloc.s 0x90 ldc.i8 1 add stloc.s 0x91 ldloc.s 0x91 ldc.i8 1 add stloc.s 0x92 ldloc.s 0x92 ldc.i8 1 add stloc.s 0x93 ldloc.s 0x93 ldc.i8 1 add stloc.s 0x94 ldloc.s 0x94 ldc.i8 1 add stloc.s 0x95 ldloc.s 0x95 ldc.i8 1 add stloc.s 0x96 ldloc.s 0x96 ldc.i8 1 add stloc.s 0x97 ldloc.s 0x97 ldc.i8 1 add stloc.s 0x98 ldloc.s 0x98 ldc.i8 1 add stloc.s 0x99 ldloc.s 0x99 ldc.i8 1 add stloc.s 0x9a ldloc.s 0x9a ldc.i8 1 add stloc.s 0x9b ldloc.s 0x9b ldc.i8 1 add stloc.s 0x9c ldloc.s 0x9c ldc.i8 1 add stloc.s 0x9d ldloc.s 0x9d ldc.i8 1 add stloc.s 0x9e ldloc.s 0x9e ldc.i8 1 add stloc.s 0x9f ldloc.s 0x9f ldc.i8 1 add stloc.s 0xa0 ldloc.s 0xa0 ldc.i8 1 add stloc.s 0xa1 ldloc.s 0xa1 ldc.i8 1 add stloc.s 0xa2 ldloc.s 0xa2 ldc.i8 1 add stloc.s 0xa3 ldloc.s 0xa3 ldc.i8 1 add stloc.s 0xa4 ldloc.s 0xa4 ldc.i8 1 add stloc.s 0xa5 ldloc.s 0xa5 ldc.i8 1 add stloc.s 0xa6 ldloc.s 0xa6 ldc.i8 1 add stloc.s 0xa7 ldloc.s 0xa7 ldc.i8 1 add stloc.s 0xa8 ldloc.s 0xa8 ldc.i8 1 add stloc.s 0xa9 ldloc.s 0xa9 ldc.i8 1 add stloc.s 0xaa ldloc.s 0xaa ldc.i8 1 add stloc.s 0xab ldloc.s 0xab ldc.i8 1 add stloc.s 0xac ldloc.s 0xac ldc.i8 1 add stloc.s 0xad ldloc.s 0xad ldc.i8 1 add stloc.s 0xae ldloc.s 0xae ldc.i8 1 add stloc.s 0xaf ldloc.s 0xaf ldc.i8 1 add stloc.s 0xb0 ldloc.s 0xb0 ldc.i8 1 add stloc.s 0xb1 ldloc.s 0xb1 ldc.i8 1 add stloc.s 0xb2 ldloc.s 0xb2 ldc.i8 1 add stloc.s 0xb3 ldloc.s 0xb3 ldc.i8 1 add stloc.s 0xb4 ldloc.s 0xb4 ldc.i8 1 add stloc.s 0xb5 ldloc.s 0xb5 ldc.i8 1 add stloc.s 0xb6 ldloc.s 0xb6 ldc.i8 1 add stloc.s 0xb7 ldloc.s 0xb7 ldc.i8 1 add stloc.s 0xb8 ldloc.s 0xb8 ldc.i8 1 add stloc.s 0xb9 ldloc.s 0xb9 ldc.i8 1 add stloc.s 0xba ldloc.s 0xba ldc.i8 1 add stloc.s 0xbb ldloc.s 0xbb ldc.i8 1 add stloc.s 0xbc ldloc.s 0xbc ldc.i8 1 add stloc.s 0xbd ldloc.s 0xbd ldc.i8 1 add stloc.s 0xbe ldloc.s 0xbe ldc.i8 1 add stloc.s 0xbf ldloc.s 0xbf ldc.i8 1 add stloc.s 0xc0 ldloc.s 0xc0 ldc.i8 1 add stloc.s 0xc1 ldloc.s 0xc1 ldc.i8 1 add stloc.s 0xc2 ldloc.s 0xc2 ldc.i8 1 add stloc.s 0xc3 ldloc.s 0xc3 ldc.i8 1 add stloc.s 0xc4 ldloc.s 0xc4 ldc.i8 1 add stloc.s 0xc5 ldloc.s 0xc5 ldc.i8 1 add stloc.s 0xc6 ldloc.s 0xc6 ldc.i8 1 add stloc.s 0xc7 ldloc.s 0xc7 ldc.i8 1 add stloc.s 0xc8 ldloc.s 0xc8 ldc.i8 1 add stloc.s 0xc9 ldloc.s 0xc9 ldc.i8 1 add stloc.s 0xca ldloc.s 0xca ldc.i8 1 add stloc.s 0xcb ldloc.s 0xcb ldc.i8 1 add stloc.s 0xcc ldloc.s 0xcc ldc.i8 1 add stloc.s 0xcd ldloc.s 0xcd ldc.i8 1 add stloc.s 0xce ldloc.s 0xce ldc.i8 1 add stloc.s 0xcf ldloc.s 0xcf ldc.i8 1 add stloc.s 0xd0 ldloc.s 0xd0 ldc.i8 1 add stloc.s 0xd1 ldloc.s 0xd1 ldc.i8 1 add stloc.s 0xd2 ldloc.s 0xd2 ldc.i8 1 add stloc.s 0xd3 ldloc.s 0xd3 ldc.i8 1 add stloc.s 0xd4 ldloc.s 0xd4 ldc.i8 1 add stloc.s 0xd5 ldloc.s 0xd5 ldc.i8 1 add stloc.s 0xd6 ldloc.s 0xd6 ldc.i8 1 add stloc.s 0xd7 ldloc.s 0xd7 ldc.i8 1 add stloc.s 0xd8 ldloc.s 0xd8 ldc.i8 1 add stloc.s 0xd9 ldloc.s 0xd9 ldc.i8 1 add stloc.s 0xda ldloc.s 0xda ldc.i8 1 add stloc.s 0xdb ldloc.s 0xdb ldc.i8 1 add stloc.s 0xdc ldloc.s 0xdc ldc.i8 1 add stloc.s 0xdd ldloc.s 0xdd ldc.i8 1 add stloc.s 0xde ldloc.s 0xde ldc.i8 1 add stloc.s 0xdf ldloc.s 0xdf ldc.i8 1 add stloc.s 0xe0 ldloc.s 0xe0 ldc.i8 1 add stloc.s 0xe1 ldloc.s 0xe1 ldc.i8 1 add stloc.s 0xe2 ldloc.s 0xe2 ldc.i8 1 add stloc.s 0xe3 ldloc.s 0xe3 ldc.i8 1 add stloc.s 0xe4 ldloc.s 0xe4 ldc.i8 1 add stloc.s 0xe5 ldloc.s 0xe5 ldc.i8 1 add stloc.s 0xe6 ldloc.s 0xe6 ldc.i8 1 add stloc.s 0xe7 ldloc.s 0xe7 ldc.i8 1 add stloc.s 0xe8 ldloc.s 0xe8 ldc.i8 1 add stloc.s 0xe9 ldloc.s 0xe9 ldc.i8 1 add stloc.s 0xea ldloc.s 0xea ldc.i8 1 add stloc.s 0xeb ldloc.s 0xeb ldc.i8 1 add stloc.s 0xec ldloc.s 0xec ldc.i8 1 add stloc.s 0xed ldloc.s 0xed ldc.i8 1 add stloc.s 0xee ldloc.s 0xee ldc.i8 1 add stloc.s 0xef ldloc.s 0xef ldc.i8 1 add stloc.s 0xf0 ldloc.s 0xf0 ldc.i8 1 add stloc.s 0xf1 ldloc.s 0xf1 ldc.i8 1 add stloc.s 0xf2 ldloc.s 0xf2 ldc.i8 1 add stloc.s 0xf3 ldloc.s 0xf3 ldc.i8 1 add stloc.s 0xf4 ldloc.s 0xf4 ldc.i8 1 add stloc.s 0xf5 ldloc.s 0xf5 ldc.i8 1 add stloc.s 0xf6 ldloc.s 0xf6 ldc.i8 1 add stloc.s 0xf7 ldloc.s 0xf7 ldc.i8 1 add stloc.s 0xf8 ldloc.s 0xf8 ldc.i8 1 add stloc.s 0xf9 ldloc.s 0xf9 ldc.i8 1 add stloc.s 0xfa ldloc.s 0xfa ldc.i8 1 add stloc.s 0xfb ldloc.s 0xfb ldc.i8 1 add stloc.s 0xfc ldloc.s 0xfc ldc.i8 1 add stloc.s 0xfd ldloc.s 0xfd ldc.i8 1 add stloc.s 0xfe ldloc.s 0xfe ldc.i8 1 add stloc.s 0xff ldloc.s 0xff ldc.i8 1 add stloc.s 0x00 ldloc 0 ldc.i8 256 ceq brfalse FAIL ldc.i4.1 ret FAIL: ldc.i4 0 ret } .method public static int32 main(class [mscorlib]System.String[]) { .entrypoint .maxstack 2 call int32 ldloc_s_i8::test_int64() ldc.i4.1 ceq brfalse FAIL ldc.i4 100 ret FAIL: ldc.i4 0x0 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 ldloc_s_i8 {} .class ldloc_s_i8 { .method public static int32 test_int64() { .locals (int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64, int64) .zeroinit .maxstack 2 ldloc.s 0x00 ldc.i8 1 add stloc.s 0x01 ldloc.s 0x01 ldc.i8 1 add stloc.s 0x02 ldloc.s 0x02 ldc.i8 1 add stloc.s 0x03 ldloc.s 0x03 ldc.i8 1 add stloc.s 0x04 ldloc.s 0x04 ldc.i8 1 add stloc.s 0x05 ldloc.s 0x05 ldc.i8 1 add stloc.s 0x06 ldloc.s 0x06 ldc.i8 1 add stloc.s 0x07 ldloc.s 0x07 ldc.i8 1 add stloc.s 0x08 ldloc.s 0x08 ldc.i8 1 add stloc.s 0x09 ldloc.s 0x09 ldc.i8 1 add stloc.s 0x0a ldloc.s 0x0a ldc.i8 1 add stloc.s 0x0b ldloc.s 0x0b ldc.i8 1 add stloc.s 0x0c ldloc.s 0x0c ldc.i8 1 add stloc.s 0x0d ldloc.s 0x0d ldc.i8 1 add stloc.s 0x0e ldloc.s 0x0e ldc.i8 1 add stloc.s 0x0f ldloc.s 0x0f ldc.i8 1 add stloc.s 0x10 ldloc.s 0x10 ldc.i8 1 add stloc.s 0x11 ldloc.s 0x11 ldc.i8 1 add stloc.s 0x12 ldloc.s 0x12 ldc.i8 1 add stloc.s 0x13 ldloc.s 0x13 ldc.i8 1 add stloc.s 0x14 ldloc.s 0x14 ldc.i8 1 add stloc.s 0x15 ldloc.s 0x15 ldc.i8 1 add stloc.s 0x8 ldloc.s 0x8 ldc.i8 1 add stloc.s 0x17 ldloc.s 0x17 ldc.i8 1 add stloc.s 0x18 ldloc.s 0x18 ldc.i8 1 add stloc.s 0x19 ldloc.s 0x19 ldc.i8 1 add stloc.s 0x1a ldloc.s 0x1a ldc.i8 1 add stloc.s 0x1b ldloc.s 0x1b ldc.i8 1 add stloc.s 0x1c ldloc.s 0x1c ldc.i8 1 add stloc.s 0x1d ldloc.s 0x1d ldc.i8 1 add stloc.s 0x1e ldloc.s 0x1e ldc.i8 1 add stloc.s 0x1f ldloc.s 0x1f ldc.i8 1 add stloc.s 0x20 ldloc.s 0x20 ldc.i8 1 add stloc.s 0x21 ldloc.s 0x21 ldc.i8 1 add stloc.s 0x22 ldloc.s 0x22 ldc.i8 1 add stloc.s 0x23 ldloc.s 0x23 ldc.i8 1 add stloc.s 0x24 ldloc.s 0x24 ldc.i8 1 add stloc.s 0x25 ldloc.s 0x25 ldc.i8 1 add stloc.s 0x26 ldloc.s 0x26 ldc.i8 1 add stloc.s 0x27 ldloc.s 0x27 ldc.i8 1 add stloc.s 0x28 ldloc.s 0x28 ldc.i8 1 add stloc.s 0x29 ldloc.s 0x29 ldc.i8 1 add stloc.s 0x2a ldloc.s 0x2a ldc.i8 1 add stloc.s 0x2b ldloc.s 0x2b ldc.i8 1 add stloc.s 0x2c ldloc.s 0x2c ldc.i8 1 add stloc.s 0x2d ldloc.s 0x2d ldc.i8 1 add stloc.s 0x2e ldloc.s 0x2e ldc.i8 1 add stloc.s 0x2f ldloc.s 0x2f ldc.i8 1 add stloc.s 0x30 ldloc.s 0x30 ldc.i8 1 add stloc.s 0x31 ldloc.s 0x31 ldc.i8 1 add stloc.s 0x8 ldloc.s 0x8 ldc.i8 1 add stloc.s 0x33 ldloc.s 0x33 ldc.i8 1 add stloc.s 0x34 ldloc.s 0x34 ldc.i8 1 add stloc.s 0x35 ldloc.s 0x35 ldc.i8 1 add stloc.s 0x36 ldloc.s 0x36 ldc.i8 1 add stloc.s 0x37 ldloc.s 0x37 ldc.i8 1 add stloc.s 0x38 ldloc.s 0x38 ldc.i8 1 add stloc.s 0x39 ldloc.s 0x39 ldc.i8 1 add stloc.s 0x3a ldloc.s 0x3a ldc.i8 1 add stloc.s 0x3b ldloc.s 0x3b ldc.i8 1 add stloc.s 0x3c ldloc.s 0x3c ldc.i8 1 add stloc.s 0x3d ldloc.s 0x3d ldc.i8 1 add stloc.s 0x3e ldloc.s 0x3e ldc.i8 1 add stloc.s 0x3f ldloc.s 0x3f ldc.i8 1 add stloc.s 0x40 ldloc.s 0x40 ldc.i8 1 add stloc.s 0x41 ldloc.s 0x41 ldc.i8 1 add stloc.s 0x42 ldloc.s 0x42 ldc.i8 1 add stloc.s 0x43 ldloc.s 0x43 ldc.i8 1 add stloc.s 0x44 ldloc.s 0x44 ldc.i8 1 add stloc.s 0x45 ldloc.s 0x45 ldc.i8 1 add stloc.s 0x46 ldloc.s 0x46 ldc.i8 1 add stloc.s 0x47 ldloc.s 0x47 ldc.i8 1 add stloc.s 0x48 ldloc.s 0x48 ldc.i8 1 add stloc.s 0x49 ldloc.s 0x49 ldc.i8 1 add stloc.s 0x4a ldloc.s 0x4a ldc.i8 1 add stloc.s 0x4b ldloc.s 0x4b ldc.i8 1 add stloc.s 0x4c ldloc.s 0x4c ldc.i8 1 add stloc.s 0x4d ldloc.s 0x4d ldc.i8 1 add stloc.s 0x4e ldloc.s 0x4e ldc.i8 1 add stloc.s 0x4f ldloc.s 0x4f ldc.i8 1 add stloc.s 0x50 ldloc.s 0x50 ldc.i8 1 add stloc.s 0x51 ldloc.s 0x51 ldc.i8 1 add stloc.s 0x52 ldloc.s 0x52 ldc.i8 1 add stloc.s 0x53 ldloc.s 0x53 ldc.i8 1 add stloc.s 0x54 ldloc.s 0x54 ldc.i8 1 add stloc.s 0x55 ldloc.s 0x55 ldc.i8 1 add stloc.s 0x56 ldloc.s 0x56 ldc.i8 1 add stloc.s 0x57 ldloc.s 0x57 ldc.i8 1 add stloc.s 0x58 ldloc.s 0x58 ldc.i8 1 add stloc.s 0x59 ldloc.s 0x59 ldc.i8 1 add stloc.s 0x5a ldloc.s 0x5a ldc.i8 1 add stloc.s 0x5b ldloc.s 0x5b ldc.i8 1 add stloc.s 0x5c ldloc.s 0x5c ldc.i8 1 add stloc.s 0x5d ldloc.s 0x5d ldc.i8 1 add stloc.s 0x5e ldloc.s 0x5e ldc.i8 1 add stloc.s 0x5f ldloc.s 0x5f ldc.i8 1 add stloc.s 0x60 ldloc.s 0x60 ldc.i8 1 add stloc.s 0x61 ldloc.s 0x61 ldc.i8 1 add stloc.s 0x62 ldloc.s 0x62 ldc.i8 1 add stloc.s 0x63 ldloc.s 0x63 ldc.i8 1 add stloc.s 0x64 ldloc.s 0x64 ldc.i8 1 add stloc.s 0x65 ldloc.s 0x65 ldc.i8 1 add stloc.s 0x66 ldloc.s 0x66 ldc.i8 1 add stloc.s 0x67 ldloc.s 0x67 ldc.i8 1 add stloc.s 0x68 ldloc.s 0x68 ldc.i8 1 add stloc.s 0x69 ldloc.s 0x69 ldc.i8 1 add stloc.s 0x6a ldloc.s 0x6a ldc.i8 1 add stloc.s 0x6b ldloc.s 0x6b ldc.i8 1 add stloc.s 0x6c ldloc.s 0x6c ldc.i8 1 add stloc.s 0x6d ldloc.s 0x6d ldc.i8 1 add stloc.s 0x6e ldloc.s 0x6e ldc.i8 1 add stloc.s 0x6f ldloc.s 0x6f ldc.i8 1 add stloc.s 0x70 ldloc.s 0x70 ldc.i8 1 add stloc.s 0x71 ldloc.s 0x71 ldc.i8 1 add stloc.s 0x72 ldloc.s 0x72 ldc.i8 1 add stloc.s 0x73 ldloc.s 0x73 ldc.i8 1 add stloc.s 0x74 ldloc.s 0x74 ldc.i8 1 add stloc.s 0x75 ldloc.s 0x75 ldc.i8 1 add stloc.s 0x76 ldloc.s 0x76 ldc.i8 1 add stloc.s 0x77 ldloc.s 0x77 ldc.i8 1 add stloc.s 0x78 ldloc.s 0x78 ldc.i8 1 add stloc.s 0x79 ldloc.s 0x79 ldc.i8 1 add stloc.s 0x7a ldloc.s 0x7a ldc.i8 1 add stloc.s 0x7b ldloc.s 0x7b ldc.i8 1 add stloc.s 0x7c ldloc.s 0x7c ldc.i8 1 add stloc.s 0x7d ldloc.s 0x7d ldc.i8 1 add stloc.s 0x7e ldloc.s 0x7e ldc.i8 1 add stloc.s 0x7f ldloc.s 0x7f ldc.i8 1 add stloc.s 0x80 ldloc.s 0x80 ldc.i8 1 add stloc.s 0x81 ldloc.s 0x81 ldc.i8 1 add stloc.s 0x82 ldloc.s 0x82 ldc.i8 1 add stloc.s 0x83 ldloc.s 0x83 ldc.i8 1 add stloc.s 0x84 ldloc.s 0x84 ldc.i8 1 add stloc.s 0x85 ldloc.s 0x85 ldc.i8 1 add stloc.s 0x86 ldloc.s 0x86 ldc.i8 1 add stloc.s 0x87 ldloc.s 0x87 ldc.i8 1 add stloc.s 0x88 ldloc.s 0x88 ldc.i8 1 add stloc.s 0x89 ldloc.s 0x89 ldc.i8 1 add stloc.s 0x8a ldloc.s 0x8a ldc.i8 1 add stloc.s 0x8b ldloc.s 0x8b ldc.i8 1 add stloc.s 0x8c ldloc.s 0x8c ldc.i8 1 add stloc.s 0x8d ldloc.s 0x8d ldc.i8 1 add stloc.s 0x8e ldloc.s 0x8e ldc.i8 1 add stloc.s 0x8f ldloc.s 0x8f ldc.i8 1 add stloc.s 0x90 ldloc.s 0x90 ldc.i8 1 add stloc.s 0x91 ldloc.s 0x91 ldc.i8 1 add stloc.s 0x92 ldloc.s 0x92 ldc.i8 1 add stloc.s 0x93 ldloc.s 0x93 ldc.i8 1 add stloc.s 0x94 ldloc.s 0x94 ldc.i8 1 add stloc.s 0x95 ldloc.s 0x95 ldc.i8 1 add stloc.s 0x96 ldloc.s 0x96 ldc.i8 1 add stloc.s 0x97 ldloc.s 0x97 ldc.i8 1 add stloc.s 0x98 ldloc.s 0x98 ldc.i8 1 add stloc.s 0x99 ldloc.s 0x99 ldc.i8 1 add stloc.s 0x9a ldloc.s 0x9a ldc.i8 1 add stloc.s 0x9b ldloc.s 0x9b ldc.i8 1 add stloc.s 0x9c ldloc.s 0x9c ldc.i8 1 add stloc.s 0x9d ldloc.s 0x9d ldc.i8 1 add stloc.s 0x9e ldloc.s 0x9e ldc.i8 1 add stloc.s 0x9f ldloc.s 0x9f ldc.i8 1 add stloc.s 0xa0 ldloc.s 0xa0 ldc.i8 1 add stloc.s 0xa1 ldloc.s 0xa1 ldc.i8 1 add stloc.s 0xa2 ldloc.s 0xa2 ldc.i8 1 add stloc.s 0xa3 ldloc.s 0xa3 ldc.i8 1 add stloc.s 0xa4 ldloc.s 0xa4 ldc.i8 1 add stloc.s 0xa5 ldloc.s 0xa5 ldc.i8 1 add stloc.s 0xa6 ldloc.s 0xa6 ldc.i8 1 add stloc.s 0xa7 ldloc.s 0xa7 ldc.i8 1 add stloc.s 0xa8 ldloc.s 0xa8 ldc.i8 1 add stloc.s 0xa9 ldloc.s 0xa9 ldc.i8 1 add stloc.s 0xaa ldloc.s 0xaa ldc.i8 1 add stloc.s 0xab ldloc.s 0xab ldc.i8 1 add stloc.s 0xac ldloc.s 0xac ldc.i8 1 add stloc.s 0xad ldloc.s 0xad ldc.i8 1 add stloc.s 0xae ldloc.s 0xae ldc.i8 1 add stloc.s 0xaf ldloc.s 0xaf ldc.i8 1 add stloc.s 0xb0 ldloc.s 0xb0 ldc.i8 1 add stloc.s 0xb1 ldloc.s 0xb1 ldc.i8 1 add stloc.s 0xb2 ldloc.s 0xb2 ldc.i8 1 add stloc.s 0xb3 ldloc.s 0xb3 ldc.i8 1 add stloc.s 0xb4 ldloc.s 0xb4 ldc.i8 1 add stloc.s 0xb5 ldloc.s 0xb5 ldc.i8 1 add stloc.s 0xb6 ldloc.s 0xb6 ldc.i8 1 add stloc.s 0xb7 ldloc.s 0xb7 ldc.i8 1 add stloc.s 0xb8 ldloc.s 0xb8 ldc.i8 1 add stloc.s 0xb9 ldloc.s 0xb9 ldc.i8 1 add stloc.s 0xba ldloc.s 0xba ldc.i8 1 add stloc.s 0xbb ldloc.s 0xbb ldc.i8 1 add stloc.s 0xbc ldloc.s 0xbc ldc.i8 1 add stloc.s 0xbd ldloc.s 0xbd ldc.i8 1 add stloc.s 0xbe ldloc.s 0xbe ldc.i8 1 add stloc.s 0xbf ldloc.s 0xbf ldc.i8 1 add stloc.s 0xc0 ldloc.s 0xc0 ldc.i8 1 add stloc.s 0xc1 ldloc.s 0xc1 ldc.i8 1 add stloc.s 0xc2 ldloc.s 0xc2 ldc.i8 1 add stloc.s 0xc3 ldloc.s 0xc3 ldc.i8 1 add stloc.s 0xc4 ldloc.s 0xc4 ldc.i8 1 add stloc.s 0xc5 ldloc.s 0xc5 ldc.i8 1 add stloc.s 0xc6 ldloc.s 0xc6 ldc.i8 1 add stloc.s 0xc7 ldloc.s 0xc7 ldc.i8 1 add stloc.s 0xc8 ldloc.s 0xc8 ldc.i8 1 add stloc.s 0xc9 ldloc.s 0xc9 ldc.i8 1 add stloc.s 0xca ldloc.s 0xca ldc.i8 1 add stloc.s 0xcb ldloc.s 0xcb ldc.i8 1 add stloc.s 0xcc ldloc.s 0xcc ldc.i8 1 add stloc.s 0xcd ldloc.s 0xcd ldc.i8 1 add stloc.s 0xce ldloc.s 0xce ldc.i8 1 add stloc.s 0xcf ldloc.s 0xcf ldc.i8 1 add stloc.s 0xd0 ldloc.s 0xd0 ldc.i8 1 add stloc.s 0xd1 ldloc.s 0xd1 ldc.i8 1 add stloc.s 0xd2 ldloc.s 0xd2 ldc.i8 1 add stloc.s 0xd3 ldloc.s 0xd3 ldc.i8 1 add stloc.s 0xd4 ldloc.s 0xd4 ldc.i8 1 add stloc.s 0xd5 ldloc.s 0xd5 ldc.i8 1 add stloc.s 0xd6 ldloc.s 0xd6 ldc.i8 1 add stloc.s 0xd7 ldloc.s 0xd7 ldc.i8 1 add stloc.s 0xd8 ldloc.s 0xd8 ldc.i8 1 add stloc.s 0xd9 ldloc.s 0xd9 ldc.i8 1 add stloc.s 0xda ldloc.s 0xda ldc.i8 1 add stloc.s 0xdb ldloc.s 0xdb ldc.i8 1 add stloc.s 0xdc ldloc.s 0xdc ldc.i8 1 add stloc.s 0xdd ldloc.s 0xdd ldc.i8 1 add stloc.s 0xde ldloc.s 0xde ldc.i8 1 add stloc.s 0xdf ldloc.s 0xdf ldc.i8 1 add stloc.s 0xe0 ldloc.s 0xe0 ldc.i8 1 add stloc.s 0xe1 ldloc.s 0xe1 ldc.i8 1 add stloc.s 0xe2 ldloc.s 0xe2 ldc.i8 1 add stloc.s 0xe3 ldloc.s 0xe3 ldc.i8 1 add stloc.s 0xe4 ldloc.s 0xe4 ldc.i8 1 add stloc.s 0xe5 ldloc.s 0xe5 ldc.i8 1 add stloc.s 0xe6 ldloc.s 0xe6 ldc.i8 1 add stloc.s 0xe7 ldloc.s 0xe7 ldc.i8 1 add stloc.s 0xe8 ldloc.s 0xe8 ldc.i8 1 add stloc.s 0xe9 ldloc.s 0xe9 ldc.i8 1 add stloc.s 0xea ldloc.s 0xea ldc.i8 1 add stloc.s 0xeb ldloc.s 0xeb ldc.i8 1 add stloc.s 0xec ldloc.s 0xec ldc.i8 1 add stloc.s 0xed ldloc.s 0xed ldc.i8 1 add stloc.s 0xee ldloc.s 0xee ldc.i8 1 add stloc.s 0xef ldloc.s 0xef ldc.i8 1 add stloc.s 0xf0 ldloc.s 0xf0 ldc.i8 1 add stloc.s 0xf1 ldloc.s 0xf1 ldc.i8 1 add stloc.s 0xf2 ldloc.s 0xf2 ldc.i8 1 add stloc.s 0xf3 ldloc.s 0xf3 ldc.i8 1 add stloc.s 0xf4 ldloc.s 0xf4 ldc.i8 1 add stloc.s 0xf5 ldloc.s 0xf5 ldc.i8 1 add stloc.s 0xf6 ldloc.s 0xf6 ldc.i8 1 add stloc.s 0xf7 ldloc.s 0xf7 ldc.i8 1 add stloc.s 0xf8 ldloc.s 0xf8 ldc.i8 1 add stloc.s 0xf9 ldloc.s 0xf9 ldc.i8 1 add stloc.s 0xfa ldloc.s 0xfa ldc.i8 1 add stloc.s 0xfb ldloc.s 0xfb ldc.i8 1 add stloc.s 0xfc ldloc.s 0xfc ldc.i8 1 add stloc.s 0xfd ldloc.s 0xfd ldc.i8 1 add stloc.s 0xfe ldloc.s 0xfe ldc.i8 1 add stloc.s 0xff ldloc.s 0xff ldc.i8 1 add stloc.s 0x00 ldloc 0 ldc.i8 256 ceq brfalse FAIL ldc.i4.1 ret FAIL: ldc.i4 0 ret } .method public static int32 main(class [mscorlib]System.String[]) { .entrypoint .maxstack 2 call int32 ldloc_s_i8::test_int64() ldc.i4.1 ceq brfalse FAIL ldc.i4 100 ret FAIL: ldc.i4 0x0 ret } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/Common/src/System/Security/Cryptography/DSACng.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Internal.Cryptography; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Runtime.Versioning; namespace System.Security.Cryptography { public sealed partial class DSACng : DSA { /// <summary> /// Create a DSACng algorithm with a random 2048 bit key pair. /// </summary> [SupportedOSPlatform("windows")] public DSACng() : this(keySize: s_defaultKeySize) { } /// <summary> /// Creates a new DSACng object that will use a randomly generated key of the specified size. /// Valid key sizes range from 512 to 3072 bits, in increments of 64. It's suggested that a /// minimum size of 2048 bits be used for all keys. /// </summary> /// <param name="keySize">Size of the key to generate, in bits.</param> /// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception> [SupportedOSPlatform("windows")] public DSACng(int keySize) { LegalKeySizesValue = s_legalKeySizes; KeySize = keySize; } public override KeySizes[] LegalKeySizes { get { return base.LegalKeySizes; } } public override string SignatureAlgorithm => "DSA"; public override string? KeyExchangeAlgorithm => null; // Need to override since base methods throw a "override me" exception: makes SignData/VerifyData function. protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) => CngCommon.HashData(data, offset, count, hashAlgorithm); protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) => CngCommon.HashData(data, hashAlgorithm); protected override bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) => CngCommon.TryHashData(source, destination, hashAlgorithm, out bytesWritten); private void ForceSetKeySize(int newKeySize) { // Our LegalKeySizes value stores the values that we encoded as being the correct // legal key size limitations for this algorithm, as documented on MSDN. // // But on a new OS version we might not question if our limit is accurate, or MSDN // could have been inaccurate to start with. // // Since the key is already loaded, we know that Windows thought it to be valid; // therefore we should set KeySizeValue directly to bypass the LegalKeySizes conformance // check. // KeySizeValue = newKeySize; } private static bool Supports2048KeySize() { Debug.Assert(OperatingSystem.IsWindows()); Version version = Environment.OSVersion.Version; bool isAtLeastWindows8 = version.Major > 6 || (version.Major == 6 && version.Minor >= 2); return isAtLeastWindows8; } private static readonly KeySizes[] s_legalKeySizes = new KeySizes[] { new KeySizes(minSize: 512, maxSize: 3072, skipSize: 64) }; private static readonly int s_defaultKeySize = Supports2048KeySize() ? 2048 : 1024; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Internal.Cryptography; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Runtime.Versioning; namespace System.Security.Cryptography { public sealed partial class DSACng : DSA { /// <summary> /// Create a DSACng algorithm with a random 2048 bit key pair. /// </summary> [SupportedOSPlatform("windows")] public DSACng() : this(keySize: s_defaultKeySize) { } /// <summary> /// Creates a new DSACng object that will use a randomly generated key of the specified size. /// Valid key sizes range from 512 to 3072 bits, in increments of 64. It's suggested that a /// minimum size of 2048 bits be used for all keys. /// </summary> /// <param name="keySize">Size of the key to generate, in bits.</param> /// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception> [SupportedOSPlatform("windows")] public DSACng(int keySize) { LegalKeySizesValue = s_legalKeySizes; KeySize = keySize; } public override KeySizes[] LegalKeySizes { get { return base.LegalKeySizes; } } public override string SignatureAlgorithm => "DSA"; public override string? KeyExchangeAlgorithm => null; // Need to override since base methods throw a "override me" exception: makes SignData/VerifyData function. protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) => HashOneShotHelpers.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) => HashOneShotHelpers.HashData(hashAlgorithm, data); protected override bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) => HashOneShotHelpers.TryHashData(hashAlgorithm, source, destination, out bytesWritten); private void ForceSetKeySize(int newKeySize) { // Our LegalKeySizes value stores the values that we encoded as being the correct // legal key size limitations for this algorithm, as documented on MSDN. // // But on a new OS version we might not question if our limit is accurate, or MSDN // could have been inaccurate to start with. // // Since the key is already loaded, we know that Windows thought it to be valid; // therefore we should set KeySizeValue directly to bypass the LegalKeySizes conformance // check. // KeySizeValue = newKeySize; } private static bool Supports2048KeySize() { Debug.Assert(OperatingSystem.IsWindows()); Version version = Environment.OSVersion.Version; bool isAtLeastWindows8 = version.Major > 6 || (version.Major == 6 && version.Minor >= 2); return isAtLeastWindows8; } private static readonly KeySizes[] s_legalKeySizes = new KeySizes[] { new KeySizes(minSize: 512, maxSize: 3072, skipSize: 64) }; private static readonly int s_defaultKeySize = Supports2048KeySize() ? 2048 : 1024; } }
1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/Common/src/System/Security/Cryptography/ECDsaCng.HashData.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 Internal.Cryptography; namespace System.Security.Cryptography { public sealed partial class ECDsaCng : ECDsa { protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) => CngCommon.HashData(data, offset, count, hashAlgorithm); protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) => CngCommon.HashData(data, hashAlgorithm); protected override bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) => CngCommon.TryHashData(source, destination, hashAlgorithm, out bytesWritten); } }
// 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 Internal.Cryptography; namespace System.Security.Cryptography { public sealed partial class ECDsaCng : ECDsa { protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) => HashOneShotHelpers.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) => HashOneShotHelpers.HashData(hashAlgorithm, data); protected override bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) => HashOneShotHelpers.TryHashData(hashAlgorithm, source, destination, out bytesWritten); } }
1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/Common/src/System/Security/Cryptography/RSACng.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.Runtime.Versioning; using Internal.Cryptography; namespace System.Security.Cryptography { public sealed partial class RSACng : RSA { /// <summary> /// Create an RSACng algorithm with a random 2048 bit key pair. /// </summary> [SupportedOSPlatform("windows")] public RSACng() : this(2048) { } /// <summary> /// Creates a new RSACng object that will use a randomly generated key of the specified size. /// Valid key sizes range from 512 to 16384 bits, in increments of 64 bits. It is suggested that a /// minimum size of 2048 bits be used for all keys. /// </summary> /// <param name="keySize">Size of the key to generate, in bits.</param> /// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception> [SupportedOSPlatform("windows")] public RSACng(int keySize) { // Set the property directly so that it gets validated against LegalKeySizes. KeySize = keySize; } public override KeySizes[] LegalKeySizes { get { // See https://msdn.microsoft.com/en-us/library/windows/desktop/bb931354(v=vs.85).aspx return new KeySizes[] { // All values are in bits. new KeySizes(minSize: 512, maxSize: 16384, skipSize: 64), }; } } protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) => CngCommon.HashData(data, offset, count, hashAlgorithm); protected override bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) => CngCommon.TryHashData(data, destination, hashAlgorithm, out bytesWritten); protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) => CngCommon.HashData(data, hashAlgorithm); private void ForceSetKeySize(int newKeySize) { // Our LegalKeySizes value stores the values that we encoded as being the correct // legal key size limitations for this algorithm, as documented on MSDN. // // But on a new OS version we might not question if our limit is accurate, or MSDN // could have been inaccurate to start with. // // Since the key is already loaded, we know that Windows thought it to be valid; // therefore we should set KeySizeValue directly to bypass the LegalKeySizes conformance // check. // // For RSA there are known cases where this change matters. RSACryptoServiceProvider can // create a 384-bit RSA key, which we consider too small to be legal. It can also create // a 1032-bit RSA key, which we consider illegal because it doesn't match our 64-bit // alignment requirement. (In both cases Windows loads it just fine) KeySizeValue = newKeySize; } } }
// 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.Runtime.Versioning; using Internal.Cryptography; namespace System.Security.Cryptography { public sealed partial class RSACng : RSA { /// <summary> /// Create an RSACng algorithm with a random 2048 bit key pair. /// </summary> [SupportedOSPlatform("windows")] public RSACng() : this(2048) { } /// <summary> /// Creates a new RSACng object that will use a randomly generated key of the specified size. /// Valid key sizes range from 512 to 16384 bits, in increments of 64 bits. It is suggested that a /// minimum size of 2048 bits be used for all keys. /// </summary> /// <param name="keySize">Size of the key to generate, in bits.</param> /// <exception cref="CryptographicException">if <paramref name="keySize" /> is not valid</exception> [SupportedOSPlatform("windows")] public RSACng(int keySize) { // Set the property directly so that it gets validated against LegalKeySizes. KeySize = keySize; } public override KeySizes[] LegalKeySizes { get { // See https://msdn.microsoft.com/en-us/library/windows/desktop/bb931354(v=vs.85).aspx return new KeySizes[] { // All values are in bits. new KeySizes(minSize: 512, maxSize: 16384, skipSize: 64), }; } } protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) => HashOneShotHelpers.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count)); protected override bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) => HashOneShotHelpers.TryHashData(hashAlgorithm, data, destination, out bytesWritten); protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) => HashOneShotHelpers.HashData(hashAlgorithm, data); private void ForceSetKeySize(int newKeySize) { // Our LegalKeySizes value stores the values that we encoded as being the correct // legal key size limitations for this algorithm, as documented on MSDN. // // But on a new OS version we might not question if our limit is accurate, or MSDN // could have been inaccurate to start with. // // Since the key is already loaded, we know that Windows thought it to be valid; // therefore we should set KeySizeValue directly to bypass the LegalKeySizes conformance // check. // // For RSA there are known cases where this change matters. RSACryptoServiceProvider can // create a 384-bit RSA key, which we consider too small to be legal. It can also create // a 1032-bit RSA key, which we consider illegal because it doesn't match our 64-bit // alignment requirement. (In both cases Windows loads it just fine) KeySizeValue = newKeySize; } } }
1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Security.Cryptography/src/System.Security.Cryptography.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <DefineConstants>$(DefineConstants);INTERNAL_ASYMMETRIC_IMPLEMENTATIONS</DefineConstants> <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Android;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;$(NetCoreAppCurrent)-Browser;$(NetCoreAppCurrent)</TargetFrameworks> <NoWarn>$(NoWarn);CA5350;CA5351;CA5379;CA5384;SYSLIB0026</NoWarn> <!-- PasswordDeriveBytes.GetBytes is obsolete but DeriveBytes.GetBytes intentionally isn't. --> <NoWarn>$(NoWarn);CS0809</NoWarn> <Nullable>enable</Nullable> </PropertyGroup> <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> <PropertyGroup> <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier> <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == ''">SR.SystemSecurityCryptography_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage> <UseAndroidCrypto Condition="'$(TargetPlatformIdentifier)' == 'Android'">true</UseAndroidCrypto> <UseAppleCrypto Condition="'$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'iOS' or '$(TargetPlatformIdentifier)' == 'tvOS'">true</UseAppleCrypto> <UseOpenSsl Condition="'$(TargetPlatformIdentifier)' == 'Unix'">true</UseOpenSsl> <UseOpenSslAead Condition="'$(UseOpenSsl)' == 'true' or '$(TargetPlatformIdentifier)' == 'OSX'">true</UseOpenSslAead> <NeedOpenSslInitializer Condition="'$(UseOpenSslAead)' == 'true'">true</NeedOpenSslInitializer> </PropertyGroup> <Import Project="$(CommonPath)System\Security\Cryptography\Asn1\AsnXml.targets" Condition="'$(GeneratePlatformNotSupportedAssemblyMessage)' == ''" /> <Import Project="$(CommonPath)System\Security\Cryptography\Asn1Reader\System.Security.Cryptography.Asn1Reader.Shared.projitems" Condition="'$(GeneratePlatformNotSupportedAssemblyMessage)' == ''" /> <ItemGroup Condition="'$(GeneratePlatformNotSupportedAssemblyMessage)' == ''"> <Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs" Link="Common\DisableRuntimeMarshalling.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHandleCache.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHandleCache.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509ChainHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeX509ChainHandle.cs" /> <Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" /> <Compile Include="$(CommonPath)System\Memory\PointerMemoryManager.cs" Link="Common\System\Memory\PointerMemoryManager.cs" /> <Compile Include="$(CommonPath)System\Obsoletions.cs" Link="Common\System\Obsoletions.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\AttributeAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AttributeAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AttributeAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\CurveAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\CurveAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\CurveAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\CurveAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\CurveAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DirectoryStringAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DssParms.xml"> <Link>Common\System\Security\Cryptography\Asn1\DssParms.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DssParms.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DssParms.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DssParms.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\ECDomainParameters.xml"> <Link>Common\System\Security\Cryptography\Asn1\ECDomainParameters.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\ECDomainParameters.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\ECPrivateKey.xml"> <Link>Common\System\Security\Cryptography\Asn1\ECPrivateKey.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\ECPrivateKey.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\FieldID.xml"> <Link>Common\System\Security\Cryptography\Asn1\FieldID.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\FieldID.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\FieldID.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\FieldID.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\GeneralNameAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\GeneralNameAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\GeneralNameAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\OtherNameAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\OtherNameAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\OtherNameAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PBEParameter.xml"> <Link>Common\System\Security\Cryptography\Asn1\PBEParameter.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PBEParameter.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PBEParameter.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PBEParameter.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PBES2Params.xml"> <Link>Common\System\Security\Cryptography\Asn1\PBES2Params.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PBES2Params.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PBES2Params.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PBES2Params.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2Params.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2Params.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pbkdf2Params.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PssParamsAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\PssParamsAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PssParamsAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Rc2CbcParameters.xml"> <Link>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\SpecifiedECDomain.xml"> <Link>Common\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\X509ExtensionAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\CryptoPool.cs" Link="Common\System\Security\Cryptography\CryptoPool.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAKeyFormatHelper.cs" Link="Common\System\Security\Cryptography\DSAKeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\EccKeyFormatHelper.cs" Link="Common\System\Security\Cryptography\EccKeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Helpers.cs" Link="Common\System\Security\Cryptography\Helpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeyBlobHelpers.cs" Link="Common\System\Security\Cryptography\KeyBlobHelpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\HashOneShotHelpers.cs" Link="Common\System\Security\Cryptography\HashOneShotHelpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeyFormatHelper.cs" Link="Common\System\Security\Cryptography\KeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeyFormatHelper.Encrypted.cs" Link="Common\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeySizeHelpers.cs" Link="Common\System\Security\Cryptography\KeySizeHelpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Oids.cs" Link="Common\System\Security\Cryptography\Oids.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Oids.Shared.cs" Link="Common\System\Security\Cryptography\Oids.Shared.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\PasswordBasedEncryption.cs" Link="Common\System\Security\Cryptography\PasswordBasedEncryption.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\PemLabels.cs" Link="Common\System\Security\Cryptography\PemLabels.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Pkcs12Kdf.cs" Link="Common\System\Security\Cryptography\Pkcs12Kdf.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAKeyFormatHelper.cs" Link="Common\System\Security\Cryptography\RSAKeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs" Link="Common\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RsaPaddingProcessor.cs" Link="Common\System\Security\Cryptography\RsaPaddingProcessor.cs" /> <Compile Include="$(CommonPath)System\Threading\Tasks\TaskToApm.cs" Link="Common\System\Threading\Tasks\TaskToApm.cs" /> <Compile Include="Microsoft\Win32\SafeHandles\SafePasswordHandle.cs" /> <Compile Include="System\Security\Cryptography\Aes.cs" /> <Compile Include="System\Security\Cryptography\AesAEAD.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.cs" /> <Compile Include="System\Security\Cryptography\AesCryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.cs" /> <Compile Include="System\Security\Cryptography\AesManaged.cs" /> <Compile Include="System\Security\Cryptography\AsnEncodedData.cs" /> <Compile Include="System\Security\Cryptography\AsnEncodedDataCollection.cs" /> <Compile Include="System\Security\Cryptography\AsnEncodedDataEnumerator.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricKeyExchangeDeformatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricKeyExchangeFormatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricSignatureDeformatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricSignatureFormatter.cs" /> <Compile Include="System\Security\Cryptography\Base64Transforms.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipher.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.cs" /> <Compile Include="System\Security\Cryptography\CipherMode.cs" /> <Compile Include="System\Security\Cryptography\CngAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\CngAlgorithmGroup.cs" /> <Compile Include="System\Security\Cryptography\CngExportPolicies.cs" /> <Compile Include="System\Security\Cryptography\CngKeyBlobFormat.cs" /> <Compile Include="System\Security\Cryptography\CngKeyCreationOptions.cs" /> <Compile Include="System\Security\Cryptography\CngKeyCreationParameters.cs" /> <Compile Include="System\Security\Cryptography\CngKeyHandleOpenOptions.cs" /> <Compile Include="System\Security\Cryptography\CngKeyOpenOptions.cs" /> <Compile Include="System\Security\Cryptography\CngKeyUsages.cs" /> <Compile Include="System\Security\Cryptography\CngProperty.cs" /> <Compile Include="System\Security\Cryptography\CngPropertyCollection.cs" /> <Compile Include="System\Security\Cryptography\CngPropertyOptions.cs" /> <Compile Include="System\Security\Cryptography\CngProvider.cs" /> <Compile Include="System\Security\Cryptography\CngUIPolicy.cs" /> <Compile Include="System\Security\Cryptography\CngUIProtectionLevels.cs" /> <Compile Include="System\Security\Cryptography\CryptoConfigForwarder.cs" /> <Compile Include="System\Security\Cryptography\CryptographicOperations.cs" /> <Compile Include="System\Security\Cryptography\CryptographicUnexpectedOperationException.cs" /> <Compile Include="System\Security\Cryptography\CryptoConfig.cs" /> <Compile Include="System\Security\Cryptography\CryptoConfig.Common.cs" /> <Compile Include="System\Security\Cryptography\CryptoStream.cs" /> <Compile Include="System\Security\Cryptography\CryptoStreamMode.cs" /> <Compile Include="System\Security\Cryptography\CspParameters.cs" /> <Compile Include="System\Security\Cryptography\CspProviderFlags.cs" /> <Compile Include="System\Security\Cryptography\DeriveBytes.cs" /> <Compile Include="System\Security\Cryptography\DES.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.cs" /> <Compile Include="System\Security\Cryptography\DSA.cs" /> <Compile Include="System\Security\Cryptography\DSA.Xml.cs" /> <Compile Include="System\Security\Cryptography\DSAParameters.cs" /> <Compile Include="System\Security\Cryptography\DSASignatureDeformatter.cs" /> <Compile Include="System\Security\Cryptography\DSASignatureFormat.cs" /> <Compile Include="System\Security\Cryptography\DSASignatureFormatter.cs" /> <Compile Include="System\Security\Cryptography\ECAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\ECCurve.cs" /> <Compile Include="System\Security\Cryptography\ECCurve.ECCurveType.cs" /> <Compile Include="System\Security\Cryptography\ECCurve.NamedCurves.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Xml.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanKeyDerivationFunction.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanPublicKey.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Xml.cs" /> <Compile Include="System\Security\Cryptography\ECKeyXmlFormat.cs" /> <Compile Include="System\Security\Cryptography\ECParameters.cs" /> <Compile Include="System\Security\Cryptography\ECPoint.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithmName.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithmNames.cs" /> <Compile Include="System\Security\Cryptography\HashProvider.cs" /> <Compile Include="System\Security\Cryptography\Helpers.cs" /> <Compile Include="System\Security\Cryptography\HKDF.cs" /> <Compile Include="System\Security\Cryptography\HMAC.cs" /> <Compile Include="System\Security\Cryptography\HMACCommon.cs" /> <Compile Include="System\Security\Cryptography\HMACMD5.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA1.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA256.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA384.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA512.cs" /> <Compile Include="System\Security\Cryptography\ICryptoTransform.cs" /> <Compile Include="System\Security\Cryptography\ICspAsymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\ILiteSymmetricCipher.cs" /> <Compile Include="System\Security\Cryptography\IncrementalHash.cs" /> <Compile Include="System\Security\Cryptography\KeyedHashAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\KeyNumber.cs" /> <Compile Include="System\Security\Cryptography\KeySizes.cs" /> <Compile Include="System\Security\Cryptography\LiteHashProvider.cs" /> <Compile Include="System\Security\Cryptography\MaskGenerationMethod.cs" /> <Compile Include="System\Security\Cryptography\MD5.cs" /> <Compile Include="System\Security\Cryptography\MD5CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\Oid.cs" /> <Compile Include="System\Security\Cryptography\OidCollection.cs" /> <Compile Include="System\Security\Cryptography\OidEnumerator.cs" /> <Compile Include="System\Security\Cryptography\OidGroup.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.cs" /> <Compile Include="System\Security\Cryptography\PaddingMode.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.cs" /> <Compile Include="System\Security\Cryptography\PbeEncryptionAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\PbeParameters.cs" /> <Compile Include="System\Security\Cryptography\PemEncoding.cs" /> <Compile Include="System\Security\Cryptography\PemEnumerator.cs" /> <Compile Include="System\Security\Cryptography\PemFields.cs" /> <Compile Include="System\Security\Cryptography\PemKeyHelpers.cs" /> <Compile Include="System\Security\Cryptography\PKCS1MaskGenerationMethod.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGenerator.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.cs" /> <Compile Include="System\Security\Cryptography\RC2.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.cs" /> <Compile Include="System\Security\Cryptography\Rijndael.cs" /> <Compile Include="System\Security\Cryptography\RijndaelImplementation.cs" /> <Compile Include="System\Security\Cryptography\RijndaelManaged.cs" /> <Compile Include="System\Security\Cryptography\Rfc2898DeriveBytes.cs" /> <Compile Include="System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs" /> <Compile Include="System\Security\Cryptography\RNGCryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\RSA.cs" /> <Compile Include="System\Security\Cryptography\RSA.Xml.cs" /> <Compile Include="System\Security\Cryptography\RSAEncryptionPadding.cs" /> <Compile Include="System\Security\Cryptography\RSAEncryptionPaddingMode.cs" /> <Compile Include="System\Security\Cryptography\RSAOAEPKeyExchangeDeformatter.cs" /> <Compile Include="System\Security\Cryptography\RSAOAEPKeyExchangeFormatter.cs" /> <Compile Include="System\Security\Cryptography\RSAParameters.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1KeyExchangeDeformatter.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1KeyExchangeFormatter.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1SignatureDeformatter.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1SignatureFormatter.cs" /> <Compile Include="System\Security\Cryptography\RSASignaturePadding.cs" /> <Compile Include="System\Security\Cryptography\RSASignaturePaddingMode.cs" /> <Compile Include="System\Security\Cryptography\SHA1.cs" /> <Compile Include="System\Security\Cryptography\SHA1CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA1Managed.cs" /> <Compile Include="System\Security\Cryptography\SHA256.cs" /> <Compile Include="System\Security\Cryptography\SHA256CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA256Managed.cs" /> <Compile Include="System\Security\Cryptography\SHA384.cs" /> <Compile Include="System\Security\Cryptography\SHA384CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA384Managed.cs" /> <Compile Include="System\Security\Cryptography\SHA512.cs" /> <Compile Include="System\Security\Cryptography\SHA512CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA512Managed.cs" /> <Compile Include="System\Security\Cryptography\SignatureDescription.cs" /> <Compile Include="System\Security\Cryptography\SymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\SymmetricPadding.cs" /> <Compile Include="System\Security\Cryptography\TripleDES.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoTransform.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoEncryptor.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoDecryptor.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoOneShot.cs" /> <Compile Include="System\Security\Cryptography\XmlKeyHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateRequest.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ErrorCode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ICertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IChainPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IFindPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ILoaderPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IStorePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IX509Pal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\PublicKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StoreLocation.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StoreName.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DistinguishedNameFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X501Attribute.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate2.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate2Enumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509CertificateCollection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509CertificateEnumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Chain.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainElement.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainElementEnumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainStatus.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainStatusFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainTrustMode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ContentType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Extension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ExtensionEnumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509FindType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509IncludeOption.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509KeyStorageFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509KeyUsageFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509NameType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509RevocationFlag.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509RevocationMode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Store.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierHashAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509VerificationFlags.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\KeyUsageFlagsAsn.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.manual.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.manual.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.manual.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml</DependentUpon> </Compile> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Browser'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetRandomBytes.cs" Link="Common\Interop\Unix\System.Native\Interop.GetRandomBytes.cs" /> <Compile Include="$(CommonPath)System\Sha1ForNonSecretPurposes.cs" Link="Common\System\Sha1ForNonSecretPurposes.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Managed.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Browser.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.Browser.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Browser.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.NoFallback.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Managed.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.Browser.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\SHAHashProvider.Browser.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.NotSupported.cs" /> </ItemGroup> <ItemGroup Condition="'$(NeedOpenSslInitializer)' == 'true'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseOpenSsl)' == 'true'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs" Link="Common\Interop\Unix\Interop.Errors.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FChMod.cs" Link="Common\Interop\Unix\System.Native\Interop.FChMod.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetEUid.cs" Link="Common\Interop\Unix\System.Native\Interop.GetEUid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetPwUid.cs" Link="Common\Interop\Unix\System.Native\Interop.GetPwUid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Permissions.cs" Link="Common\Interop\Unix\System.Native\Interop.Permissions.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ReadLink.cs" Link="Common\Interop\Unix\System.Native\Interop.ReadLink.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.cs" Link="Common\Interop\Unix\System.Native\Interop.Stat.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.RAND.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.RAND.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Hmac.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Hmac.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.LegacyAlgorithms.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.LegacyAlgorithms.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.LookupFriendlyNameByOid.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.LookupFriendlyNameByOid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.PooledCrypto.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.PooledCrypto.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafePkcs7Handle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafePkcs7Handle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" /> <Compile Include="$(CoreLibSharedDir)System\IO\PersistedFiles.Names.Unix.cs" Link="Common\System\IO\PersistedFiles.Names.Unix.cs" /> <Compile Include="$(CoreLibSharedDir)System\IO\PersistedFiles.Unix.cs" Link="Common\System\IO\PersistedFiles.Unix.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAOpenSsl.cs" Link="Common\System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanDerivation.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanDerivation.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.ImportExport.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAOpenSsl.cs" Link="Common\System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Text\ValueUtf8Converter.cs" Link="Common\System\Text\ValueUtf8Converter.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\AesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Unix.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDsaWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanWrapper.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Unix.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\OpenSslAsnFormatter.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipher.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipherLite.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.OpenSsl.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\ReasonFlagsAsn.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertCollectionLoader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCachedDirectoryStoreProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslSingleCertLoader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DictionaryStringHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Persistence.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseOpenSslAead)' == 'true'"> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslAvailable.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslAvailable.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Cipher.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Cipher.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.OpenSsl.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseAndroidCrypto)' == 'true'"> <Compile Include="$(CommonPath)Interop\Android\Interop.JObjectLifetime.cs" Link="Common\Interop\Android\Interop.JObjectLifetime.cs" /> <Compile Include="$(CommonPath)Interop\Android\Interop.Libraries.cs" Link="Common\Interop\Android\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Bignum.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Bignum.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Cipher.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Cipher.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Dsa.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.ImportExport.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.ImportExport.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Ecdh.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Ecdh.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcKey.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Err.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Err.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.DigestAlgs.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.DigestAlgs.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Hmac.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Hmac.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Initialization.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Initialization.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Random.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Random.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Rsa.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Rsa.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Chain.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Chain.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Store.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Store.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\SafeKeyHandle.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\SafeKeyHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAAndroid.cs" Link="Common\System\Security\Cryptography\DSAAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECAndroid.cs" Link="Common\System\Security\Cryptography\ECAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECAndroid.ImportExport.cs" Link="Common\System\Security\Cryptography\ECAndroid.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanAndroid.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanAndroid.Derive.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanAndroid.Derive.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanAndroidPublicKey.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanAndroidPublicKey.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanDerivation.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanDerivation.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaAndroid.cs" Link="Common\System\Security\Cryptography\ECDsaAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAAndroid.cs" Link="Common\System\Security\Cryptography\RSAAndroid.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\AesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.Android.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.Android.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Managed.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Unix.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.Android.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.Android.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Unix.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.NoFallback.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipher.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipherLite.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Managed.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AndroidCertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AndroidPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateData.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.AndroidKeyStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.ExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.LoaderPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.TrustedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DictionaryStringHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Android.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseAppleCrypto)' == 'true'"> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFArray.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFArray.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFData.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFData.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFDate.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFDate.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFError.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFError.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFString.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFString.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.Libraries.cs" Link="Common\Interop\OSX\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Digest.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Digest.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Ecc.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Ecc.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Err.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Err.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Hmac.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Hmac.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.KeyAgree.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.KeyAgree.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.PAL_HashAlgorithm.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.PAL_HashAlgorithm.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Random.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Random.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.RSA.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.RSA.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErr.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErr.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErrMessage.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErrMessage.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SignVerify.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SignVerify.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Symmetric.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Symmetric.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Trust.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Trust.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509Chain.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509Chain.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\EccSecurityTransforms.cs" Link="Common\System\Security\Cryptography\EccSecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanDerivation.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanDerivation.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanSecurityTransforms.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanSecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaSecurityTransforms.cs" Link="Common\System\Security\Cryptography\ECDsaSecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSASecurityTransforms.cs" Link="Common\System\Security\Cryptography\RSASecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\SecKeyPair.cs" Link="Common\System\Security\Cryptography\SecKeyPair.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\AppleCCCryptor.cs" /> <Compile Include="System\Security\Cryptography\AppleCCCryptorLite.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Managed.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricAlgorithmHelpers.Ansi.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Unix.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithmNames.Apple.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.Apple.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Apple.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.NoFallback.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.TempExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateData.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DictionaryStringHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Apple.ECKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Apple.X500Name.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'OSX'"> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.macOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.macOS.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Pbkdf2.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Pbkdf2.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.macOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.macOS.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.macOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAOpenSsl.cs" Link="Common\System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSASecurityTransforms.cs" Link="Common\System\Security\Cryptography\DSASecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSASecurityTransforms.macOS.cs" Link="Common\System\Security\Cryptography\DSASecurityTransforms.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\EccSecurityTransforms.macOS.cs" Link="Common\System\Security\Cryptography\EccSecurityTransforms.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.ImportExport.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSASecurityTransforms.macOS.cs" Link="Common\System\Security\Cryptography\RSASecurityTransforms.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAOpenSsl.cs" Link="Common\System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.macOS.cs" /> <Compile Include="System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.ImportExport.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Keys.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Pkcs12.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ApplePkcs12Reader.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.AppleKeychainStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.AppleTrustStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.ExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.LoaderPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.macOS.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseAppleCrypto)' == 'true' and '$(TargetPlatformIdentifier)' != 'OSX'"> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.iOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.iOS.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.iOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.iOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\EccSecurityTransforms.iOS.cs" Link="Common\System\Security\Cryptography\EccSecurityTransforms.iOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSASecurityTransforms.iOS.cs" Link="Common\System\Security\Cryptography\RSASecurityTransforms.iOS.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Managed.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificateExporter.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.ImportExport.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Keys.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Pem.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Pkcs12.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ApplePkcs12CertLoader.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ApplePkcs12Reader.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertCollectionLoader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.iOS.AppleKeychainStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.iOS.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'"> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptAcquireContext.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptAcquireContext.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptAcquireContext_IntPtr.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptAcquireContext_IntPtr.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptCreateHash.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptCreateHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDecrypt.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDecrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDeriveKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDeriveKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDestroyHash.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDestroyHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDestroyKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDestroyKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptEncrypt.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptEncrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptExportKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptExportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGenKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGenKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetDefaultProvider.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetDefaultProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetHashParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetHashParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetKeyParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetKeyParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetProvParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetProvParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetUserKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetUserKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptHashData.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptHashData.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptImportKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptImportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptReleaseContext.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptReleaseContext.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptSetKeyParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptSetKeyParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptSignHash.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptSignHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\SafeHashHandle.cs" Link="Common\Interop\Windows\Advapi32\SafeHashHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\SafeKeyHandle.cs" Link="Common\Interop\Windows\Advapi32\SafeKeyHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\SafeProvHandle.cs" Link="Common\Interop\Windows\Advapi32\SafeProvHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\AesBCryptModes.cs" Link="Common\Interop\Windows\BCrypt\AesBCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\BCryptAeadHandleCache.cs" Link="Common\Interop\Windows\BCrypt\BCryptAeadHandleCache.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\BCryptAlgorithmCache.cs" Link="Common\Internal\Windows\BCrypt\BCryptAlgorithmCache.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Cng.cs" Link="Common\Interop\Windows\BCrypt\Cng.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\DESBCryptModes.cs" Link="Common\Interop\Windows\BCrypt\DESBCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.AsymmetricEncryption.Types.cs" Link="Common\Interop\Windows\BCrypt\Interop.AsymmetricEncryption.Types.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptAlgPseudoHandle.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptAlgPseudoHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptCloseAlgorithmProvider.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptCloseAlgorithmProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptCreateHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptCreateHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDeriveKeyPBKDF2.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDeriveKeyPBKDF2.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDestroyHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDestroyHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDestroyKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDestroyKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDuplicateHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDuplicateHash.cs" /> <Compile Include="$(CommonPath)\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptExportKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptFinishHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptFinishHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenerateSymmetricKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptGenerateSymmetricKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptHashData.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptHashData.cs" /> <Compile Include="$(CommonPath)\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptKeyDerivation.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptKeyDerivation.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptOpenAlgorithmProvider.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptOpenAlgorithmProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptPropertyStrings.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptPropertyStrings.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.Blobs.cs" Link="Common\Interop\Windows\BCrypt\Interop.Blobs.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.CreateCryptographicException.cs" Link="Common\Interop\Windows\BCrypt\Interop.CreateCryptographicException.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.NTSTATUS.cs" Link="Common\Interop\Windows\BCrypt\Interop.NTSTATUS.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\RC2BCryptModes.cs" Link="Common\Interop\Windows\BCrypt\RC2BCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\TripleDesBCryptModes.cs" Link="Common\Interop\Windows\BCrypt\TripleDesBCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_CHAIN_ENGINE_CONFIG.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_CHAIN_ENGINE_CONFIG.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_EXTENSION.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_EXTENSION.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertAddCertificateContextToStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertAddCertificateContextToStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertAddCertificateLinkToStore_CertStoreAddDisposition.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertAddCertificateLinkToStore_CertStoreAddDisposition.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertChainFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertChainFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertCloseStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertCloseStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertContextPropId.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertContextPropId.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertControlStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertControlStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertControlStoreFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertControlStoreFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertControlStoreType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertControlStoreType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertCreateCertificateChainEngine.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertCreateCertificateChainEngine.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDeleteCertificateFromStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDeleteCertificateFromStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateCertificateChain.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateChain.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContext.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContext.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContextWithKeyContainerDeletion.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContextWithKeyContainerDeletion.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore_SafeCertStoreHandle.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore_SafeCertStoreHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindCertificateInStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindCertificateInStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindExtension.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindExtension.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFreeCertificateChain.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateChain.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFreeCertificateChainEngine.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateChainEngine.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetCertificateChain.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetCertificateChain.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetCertificateContextProperty.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetCertificateContextProperty.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetCertificateContextPropertyString.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetCertificateContextPropertyString.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetIntendedKeyUsage.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetIntendedKeyUsage.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetNameString.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetNameString.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetValidUsages.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetValidUsages.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates_types.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates_types.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameStringType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameStringType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameStrTypeAndFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameStrTypeAndFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameToStr.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameToStr.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertOpenStore_ENUM.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertOpenStore_ENUM.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSaveStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSaveStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSerializeCertificateStoreElement.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSerializeCertificateStoreElement.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_CRYPT_KEY_PROV_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_CRYPT_KEY_PROV_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_DATA_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_DATA_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_SafeNCryptKeyHandle.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_SafeNCryptKeyHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetPropertyFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetPropertyFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreAddDisposition.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreAddDisposition.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreSaveAs.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreSaveAs.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreSaveTo.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreSaveTo.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStrToName.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStrToName.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertVerifyTimeValidity.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertVerifyTimeValidity.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ChainEngine.cs" Link="Common\Interop\Windows\Crypt32\Interop.ChainEngine.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ChainEngineConfigFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.ChainEngineConfigFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ContentType.cs" Link="Common\Interop\Windows\Crypt32\Interop.ContentType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" Link="Common\Interop\Windows\Crypt32\Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_KEY_PROV_INFO_ANSI.cs" Link="Common\Interop\Windows\Crypt32\Interop.CRYPT_KEY_PROV_INFO_ANSI.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey_SafeNCryptKeyHandle.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey_SafeNCryptKeyHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKeyFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKeyFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptAcquireContextFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptAcquireContextFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObject_CertEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObject_CertEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObjectFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObjectFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_IntPtr.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_IntPtr.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_string.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_string.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptEncodeObject_CertEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptEncodeObject_CertEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptFormatObject.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptFormatObject.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptHashPublicKeyInfo.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptHashPublicKeyInfo.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoEx2.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoEx2.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptKeySpec.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptKeySpec.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgClose.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgClose.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgGetParam.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgGetParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgParamType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgParamType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptQueryObject.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptQueryObject.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertQueryObjectType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertQueryObjectType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ExpectedContentTypeFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.ExpectedContentTypeFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ExpectedFormatTypeFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.ExpectedFormatTypeFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.FindOidInfo.cs" Link="Common\Interop\Windows\Crypt32\Interop.FindOidInfo.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.FormatType.cs" Link="Common\Interop\Windows\Crypt32\Interop.FormatType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.HashIdAlg.cs" Link="Common\Interop\Windows\Crypt32\Interop.HashIdAlg.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.MsgEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.MsgEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PfxCertStoreFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.PfxCertStoreFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PFXExportFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.PFXExportFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PFXExportCertStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.PFXExportCertStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PFXImportCertStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.PFXImportCertStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.X509KeyUsageFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.X509KeyUsageFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs" Link="Common\Interop\Windows\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FormatMessage.cs" Link="Common\Internal\Windows\Kernel32\Interop.FormatMessage.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.AsymmetricPaddingMode.cs" Link="Common\Interop\Windows\NCrypt\Interop.AsymmetricPaddingMode.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.EncryptDecrypt.cs" Link="Common\Interop\Windows\NCrypt\Interop.EncryptDecrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.ErrorCode.cs" Link="Common\Interop\Windows\NCrypt\Interop.ErrorCode.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.Keys.cs" Link="Common\Interop\Windows\NCrypt\Interop.Keys.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptBuffer.cs" Link="Common\Internal\Windows\NCrypt\Interop.NCryptBuffer.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs" Link="Common\Internal\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs" Link="Common\Internal\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptFreeObject.cs" Link="Common\Interop\Windows\NCrypt\Interop.NCryptFreeObject.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptOpenStorageProvider.cs" Link="Common\Interop\Windows\NCrypt\Interop.NCryptOpenStorageProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.Properties.cs" Link="Common\Interop\Windows\NCrypt\Interop.Properties.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.SignVerify.cs" Link="Common\Interop\Windows\NCrypt\Interop.SignVerify.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.UiPolicy.cs" Link="Internal\Windows\NCrypt\Interop.UiPolicy.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptAlgorithmHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeBCryptAlgorithmHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBCryptHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptHashHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeBCryptHashHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptKeyHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeBCryptKeyHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCertStoreHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCertStoreHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeChainEngineHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeChainEngineHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCrypt32Handle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCrypt32Handle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCryptMsgHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCryptMsgHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\CngPkcs8.cs" Link="Common\System\Security\Cryptography\CngPkcs8.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\CryptoThrowHelper.Windows.cs" Link="Common\System\Security\Cryptography\CryptoThrowHelper.Windows.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSACng.cs" Link="Common\System\Security\Cryptography\DSACng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSACng.ImportExport.cs" Link="Common\System\Security\Cryptography\DSACng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSACng.SignVerify.cs" Link="Common\System\Security\Cryptography\DSACng.SignVerify.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECCng.HashAlgorithm.cs" Link="Common\System\Security\Cryptography\ECCng.HashAlgorithm.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECCng.ImportExport.cs" Link="Common\System\Security\Cryptography\ECCng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanCng.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanCng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.cs" Link="Common\System\Security\Cryptography\ECDsaCng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.HashData.cs" Link="Common\System\Security\Cryptography\ECDsaCng.HashData.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.ImportExport.cs" Link="Common\System\Security\Cryptography\ECDsaCng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.SignVerify.cs" Link="Common\System\Security\Cryptography\ECDsaCng.SignVerify.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.cs" Link="Common\System\Security\Cryptography\RSACng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.EncryptDecrypt.cs" Link="Common\System\Security\Cryptography\RSACng.EncryptDecrypt.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.ImportExport.cs" Link="Common\System\Security\Cryptography\RSACng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.SignVerify.cs" Link="Common\System\Security\Cryptography\RSACng.SignVerify.cs" /> <Compile Include="Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs" /> <Compile Include="System\Security\Cryptography\AeadCommon.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesCng.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Windows.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherCsp.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherBCrypt.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherNCrypt.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Windows.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.SymmetricKey.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Windows.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.Windows.cs" /> <Compile Include="System\Security\Cryptography\CngAlgorithmCore.cs" /> <Compile Include="System\Security\Cryptography\CngAsnFormatter.cs" /> <Compile Include="System\Security\Cryptography\CngCommon.Hash.cs" /> <Compile Include="System\Security\Cryptography\CngCommon.SignVerify.cs" /> <Compile Include="System\Security\Cryptography\CngHelpers.cs" /> <Compile Include="System\Security\Cryptography\CngKey.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Create.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Delete.cs" /> <Compile Include="System\Security\Cryptography\CngKey.EC.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Exists.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Export.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Import.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Open.cs" /> <Compile Include="System\Security\Cryptography\CngKey.OpenHandle.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Properties.cs" /> <Compile Include="System\Security\Cryptography\CngKey.StandardProperties.cs" /> <Compile Include="System\Security\Cryptography\CngKeyLite.cs" /> <Compile Include="System\Security\Cryptography\CngPkcs8.cs" /> <Compile Include="System\Security\Cryptography\CngSymmetricAlgorithmCore.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.Windows.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.Windows.cs" /> <Compile Include="System\Security\Cryptography\DSACng.cs" /> <Compile Include="System\Security\Cryptography\DSACng.ImportExport.cs" /> <Compile Include="System\Security\Cryptography\DSACng.Key.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\DSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECCngKey.cs" /> <Compile Include="System\Security\Cryptography\ECCng.ImportExport.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.Windows.cs" /> <Compile Include="System\Security\Cryptography\ECDsaCng.cs" /> <Compile Include="System\Security\Cryptography\ECDsaCng.Key.cs" /> <Compile Include="System\Security\Cryptography\ECDsaWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.Cng.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.Key.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.Xml.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanWrapper.cs" /> <Compile Include="System\Security\Cryptography\HashProviderCng.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.Windows.cs" /> <Compile Include="System\Security\Cryptography\ICngSymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Windows.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.Windows.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.Windows.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\ProviderPropertyName.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.Windows.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\RSACng.cs" /> <Compile Include="System\Security\Cryptography\RSACng.ImportExport.cs" /> <Compile Include="System\Security\Cryptography\RSACng.Key.cs" /> <Compile Include="System\Security\Cryptography\RSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCng.Windows.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Windows.GetChainStatusInformation.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\SafeLocalAllocHandle.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\WindowsHelpers.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\WindowsInterop.crypt32.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\WindowsStructs.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.CustomExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.X500DistinguishedName.cs" /> </ItemGroup> <ItemGroup> <Reference Include="System.Collections" /> <Reference Include="System.Collections.Concurrent" /> <Reference Include="System.Collections.NonGeneric" /> <Reference Include="System.Diagnostics.StackTrace" /> <Reference Include="System.Formats.Asn1" /> <Reference Include="System.Memory" /> <Reference Include="System.Net.Primitives" /> <Reference Include="System.Runtime" /> <Reference Include="System.Runtime.CompilerServices.Unsafe" /> <Reference Include="System.Runtime.Extensions" /> <Reference Include="System.Runtime.InteropServices" /> <Reference Include="System.Runtime.InteropServices.RuntimeInformation" /> <Reference Include="System.Runtime.Numerics" /> <Reference Include="System.Text.Encoding.Extensions" /> <Reference Include="System.Threading" /> <Reference Include="System.Threading.Thread" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' and '$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier' != 'Browser'"> <Reference Include="System.Console" Condition="'$(Configuration)' == 'Debug'" /> </ItemGroup> <ItemGroup> <None Include="@(AsnXml)" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <DefineConstants>$(DefineConstants);INTERNAL_ASYMMETRIC_IMPLEMENTATIONS</DefineConstants> <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Android;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;$(NetCoreAppCurrent)-Browser;$(NetCoreAppCurrent)</TargetFrameworks> <NoWarn>$(NoWarn);CA5350;CA5351;CA5379;CA5384;SYSLIB0026</NoWarn> <!-- PasswordDeriveBytes.GetBytes is obsolete but DeriveBytes.GetBytes intentionally isn't. --> <NoWarn>$(NoWarn);CS0809</NoWarn> <Nullable>enable</Nullable> </PropertyGroup> <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> <PropertyGroup> <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier> <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == ''">SR.SystemSecurityCryptography_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage> <UseAndroidCrypto Condition="'$(TargetPlatformIdentifier)' == 'Android'">true</UseAndroidCrypto> <UseAppleCrypto Condition="'$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'iOS' or '$(TargetPlatformIdentifier)' == 'tvOS'">true</UseAppleCrypto> <UseOpenSsl Condition="'$(TargetPlatformIdentifier)' == 'Unix'">true</UseOpenSsl> <UseOpenSslAead Condition="'$(UseOpenSsl)' == 'true' or '$(TargetPlatformIdentifier)' == 'OSX'">true</UseOpenSslAead> <NeedOpenSslInitializer Condition="'$(UseOpenSslAead)' == 'true'">true</NeedOpenSslInitializer> </PropertyGroup> <Import Project="$(CommonPath)System\Security\Cryptography\Asn1\AsnXml.targets" Condition="'$(GeneratePlatformNotSupportedAssemblyMessage)' == ''" /> <Import Project="$(CommonPath)System\Security\Cryptography\Asn1Reader\System.Security.Cryptography.Asn1Reader.Shared.projitems" Condition="'$(GeneratePlatformNotSupportedAssemblyMessage)' == ''" /> <ItemGroup Condition="'$(GeneratePlatformNotSupportedAssemblyMessage)' == ''"> <Compile Include="$(CommonPath)DisableRuntimeMarshalling.cs" Link="Common\DisableRuntimeMarshalling.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHandleCache.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHandleCache.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509ChainHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeX509ChainHandle.cs" /> <Compile Include="$(CommonPath)System\HexConverter.cs" Link="Common\System\HexConverter.cs" /> <Compile Include="$(CommonPath)System\Memory\PointerMemoryManager.cs" Link="Common\System\Memory\PointerMemoryManager.cs" /> <Compile Include="$(CommonPath)System\Obsoletions.cs" Link="Common\System\Obsoletions.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\AttributeAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AttributeAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\AttributeAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\AttributeAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\AttributeAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\CurveAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\CurveAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\CurveAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\CurveAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\CurveAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DirectoryStringAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DssParms.xml"> <Link>Common\System\Security\Cryptography\Asn1\DssParms.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DssParms.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DssParms.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DssParms.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\ECDomainParameters.xml"> <Link>Common\System\Security\Cryptography\Asn1\ECDomainParameters.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\ECDomainParameters.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\ECPrivateKey.xml"> <Link>Common\System\Security\Cryptography\Asn1\ECPrivateKey.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\ECPrivateKey.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\EdiPartyNameAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\FieldID.xml"> <Link>Common\System\Security\Cryptography\Asn1\FieldID.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\FieldID.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\FieldID.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\FieldID.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\GeneralNameAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\GeneralNameAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\GeneralNameAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\OtherNameAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\OtherNameAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\OtherNameAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PBEParameter.xml"> <Link>Common\System\Security\Cryptography\Asn1\PBEParameter.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PBEParameter.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PBEParameter.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PBEParameter.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PBES2Params.xml"> <Link>Common\System\Security\Cryptography\Asn1\PBES2Params.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PBES2Params.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PBES2Params.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PBES2Params.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2Params.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2Params.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pbkdf2Params.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\PssParamsAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\PssParamsAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\PssParamsAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Rc2CbcParameters.xml"> <Link>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\SpecifiedECDomain.xml"> <Link>Common\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\X509ExtensionAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\CryptoPool.cs" Link="Common\System\Security\Cryptography\CryptoPool.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAKeyFormatHelper.cs" Link="Common\System\Security\Cryptography\DSAKeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\EccKeyFormatHelper.cs" Link="Common\System\Security\Cryptography\EccKeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Helpers.cs" Link="Common\System\Security\Cryptography\Helpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeyBlobHelpers.cs" Link="Common\System\Security\Cryptography\KeyBlobHelpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\HashOneShotHelpers.cs" Link="Common\System\Security\Cryptography\HashOneShotHelpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeyFormatHelper.cs" Link="Common\System\Security\Cryptography\KeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeyFormatHelper.Encrypted.cs" Link="Common\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\KeySizeHelpers.cs" Link="Common\System\Security\Cryptography\KeySizeHelpers.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Oids.cs" Link="Common\System\Security\Cryptography\Oids.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Oids.Shared.cs" Link="Common\System\Security\Cryptography\Oids.Shared.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\PasswordBasedEncryption.cs" Link="Common\System\Security\Cryptography\PasswordBasedEncryption.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\PemLabels.cs" Link="Common\System\Security\Cryptography\PemLabels.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\Pkcs12Kdf.cs" Link="Common\System\Security\Cryptography\Pkcs12Kdf.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAKeyFormatHelper.cs" Link="Common\System\Security\Cryptography\RSAKeyFormatHelper.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs" Link="Common\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RsaPaddingProcessor.cs" Link="Common\System\Security\Cryptography\RsaPaddingProcessor.cs" /> <Compile Include="$(CommonPath)System\Threading\Tasks\TaskToApm.cs" Link="Common\System\Threading\Tasks\TaskToApm.cs" /> <Compile Include="Microsoft\Win32\SafeHandles\SafePasswordHandle.cs" /> <Compile Include="System\Security\Cryptography\Aes.cs" /> <Compile Include="System\Security\Cryptography\AesAEAD.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.cs" /> <Compile Include="System\Security\Cryptography\AesCryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.cs" /> <Compile Include="System\Security\Cryptography\AesManaged.cs" /> <Compile Include="System\Security\Cryptography\AsnEncodedData.cs" /> <Compile Include="System\Security\Cryptography\AsnEncodedDataCollection.cs" /> <Compile Include="System\Security\Cryptography\AsnEncodedDataEnumerator.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricKeyExchangeDeformatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricKeyExchangeFormatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricSignatureDeformatter.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricSignatureFormatter.cs" /> <Compile Include="System\Security\Cryptography\Base64Transforms.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipher.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.cs" /> <Compile Include="System\Security\Cryptography\CipherMode.cs" /> <Compile Include="System\Security\Cryptography\CngAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\CngAlgorithmGroup.cs" /> <Compile Include="System\Security\Cryptography\CngExportPolicies.cs" /> <Compile Include="System\Security\Cryptography\CngKeyBlobFormat.cs" /> <Compile Include="System\Security\Cryptography\CngKeyCreationOptions.cs" /> <Compile Include="System\Security\Cryptography\CngKeyCreationParameters.cs" /> <Compile Include="System\Security\Cryptography\CngKeyHandleOpenOptions.cs" /> <Compile Include="System\Security\Cryptography\CngKeyOpenOptions.cs" /> <Compile Include="System\Security\Cryptography\CngKeyUsages.cs" /> <Compile Include="System\Security\Cryptography\CngProperty.cs" /> <Compile Include="System\Security\Cryptography\CngPropertyCollection.cs" /> <Compile Include="System\Security\Cryptography\CngPropertyOptions.cs" /> <Compile Include="System\Security\Cryptography\CngProvider.cs" /> <Compile Include="System\Security\Cryptography\CngUIPolicy.cs" /> <Compile Include="System\Security\Cryptography\CngUIProtectionLevels.cs" /> <Compile Include="System\Security\Cryptography\CryptoConfigForwarder.cs" /> <Compile Include="System\Security\Cryptography\CryptographicOperations.cs" /> <Compile Include="System\Security\Cryptography\CryptographicUnexpectedOperationException.cs" /> <Compile Include="System\Security\Cryptography\CryptoConfig.cs" /> <Compile Include="System\Security\Cryptography\CryptoConfig.Common.cs" /> <Compile Include="System\Security\Cryptography\CryptoStream.cs" /> <Compile Include="System\Security\Cryptography\CryptoStreamMode.cs" /> <Compile Include="System\Security\Cryptography\CspParameters.cs" /> <Compile Include="System\Security\Cryptography\CspProviderFlags.cs" /> <Compile Include="System\Security\Cryptography\DeriveBytes.cs" /> <Compile Include="System\Security\Cryptography\DES.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.cs" /> <Compile Include="System\Security\Cryptography\DSA.cs" /> <Compile Include="System\Security\Cryptography\DSA.Xml.cs" /> <Compile Include="System\Security\Cryptography\DSAParameters.cs" /> <Compile Include="System\Security\Cryptography\DSASignatureDeformatter.cs" /> <Compile Include="System\Security\Cryptography\DSASignatureFormat.cs" /> <Compile Include="System\Security\Cryptography\DSASignatureFormatter.cs" /> <Compile Include="System\Security\Cryptography\ECAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\ECCurve.cs" /> <Compile Include="System\Security\Cryptography\ECCurve.ECCurveType.cs" /> <Compile Include="System\Security\Cryptography\ECCurve.NamedCurves.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Xml.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanKeyDerivationFunction.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanPublicKey.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Xml.cs" /> <Compile Include="System\Security\Cryptography\ECKeyXmlFormat.cs" /> <Compile Include="System\Security\Cryptography\ECParameters.cs" /> <Compile Include="System\Security\Cryptography\ECPoint.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithmName.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithmNames.cs" /> <Compile Include="System\Security\Cryptography\HashProvider.cs" /> <Compile Include="System\Security\Cryptography\Helpers.cs" /> <Compile Include="System\Security\Cryptography\HKDF.cs" /> <Compile Include="System\Security\Cryptography\HMAC.cs" /> <Compile Include="System\Security\Cryptography\HMACCommon.cs" /> <Compile Include="System\Security\Cryptography\HMACMD5.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA1.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA256.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA384.cs" /> <Compile Include="System\Security\Cryptography\HMACSHA512.cs" /> <Compile Include="System\Security\Cryptography\ICryptoTransform.cs" /> <Compile Include="System\Security\Cryptography\ICspAsymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\ILiteSymmetricCipher.cs" /> <Compile Include="System\Security\Cryptography\IncrementalHash.cs" /> <Compile Include="System\Security\Cryptography\KeyedHashAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\KeyNumber.cs" /> <Compile Include="System\Security\Cryptography\KeySizes.cs" /> <Compile Include="System\Security\Cryptography\LiteHashProvider.cs" /> <Compile Include="System\Security\Cryptography\MaskGenerationMethod.cs" /> <Compile Include="System\Security\Cryptography\MD5.cs" /> <Compile Include="System\Security\Cryptography\MD5CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\Oid.cs" /> <Compile Include="System\Security\Cryptography\OidCollection.cs" /> <Compile Include="System\Security\Cryptography\OidEnumerator.cs" /> <Compile Include="System\Security\Cryptography\OidGroup.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.cs" /> <Compile Include="System\Security\Cryptography\PaddingMode.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.cs" /> <Compile Include="System\Security\Cryptography\PbeEncryptionAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\PbeParameters.cs" /> <Compile Include="System\Security\Cryptography\PemEncoding.cs" /> <Compile Include="System\Security\Cryptography\PemEnumerator.cs" /> <Compile Include="System\Security\Cryptography\PemFields.cs" /> <Compile Include="System\Security\Cryptography\PemKeyHelpers.cs" /> <Compile Include="System\Security\Cryptography\PKCS1MaskGenerationMethod.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGenerator.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.cs" /> <Compile Include="System\Security\Cryptography\RC2.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.cs" /> <Compile Include="System\Security\Cryptography\Rijndael.cs" /> <Compile Include="System\Security\Cryptography\RijndaelImplementation.cs" /> <Compile Include="System\Security\Cryptography\RijndaelManaged.cs" /> <Compile Include="System\Security\Cryptography\Rfc2898DeriveBytes.cs" /> <Compile Include="System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs" /> <Compile Include="System\Security\Cryptography\RNGCryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\RSA.cs" /> <Compile Include="System\Security\Cryptography\RSA.Xml.cs" /> <Compile Include="System\Security\Cryptography\RSAEncryptionPadding.cs" /> <Compile Include="System\Security\Cryptography\RSAEncryptionPaddingMode.cs" /> <Compile Include="System\Security\Cryptography\RSAOAEPKeyExchangeDeformatter.cs" /> <Compile Include="System\Security\Cryptography\RSAOAEPKeyExchangeFormatter.cs" /> <Compile Include="System\Security\Cryptography\RSAParameters.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1KeyExchangeDeformatter.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1KeyExchangeFormatter.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1SignatureDeformatter.cs" /> <Compile Include="System\Security\Cryptography\RSAPKCS1SignatureFormatter.cs" /> <Compile Include="System\Security\Cryptography\RSASignaturePadding.cs" /> <Compile Include="System\Security\Cryptography\RSASignaturePaddingMode.cs" /> <Compile Include="System\Security\Cryptography\SHA1.cs" /> <Compile Include="System\Security\Cryptography\SHA1CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA1Managed.cs" /> <Compile Include="System\Security\Cryptography\SHA256.cs" /> <Compile Include="System\Security\Cryptography\SHA256CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA256Managed.cs" /> <Compile Include="System\Security\Cryptography\SHA384.cs" /> <Compile Include="System\Security\Cryptography\SHA384CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA384Managed.cs" /> <Compile Include="System\Security\Cryptography\SHA512.cs" /> <Compile Include="System\Security\Cryptography\SHA512CryptoServiceProvider.cs" /> <Compile Include="System\Security\Cryptography\SHA512Managed.cs" /> <Compile Include="System\Security\Cryptography\SignatureDescription.cs" /> <Compile Include="System\Security\Cryptography\SymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\SymmetricPadding.cs" /> <Compile Include="System\Security\Cryptography\TripleDES.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoTransform.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoEncryptor.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoDecryptor.cs" /> <Compile Include="System\Security\Cryptography\UniversalCryptoOneShot.cs" /> <Compile Include="System\Security\Cryptography\XmlKeyHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateRequest.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ErrorCode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ICertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IChainPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IFindPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ILoaderPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IStorePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\IX509Pal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\Pkcs10CertificationRequestInfo.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\PublicKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StoreLocation.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StoreName.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DistinguishedNameFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X501Attribute.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate2.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Certificate2Enumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509CertificateCollection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509CertificateEnumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Chain.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainElement.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainElementEnumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainStatus.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainStatusFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ChainTrustMode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ContentType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Extension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509ExtensionEnumerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509FindType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509IncludeOption.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509KeyStorageFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509KeyUsageFlags.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509NameType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509RevocationFlag.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509RevocationMode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Store.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierHashAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509VerificationFlags.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\KeyUsageFlagsAsn.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.manual.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.manual.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\ValidityAsn.manual.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\PolicyConstraintsAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml</DependentUpon> </Compile> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Browser'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetRandomBytes.cs" Link="Common\Interop\Unix\System.Native\Interop.GetRandomBytes.cs" /> <Compile Include="$(CommonPath)System\Sha1ForNonSecretPurposes.cs" Link="Common\System\Sha1ForNonSecretPurposes.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Managed.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Browser.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.Browser.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Browser.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.NoFallback.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Managed.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.Browser.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\SHAHashProvider.Browser.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.NotSupported.cs" /> </ItemGroup> <ItemGroup Condition="'$(NeedOpenSslInitializer)' == 'true'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Libraries.cs" Link="Common\Interop\Unix\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Initialization.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseOpenSsl)' == 'true'"> <Compile Include="$(CommonPath)Interop\Unix\Interop.Errors.cs" Link="Common\Interop\Unix\Interop.Errors.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.FChMod.cs" Link="Common\Interop\Unix\System.Native\Interop.FChMod.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetEUid.cs" Link="Common\Interop\Unix\System.Native\Interop.GetEUid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.GetPwUid.cs" Link="Common\Interop\Unix\System.Native\Interop.GetPwUid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Permissions.cs" Link="Common\Interop\Unix\System.Native\Interop.Permissions.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.ReadLink.cs" Link="Common\Interop\Unix\System.Native\Interop.ReadLink.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Native\Interop.Stat.cs" Link="Common\Interop\Unix\System.Native\Interop.Stat.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.RAND.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.RAND.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Hmac.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Hmac.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.LegacyAlgorithms.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.LegacyAlgorithms.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.LookupFriendlyNameByOid.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.LookupFriendlyNameByOid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.PooledCrypto.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.PooledCrypto.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Stack.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.X509StoreCtx.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBioHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafePkcs7Handle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafePkcs7Handle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\X509ExtensionSafeHandles.Unix.cs" /> <Compile Include="$(CoreLibSharedDir)System\IO\PersistedFiles.Names.Unix.cs" Link="Common\System\IO\PersistedFiles.Names.Unix.cs" /> <Compile Include="$(CoreLibSharedDir)System\IO\PersistedFiles.Unix.cs" Link="Common\System\IO\PersistedFiles.Unix.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAOpenSsl.cs" Link="Common\System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanDerivation.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanDerivation.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.ImportExport.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAOpenSsl.cs" Link="Common\System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Text\ValueUtf8Converter.cs" Link="Common\System\Text\ValueUtf8Converter.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\AesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Unix.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDsaWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanWrapper.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Unix.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\OpenSslAsnFormatter.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipher.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipherLite.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.OpenSsl.cs" /> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\DistributionPointAsn.xml</DependentUpon> </Compile> <AsnXml Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml" /> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs"> <DependentUpon>System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\X509Certificates\Asn1\ReasonFlagsAsn.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertCollectionLoader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCachedDirectoryStoreProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslSingleCertLoader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DictionaryStringHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Persistence.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseOpenSslAead)' == 'true'"> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslAvailable.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslAvailable.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Cipher.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Cipher.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.OpenSsl.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseAndroidCrypto)' == 'true'"> <Compile Include="$(CommonPath)Interop\Android\Interop.JObjectLifetime.cs" Link="Common\Interop\Android\Interop.JObjectLifetime.cs" /> <Compile Include="$(CommonPath)Interop\Android\Interop.Libraries.cs" Link="Common\Interop\Android\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Bignum.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Bignum.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Cipher.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Cipher.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Dsa.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.ImportExport.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcDsa.ImportExport.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Ecdh.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Ecdh.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcKey.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Err.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Err.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.DigestAlgs.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Evp.DigestAlgs.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Hmac.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Hmac.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Initialization.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Initialization.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Random.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Random.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.Rsa.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.Rsa.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Chain.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Chain.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Store.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\Interop.X509Store.cs" /> <Compile Include="$(CommonPath)Interop\Android\System.Security.Cryptography.Native.Android\SafeKeyHandle.cs" Link="Common\Interop\Android\System.Security.Cryptography.Native.Android\SafeKeyHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpCipherCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpMdCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeHmacCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAAndroid.cs" Link="Common\System\Security\Cryptography\DSAAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECAndroid.cs" Link="Common\System\Security\Cryptography\ECAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECAndroid.ImportExport.cs" Link="Common\System\Security\Cryptography\ECAndroid.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanAndroid.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanAndroid.Derive.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanAndroid.Derive.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanAndroidPublicKey.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanAndroidPublicKey.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanDerivation.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanDerivation.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaAndroid.cs" Link="Common\System\Security\Cryptography\ECDsaAndroid.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAAndroid.cs" Link="Common\System\Security\Cryptography\RSAAndroid.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</DependentUpon> </Compile> <Compile Include="System\Security\Cryptography\AesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.Android.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.Android.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Managed.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Unix.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.Android.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.Android.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Unix.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.NoFallback.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipher.cs" /> <Compile Include="System\Security\Cryptography\OpenSslCipherLite.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Managed.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.Android.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AndroidCertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AndroidPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateData.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.AndroidKeyStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.ExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.LoaderPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Android.TrustedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DictionaryStringHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Android.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseAppleCrypto)' == 'true'"> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFArray.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFArray.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFData.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFData.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFDate.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFDate.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFError.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFError.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.CoreFoundation.CFString.cs" Link="Common\Interop\OSX\Interop.CoreFoundation.CFString.cs" /> <Compile Include="$(CommonPath)Interop\OSX\Interop.Libraries.cs" Link="Common\Interop\OSX\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Digest.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Digest.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Ecc.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Ecc.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Err.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Err.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Hmac.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Hmac.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.KeyAgree.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.KeyAgree.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.PAL_HashAlgorithm.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.PAL_HashAlgorithm.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Random.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Random.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.RSA.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.RSA.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErr.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErr.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErrMessage.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecErrMessage.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SignVerify.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SignVerify.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Symmetric.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Symmetric.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Trust.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Trust.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509Chain.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509Chain.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCreateHandle.OSX.cs" /> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\DigestInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml</DependentUpon> </Compile> <AsnXml Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</Link> </AsnXml> <Compile Include="$(CommonPath)System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs"> <Link>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs</Link> <DependentUpon>Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml</DependentUpon> </Compile> <Compile Include="$(CommonPath)System\Security\Cryptography\EccSecurityTransforms.cs" Link="Common\System\Security\Cryptography\EccSecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanDerivation.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanDerivation.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanSecurityTransforms.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanSecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaSecurityTransforms.cs" Link="Common\System\Security\Cryptography\ECDsaSecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSASecurityTransforms.cs" Link="Common\System\Security\Cryptography\RSASecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\SecKeyPair.cs" Link="Common\System\Security\Cryptography\SecKeyPair.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\AppleCCCryptor.cs" /> <Compile Include="System\Security\Cryptography\AppleCCCryptorLite.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Managed.cs" /> <Compile Include="System\Security\Cryptography\AsymmetricAlgorithmHelpers.Ansi.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Unix.cs" /> <Compile Include="System\Security\Cryptography\Cng.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\HashAlgorithmNames.Apple.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.Apple.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Apple.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.NoFallback.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.TempExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificateData.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePolicy.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.Apple.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ManagedX509ExtensionProcessor.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixExportProvider.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500DictionaryStringHelper.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Apple.ECKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Apple.X500Name.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'OSX'"> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\Asn1SafeHandles.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBignumHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeDsaHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEcKeyHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeEvpPkeyCtxHandle.Unix.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeInteriorHandle.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Nid.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EcDsa.ImportExport.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.DigestAlgs.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs" /> <Compile Include="$(CommonPath)Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" Link="Common\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSslVersion.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.macOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.macOS.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Pbkdf2.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Pbkdf2.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.macOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.SecKeyRef.macOS.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.macOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSAOpenSsl.cs" Link="Common\System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSASecurityTransforms.cs" Link="Common\System\Security\Cryptography\DSASecurityTransforms.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSASecurityTransforms.macOS.cs" Link="Common\System\Security\Cryptography\DSASecurityTransforms.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\EccSecurityTransforms.macOS.cs" Link="Common\System\Security\Cryptography\EccSecurityTransforms.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaOpenSsl.cs" Link="Common\System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECOpenSsl.ImportExport.cs" Link="Common\System\Security\Cryptography\ECOpenSsl.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSASecurityTransforms.macOS.cs" Link="Common\System\Security\Cryptography\RSASecurityTransforms.macOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSAOpenSsl.cs" Link="Common\System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.SecurityTransforms.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs" /> <Compile Include="System\Security\Cryptography\DSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDsaOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.macOS.cs" /> <Compile Include="System\Security\Cryptography\RSAOpenSsl.cs" /> <Compile Include="System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.ImportExport.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Keys.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Pkcs12.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ApplePkcs12Reader.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.AppleKeychainStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.AppleTrustStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.ExportPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.macOS.LoaderPal.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.macOS.cs" /> </ItemGroup> <ItemGroup Condition="'$(UseAppleCrypto)' == 'true' and '$(TargetPlatformIdentifier)' != 'OSX'"> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.iOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.Keychain.iOS.cs" /> <Compile Include="$(CommonPath)Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.iOS.cs" Link="Common\Interop\OSX\System.Security.Cryptography.Native.Apple\Interop.X509.iOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\EccSecurityTransforms.iOS.cs" Link="Common\System\Security\Cryptography\EccSecurityTransforms.iOS.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSASecurityTransforms.iOS.cs" Link="Common\System\Security\Cryptography\RSASecurityTransforms.iOS.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Managed.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificateExporter.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.ImportExport.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Keys.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Pem.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\AppleCertificatePal.Pkcs12.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ApplePkcs12CertLoader.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ApplePkcs12Reader.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertCollectionLoader.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.iOS.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.iOS.AppleKeychainStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\UnsupportedDisallowedStore.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.iOS.cs" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows'"> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptAcquireContext.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptAcquireContext.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptAcquireContext_IntPtr.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptAcquireContext_IntPtr.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptCreateHash.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptCreateHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDecrypt.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDecrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDeriveKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDeriveKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDestroyHash.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDestroyHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptDestroyKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptDestroyKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptEncrypt.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptEncrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptExportKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptExportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGenKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGenKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetDefaultProvider.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetDefaultProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetHashParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetHashParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetKeyParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetKeyParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetProvParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetProvParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptGetUserKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptGetUserKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptHashData.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptHashData.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptImportKey.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptImportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptReleaseContext.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptReleaseContext.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptSetKeyParam.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptSetKeyParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\Interop.CryptSignHash.cs" Link="Common\Interop\Windows\Advapi32\Interop.CryptSignHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\SafeHashHandle.cs" Link="Common\Interop\Windows\Advapi32\SafeHashHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\SafeKeyHandle.cs" Link="Common\Interop\Windows\Advapi32\SafeKeyHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Advapi32\SafeProvHandle.cs" Link="Common\Interop\Windows\Advapi32\SafeProvHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\AesBCryptModes.cs" Link="Common\Interop\Windows\BCrypt\AesBCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\BCryptAeadHandleCache.cs" Link="Common\Interop\Windows\BCrypt\BCryptAeadHandleCache.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\BCryptAlgorithmCache.cs" Link="Common\Internal\Windows\BCrypt\BCryptAlgorithmCache.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Cng.cs" Link="Common\Interop\Windows\BCrypt\Cng.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\DESBCryptModes.cs" Link="Common\Interop\Windows\BCrypt\DESBCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.AsymmetricEncryption.Types.cs" Link="Common\Interop\Windows\BCrypt\Interop.AsymmetricEncryption.Types.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptAlgPseudoHandle.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptAlgPseudoHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptCloseAlgorithmProvider.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptCloseAlgorithmProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptCreateHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptCreateHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDeriveKeyPBKDF2.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDeriveKeyPBKDF2.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDestroyHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDestroyHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDestroyKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDestroyKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptDuplicateHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptDuplicateHash.cs" /> <Compile Include="$(CommonPath)\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptExportKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptFinishHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptFinishHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptGenRandom.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGenerateSymmetricKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptGenerateSymmetricKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptGetProperty.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptHash.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptHash.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptHashData.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptHashData.cs" /> <Compile Include="$(CommonPath)\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptKeyDerivation.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptKeyDerivation.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptOpenAlgorithmProvider.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptOpenAlgorithmProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.BCryptPropertyStrings.cs" Link="Common\Interop\Windows\BCrypt\Interop.BCryptPropertyStrings.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.Blobs.cs" Link="Common\Interop\Windows\BCrypt\Interop.Blobs.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.CreateCryptographicException.cs" Link="Common\Interop\Windows\BCrypt\Interop.CreateCryptographicException.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\Interop.NTSTATUS.cs" Link="Common\Interop\Windows\BCrypt\Interop.NTSTATUS.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\RC2BCryptModes.cs" Link="Common\Interop\Windows\BCrypt\RC2BCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\BCrypt\TripleDesBCryptModes.cs" Link="Common\Interop\Windows\BCrypt\TripleDesBCryptModes.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_CHAIN_ENGINE_CONFIG.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_CHAIN_ENGINE_CONFIG.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_CONTEXT.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_EXTENSION.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_EXTENSION.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CERT_PUBLIC_KEY_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertAddCertificateContextToStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertAddCertificateContextToStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertAddCertificateLinkToStore_CertStoreAddDisposition.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertAddCertificateLinkToStore_CertStoreAddDisposition.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertChainFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertChainFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertCloseStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertCloseStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertContextPropId.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertContextPropId.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertControlStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertControlStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertControlStoreFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertControlStoreFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertControlStoreType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertControlStoreType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertCreateCertificateChainEngine.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertCreateCertificateChainEngine.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDeleteCertificateFromStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDeleteCertificateFromStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateCertificateChain.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateChain.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContext.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContext.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContextWithKeyContainerDeletion.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateCertificateContextWithKeyContainerDeletion.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertDuplicateStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertDuplicateStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore_SafeCertStoreHandle.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertEnumCertificatesInStore_SafeCertStoreHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindCertificateInStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindCertificateInStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindExtension.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindExtension.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFindType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFindType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFreeCertificateChain.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateChain.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertFreeCertificateChainEngine.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertFreeCertificateChainEngine.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetCertificateChain.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetCertificateChain.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetCertificateContextProperty.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetCertificateContextProperty.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetCertificateContextPropertyString.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetCertificateContextPropertyString.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetIntendedKeyUsage.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetIntendedKeyUsage.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetNameString.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetNameString.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertGetValidUsages.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertGetValidUsages.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.certificates_types.cs" Link="Common\Interop\Windows\Crypt32\Interop.certificates_types.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameStringType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameStringType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameStrTypeAndFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameStrTypeAndFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameToStr.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameToStr.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertNameType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertNameType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertOpenStore_ENUM.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertOpenStore_ENUM.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSaveStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSaveStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSerializeCertificateStoreElement.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSerializeCertificateStoreElement.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_CRYPT_KEY_PROV_INFO.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_CRYPT_KEY_PROV_INFO.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_DATA_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_DATA_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_SafeNCryptKeyHandle.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetCertificateContextProperty_SafeNCryptKeyHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertSetPropertyFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertSetPropertyFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreAddDisposition.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreAddDisposition.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreSaveAs.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreSaveAs.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStoreSaveTo.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStoreSaveTo.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertStrToName.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertStrToName.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertVerifyTimeValidity.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertVerifyTimeValidity.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ChainEngine.cs" Link="Common\Interop\Windows\Crypt32\Interop.ChainEngine.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ChainEngineConfigFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.ChainEngineConfigFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ContentType.cs" Link="Common\Interop\Windows\Crypt32\Interop.ContentType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" Link="Common\Interop\Windows\Crypt32\Interop.CRYPT_ALGORITHM_IDENTIFIER.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CRYPT_KEY_PROV_INFO_ANSI.cs" Link="Common\Interop\Windows\Crypt32\Interop.CRYPT_KEY_PROV_INFO_ANSI.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey_SafeNCryptKeyHandle.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey_SafeNCryptKeyHandle.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKeyFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKeyFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptAcquireContextFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptAcquireContextFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObject_CertEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObject_CertEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObjectFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObjectFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_IntPtr.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_IntPtr.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_string.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptDecodeObjectPointer_string.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptEncodeObject_CertEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptEncodeObject_CertEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptFormatObject.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptFormatObject.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptHashPublicKeyInfo.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptHashPublicKeyInfo.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoEx2.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoEx2.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptImportPublicKeyInfoFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptKeySpec.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptKeySpec.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgClose.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgClose.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgGetParam.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgGetParam.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgParamType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgParamType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptMsgType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptMsgType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CryptQueryObject.cs" Link="Common\Interop\Windows\Crypt32\Interop.CryptQueryObject.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.CertQueryObjectType.cs" Link="Common\Interop\Windows\Crypt32\Interop.CertQueryObjectType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" Link="Common\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ExpectedContentTypeFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.ExpectedContentTypeFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.ExpectedFormatTypeFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.ExpectedFormatTypeFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.FindOidInfo.cs" Link="Common\Interop\Windows\Crypt32\Interop.FindOidInfo.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.FormatType.cs" Link="Common\Interop\Windows\Crypt32\Interop.FormatType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.HashIdAlg.cs" Link="Common\Interop\Windows\Crypt32\Interop.HashIdAlg.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.MsgEncodingType.cs" Link="Common\Interop\Windows\Crypt32\Interop.MsgEncodingType.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PfxCertStoreFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.PfxCertStoreFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PFXExportFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.PFXExportFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PFXExportCertStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.PFXExportCertStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.PFXImportCertStore.cs" Link="Common\Interop\Windows\Crypt32\Interop.PFXImportCertStore.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Crypt32\Interop.X509KeyUsageFlags.cs" Link="Common\Interop\Windows\Crypt32\Interop.X509KeyUsageFlags.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs" Link="Common\Interop\Windows\Interop.Libraries.cs" /> <Compile Include="$(CommonPath)Interop\Windows\Kernel32\Interop.FormatMessage.cs" Link="Common\Internal\Windows\Kernel32\Interop.FormatMessage.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.AsymmetricPaddingMode.cs" Link="Common\Interop\Windows\NCrypt\Interop.AsymmetricPaddingMode.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.EncryptDecrypt.cs" Link="Common\Interop\Windows\NCrypt\Interop.EncryptDecrypt.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.ErrorCode.cs" Link="Common\Interop\Windows\NCrypt\Interop.ErrorCode.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.Keys.cs" Link="Common\Interop\Windows\NCrypt\Interop.Keys.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptBuffer.cs" Link="Common\Internal\Windows\NCrypt\Interop.NCryptBuffer.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs" Link="Common\Internal\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs" Link="Common\Internal\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptFreeObject.cs" Link="Common\Interop\Windows\NCrypt\Interop.NCryptFreeObject.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.NCryptOpenStorageProvider.cs" Link="Common\Interop\Windows\NCrypt\Interop.NCryptOpenStorageProvider.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.Properties.cs" Link="Common\Interop\Windows\NCrypt\Interop.Properties.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.SignVerify.cs" Link="Common\Interop\Windows\NCrypt\Interop.SignVerify.cs" /> <Compile Include="$(CommonPath)Interop\Windows\NCrypt\Interop.UiPolicy.cs" Link="Internal\Windows\NCrypt\Interop.UiPolicy.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptAlgorithmHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeBCryptAlgorithmHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeBCryptHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptHashHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeBCryptHashHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeBCryptKeyHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeBCryptKeyHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCertStoreHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCertStoreHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeChainEngineHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeChainEngineHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCrypt32Handle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCrypt32Handle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeCryptMsgHandle.cs" Link="Common\Microsoft\Win32\SafeHandles\SafeCryptMsgHandle.cs" /> <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs" Link="Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\CngPkcs8.cs" Link="Common\System\Security\Cryptography\CngPkcs8.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\CryptoThrowHelper.Windows.cs" Link="Common\System\Security\Cryptography\CryptoThrowHelper.Windows.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSACng.cs" Link="Common\System\Security\Cryptography\DSACng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSACng.ImportExport.cs" Link="Common\System\Security\Cryptography\DSACng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\DSACng.SignVerify.cs" Link="Common\System\Security\Cryptography\DSACng.SignVerify.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECCng.HashAlgorithm.cs" Link="Common\System\Security\Cryptography\ECCng.HashAlgorithm.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECCng.ImportExport.cs" Link="Common\System\Security\Cryptography\ECCng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanCng.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanCng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs" Link="Common\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.cs" Link="Common\System\Security\Cryptography\ECDsaCng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.HashData.cs" Link="Common\System\Security\Cryptography\ECDsaCng.HashData.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.ImportExport.cs" Link="Common\System\Security\Cryptography\ECDsaCng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\ECDsaCng.SignVerify.cs" Link="Common\System\Security\Cryptography\ECDsaCng.SignVerify.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.cs" Link="Common\System\Security\Cryptography\RSACng.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.EncryptDecrypt.cs" Link="Common\System\Security\Cryptography\RSACng.EncryptDecrypt.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.ImportExport.cs" Link="Common\System\Security\Cryptography\RSACng.ImportExport.cs" /> <Compile Include="$(CommonPath)System\Security\Cryptography\RSACng.SignVerify.cs" Link="Common\System\Security\Cryptography\RSACng.SignVerify.cs" /> <Compile Include="Microsoft\Win32\SafeHandles\NCryptSafeHandles.cs" /> <Compile Include="System\Security\Cryptography\AeadCommon.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesCcm.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesCng.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesGcm.Windows.cs" /> <Compile Include="System\Security\Cryptography\AesImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\AsnFormatter.Windows.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherCsp.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherBCrypt.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherNCrypt.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs" /> <Compile Include="System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.DSA.Windows.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Shared.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.SymmetricKey.cs" /> <Compile Include="System\Security\Cryptography\CapiHelper.Windows.cs" /> <Compile Include="System\Security\Cryptography\ChaCha20Poly1305.Windows.cs" /> <Compile Include="System\Security\Cryptography\CngAlgorithmCore.cs" /> <Compile Include="System\Security\Cryptography\CngAsnFormatter.cs" /> <Compile Include="System\Security\Cryptography\CngCommon.SignVerify.cs" /> <Compile Include="System\Security\Cryptography\CngHelpers.cs" /> <Compile Include="System\Security\Cryptography\CngKey.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Create.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Delete.cs" /> <Compile Include="System\Security\Cryptography\CngKey.EC.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Exists.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Export.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Import.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Open.cs" /> <Compile Include="System\Security\Cryptography\CngKey.OpenHandle.cs" /> <Compile Include="System\Security\Cryptography\CngKey.Properties.cs" /> <Compile Include="System\Security\Cryptography\CngKey.StandardProperties.cs" /> <Compile Include="System\Security\Cryptography\CngKeyLite.cs" /> <Compile Include="System\Security\Cryptography\CngPkcs8.cs" /> <Compile Include="System\Security\Cryptography\CngSymmetricAlgorithmCore.cs" /> <Compile Include="System\Security\Cryptography\CspKeyContainerInfo.Windows.cs" /> <Compile Include="System\Security\Cryptography\DESCryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\DesImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\DSA.Create.Windows.cs" /> <Compile Include="System\Security\Cryptography\DSACng.cs" /> <Compile Include="System\Security\Cryptography\DSACng.ImportExport.cs" /> <Compile Include="System\Security\Cryptography\DSACng.Key.cs" /> <Compile Include="System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\DSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECCngKey.cs" /> <Compile Include="System\Security\Cryptography\ECCng.ImportExport.cs" /> <Compile Include="System\Security\Cryptography\ECDsa.Create.Windows.cs" /> <Compile Include="System\Security\Cryptography\ECDsaCng.cs" /> <Compile Include="System\Security\Cryptography\ECDsaCng.Key.cs" /> <Compile Include="System\Security\Cryptography\ECDsaWrapper.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellman.Create.Cng.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.Key.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCng.Xml.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanCngPublicKey.cs" /> <Compile Include="System\Security\Cryptography\ECDiffieHellmanWrapper.cs" /> <Compile Include="System\Security\Cryptography\HashProviderCng.cs" /> <Compile Include="System\Security\Cryptography\HashProviderDispenser.Windows.cs" /> <Compile Include="System\Security\Cryptography\ICngSymmetricAlgorithm.cs" /> <Compile Include="System\Security\Cryptography\LiteHash.Windows.cs" /> <Compile Include="System\Security\Cryptography\OidLookup.Windows.cs" /> <Compile Include="System\Security\Cryptography\OpenSsl.NotSupported.cs" /> <Compile Include="System\Security\Cryptography\PasswordDeriveBytes.Windows.cs" /> <Compile Include="System\Security\Cryptography\Pbkdf2Implementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\PinAndClear.cs" /> <Compile Include="System\Security\Cryptography\ProviderPropertyName.cs" /> <Compile Include="System\Security\Cryptography\RandomNumberGeneratorImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\RC2CryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\RC2Implementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\RSA.Create.Windows.cs" /> <Compile Include="System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs" /> <Compile Include="System\Security\Cryptography\RSACng.cs" /> <Compile Include="System\Security\Cryptography\RSACng.ImportExport.cs" /> <Compile Include="System\Security\Cryptography\RSACng.Key.cs" /> <Compile Include="System\Security\Cryptography\RSAWrapper.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCng.Windows.cs" /> <Compile Include="System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs" /> <Compile Include="System\Security\Cryptography\TripleDesImplementation.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Windows.BuildChain.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\ChainPal.Windows.GetChainStatusInformation.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\FindPal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\SafeLocalAllocHandle.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\WindowsHelpers.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\WindowsInterop.crypt32.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\WindowsStructs.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.CustomExtensions.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs" /> <Compile Include="System\Security\Cryptography\X509Certificates\X509Pal.Windows.X500DistinguishedName.cs" /> </ItemGroup> <ItemGroup> <Reference Include="System.Collections" /> <Reference Include="System.Collections.Concurrent" /> <Reference Include="System.Collections.NonGeneric" /> <Reference Include="System.Diagnostics.StackTrace" /> <Reference Include="System.Formats.Asn1" /> <Reference Include="System.Memory" /> <Reference Include="System.Net.Primitives" /> <Reference Include="System.Runtime" /> <Reference Include="System.Runtime.CompilerServices.Unsafe" /> <Reference Include="System.Runtime.Extensions" /> <Reference Include="System.Runtime.InteropServices" /> <Reference Include="System.Runtime.InteropServices.RuntimeInformation" /> <Reference Include="System.Runtime.Numerics" /> <Reference Include="System.Text.Encoding.Extensions" /> <Reference Include="System.Threading" /> <Reference Include="System.Threading.Thread" /> </ItemGroup> <ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' and '$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier' != 'Browser'"> <Reference Include="System.Console" Condition="'$(Configuration)' == 'Debug'" /> </ItemGroup> <ItemGroup> <None Include="@(AsnXml)" /> </ItemGroup> </Project>
1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/Regression/JitBlue/GitHub_7907/GitHub_7907.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="$(MSBuildProjectName).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="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/ICastableHelpers.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.Runtime.CompilerServices { /// <summary> /// Helpers that allows VM to call into ICastable methods without having to deal with RuntimeTypeHandle. /// RuntimeTypeHandle is a struct and is always passed in stack in x86, which our VM call helpers don't /// particularly like. /// </summary> internal static class ICastableHelpers { internal static bool IsInstanceOfInterface(ICastable castable, RuntimeType type, [NotNullWhen(true)] out Exception? castError) { return castable.IsInstanceOfInterface(new RuntimeTypeHandle(type), out castError); } internal static RuntimeType GetImplType(ICastable castable, RuntimeType interfaceType) { return castable.GetImplType(new RuntimeTypeHandle(interfaceType)).GetRuntimeType(); } } }
// 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.Runtime.CompilerServices { /// <summary> /// Helpers that allows VM to call into ICastable methods without having to deal with RuntimeTypeHandle. /// RuntimeTypeHandle is a struct and is always passed in stack in x86, which our VM call helpers don't /// particularly like. /// </summary> internal static class ICastableHelpers { internal static bool IsInstanceOfInterface(ICastable castable, RuntimeType type, [NotNullWhen(true)] out Exception? castError) { return castable.IsInstanceOfInterface(new RuntimeTypeHandle(type), out castError); } internal static RuntimeType GetImplType(ICastable castable, RuntimeType interfaceType) { return castable.GetImplType(new RuntimeTypeHandle(interfaceType)).GetRuntimeType(); } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Security.Permissions/src/System/Security/SecurityContext.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; namespace System.Security { #if NETCOREAPP [Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)] #endif public sealed partial class SecurityContext : System.IDisposable { internal SecurityContext() { } public static SecurityContext Capture() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public SecurityContext CreateCopy() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public void Dispose() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static bool IsFlowSuppressed() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static bool IsWindowsIdentityFlowSuppressed() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static void RestoreFlow() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static void Run(SecurityContext securityContext, ContextCallback callback, object state) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static AsyncFlowControl SuppressFlow() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static AsyncFlowControl SuppressFlowWindowsIdentity() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } } }
// 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; namespace System.Security { #if NETCOREAPP [Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)] #endif public sealed partial class SecurityContext : System.IDisposable { internal SecurityContext() { } public static SecurityContext Capture() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public SecurityContext CreateCopy() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public void Dispose() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static bool IsFlowSuppressed() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static bool IsWindowsIdentityFlowSuppressed() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static void RestoreFlow() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static void Run(SecurityContext securityContext, ContextCallback callback, object state) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static AsyncFlowControl SuppressFlow() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } public static AsyncFlowControl SuppressFlowWindowsIdentity() { throw new PlatformNotSupportedException(SR.PlatformNotSupported_CAS); } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/Methodical/cctor/xassem/xprecise1_cs_d.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> <RequiresProcessIsolation>true</RequiresProcessIsolation> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="xprecise1.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="testlib.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> <RequiresProcessIsolation>true</RequiresProcessIsolation> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="xprecise1.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="testlib.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/NumericConvertInstruction.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.Dynamic.Utils; namespace System.Linq.Expressions.Interpreter { internal abstract class NumericConvertInstruction : Instruction { internal readonly TypeCode _from, _to; private readonly bool _isLiftedToNull; protected NumericConvertInstruction(TypeCode from, TypeCode to, bool isLiftedToNull) { _from = from; _to = to; _isLiftedToNull = isLiftedToNull; } public sealed override int Run(InterpretedFrame frame) { object? obj = frame.Pop(); object? converted; if (obj == null) { if (_isLiftedToNull) { converted = null; } else { // We cannot have null in a non-lifted numeric context. Throw the exception // about not Nullable object requiring a value. return (int)(int?)obj!; } } else { converted = Convert(obj); } frame.Push(converted); return 1; } protected abstract object Convert(object obj); public override string InstructionName => "NumericConvert"; public override int ConsumedStack => 1; public override int ProducedStack => 1; public override string ToString() => InstructionName + "(" + _from + "->" + _to + ")"; internal sealed class Unchecked : NumericConvertInstruction { public override string InstructionName => "UncheckedConvert"; public Unchecked(TypeCode from, TypeCode to, bool isLiftedToNull) : base(from, to, isLiftedToNull) { } protected override object Convert(object obj) { return _from switch { TypeCode.Boolean => ConvertInt32((bool)obj ? 1 : 0), TypeCode.Byte => ConvertInt32((byte)obj), TypeCode.SByte => ConvertInt32((sbyte)obj), TypeCode.Int16 => ConvertInt32((short)obj), TypeCode.Char => ConvertInt32((char)obj), TypeCode.Int32 => ConvertInt32((int)obj), TypeCode.Int64 => ConvertInt64((long)obj), TypeCode.UInt16 => ConvertInt32((ushort)obj), TypeCode.UInt32 => ConvertInt64((uint)obj), TypeCode.UInt64 => ConvertUInt64((ulong)obj), TypeCode.Single => ConvertDouble((float)obj), TypeCode.Double => ConvertDouble((double)obj), _ => throw ContractUtils.Unreachable, }; } private object ConvertInt32(int obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, TypeCode.Boolean => obj != 0, _ => throw ContractUtils.Unreachable, }; } } private object ConvertInt64(long obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertUInt64(ulong obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertDouble(double obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } } internal sealed class Checked : NumericConvertInstruction { public override string InstructionName => "CheckedConvert"; public Checked(TypeCode from, TypeCode to, bool isLiftedToNull) : base(from, to, isLiftedToNull) { } protected override object Convert(object obj) { return _from switch { TypeCode.Boolean => ConvertInt32((bool)obj ? 1 : 0), TypeCode.Byte => ConvertInt32((byte)obj), TypeCode.SByte => ConvertInt32((sbyte)obj), TypeCode.Int16 => ConvertInt32((short)obj), TypeCode.Char => ConvertInt32((char)obj), TypeCode.Int32 => ConvertInt32((int)obj), TypeCode.Int64 => ConvertInt64((long)obj), TypeCode.UInt16 => ConvertInt32((ushort)obj), TypeCode.UInt32 => ConvertInt64((uint)obj), TypeCode.UInt64 => ConvertUInt64((ulong)obj), TypeCode.Single => ConvertDouble((float)obj), TypeCode.Double => ConvertDouble((double)obj), _ => throw ContractUtils.Unreachable, }; } private object ConvertInt32(int obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, TypeCode.Boolean => obj != 0, _ => throw ContractUtils.Unreachable, }; } } private object ConvertInt64(long obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertUInt64(ulong obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertDouble(double obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } } internal sealed class ToUnderlying : NumericConvertInstruction { public override string InstructionName => "ConvertToUnderlying"; public ToUnderlying(TypeCode to, bool isLiftedToNull) : base(to, to, isLiftedToNull) { } protected override object Convert(object obj) { unchecked { return _to switch { TypeCode.Boolean => (bool)obj, TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, _ => throw ContractUtils.Unreachable, }; } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Dynamic.Utils; namespace System.Linq.Expressions.Interpreter { internal abstract class NumericConvertInstruction : Instruction { internal readonly TypeCode _from, _to; private readonly bool _isLiftedToNull; protected NumericConvertInstruction(TypeCode from, TypeCode to, bool isLiftedToNull) { _from = from; _to = to; _isLiftedToNull = isLiftedToNull; } public sealed override int Run(InterpretedFrame frame) { object? obj = frame.Pop(); object? converted; if (obj == null) { if (_isLiftedToNull) { converted = null; } else { // We cannot have null in a non-lifted numeric context. Throw the exception // about not Nullable object requiring a value. return (int)(int?)obj!; } } else { converted = Convert(obj); } frame.Push(converted); return 1; } protected abstract object Convert(object obj); public override string InstructionName => "NumericConvert"; public override int ConsumedStack => 1; public override int ProducedStack => 1; public override string ToString() => InstructionName + "(" + _from + "->" + _to + ")"; internal sealed class Unchecked : NumericConvertInstruction { public override string InstructionName => "UncheckedConvert"; public Unchecked(TypeCode from, TypeCode to, bool isLiftedToNull) : base(from, to, isLiftedToNull) { } protected override object Convert(object obj) { return _from switch { TypeCode.Boolean => ConvertInt32((bool)obj ? 1 : 0), TypeCode.Byte => ConvertInt32((byte)obj), TypeCode.SByte => ConvertInt32((sbyte)obj), TypeCode.Int16 => ConvertInt32((short)obj), TypeCode.Char => ConvertInt32((char)obj), TypeCode.Int32 => ConvertInt32((int)obj), TypeCode.Int64 => ConvertInt64((long)obj), TypeCode.UInt16 => ConvertInt32((ushort)obj), TypeCode.UInt32 => ConvertInt64((uint)obj), TypeCode.UInt64 => ConvertUInt64((ulong)obj), TypeCode.Single => ConvertDouble((float)obj), TypeCode.Double => ConvertDouble((double)obj), _ => throw ContractUtils.Unreachable, }; } private object ConvertInt32(int obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, TypeCode.Boolean => obj != 0, _ => throw ContractUtils.Unreachable, }; } } private object ConvertInt64(long obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertUInt64(ulong obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertDouble(double obj) { unchecked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } } internal sealed class Checked : NumericConvertInstruction { public override string InstructionName => "CheckedConvert"; public Checked(TypeCode from, TypeCode to, bool isLiftedToNull) : base(from, to, isLiftedToNull) { } protected override object Convert(object obj) { return _from switch { TypeCode.Boolean => ConvertInt32((bool)obj ? 1 : 0), TypeCode.Byte => ConvertInt32((byte)obj), TypeCode.SByte => ConvertInt32((sbyte)obj), TypeCode.Int16 => ConvertInt32((short)obj), TypeCode.Char => ConvertInt32((char)obj), TypeCode.Int32 => ConvertInt32((int)obj), TypeCode.Int64 => ConvertInt64((long)obj), TypeCode.UInt16 => ConvertInt32((ushort)obj), TypeCode.UInt32 => ConvertInt64((uint)obj), TypeCode.UInt64 => ConvertUInt64((ulong)obj), TypeCode.Single => ConvertDouble((float)obj), TypeCode.Double => ConvertDouble((double)obj), _ => throw ContractUtils.Unreachable, }; } private object ConvertInt32(int obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, TypeCode.Boolean => obj != 0, _ => throw ContractUtils.Unreachable, }; } } private object ConvertInt64(long obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertUInt64(ulong obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } private object ConvertDouble(double obj) { checked { return _to switch { TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, TypeCode.Single => (float)obj, TypeCode.Double => (double)obj, TypeCode.Decimal => (decimal)obj, _ => throw ContractUtils.Unreachable, }; } } } internal sealed class ToUnderlying : NumericConvertInstruction { public override string InstructionName => "ConvertToUnderlying"; public ToUnderlying(TypeCode to, bool isLiftedToNull) : base(to, to, isLiftedToNull) { } protected override object Convert(object obj) { unchecked { return _to switch { TypeCode.Boolean => (bool)obj, TypeCode.Byte => (byte)obj, TypeCode.SByte => (sbyte)obj, TypeCode.Int16 => (short)obj, TypeCode.Char => (char)obj, TypeCode.Int32 => (int)obj, TypeCode.Int64 => (long)obj, TypeCode.UInt16 => (ushort)obj, TypeCode.UInt32 => (uint)obj, TypeCode.UInt64 => (ulong)obj, _ => throw ContractUtils.Unreachable, }; } } } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.IO.FileSystem/tests/DirectoryInfo/ToString.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.IO.Tests { public class DirectoryInfo_ToString : FileSystemTest { [Fact] public void ValidDirectory() { string path = GetTestFilePath(); var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [Fact] public void RootOfCurrentDrive() { string path = Path.GetPathRoot(TestDirectory); var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [Theory, InlineData(@"."), InlineData(@".."), InlineData(@"foo"), InlineData(@"foo/bar"), ] public void KeepsOriginalPath(string path) { // ToString should return the passed in path var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInAppContainer))] // Can't read root in appcontainer [PlatformSpecific(TestPlatforms.Windows)] // Drive letter only public void DriveOnlyReturnsDrive_Windows() { string path = @"C:"; var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetFramework))] public void ParentToString_Framework() { ParentToString(false); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void ParentToString_Core() { ParentToString(true); } private void ParentToString(bool compareFullName) { string filePath = GetTestFilePath(); string dirPath = Path.GetDirectoryName(filePath); DirectoryInfo dirInfo = new DirectoryInfo(dirPath); string parentDirPath = Path.GetDirectoryName(dirPath); DirectoryInfo parentDirInfo = new DirectoryInfo(parentDirPath); string dirInfoParentString = compareFullName ? dirInfo.Parent.FullName : dirInfo.Parent.Name; string parentDirInfoString = compareFullName ? parentDirInfo.FullName : parentDirInfo.Name; Assert.Equal(dirInfo.Parent.ToString(), dirInfoParentString); Assert.Equal(dirInfo.Parent.ToString(), parentDirInfoString); } } }
// 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.IO.Tests { public class DirectoryInfo_ToString : FileSystemTest { [Fact] public void ValidDirectory() { string path = GetTestFilePath(); var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [Fact] public void RootOfCurrentDrive() { string path = Path.GetPathRoot(TestDirectory); var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [Theory, InlineData(@"."), InlineData(@".."), InlineData(@"foo"), InlineData(@"foo/bar"), ] public void KeepsOriginalPath(string path) { // ToString should return the passed in path var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotInAppContainer))] // Can't read root in appcontainer [PlatformSpecific(TestPlatforms.Windows)] // Drive letter only public void DriveOnlyReturnsDrive_Windows() { string path = @"C:"; var info = new DirectoryInfo(path); Assert.Equal(path, info.ToString()); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetFramework))] public void ParentToString_Framework() { ParentToString(false); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void ParentToString_Core() { ParentToString(true); } private void ParentToString(bool compareFullName) { string filePath = GetTestFilePath(); string dirPath = Path.GetDirectoryName(filePath); DirectoryInfo dirInfo = new DirectoryInfo(dirPath); string parentDirPath = Path.GetDirectoryName(dirPath); DirectoryInfo parentDirInfo = new DirectoryInfo(parentDirPath); string dirInfoParentString = compareFullName ? dirInfo.Parent.FullName : dirInfo.Parent.Name; string parentDirInfoString = compareFullName ? parentDirInfo.FullName : parentDirInfo.Name; Assert.Equal(dirInfo.Parent.ToString(), dirInfoParentString); Assert.Equal(dirInfo.Parent.ToString(), parentDirInfoString); } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigurationValidatorAttribute.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 System.Configuration { [AttributeUsage(AttributeTargets.Property)] public class ConfigurationValidatorAttribute : Attribute { internal Type _declaringType; protected ConfigurationValidatorAttribute() { } public ConfigurationValidatorAttribute(Type validator) { if (validator == null) throw new ArgumentNullException(nameof(validator)); if (!typeof(ConfigurationValidatorBase).IsAssignableFrom(validator)) { throw new ArgumentException(SR.Format(SR.Validator_Attribute_param_not_validator, "ConfigurationValidatorBase")); } ValidatorType = validator; } public virtual ConfigurationValidatorBase ValidatorInstance => (ConfigurationValidatorBase)TypeUtil.CreateInstance(ValidatorType); public Type ValidatorType { get; } // Used for limiting the visibility of types that can be accessed in the reflection // call made by the ValidatorInstance property getter. This will normally be the // type that declared the attribute, but in certain cases it could be a subclass // of the type that declared the attribute. This should be ok from a security // perspective, as one wouldn't reasonably expect a derived type to have fewer // security constraints than its base type. internal void SetDeclaringType(Type declaringType) { if (declaringType == null) { Debug.Fail("Declaring type must not be null."); return; // don't throw in an in-place update } if (_declaringType == null) { // First call to this method - allow any type to be set _declaringType = declaringType; } else { Debug.Assert(_declaringType == declaringType, "Subsequent calls cannot change the declaring type of the attribute."); } } } }
// 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 System.Configuration { [AttributeUsage(AttributeTargets.Property)] public class ConfigurationValidatorAttribute : Attribute { internal Type _declaringType; protected ConfigurationValidatorAttribute() { } public ConfigurationValidatorAttribute(Type validator) { if (validator == null) throw new ArgumentNullException(nameof(validator)); if (!typeof(ConfigurationValidatorBase).IsAssignableFrom(validator)) { throw new ArgumentException(SR.Format(SR.Validator_Attribute_param_not_validator, "ConfigurationValidatorBase")); } ValidatorType = validator; } public virtual ConfigurationValidatorBase ValidatorInstance => (ConfigurationValidatorBase)TypeUtil.CreateInstance(ValidatorType); public Type ValidatorType { get; } // Used for limiting the visibility of types that can be accessed in the reflection // call made by the ValidatorInstance property getter. This will normally be the // type that declared the attribute, but in certain cases it could be a subclass // of the type that declared the attribute. This should be ok from a security // perspective, as one wouldn't reasonably expect a derived type to have fewer // security constraints than its base type. internal void SetDeclaringType(Type declaringType) { if (declaringType == null) { Debug.Fail("Declaring type must not be null."); return; // don't throw in an in-place update } if (_declaringType == null) { // First call to this method - allow any type to be set _declaringType = declaringType; } else { Debug.Assert(_declaringType == declaringType, "Subsequent calls cannot change the declaring type of the attribute."); } } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Reflection.Context/src/System/Reflection/Context/Projection/ProjectingLocalVariableInfo.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.Reflection.Context.Delegation; namespace System.Reflection.Context.Projection { // Recursively 'projects' any assemblies, modules, types and members returned by a given variable internal sealed class ProjectingLocalVariableInfo : DelegatingLocalVariableInfo { private readonly Projector _projector; public ProjectingLocalVariableInfo(LocalVariableInfo variable, Projector projector) : base(variable) { Debug.Assert(null != projector); _projector = projector; } public override Type LocalType { get { return _projector.ProjectType(base.LocalType); } } } }
// 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.Reflection.Context.Delegation; namespace System.Reflection.Context.Projection { // Recursively 'projects' any assemblies, modules, types and members returned by a given variable internal sealed class ProjectingLocalVariableInfo : DelegatingLocalVariableInfo { private readonly Projector _projector; public ProjectingLocalVariableInfo(LocalVariableInfo variable, Projector projector) : base(variable) { Debug.Assert(null != projector); _projector = projector; } public override Type LocalType { get { return _projector.ProjectType(base.LocalType); } } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/CompareLessThan.Vector128.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.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 CompareLessThan_Vector128_Double() { var test = new SimpleBinaryOpTest__CompareLessThan_Vector128_Double(); 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 SimpleBinaryOpTest__CompareLessThan_Vector128_Double { 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 != 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 Vector128<Double> _fld1; public Vector128<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<Vector128<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__CompareLessThan_Vector128_Double testClass) { var result = AdvSimd.Arm64.CompareLessThan(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareLessThan_Vector128_Double testClass) { fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Vector128<Double>* pFld2 = &_fld2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pFld1)), AdvSimd.LoadVector128((Double*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector128<Double> _clsVar1; private static Vector128<Double> _clsVar2; private Vector128<Double> _fld1; private Vector128<Double> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__CompareLessThan_Vector128_Double() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); } public SimpleBinaryOpTest__CompareLessThan_Vector128_Double() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<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 IsSupported => AdvSimd.Arm64.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.Arm64.CompareLessThan( Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_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 = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((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 result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.CompareLessThan), new Type[] { typeof(Vector128<Double>), typeof(Vector128<Double>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.CompareLessThan), new Type[] { typeof(Vector128<Double>), typeof(Vector128<Double>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Double*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Arm64.CompareLessThan( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Double>* pClsVar1 = &_clsVar1) fixed (Vector128<Double>* pClsVar2 = &_clsVar2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pClsVar1)), AdvSimd.LoadVector128((Double*)(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<Vector128<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr); var result = AdvSimd.Arm64.CompareLessThan(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Double*)(_dataTable.inArray2Ptr)); var result = AdvSimd.Arm64.CompareLessThan(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__CompareLessThan_Vector128_Double(); var result = AdvSimd.Arm64.CompareLessThan(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__CompareLessThan_Vector128_Double(); fixed (Vector128<Double>* pFld1 = &test._fld1) fixed (Vector128<Double>* pFld2 = &test._fld2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pFld1)), AdvSimd.LoadVector128((Double*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Arm64.CompareLessThan(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Vector128<Double>* pFld2 = &_fld2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pFld1)), AdvSimd.LoadVector128((Double*)(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 = AdvSimd.Arm64.CompareLessThan(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 = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(&test._fld1)), AdvSimd.LoadVector128((Double*)(&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(Vector128<Double> op1, Vector128<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<Vector128<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<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Double[] left, Double[] right, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (BitConverter.DoubleToInt64Bits(Helpers.CompareLessThan(left[i], right[i])) != BitConverter.DoubleToInt64Bits(result[i])) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd.Arm64)}.{nameof(AdvSimd.Arm64.CompareLessThan)}<Double>(Vector128<Double>, Vector128<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.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 CompareLessThan_Vector128_Double() { var test = new SimpleBinaryOpTest__CompareLessThan_Vector128_Double(); 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 SimpleBinaryOpTest__CompareLessThan_Vector128_Double { 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 != 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 Vector128<Double> _fld1; public Vector128<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<Vector128<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__CompareLessThan_Vector128_Double testClass) { var result = AdvSimd.Arm64.CompareLessThan(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__CompareLessThan_Vector128_Double testClass) { fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Vector128<Double>* pFld2 = &_fld2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pFld1)), AdvSimd.LoadVector128((Double*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector128<Double> _clsVar1; private static Vector128<Double> _clsVar2; private Vector128<Double> _fld1; private Vector128<Double> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__CompareLessThan_Vector128_Double() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); } public SimpleBinaryOpTest__CompareLessThan_Vector128_Double() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<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 IsSupported => AdvSimd.Arm64.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.Arm64.CompareLessThan( Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_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 = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((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 result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.CompareLessThan), new Type[] { typeof(Vector128<Double>), typeof(Vector128<Double>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.CompareLessThan), new Type[] { typeof(Vector128<Double>), typeof(Vector128<Double>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Double*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Arm64.CompareLessThan( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<Double>* pClsVar1 = &_clsVar1) fixed (Vector128<Double>* pClsVar2 = &_clsVar2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pClsVar1)), AdvSimd.LoadVector128((Double*)(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<Vector128<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr); var result = AdvSimd.Arm64.CompareLessThan(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector128((Double*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Double*)(_dataTable.inArray2Ptr)); var result = AdvSimd.Arm64.CompareLessThan(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__CompareLessThan_Vector128_Double(); var result = AdvSimd.Arm64.CompareLessThan(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__CompareLessThan_Vector128_Double(); fixed (Vector128<Double>* pFld1 = &test._fld1) fixed (Vector128<Double>* pFld2 = &test._fld2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pFld1)), AdvSimd.LoadVector128((Double*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Arm64.CompareLessThan(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<Double>* pFld1 = &_fld1) fixed (Vector128<Double>* pFld2 = &_fld2) { var result = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(pFld1)), AdvSimd.LoadVector128((Double*)(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 = AdvSimd.Arm64.CompareLessThan(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 = AdvSimd.Arm64.CompareLessThan( AdvSimd.LoadVector128((Double*)(&test._fld1)), AdvSimd.LoadVector128((Double*)(&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(Vector128<Double> op1, Vector128<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<Vector128<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<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Double[] left, Double[] right, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (BitConverter.DoubleToInt64Bits(Helpers.CompareLessThan(left[i], right[i])) != BitConverter.DoubleToInt64Bits(result[i])) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd.Arm64)}.{nameof(AdvSimd.Arm64.CompareLessThan)}<Double>(Vector128<Double>, Vector128<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,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/HardwareIntrinsics/X86/Sse1/Program.Sse1.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; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { static Program() { TestList = new Dictionary<string, Action>() { ["Add.Single"] = AddSingle, ["AddScalar.Single"] = AddScalarSingle, ["And.Single"] = AndSingle, ["AndNot.Single"] = AndNotSingle, ["CompareEqual.Single"] = CompareEqualSingle, ["CompareScalarEqual.Single"] = CompareScalarEqualSingle, ["CompareScalarOrderedEqual.Boolean"] = CompareScalarOrderedEqualBoolean, ["CompareScalarUnorderedEqual.Boolean"] = CompareScalarUnorderedEqualBoolean, ["CompareGreaterThan.Single"] = CompareGreaterThanSingle, ["CompareScalarGreaterThan.Single"] = CompareScalarGreaterThanSingle, ["CompareScalarOrderedGreaterThan.Boolean"] = CompareScalarOrderedGreaterThanBoolean, ["CompareScalarUnorderedGreaterThan.Boolean"] = CompareScalarUnorderedGreaterThanBoolean, ["CompareGreaterThanOrEqual.Single"] = CompareGreaterThanOrEqualSingle, ["CompareScalarGreaterThanOrEqual.Single"] = CompareScalarGreaterThanOrEqualSingle, ["CompareScalarOrderedGreaterThanOrEqual.Boolean"] = CompareScalarOrderedGreaterThanOrEqualBoolean, ["CompareScalarUnorderedGreaterThanOrEqual.Boolean"] = CompareScalarUnorderedGreaterThanOrEqualBoolean, ["CompareLessThan.Single"] = CompareLessThanSingle, ["CompareScalarLessThan.Single"] = CompareScalarLessThanSingle, ["CompareScalarOrderedLessThan.Boolean"] = CompareScalarOrderedLessThanBoolean, ["CompareScalarUnorderedLessThan.Boolean"] = CompareScalarUnorderedLessThanBoolean, ["CompareLessThanOrEqual.Single"] = CompareLessThanOrEqualSingle, ["CompareScalarLessThanOrEqual.Single"] = CompareScalarLessThanOrEqualSingle, ["CompareScalarOrderedLessThanOrEqual.Boolean"] = CompareScalarOrderedLessThanOrEqualBoolean, ["CompareScalarUnorderedLessThanOrEqual.Boolean"] = CompareScalarUnorderedLessThanOrEqualBoolean, ["CompareNotEqual.Single"] = CompareNotEqualSingle, ["CompareScalarNotEqual.Single"] = CompareScalarNotEqualSingle, ["CompareScalarOrderedNotEqual.Boolean"] = CompareScalarOrderedNotEqualBoolean, ["CompareScalarUnorderedNotEqual.Boolean"] = CompareScalarUnorderedNotEqualBoolean, ["CompareNotGreaterThan.Single"] = CompareNotGreaterThanSingle, ["CompareScalarNotGreaterThan.Single"] = CompareScalarNotGreaterThanSingle, ["CompareNotGreaterThanOrEqual.Single"] = CompareNotGreaterThanOrEqualSingle, ["CompareScalarNotGreaterThanOrEqual.Single"] = CompareScalarNotGreaterThanOrEqualSingle, ["CompareNotLessThan.Single"] = CompareNotLessThanSingle, ["CompareScalarNotLessThan.Single"] = CompareScalarNotLessThanSingle, ["CompareNotLessThanOrEqual.Single"] = CompareNotLessThanOrEqualSingle, ["CompareScalarNotLessThanOrEqual.Single"] = CompareScalarNotLessThanOrEqualSingle, ["CompareOrdered.Single"] = CompareOrderedSingle, ["CompareScalarOrdered.Single"] = CompareScalarOrderedSingle, ["CompareUnordered.Single"] = CompareUnorderedSingle, ["CompareScalarUnordered.Single"] = CompareScalarUnorderedSingle, ["ConvertScalarToVector128Single.Single"] = ConvertScalarToVector128SingleSingle, ["Divide.Single"] = DivideSingle, ["DivideScalar.Single"] = DivideScalarSingle, ["LoadVector128.Single"] = LoadVector128Single, ["LoadScalarVector128.Single"] = LoadScalarVector128Single, ["Max.Single"] = MaxSingle, ["MaxScalar.Single"] = MaxScalarSingle, ["Min.Single"] = MinSingle, ["MinScalar.Single"] = MinScalarSingle, ["Multiply.Single"] = MultiplySingle, ["MultiplyScalar.Single"] = MultiplyScalarSingle, ["Or.Single"] = OrSingle, ["Subtract.Single"] = SubtractSingle, ["SubtractScalar.Single"] = SubtractScalarSingle, ["Xor.Single"] = XorSingle, }; } } }
// 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; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { static Program() { TestList = new Dictionary<string, Action>() { ["Add.Single"] = AddSingle, ["AddScalar.Single"] = AddScalarSingle, ["And.Single"] = AndSingle, ["AndNot.Single"] = AndNotSingle, ["CompareEqual.Single"] = CompareEqualSingle, ["CompareScalarEqual.Single"] = CompareScalarEqualSingle, ["CompareScalarOrderedEqual.Boolean"] = CompareScalarOrderedEqualBoolean, ["CompareScalarUnorderedEqual.Boolean"] = CompareScalarUnorderedEqualBoolean, ["CompareGreaterThan.Single"] = CompareGreaterThanSingle, ["CompareScalarGreaterThan.Single"] = CompareScalarGreaterThanSingle, ["CompareScalarOrderedGreaterThan.Boolean"] = CompareScalarOrderedGreaterThanBoolean, ["CompareScalarUnorderedGreaterThan.Boolean"] = CompareScalarUnorderedGreaterThanBoolean, ["CompareGreaterThanOrEqual.Single"] = CompareGreaterThanOrEqualSingle, ["CompareScalarGreaterThanOrEqual.Single"] = CompareScalarGreaterThanOrEqualSingle, ["CompareScalarOrderedGreaterThanOrEqual.Boolean"] = CompareScalarOrderedGreaterThanOrEqualBoolean, ["CompareScalarUnorderedGreaterThanOrEqual.Boolean"] = CompareScalarUnorderedGreaterThanOrEqualBoolean, ["CompareLessThan.Single"] = CompareLessThanSingle, ["CompareScalarLessThan.Single"] = CompareScalarLessThanSingle, ["CompareScalarOrderedLessThan.Boolean"] = CompareScalarOrderedLessThanBoolean, ["CompareScalarUnorderedLessThan.Boolean"] = CompareScalarUnorderedLessThanBoolean, ["CompareLessThanOrEqual.Single"] = CompareLessThanOrEqualSingle, ["CompareScalarLessThanOrEqual.Single"] = CompareScalarLessThanOrEqualSingle, ["CompareScalarOrderedLessThanOrEqual.Boolean"] = CompareScalarOrderedLessThanOrEqualBoolean, ["CompareScalarUnorderedLessThanOrEqual.Boolean"] = CompareScalarUnorderedLessThanOrEqualBoolean, ["CompareNotEqual.Single"] = CompareNotEqualSingle, ["CompareScalarNotEqual.Single"] = CompareScalarNotEqualSingle, ["CompareScalarOrderedNotEqual.Boolean"] = CompareScalarOrderedNotEqualBoolean, ["CompareScalarUnorderedNotEqual.Boolean"] = CompareScalarUnorderedNotEqualBoolean, ["CompareNotGreaterThan.Single"] = CompareNotGreaterThanSingle, ["CompareScalarNotGreaterThan.Single"] = CompareScalarNotGreaterThanSingle, ["CompareNotGreaterThanOrEqual.Single"] = CompareNotGreaterThanOrEqualSingle, ["CompareScalarNotGreaterThanOrEqual.Single"] = CompareScalarNotGreaterThanOrEqualSingle, ["CompareNotLessThan.Single"] = CompareNotLessThanSingle, ["CompareScalarNotLessThan.Single"] = CompareScalarNotLessThanSingle, ["CompareNotLessThanOrEqual.Single"] = CompareNotLessThanOrEqualSingle, ["CompareScalarNotLessThanOrEqual.Single"] = CompareScalarNotLessThanOrEqualSingle, ["CompareOrdered.Single"] = CompareOrderedSingle, ["CompareScalarOrdered.Single"] = CompareScalarOrderedSingle, ["CompareUnordered.Single"] = CompareUnorderedSingle, ["CompareScalarUnordered.Single"] = CompareScalarUnorderedSingle, ["ConvertScalarToVector128Single.Single"] = ConvertScalarToVector128SingleSingle, ["Divide.Single"] = DivideSingle, ["DivideScalar.Single"] = DivideScalarSingle, ["LoadVector128.Single"] = LoadVector128Single, ["LoadScalarVector128.Single"] = LoadScalarVector128Single, ["Max.Single"] = MaxSingle, ["MaxScalar.Single"] = MaxScalarSingle, ["Min.Single"] = MinSingle, ["MinScalar.Single"] = MinScalarSingle, ["Multiply.Single"] = MultiplySingle, ["MultiplyScalar.Single"] = MultiplyScalarSingle, ["Or.Single"] = OrSingle, ["Subtract.Single"] = SubtractSingle, ["SubtractScalar.Single"] = SubtractScalarSingle, ["Xor.Single"] = XorSingle, }; } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Internal/InternalConfigRoot.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.Threading; namespace System.Configuration.Internal { // InternalConfigRoot holds the root of a configuration hierarchy. // It managed creation, removal, and the search for BaseConfigurationRecord's. // in a thread-safe manner. // // The BaseConfigurationRecord hierarchy is protected with the // _hierarchyLock. Functions that assume that the lock as been // taken begin with the prefix "hl", for example, "hlFindConfigRecord". internal sealed class InternalConfigRoot : IInternalConfigRoot { private ReaderWriterLock _hierarchyLock; private bool _isDesignTime; internal InternalConfigRoot() { } internal InternalConfigRoot(Configuration currentConfiguration, UpdateConfigHost host) { CurrentConfiguration = currentConfiguration; UpdateConfigHost = host; } internal IInternalConfigHost Host { get; private set; } internal UpdateConfigHost UpdateConfigHost { get; private set; } internal BaseConfigurationRecord RootConfigRecord { get; private set; } internal Configuration CurrentConfiguration { get; } public event InternalConfigEventHandler ConfigChanged; public event InternalConfigEventHandler ConfigRemoved; void IInternalConfigRoot.Init(IInternalConfigHost host, bool isDesignTime) { Host = host; _isDesignTime = isDesignTime; _hierarchyLock = new ReaderWriterLock(); // Dummy record to hold _children for root if (_isDesignTime) RootConfigRecord = MgmtConfigurationRecord.Create(this, null, string.Empty, null); else { RootConfigRecord = (BaseConfigurationRecord)RuntimeConfigurationRecord.Create(this, null, string.Empty); } } bool IInternalConfigRoot.IsDesignTime => _isDesignTime; public object GetSection(string section, string configPath) { BaseConfigurationRecord configRecord = (BaseConfigurationRecord)GetUniqueConfigRecord(configPath); object result = configRecord.GetSection(section); return result; } // Get the nearest ancestor path (including self) which contains unique configuration information. public string GetUniqueConfigPath(string configPath) { IInternalConfigRecord configRecord = GetUniqueConfigRecord(configPath); return configRecord?.ConfigPath; } // Get the nearest ancestor record (including self) which contains unique configuration information. public IInternalConfigRecord GetUniqueConfigRecord(string configPath) { BaseConfigurationRecord configRecord = (BaseConfigurationRecord)GetConfigRecord(configPath); while (configRecord.IsEmpty) { BaseConfigurationRecord parentConfigRecord = configRecord.Parent; // If all config records are empty, return the immediate child of the // root placeholder (e.g. machine.config) if (parentConfigRecord.IsRootConfig) break; configRecord = parentConfigRecord; } return configRecord; } // Get the config record for a path. // If the record does not exist, create it if it is needed. public IInternalConfigRecord GetConfigRecord(string configPath) { if (!ConfigPathUtility.IsValid(configPath)) throw ExceptionUtil.ParameterInvalid(nameof(configPath)); string[] parts = ConfigPathUtility.GetParts(configPath); // First search under the reader lock, so that multiple searches // can proceed in parallel. try { int index; BaseConfigurationRecord currentRecord; AcquireHierarchyLockForRead(); HlFindConfigRecord(parts, out index, out currentRecord); // check if found if ((index == parts.Length) || !currentRecord.HlNeedsChildFor(parts[index])) return currentRecord; } finally { ReleaseHierarchyLockForRead(); } // Not found, so search again under exclusive writer lock so that // we can create the record. try { int index; BaseConfigurationRecord currentRecord; AcquireHierarchyLockForWrite(); HlFindConfigRecord(parts, out index, out currentRecord); if (index == parts.Length) return currentRecord; string currentConfigPath = string.Join(BaseConfigurationRecord.ConfigPathSeparatorString, parts, 0, index); // Create new records while ((index < parts.Length) && currentRecord.HlNeedsChildFor(parts[index])) { string configName = parts[index]; currentConfigPath = ConfigPathUtility.Combine(currentConfigPath, configName); BaseConfigurationRecord childRecord; childRecord = _isDesignTime ? MgmtConfigurationRecord.Create(this, currentRecord, currentConfigPath, null) : (BaseConfigurationRecord)RuntimeConfigurationRecord.Create(this, currentRecord, currentConfigPath); currentRecord.HlAddChild(configName, childRecord); index++; currentRecord = childRecord; } return currentRecord; } finally { ReleaseHierarchyLockForWrite(); } } // Find and remove the config record and all its children for the config path. public void RemoveConfig(string configPath) { RemoveConfigImpl(configPath, null); } private void AcquireHierarchyLockForRead() { // Protect against unexpected recursive entry on this thread. // We do this in retail, too, because the results would be very bad if this were to fail, // and the testing for this is not easy for all scenarios. if (_hierarchyLock.IsReaderLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForRead - reader lock already held by this thread"); if (_hierarchyLock.IsWriterLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForRead - writer lock already held by this thread"); _hierarchyLock.AcquireReaderLock(-1); } private void ReleaseHierarchyLockForRead() { Debug.Assert(!_hierarchyLock.IsWriterLockHeld, "!_hierarchyLock.IsWriterLockHeld"); if (_hierarchyLock.IsReaderLockHeld) _hierarchyLock.ReleaseReaderLock(); } private void AcquireHierarchyLockForWrite() { // Protect against unexpected recursive entry on this thread. // We do this in retail, too, because the results would be very bad if this were to fail, // and the testing for this is not easy for all scenarios. if (_hierarchyLock.IsReaderLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForWrite - reader lock already held by this thread"); if (_hierarchyLock.IsWriterLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForWrite - writer lock already held by this thread"); _hierarchyLock.AcquireWriterLock(-1); } private void ReleaseHierarchyLockForWrite() { Debug.Assert(!_hierarchyLock.IsReaderLockHeld, "!_hierarchyLock.IsReaderLockHeld"); if (_hierarchyLock.IsWriterLockHeld) _hierarchyLock.ReleaseWriterLock(); } // Find a config record. // If found, nextIndex == parts.Length and the resulting record is in currentRecord. // If not found, nextIndex is the index of the part of the path not found, and currentRecord // is the record that has been found so far (nexIndex - 1). private void HlFindConfigRecord(string[] parts, out int nextIndex, out BaseConfigurationRecord currentRecord) { currentRecord = RootConfigRecord; nextIndex = 0; for (; nextIndex < parts.Length; nextIndex++) { BaseConfigurationRecord childRecord = currentRecord.HlGetChild(parts[nextIndex]); if (childRecord == null) break; currentRecord = childRecord; } } // Find and remove the config record and all its children for the config path. // Optionally ensure the config record matches a desired config record. private void RemoveConfigImpl(string configPath, BaseConfigurationRecord configRecord) { if (!ConfigPathUtility.IsValid(configPath)) throw ExceptionUtil.ParameterInvalid(nameof(configPath)); string[] parts = ConfigPathUtility.GetParts(configPath); BaseConfigurationRecord currentRecord; // search under exclusive writer lock try { int index; AcquireHierarchyLockForWrite(); HlFindConfigRecord(parts, out index, out currentRecord); // Return if not found, or does not match the one we are trying to remove. if ((index != parts.Length) || ((configRecord != null) && !ReferenceEquals(configRecord, currentRecord))) return; // Remove it from the hierarchy. currentRecord.Parent.HlRemoveChild(parts[parts.Length - 1]); } finally { ReleaseHierarchyLockForWrite(); } OnConfigRemoved(new InternalConfigEventArgs(configPath)); // Close the record. This is safe to do outside the lock. currentRecord.CloseRecursive(); } // Remove the config record and all its children for the config path. public void RemoveConfigRecord(BaseConfigurationRecord configRecord) { RemoveConfigImpl(configRecord.ConfigPath, configRecord); } // Clear the result of a configSection evaluation at a particular point // in the hierarchy. public void ClearResult(BaseConfigurationRecord configRecord, string configKey, bool forceEvaluation) { string[] parts = ConfigPathUtility.GetParts(configRecord.ConfigPath); try { int index; BaseConfigurationRecord currentRecord; AcquireHierarchyLockForRead(); HlFindConfigRecord(parts, out index, out currentRecord); // clear result only if configRecord it is still in the hierarchy if ((index == parts.Length) && ReferenceEquals(configRecord, currentRecord)) currentRecord.HlClearResultRecursive(configKey, forceEvaluation); } finally { ReleaseHierarchyLockForRead(); } } private void OnConfigRemoved(InternalConfigEventArgs e) { ConfigRemoved?.Invoke(this, e); } internal void FireConfigChanged(string configPath) { OnConfigChanged(new InternalConfigEventArgs(configPath)); } private void OnConfigChanged(InternalConfigEventArgs e) { ConfigChanged?.Invoke(this, 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.Threading; namespace System.Configuration.Internal { // InternalConfigRoot holds the root of a configuration hierarchy. // It managed creation, removal, and the search for BaseConfigurationRecord's. // in a thread-safe manner. // // The BaseConfigurationRecord hierarchy is protected with the // _hierarchyLock. Functions that assume that the lock as been // taken begin with the prefix "hl", for example, "hlFindConfigRecord". internal sealed class InternalConfigRoot : IInternalConfigRoot { private ReaderWriterLock _hierarchyLock; private bool _isDesignTime; internal InternalConfigRoot() { } internal InternalConfigRoot(Configuration currentConfiguration, UpdateConfigHost host) { CurrentConfiguration = currentConfiguration; UpdateConfigHost = host; } internal IInternalConfigHost Host { get; private set; } internal UpdateConfigHost UpdateConfigHost { get; private set; } internal BaseConfigurationRecord RootConfigRecord { get; private set; } internal Configuration CurrentConfiguration { get; } public event InternalConfigEventHandler ConfigChanged; public event InternalConfigEventHandler ConfigRemoved; void IInternalConfigRoot.Init(IInternalConfigHost host, bool isDesignTime) { Host = host; _isDesignTime = isDesignTime; _hierarchyLock = new ReaderWriterLock(); // Dummy record to hold _children for root if (_isDesignTime) RootConfigRecord = MgmtConfigurationRecord.Create(this, null, string.Empty, null); else { RootConfigRecord = (BaseConfigurationRecord)RuntimeConfigurationRecord.Create(this, null, string.Empty); } } bool IInternalConfigRoot.IsDesignTime => _isDesignTime; public object GetSection(string section, string configPath) { BaseConfigurationRecord configRecord = (BaseConfigurationRecord)GetUniqueConfigRecord(configPath); object result = configRecord.GetSection(section); return result; } // Get the nearest ancestor path (including self) which contains unique configuration information. public string GetUniqueConfigPath(string configPath) { IInternalConfigRecord configRecord = GetUniqueConfigRecord(configPath); return configRecord?.ConfigPath; } // Get the nearest ancestor record (including self) which contains unique configuration information. public IInternalConfigRecord GetUniqueConfigRecord(string configPath) { BaseConfigurationRecord configRecord = (BaseConfigurationRecord)GetConfigRecord(configPath); while (configRecord.IsEmpty) { BaseConfigurationRecord parentConfigRecord = configRecord.Parent; // If all config records are empty, return the immediate child of the // root placeholder (e.g. machine.config) if (parentConfigRecord.IsRootConfig) break; configRecord = parentConfigRecord; } return configRecord; } // Get the config record for a path. // If the record does not exist, create it if it is needed. public IInternalConfigRecord GetConfigRecord(string configPath) { if (!ConfigPathUtility.IsValid(configPath)) throw ExceptionUtil.ParameterInvalid(nameof(configPath)); string[] parts = ConfigPathUtility.GetParts(configPath); // First search under the reader lock, so that multiple searches // can proceed in parallel. try { int index; BaseConfigurationRecord currentRecord; AcquireHierarchyLockForRead(); HlFindConfigRecord(parts, out index, out currentRecord); // check if found if ((index == parts.Length) || !currentRecord.HlNeedsChildFor(parts[index])) return currentRecord; } finally { ReleaseHierarchyLockForRead(); } // Not found, so search again under exclusive writer lock so that // we can create the record. try { int index; BaseConfigurationRecord currentRecord; AcquireHierarchyLockForWrite(); HlFindConfigRecord(parts, out index, out currentRecord); if (index == parts.Length) return currentRecord; string currentConfigPath = string.Join(BaseConfigurationRecord.ConfigPathSeparatorString, parts, 0, index); // Create new records while ((index < parts.Length) && currentRecord.HlNeedsChildFor(parts[index])) { string configName = parts[index]; currentConfigPath = ConfigPathUtility.Combine(currentConfigPath, configName); BaseConfigurationRecord childRecord; childRecord = _isDesignTime ? MgmtConfigurationRecord.Create(this, currentRecord, currentConfigPath, null) : (BaseConfigurationRecord)RuntimeConfigurationRecord.Create(this, currentRecord, currentConfigPath); currentRecord.HlAddChild(configName, childRecord); index++; currentRecord = childRecord; } return currentRecord; } finally { ReleaseHierarchyLockForWrite(); } } // Find and remove the config record and all its children for the config path. public void RemoveConfig(string configPath) { RemoveConfigImpl(configPath, null); } private void AcquireHierarchyLockForRead() { // Protect against unexpected recursive entry on this thread. // We do this in retail, too, because the results would be very bad if this were to fail, // and the testing for this is not easy for all scenarios. if (_hierarchyLock.IsReaderLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForRead - reader lock already held by this thread"); if (_hierarchyLock.IsWriterLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForRead - writer lock already held by this thread"); _hierarchyLock.AcquireReaderLock(-1); } private void ReleaseHierarchyLockForRead() { Debug.Assert(!_hierarchyLock.IsWriterLockHeld, "!_hierarchyLock.IsWriterLockHeld"); if (_hierarchyLock.IsReaderLockHeld) _hierarchyLock.ReleaseReaderLock(); } private void AcquireHierarchyLockForWrite() { // Protect against unexpected recursive entry on this thread. // We do this in retail, too, because the results would be very bad if this were to fail, // and the testing for this is not easy for all scenarios. if (_hierarchyLock.IsReaderLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForWrite - reader lock already held by this thread"); if (_hierarchyLock.IsWriterLockHeld) throw ExceptionUtil.UnexpectedError( "System.Configuration.Internal.InternalConfigRoot::AcquireHierarchyLockForWrite - writer lock already held by this thread"); _hierarchyLock.AcquireWriterLock(-1); } private void ReleaseHierarchyLockForWrite() { Debug.Assert(!_hierarchyLock.IsReaderLockHeld, "!_hierarchyLock.IsReaderLockHeld"); if (_hierarchyLock.IsWriterLockHeld) _hierarchyLock.ReleaseWriterLock(); } // Find a config record. // If found, nextIndex == parts.Length and the resulting record is in currentRecord. // If not found, nextIndex is the index of the part of the path not found, and currentRecord // is the record that has been found so far (nexIndex - 1). private void HlFindConfigRecord(string[] parts, out int nextIndex, out BaseConfigurationRecord currentRecord) { currentRecord = RootConfigRecord; nextIndex = 0; for (; nextIndex < parts.Length; nextIndex++) { BaseConfigurationRecord childRecord = currentRecord.HlGetChild(parts[nextIndex]); if (childRecord == null) break; currentRecord = childRecord; } } // Find and remove the config record and all its children for the config path. // Optionally ensure the config record matches a desired config record. private void RemoveConfigImpl(string configPath, BaseConfigurationRecord configRecord) { if (!ConfigPathUtility.IsValid(configPath)) throw ExceptionUtil.ParameterInvalid(nameof(configPath)); string[] parts = ConfigPathUtility.GetParts(configPath); BaseConfigurationRecord currentRecord; // search under exclusive writer lock try { int index; AcquireHierarchyLockForWrite(); HlFindConfigRecord(parts, out index, out currentRecord); // Return if not found, or does not match the one we are trying to remove. if ((index != parts.Length) || ((configRecord != null) && !ReferenceEquals(configRecord, currentRecord))) return; // Remove it from the hierarchy. currentRecord.Parent.HlRemoveChild(parts[parts.Length - 1]); } finally { ReleaseHierarchyLockForWrite(); } OnConfigRemoved(new InternalConfigEventArgs(configPath)); // Close the record. This is safe to do outside the lock. currentRecord.CloseRecursive(); } // Remove the config record and all its children for the config path. public void RemoveConfigRecord(BaseConfigurationRecord configRecord) { RemoveConfigImpl(configRecord.ConfigPath, configRecord); } // Clear the result of a configSection evaluation at a particular point // in the hierarchy. public void ClearResult(BaseConfigurationRecord configRecord, string configKey, bool forceEvaluation) { string[] parts = ConfigPathUtility.GetParts(configRecord.ConfigPath); try { int index; BaseConfigurationRecord currentRecord; AcquireHierarchyLockForRead(); HlFindConfigRecord(parts, out index, out currentRecord); // clear result only if configRecord it is still in the hierarchy if ((index == parts.Length) && ReferenceEquals(configRecord, currentRecord)) currentRecord.HlClearResultRecursive(configKey, forceEvaluation); } finally { ReleaseHierarchyLockForRead(); } } private void OnConfigRemoved(InternalConfigEventArgs e) { ConfigRemoved?.Invoke(this, e); } internal void FireConfigChanged(string configPath) { OnConfigChanged(new InternalConfigEventArgs(configPath)); } private void OnConfigChanged(InternalConfigEventArgs e) { ConfigChanged?.Invoke(this, e); } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.IO/tests/MemoryStream/MemoryStreamTests.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 Xunit; namespace System.IO.Tests { public class MemoryStreamTests : StandaloneStreamConformanceTests { protected override Task<Stream> CreateReadOnlyStreamCore(byte[] initialData) => Task.FromResult<Stream>(new MemoryStream(initialData ?? Array.Empty<byte>(), writable: false)); protected override Task<Stream> CreateReadWriteStreamCore(byte[] initialData) => Task.FromResult<Stream>( initialData != null ? new MemoryStream(initialData) : new MemoryStream()); protected override Task<Stream> CreateWriteOnlyStreamCore(byte[] initialData) => Task.FromResult<Stream>(null); [Fact] public static void MemoryStream_WriteToTests() { using (MemoryStream ms2 = new MemoryStream()) { byte[] bytArrRet; byte[] bytArr = new byte[] { byte.MinValue, byte.MaxValue, 1, 2, 3, 4, 5, 6, 128, 250 }; // [] Write to FileStream, check the filestream ms2.Write(bytArr, 0, bytArr.Length); using (MemoryStream readonlyStream = new MemoryStream()) { ms2.WriteTo(readonlyStream); readonlyStream.Flush(); readonlyStream.Position = 0; bytArrRet = new byte[(int)readonlyStream.Length]; readonlyStream.Read(bytArrRet, 0, (int)readonlyStream.Length); for (int i = 0; i < bytArr.Length; i++) { Assert.Equal(bytArr[i], bytArrRet[i]); } } } // [] Write to memoryStream, check the memoryStream using (MemoryStream ms2 = new MemoryStream()) using (MemoryStream ms3 = new MemoryStream()) { byte[] bytArrRet; byte[] bytArr = new byte[] { byte.MinValue, byte.MaxValue, 1, 2, 3, 4, 5, 6, 128, 250 }; ms2.Write(bytArr, 0, bytArr.Length); ms2.WriteTo(ms3); ms3.Position = 0; bytArrRet = new byte[(int)ms3.Length]; ms3.Read(bytArrRet, 0, (int)ms3.Length); for (int i = 0; i < bytArr.Length; i++) { Assert.Equal(bytArr[i], bytArrRet[i]); } } } [Fact] public static void MemoryStream_WriteToTests_Negative() { using (MemoryStream ms2 = new MemoryStream()) { Assert.Throws<ArgumentNullException>(() => ms2.WriteTo(null)); ms2.Write(new byte[] { 1 }, 0, 1); MemoryStream readonlyStream = new MemoryStream(new byte[1028], false); Assert.Throws<NotSupportedException>(() => ms2.WriteTo(readonlyStream)); readonlyStream.Dispose(); // [] Pass in a closed stream Assert.Throws<ObjectDisposedException>(() => ms2.WriteTo(readonlyStream)); } } [Fact] public void DerivedMemoryStream_ReadWriteSpanCalled_ReadWriteArrayUsed() { var s = new ReadWriteOverridingMemoryStream(); Assert.False(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); s.Write((ReadOnlySpan<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); s.Position = 0; s.Read((Span<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.True(s.ReadArrayInvoked); } [Fact] public async Task DerivedMemoryStream_ReadWriteAsyncMemoryCalled_ReadWriteAsyncArrayUsed() { var s = new ReadWriteOverridingMemoryStream(); Assert.False(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); await s.WriteAsync((ReadOnlyMemory<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); s.Position = 0; await s.ReadAsync((Memory<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.True(s.ReadArrayInvoked); } private class ReadWriteOverridingMemoryStream : MemoryStream { public bool ReadArrayInvoked, WriteArrayInvoked; public bool ReadAsyncArrayInvoked, WriteAsyncArrayInvoked; public override int Read(byte[] buffer, int offset, int count) { ReadArrayInvoked = true; return base.Read(buffer, offset, count); } public override void Write(byte[] buffer, int offset, int count) { WriteArrayInvoked = true; base.Write(buffer, offset, count); } public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { ReadAsyncArrayInvoked = true; return base.ReadAsync(buffer, offset, count, cancellationToken); } public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { WriteAsyncArrayInvoked = true; return base.WriteAsync(buffer, offset, count, cancellationToken); } } } }
// 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 Xunit; namespace System.IO.Tests { public class MemoryStreamTests : StandaloneStreamConformanceTests { protected override Task<Stream> CreateReadOnlyStreamCore(byte[] initialData) => Task.FromResult<Stream>(new MemoryStream(initialData ?? Array.Empty<byte>(), writable: false)); protected override Task<Stream> CreateReadWriteStreamCore(byte[] initialData) => Task.FromResult<Stream>( initialData != null ? new MemoryStream(initialData) : new MemoryStream()); protected override Task<Stream> CreateWriteOnlyStreamCore(byte[] initialData) => Task.FromResult<Stream>(null); [Fact] public static void MemoryStream_WriteToTests() { using (MemoryStream ms2 = new MemoryStream()) { byte[] bytArrRet; byte[] bytArr = new byte[] { byte.MinValue, byte.MaxValue, 1, 2, 3, 4, 5, 6, 128, 250 }; // [] Write to FileStream, check the filestream ms2.Write(bytArr, 0, bytArr.Length); using (MemoryStream readonlyStream = new MemoryStream()) { ms2.WriteTo(readonlyStream); readonlyStream.Flush(); readonlyStream.Position = 0; bytArrRet = new byte[(int)readonlyStream.Length]; readonlyStream.Read(bytArrRet, 0, (int)readonlyStream.Length); for (int i = 0; i < bytArr.Length; i++) { Assert.Equal(bytArr[i], bytArrRet[i]); } } } // [] Write to memoryStream, check the memoryStream using (MemoryStream ms2 = new MemoryStream()) using (MemoryStream ms3 = new MemoryStream()) { byte[] bytArrRet; byte[] bytArr = new byte[] { byte.MinValue, byte.MaxValue, 1, 2, 3, 4, 5, 6, 128, 250 }; ms2.Write(bytArr, 0, bytArr.Length); ms2.WriteTo(ms3); ms3.Position = 0; bytArrRet = new byte[(int)ms3.Length]; ms3.Read(bytArrRet, 0, (int)ms3.Length); for (int i = 0; i < bytArr.Length; i++) { Assert.Equal(bytArr[i], bytArrRet[i]); } } } [Fact] public static void MemoryStream_WriteToTests_Negative() { using (MemoryStream ms2 = new MemoryStream()) { Assert.Throws<ArgumentNullException>(() => ms2.WriteTo(null)); ms2.Write(new byte[] { 1 }, 0, 1); MemoryStream readonlyStream = new MemoryStream(new byte[1028], false); Assert.Throws<NotSupportedException>(() => ms2.WriteTo(readonlyStream)); readonlyStream.Dispose(); // [] Pass in a closed stream Assert.Throws<ObjectDisposedException>(() => ms2.WriteTo(readonlyStream)); } } [Fact] public void DerivedMemoryStream_ReadWriteSpanCalled_ReadWriteArrayUsed() { var s = new ReadWriteOverridingMemoryStream(); Assert.False(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); s.Write((ReadOnlySpan<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); s.Position = 0; s.Read((Span<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.True(s.ReadArrayInvoked); } [Fact] public async Task DerivedMemoryStream_ReadWriteAsyncMemoryCalled_ReadWriteAsyncArrayUsed() { var s = new ReadWriteOverridingMemoryStream(); Assert.False(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); await s.WriteAsync((ReadOnlyMemory<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.False(s.ReadArrayInvoked); s.Position = 0; await s.ReadAsync((Memory<byte>)new byte[1]); Assert.True(s.WriteArrayInvoked); Assert.True(s.ReadArrayInvoked); } private class ReadWriteOverridingMemoryStream : MemoryStream { public bool ReadArrayInvoked, WriteArrayInvoked; public bool ReadAsyncArrayInvoked, WriteAsyncArrayInvoked; public override int Read(byte[] buffer, int offset, int count) { ReadArrayInvoked = true; return base.Read(buffer, offset, count); } public override void Write(byte[] buffer, int offset, int count) { WriteArrayInvoked = true; base.Write(buffer, offset, count); } public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { ReadAsyncArrayInvoked = true; return base.ReadAsync(buffer, offset, count, cancellationToken); } public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) { WriteAsyncArrayInvoked = true; return base.WriteAsync(buffer, offset, count, cancellationToken); } } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaSet/TC_SchemaSet_GlobalAttributes.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; using Xunit.Abstractions; using System.IO; using System.Xml.Schema; namespace System.Xml.Tests { //[TestCase(Name = "TC_SchemaSet_GlobalAttributes", Desc = "")] public class TC_SchemaSet_GlobalAttributes : TC_SchemaSetBase { private ITestOutputHelper _output; public TC_SchemaSet_GlobalAttributes(ITestOutputHelper output) { _output = output; } public XmlSchema GetSchema(string ns, string a1, string a2) { string xsd = string.Empty; if (ns.Equals(string.Empty)) xsd = "<schema xmlns='http://www.w3.org/2001/XMLSchema'><attribute name='" + a1 + "'/><attribute name='" + a2 + "'/></schema>"; else xsd = "<schema xmlns='http://www.w3.org/2001/XMLSchema' targetNamespace='" + ns + "'><attribute name='" + a1 + "'/><attribute name='" + a2 + "'/></schema>"; XmlSchema schema = XmlSchema.Read(new StringReader(xsd), null); return schema; } //----------------------------------------------------------------------------------- //[Variation(Desc = "v1 - GlobalAttributes on empty collection", Priority = 0)] [Fact] public void v1() { XmlSchemaSet sc = new XmlSchemaSet(); XmlSchemaObjectTable table = sc.GlobalAttributes; CError.Compare(table == null, false, "Count"); return; } // params is a pair of the following info: (namaespace, a2 a2) two schemas are made from this info //[Variation(Desc = "v2.1 - GlobalAttributes with set with two schemas, both without NS", Params = new object[] { "", "a1", "a2", "", "a3", "a4" })] [InlineData("", "a1", "a2", "", "a3", "a4")] //[Variation(Desc = "v2.2 - GlobalAttributes with set with two schemas, one without NS one with NS", Params = new object[] { "a", "a1", "a2", "", "a3", "a4" })] [InlineData("a", "a1", "a2", "", "a3", "a4")] //[Variation(Desc = "v2.2 - GlobalAttributes with set with two schemas, both with NS", Params = new object[] { "a", "a1", "a2", "b", "a3", "a4" })] [InlineData("a", "a1", "a2", "b", "a3", "a4")] [Theory] public void v2(object param0, object param1, object param2, object param3, object param4, object param5) { string ns1 = param0.ToString(); string ns2 = param3.ToString(); string a1 = param1.ToString(); string a2 = param2.ToString(); string a3 = param4.ToString(); string a4 = param5.ToString(); XmlSchema s1 = GetSchema(ns1, a1, a2); XmlSchema s2 = GetSchema(ns2, a3, a4); XmlSchemaSet ss = new XmlSchemaSet(); ss.Add(s1); ss.Compile(); ss.Add(s2); CError.Compare(ss.GlobalAttributes.Count, 2, "Elements Countafter add"); //+1 for anyType ss.Compile(); //Verify CError.Compare(ss.GlobalAttributes.Count, 4, "Elements Count after add/compile"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a1, ns1)), true, "Contains1"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a2, ns1)), true, "Contains2"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a3, ns2)), true, "Contains3"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a4, ns2)), true, "Contains4"); //Now reprocess one schema and check ss.Reprocess(s1); ss.Compile(); CError.Compare(ss.GlobalAttributes.Count, 4, "Elements Count after reprocess"); //Now Remove one schema and check ss.Remove(s1); CError.Compare(ss.GlobalAttributes.Count, 2, "Elements Count after remove no compile"); ss.Compile(); CError.Compare(ss.GlobalAttributes.Count, 2, "Elements Count adter remove and compile"); return; } // params is a pair of the following info: (namaespace, a1 a2)*, doCompile? //[Variation(Desc = "v3.1 - GlobalAttributes with a set having schema (nons) to another set with schema(nons)", Params = new object[] { "", "a1", "a2", "", "a3", "a4", true })] [InlineData("", "a1", "a2", "", "a3", "a4", true)] //[Variation(Desc = "v3.2 - GlobalAttributes with a set having schema (ns) to another set with schema(nons)", Params = new object[] { "a", "a1", "a2", "", "a3", "a4", true })] [InlineData("a", "a1", "a2", "", "a3", "a4", true)] //[Variation(Desc = "v3.3 - GlobalAttributes with a set having schema (nons) to another set with schema(ns)", Params = new object[] { "", "a1", "a2", "a", "a3", "a4", true })] [InlineData("", "a1", "a2", "a", "a3", "a4", true)] //[Variation(Desc = "v3.4 - GlobalAttributes with a set having schema (ns) to another set with schema(ns)", Params = new object[] { "a", "a1", "a2", "b", "a3", "a4", true })] [InlineData("a", "a1", "a2", "b", "a3", "a4", true)] //[Variation(Desc = "v3.5 - GlobalAttributes with a set having schema (nons) to another set with schema(nons), no compile", Params = new object[] { "", "a1", "a2", "", "a3", "a4", false })] [InlineData("", "a1", "a2", "", "a3", "a4", false)] //[Variation(Desc = "v3.6 - GlobalAttributes with a set having schema (ns) to another set with schema(nons), no compile", Params = new object[] { "a", "a1", "a2", "", "a3", "a4", false })] [InlineData("a", "a1", "a2", "", "a3", "a4", false)] //[Variation(Desc = "v3.7 - GlobalAttributes with a set having schema (nons) to another set with schema(ns), no compile", Params = new object[] { "", "a1", "a2", "a", "a3", "a4", false })] [InlineData("", "a1", "a2", "a", "a3", "a4", false)] //[Variation(Desc = "v3.8 - GlobalAttributes with a set having schema (ns) to another set with schema(ns), no compile", Params = new object[] { "a", "a1", "a2", "b", "a3", "a4", false })] [InlineData("a", "a1", "a2", "b", "a3", "a4", false)] [Theory] public void v3(object param0, object param1, object param2, object param3, object param4, object param5, object param6) { string ns1 = param0.ToString(); string ns2 = param3.ToString(); string a1 = param1.ToString(); string a2 = param2.ToString(); string a3 = param4.ToString(); string a4 = param5.ToString(); bool doCompile = (bool)param6; XmlSchema s1 = GetSchema(ns1, a1, a2); XmlSchema s2 = GetSchema(ns2, a3, a4); XmlSchemaSet ss1 = new XmlSchemaSet(); XmlSchemaSet ss2 = new XmlSchemaSet(); ss1.Add(s1); ss1.Compile(); ss2.Add(s2); if (doCompile) ss2.Compile(); // add one schemaset to another ss1.Add(ss2); if (!doCompile) ss1.Compile(); //Verify CError.Compare(ss1.GlobalAttributes.Count, 4, "Types Count after add"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a1, ns1)), true, "Contains1"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a2, ns1)), true, "Contains2"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a3, ns2)), true, "Contains3"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a4, ns2)), true, "Contains4"); //Now reprocess one schema and check ss1.Reprocess(s1); ss1.Compile(); CError.Compare(ss1.GlobalAttributes.Count, 4, "Types Count after reprocess"); //Now Remove one schema and check ss1.Remove(s1); CError.Compare(ss1.GlobalAttributes.Count, 2, "Types Count after repr/remove"); // count should still be 4 ss1.Compile(); CError.Compare(ss1.GlobalAttributes.Count, 2, "Types Count after repr/remove/comp"); // count should NOW still be 2 return; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; using Xunit.Abstractions; using System.IO; using System.Xml.Schema; namespace System.Xml.Tests { //[TestCase(Name = "TC_SchemaSet_GlobalAttributes", Desc = "")] public class TC_SchemaSet_GlobalAttributes : TC_SchemaSetBase { private ITestOutputHelper _output; public TC_SchemaSet_GlobalAttributes(ITestOutputHelper output) { _output = output; } public XmlSchema GetSchema(string ns, string a1, string a2) { string xsd = string.Empty; if (ns.Equals(string.Empty)) xsd = "<schema xmlns='http://www.w3.org/2001/XMLSchema'><attribute name='" + a1 + "'/><attribute name='" + a2 + "'/></schema>"; else xsd = "<schema xmlns='http://www.w3.org/2001/XMLSchema' targetNamespace='" + ns + "'><attribute name='" + a1 + "'/><attribute name='" + a2 + "'/></schema>"; XmlSchema schema = XmlSchema.Read(new StringReader(xsd), null); return schema; } //----------------------------------------------------------------------------------- //[Variation(Desc = "v1 - GlobalAttributes on empty collection", Priority = 0)] [Fact] public void v1() { XmlSchemaSet sc = new XmlSchemaSet(); XmlSchemaObjectTable table = sc.GlobalAttributes; CError.Compare(table == null, false, "Count"); return; } // params is a pair of the following info: (namaespace, a2 a2) two schemas are made from this info //[Variation(Desc = "v2.1 - GlobalAttributes with set with two schemas, both without NS", Params = new object[] { "", "a1", "a2", "", "a3", "a4" })] [InlineData("", "a1", "a2", "", "a3", "a4")] //[Variation(Desc = "v2.2 - GlobalAttributes with set with two schemas, one without NS one with NS", Params = new object[] { "a", "a1", "a2", "", "a3", "a4" })] [InlineData("a", "a1", "a2", "", "a3", "a4")] //[Variation(Desc = "v2.2 - GlobalAttributes with set with two schemas, both with NS", Params = new object[] { "a", "a1", "a2", "b", "a3", "a4" })] [InlineData("a", "a1", "a2", "b", "a3", "a4")] [Theory] public void v2(object param0, object param1, object param2, object param3, object param4, object param5) { string ns1 = param0.ToString(); string ns2 = param3.ToString(); string a1 = param1.ToString(); string a2 = param2.ToString(); string a3 = param4.ToString(); string a4 = param5.ToString(); XmlSchema s1 = GetSchema(ns1, a1, a2); XmlSchema s2 = GetSchema(ns2, a3, a4); XmlSchemaSet ss = new XmlSchemaSet(); ss.Add(s1); ss.Compile(); ss.Add(s2); CError.Compare(ss.GlobalAttributes.Count, 2, "Elements Countafter add"); //+1 for anyType ss.Compile(); //Verify CError.Compare(ss.GlobalAttributes.Count, 4, "Elements Count after add/compile"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a1, ns1)), true, "Contains1"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a2, ns1)), true, "Contains2"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a3, ns2)), true, "Contains3"); CError.Compare(ss.GlobalAttributes.Contains(new XmlQualifiedName(a4, ns2)), true, "Contains4"); //Now reprocess one schema and check ss.Reprocess(s1); ss.Compile(); CError.Compare(ss.GlobalAttributes.Count, 4, "Elements Count after reprocess"); //Now Remove one schema and check ss.Remove(s1); CError.Compare(ss.GlobalAttributes.Count, 2, "Elements Count after remove no compile"); ss.Compile(); CError.Compare(ss.GlobalAttributes.Count, 2, "Elements Count adter remove and compile"); return; } // params is a pair of the following info: (namaespace, a1 a2)*, doCompile? //[Variation(Desc = "v3.1 - GlobalAttributes with a set having schema (nons) to another set with schema(nons)", Params = new object[] { "", "a1", "a2", "", "a3", "a4", true })] [InlineData("", "a1", "a2", "", "a3", "a4", true)] //[Variation(Desc = "v3.2 - GlobalAttributes with a set having schema (ns) to another set with schema(nons)", Params = new object[] { "a", "a1", "a2", "", "a3", "a4", true })] [InlineData("a", "a1", "a2", "", "a3", "a4", true)] //[Variation(Desc = "v3.3 - GlobalAttributes with a set having schema (nons) to another set with schema(ns)", Params = new object[] { "", "a1", "a2", "a", "a3", "a4", true })] [InlineData("", "a1", "a2", "a", "a3", "a4", true)] //[Variation(Desc = "v3.4 - GlobalAttributes with a set having schema (ns) to another set with schema(ns)", Params = new object[] { "a", "a1", "a2", "b", "a3", "a4", true })] [InlineData("a", "a1", "a2", "b", "a3", "a4", true)] //[Variation(Desc = "v3.5 - GlobalAttributes with a set having schema (nons) to another set with schema(nons), no compile", Params = new object[] { "", "a1", "a2", "", "a3", "a4", false })] [InlineData("", "a1", "a2", "", "a3", "a4", false)] //[Variation(Desc = "v3.6 - GlobalAttributes with a set having schema (ns) to another set with schema(nons), no compile", Params = new object[] { "a", "a1", "a2", "", "a3", "a4", false })] [InlineData("a", "a1", "a2", "", "a3", "a4", false)] //[Variation(Desc = "v3.7 - GlobalAttributes with a set having schema (nons) to another set with schema(ns), no compile", Params = new object[] { "", "a1", "a2", "a", "a3", "a4", false })] [InlineData("", "a1", "a2", "a", "a3", "a4", false)] //[Variation(Desc = "v3.8 - GlobalAttributes with a set having schema (ns) to another set with schema(ns), no compile", Params = new object[] { "a", "a1", "a2", "b", "a3", "a4", false })] [InlineData("a", "a1", "a2", "b", "a3", "a4", false)] [Theory] public void v3(object param0, object param1, object param2, object param3, object param4, object param5, object param6) { string ns1 = param0.ToString(); string ns2 = param3.ToString(); string a1 = param1.ToString(); string a2 = param2.ToString(); string a3 = param4.ToString(); string a4 = param5.ToString(); bool doCompile = (bool)param6; XmlSchema s1 = GetSchema(ns1, a1, a2); XmlSchema s2 = GetSchema(ns2, a3, a4); XmlSchemaSet ss1 = new XmlSchemaSet(); XmlSchemaSet ss2 = new XmlSchemaSet(); ss1.Add(s1); ss1.Compile(); ss2.Add(s2); if (doCompile) ss2.Compile(); // add one schemaset to another ss1.Add(ss2); if (!doCompile) ss1.Compile(); //Verify CError.Compare(ss1.GlobalAttributes.Count, 4, "Types Count after add"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a1, ns1)), true, "Contains1"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a2, ns1)), true, "Contains2"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a3, ns2)), true, "Contains3"); CError.Compare(ss1.GlobalAttributes.Contains(new XmlQualifiedName(a4, ns2)), true, "Contains4"); //Now reprocess one schema and check ss1.Reprocess(s1); ss1.Compile(); CError.Compare(ss1.GlobalAttributes.Count, 4, "Types Count after reprocess"); //Now Remove one schema and check ss1.Remove(s1); CError.Compare(ss1.GlobalAttributes.Count, 2, "Types Count after repr/remove"); // count should still be 4 ss1.Compile(); CError.Compare(ss1.GlobalAttributes.Count, 2, "Types Count after repr/remove/comp"); // count should NOW still be 2 return; } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/Methodical/xxobj/sizeof/sizeof64_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. --> <DebugType>None</DebugType> <Optimize>False</Optimize> <NoStandardLib>True</NoStandardLib> <Noconfig>True</Noconfig> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <Compile Include="sizeof64.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. --> <DebugType>None</DebugType> <Optimize>False</Optimize> <NoStandardLib>True</NoStandardLib> <Noconfig>True</Noconfig> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <Compile Include="sizeof64.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/baseservices/exceptions/regressions/V1/SEH/VJ/TryCatchFinally.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="TryCatchFinally.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="TryCatchFinally.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/MultiplyAddByScalar.Vector128.UInt32.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 MultiplyAddByScalar_Vector128_UInt32() { var test = new SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32(); 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__MultiplyAddByScalar_Vector128_UInt32 { 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(UInt32[] inArray1, UInt32[] inArray2, UInt32[] inArray3, UInt32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt32>(); int sizeOfinArray3 = inArray3.Length * Unsafe.SizeOf<UInt32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt32>(); 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<UInt32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt32, byte>(ref inArray2[0]), (uint)sizeOfinArray2); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray3Ptr), ref Unsafe.As<UInt32, 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<UInt32> _fld1; public Vector128<UInt32> _fld2; public Vector64<UInt32> _fld3; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref testStruct._fld3), ref Unsafe.As<UInt32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); return testStruct; } public void RunStructFldScenario(SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32 testClass) { var result = AdvSimd.MultiplyAddByScalar(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32 testClass) { fixed (Vector128<UInt32>* pFld1 = &_fld1) fixed (Vector128<UInt32>* pFld2 = &_fld2) fixed (Vector64<UInt32>* pFld3 = &_fld3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector64((UInt32*)(pFld3)) ); 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<UInt32>>() / sizeof(UInt32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int Op3ElementCount = Unsafe.SizeOf<Vector64<UInt32>>() / sizeof(UInt32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static UInt32[] _data2 = new UInt32[Op2ElementCount]; private static UInt32[] _data3 = new UInt32[Op3ElementCount]; private static Vector128<UInt32> _clsVar1; private static Vector128<UInt32> _clsVar2; private static Vector64<UInt32> _clsVar3; private Vector128<UInt32> _fld1; private Vector128<UInt32> _fld2; private Vector64<UInt32> _fld3; private DataTable _dataTable; static SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _clsVar3), ref Unsafe.As<UInt32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); } public SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _fld3), ref Unsafe.As<UInt32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new DataTable(_data1, _data2, _data3, new UInt32[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.MultiplyAddByScalar( Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr), Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray3Ptr) ); 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.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray3Ptr)) ); 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.MultiplyAddByScalar), new Type[] { typeof(Vector128<UInt32>), typeof(Vector128<UInt32>), typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr), Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray3Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt32>)(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.MultiplyAddByScalar), new Type[] { typeof(Vector128<UInt32>), typeof(Vector128<UInt32>), typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray3Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.MultiplyAddByScalar( _clsVar1, _clsVar2, _clsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<UInt32>* pClsVar1 = &_clsVar1) fixed (Vector128<UInt32>* pClsVar2 = &_clsVar2) fixed (Vector64<UInt32>* pClsVar3 = &_clsVar3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)), AdvSimd.LoadVector64((UInt32*)(pClsVar3)) ); 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<UInt32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray3Ptr); var result = AdvSimd.MultiplyAddByScalar(op1, op2, op3); 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((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray3Ptr)); var result = AdvSimd.MultiplyAddByScalar(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32(); var result = AdvSimd.MultiplyAddByScalar(test._fld1, test._fld2, test._fld3); 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__MultiplyAddByScalar_Vector128_UInt32(); fixed (Vector128<UInt32>* pFld1 = &test._fld1) fixed (Vector128<UInt32>* pFld2 = &test._fld2) fixed (Vector64<UInt32>* pFld3 = &test._fld3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector64((UInt32*)(pFld3)) ); 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.MultiplyAddByScalar(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<UInt32>* pFld1 = &_fld1) fixed (Vector128<UInt32>* pFld2 = &_fld2) fixed (Vector64<UInt32>* pFld3 = &_fld3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector64((UInt32*)(pFld3)) ); 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.MultiplyAddByScalar(test._fld1, test._fld2, test._fld3); 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.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)), AdvSimd.LoadVector64((UInt32*)(&test._fld3)) ); 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<UInt32> op1, Vector128<UInt32> op2, Vector64<UInt32> op3, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] inArray3 = new UInt32[Op3ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), op2); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray3[0]), op3); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult(void* op1, void* op2, void* op3, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] inArray3 = new UInt32[Op3ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray3[0]), ref Unsafe.AsRef<byte>(op3), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult(UInt32[] firstOp, UInt32[] secondOp, UInt32[] thirdOp, UInt32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.MultiplyAdd(firstOp[i], secondOp[i], thirdOp[0]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyAddByScalar)}<UInt32>(Vector128<UInt32>, Vector128<UInt32>, Vector64<UInt32>): {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 MultiplyAddByScalar_Vector128_UInt32() { var test = new SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32(); 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__MultiplyAddByScalar_Vector128_UInt32 { 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(UInt32[] inArray1, UInt32[] inArray2, UInt32[] inArray3, UInt32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt32>(); int sizeOfinArray3 = inArray3.Length * Unsafe.SizeOf<UInt32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt32>(); 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<UInt32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt32, byte>(ref inArray2[0]), (uint)sizeOfinArray2); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray3Ptr), ref Unsafe.As<UInt32, 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<UInt32> _fld1; public Vector128<UInt32> _fld2; public Vector64<UInt32> _fld3; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref testStruct._fld3), ref Unsafe.As<UInt32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); return testStruct; } public void RunStructFldScenario(SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32 testClass) { var result = AdvSimd.MultiplyAddByScalar(_fld1, _fld2, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32 testClass) { fixed (Vector128<UInt32>* pFld1 = &_fld1) fixed (Vector128<UInt32>* pFld2 = &_fld2) fixed (Vector64<UInt32>* pFld3 = &_fld3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector64((UInt32*)(pFld3)) ); 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<UInt32>>() / sizeof(UInt32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int Op3ElementCount = Unsafe.SizeOf<Vector64<UInt32>>() / sizeof(UInt32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static UInt32[] _data2 = new UInt32[Op2ElementCount]; private static UInt32[] _data3 = new UInt32[Op3ElementCount]; private static Vector128<UInt32> _clsVar1; private static Vector128<UInt32> _clsVar2; private static Vector64<UInt32> _clsVar3; private Vector128<UInt32> _fld1; private Vector128<UInt32> _fld2; private Vector64<UInt32> _fld3; private DataTable _dataTable; static SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _clsVar3), ref Unsafe.As<UInt32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); } public SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _fld3), ref Unsafe.As<UInt32, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new DataTable(_data1, _data2, _data3, new UInt32[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.MultiplyAddByScalar( Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr), Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray3Ptr) ); 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.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray3Ptr)) ); 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.MultiplyAddByScalar), new Type[] { typeof(Vector128<UInt32>), typeof(Vector128<UInt32>), typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr), Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray3Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt32>)(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.MultiplyAddByScalar), new Type[] { typeof(Vector128<UInt32>), typeof(Vector128<UInt32>), typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)), AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray3Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.MultiplyAddByScalar( _clsVar1, _clsVar2, _clsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<UInt32>* pClsVar1 = &_clsVar1) fixed (Vector128<UInt32>* pClsVar2 = &_clsVar2) fixed (Vector64<UInt32>* pClsVar3 = &_clsVar3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pClsVar1)), AdvSimd.LoadVector128((UInt32*)(pClsVar2)), AdvSimd.LoadVector64((UInt32*)(pClsVar3)) ); 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<UInt32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray3Ptr); var result = AdvSimd.MultiplyAddByScalar(op1, op2, op3); 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((UInt32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((UInt32*)(_dataTable.inArray2Ptr)); var op3 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray3Ptr)); var result = AdvSimd.MultiplyAddByScalar(op1, op2, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleTernaryOpTest__MultiplyAddByScalar_Vector128_UInt32(); var result = AdvSimd.MultiplyAddByScalar(test._fld1, test._fld2, test._fld3); 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__MultiplyAddByScalar_Vector128_UInt32(); fixed (Vector128<UInt32>* pFld1 = &test._fld1) fixed (Vector128<UInt32>* pFld2 = &test._fld2) fixed (Vector64<UInt32>* pFld3 = &test._fld3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector64((UInt32*)(pFld3)) ); 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.MultiplyAddByScalar(_fld1, _fld2, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<UInt32>* pFld1 = &_fld1) fixed (Vector128<UInt32>* pFld2 = &_fld2) fixed (Vector64<UInt32>* pFld3 = &_fld3) { var result = AdvSimd.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(pFld1)), AdvSimd.LoadVector128((UInt32*)(pFld2)), AdvSimd.LoadVector64((UInt32*)(pFld3)) ); 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.MultiplyAddByScalar(test._fld1, test._fld2, test._fld3); 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.MultiplyAddByScalar( AdvSimd.LoadVector128((UInt32*)(&test._fld1)), AdvSimd.LoadVector128((UInt32*)(&test._fld2)), AdvSimd.LoadVector64((UInt32*)(&test._fld3)) ); 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<UInt32> op1, Vector128<UInt32> op2, Vector64<UInt32> op3, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] inArray3 = new UInt32[Op3ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), op2); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray3[0]), op3); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult(void* op1, void* op2, void* op3, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; UInt32[] inArray3 = new UInt32[Op3ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray3[0]), ref Unsafe.AsRef<byte>(op3), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult(UInt32[] firstOp, UInt32[] secondOp, UInt32[] thirdOp, UInt32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.MultiplyAdd(firstOp[i], secondOp[i], thirdOp[0]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyAddByScalar)}<UInt32>(Vector128<UInt32>, Vector128<UInt32>, Vector64<UInt32>): {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
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/HardwareIntrinsics/X86/Sse2/ShiftLeftLogical.Int64.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 ShiftLeftLogicalInt641() { var test = new ImmUnaryOpTest__ShiftLeftLogicalInt641(); 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 ImmUnaryOpTest__ShiftLeftLogicalInt641 { private struct TestStruct { public Vector128<Int64> _fld; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int64>, byte>(ref testStruct._fld), ref Unsafe.As<Int64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int64>>()); return testStruct; } public void RunStructFldScenario(ImmUnaryOpTest__ShiftLeftLogicalInt641 testClass) { var result = Sse2.ShiftLeftLogical(_fld, 1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Int64>>() / sizeof(Int64); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int64>>() / sizeof(Int64); private static Int64[] _data = new Int64[Op1ElementCount]; private static Vector128<Int64> _clsVar; private Vector128<Int64> _fld; private SimpleUnaryOpTest__DataTable<Int64, Int64> _dataTable; static ImmUnaryOpTest__ShiftLeftLogicalInt641() { for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int64>, byte>(ref _clsVar), ref Unsafe.As<Int64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int64>>()); } public ImmUnaryOpTest__ShiftLeftLogicalInt641() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int64>, byte>(ref _fld), ref Unsafe.As<Int64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int64>>()); for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } _dataTable = new SimpleUnaryOpTest__DataTable<Int64, Int64>(_data, new Int64[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Sse2.ShiftLeftLogical( Unsafe.Read<Vector128<Int64>>(_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 = Sse2.ShiftLeftLogical( Sse2.LoadVector128((Int64*)(_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 = Sse2.ShiftLeftLogical( Sse2.LoadAlignedVector128((Int64*)(_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(Sse2).GetMethod(nameof(Sse2.ShiftLeftLogical), new Type[] { typeof(Vector128<Int64>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Int64>>(_dataTable.inArrayPtr), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Sse2).GetMethod(nameof(Sse2.ShiftLeftLogical), new Type[] { typeof(Vector128<Int64>), typeof(byte) }) .Invoke(null, new object[] { Sse2.LoadVector128((Int64*)(_dataTable.inArrayPtr)), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Sse2).GetMethod(nameof(Sse2.ShiftLeftLogical), new Type[] { typeof(Vector128<Int64>), typeof(byte) }) .Invoke(null, new object[] { Sse2.LoadAlignedVector128((Int64*)(_dataTable.inArrayPtr)), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Sse2.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<Vector128<Int64>>(_dataTable.inArrayPtr); var result = Sse2.ShiftLeftLogical(firstOp, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(firstOp, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var firstOp = Sse2.LoadVector128((Int64*)(_dataTable.inArrayPtr)); var result = Sse2.ShiftLeftLogical(firstOp, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(firstOp, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var firstOp = Sse2.LoadAlignedVector128((Int64*)(_dataTable.inArrayPtr)); var result = Sse2.ShiftLeftLogical(firstOp, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(firstOp, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmUnaryOpTest__ShiftLeftLogicalInt641(); var result = Sse2.ShiftLeftLogical(test._fld, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Sse2.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 = Sse2.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(Vector128<Int64> firstOp, void* result, [CallerMemberName] string method = "") { Int64[] inArray = new Int64[Op1ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int64, byte>(ref inArray[0]), firstOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "") { Int64[] inArray = new Int64[Op1ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<Int64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(Int64[] firstOp, Int64[] result, [CallerMemberName] string method = "") { bool succeeded = true; if ((long)(firstOp[0] << 1) != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if ((long)(firstOp[i] << 1) != result[i]) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Sse2)}.{nameof(Sse2.ShiftLeftLogical)}<Int64>(Vector128<Int64><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 ShiftLeftLogicalInt641() { var test = new ImmUnaryOpTest__ShiftLeftLogicalInt641(); 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 ImmUnaryOpTest__ShiftLeftLogicalInt641 { private struct TestStruct { public Vector128<Int64> _fld; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int64>, byte>(ref testStruct._fld), ref Unsafe.As<Int64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int64>>()); return testStruct; } public void RunStructFldScenario(ImmUnaryOpTest__ShiftLeftLogicalInt641 testClass) { var result = Sse2.ShiftLeftLogical(_fld, 1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Int64>>() / sizeof(Int64); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int64>>() / sizeof(Int64); private static Int64[] _data = new Int64[Op1ElementCount]; private static Vector128<Int64> _clsVar; private Vector128<Int64> _fld; private SimpleUnaryOpTest__DataTable<Int64, Int64> _dataTable; static ImmUnaryOpTest__ShiftLeftLogicalInt641() { for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int64>, byte>(ref _clsVar), ref Unsafe.As<Int64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int64>>()); } public ImmUnaryOpTest__ShiftLeftLogicalInt641() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int64>, byte>(ref _fld), ref Unsafe.As<Int64, byte>(ref _data[0]), (uint)Unsafe.SizeOf<Vector128<Int64>>()); for (var i = 0; i < Op1ElementCount; i++) { _data[i] = TestLibrary.Generator.GetInt64(); } _dataTable = new SimpleUnaryOpTest__DataTable<Int64, Int64>(_data, new Int64[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Sse2.ShiftLeftLogical( Unsafe.Read<Vector128<Int64>>(_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 = Sse2.ShiftLeftLogical( Sse2.LoadVector128((Int64*)(_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 = Sse2.ShiftLeftLogical( Sse2.LoadAlignedVector128((Int64*)(_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(Sse2).GetMethod(nameof(Sse2.ShiftLeftLogical), new Type[] { typeof(Vector128<Int64>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<Int64>>(_dataTable.inArrayPtr), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Sse2).GetMethod(nameof(Sse2.ShiftLeftLogical), new Type[] { typeof(Vector128<Int64>), typeof(byte) }) .Invoke(null, new object[] { Sse2.LoadVector128((Int64*)(_dataTable.inArrayPtr)), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Sse2).GetMethod(nameof(Sse2.ShiftLeftLogical), new Type[] { typeof(Vector128<Int64>), typeof(byte) }) .Invoke(null, new object[] { Sse2.LoadAlignedVector128((Int64*)(_dataTable.inArrayPtr)), (byte)1 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArrayPtr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Sse2.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<Vector128<Int64>>(_dataTable.inArrayPtr); var result = Sse2.ShiftLeftLogical(firstOp, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(firstOp, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var firstOp = Sse2.LoadVector128((Int64*)(_dataTable.inArrayPtr)); var result = Sse2.ShiftLeftLogical(firstOp, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(firstOp, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var firstOp = Sse2.LoadAlignedVector128((Int64*)(_dataTable.inArrayPtr)); var result = Sse2.ShiftLeftLogical(firstOp, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(firstOp, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmUnaryOpTest__ShiftLeftLogicalInt641(); var result = Sse2.ShiftLeftLogical(test._fld, 1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Sse2.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 = Sse2.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(Vector128<Int64> firstOp, void* result, [CallerMemberName] string method = "") { Int64[] inArray = new Int64[Op1ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int64, byte>(ref inArray[0]), firstOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(void* firstOp, void* result, [CallerMemberName] string method = "") { Int64[] inArray = new Int64[Op1ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref inArray[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector128<Int64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray, outArray, method); } private void ValidateResult(Int64[] firstOp, Int64[] result, [CallerMemberName] string method = "") { bool succeeded = true; if ((long)(firstOp[0] << 1) != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if ((long)(firstOp[i] << 1) != result[i]) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Sse2)}.{nameof(Sse2.ShiftLeftLogical)}<Int64>(Vector128<Int64><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,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/Common/src/System/Threading/Tasks/TaskToApm.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Helper methods for using Tasks to implement the APM pattern. // // Example usage, wrapping a Task<int>-returning FooAsync method with Begin/EndFoo methods: // // public IAsyncResult BeginFoo(..., AsyncCallback? callback, object? state) => // TaskToApm.Begin(FooAsync(...), callback, state); // // public int EndFoo(IAsyncResult asyncResult) => // TaskToApm.End<int>(asyncResult); using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace System.Threading.Tasks { /// <summary> /// Provides support for efficiently using Tasks to implement the APM (Begin/End) pattern. /// </summary> internal static class TaskToApm { /// <summary> /// Marshals the Task as an IAsyncResult, using the supplied callback and state /// to implement the APM pattern. /// </summary> /// <param name="task">The Task to be marshaled.</param> /// <param name="callback">The callback to be invoked upon completion.</param> /// <param name="state">The state to be stored in the IAsyncResult.</param> /// <returns>An IAsyncResult to represent the task's asynchronous operation.</returns> public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => new TaskAsyncResult(task, state, callback); /// <summary>Processes an IAsyncResult returned by Begin.</summary> /// <param name="asyncResult">The IAsyncResult to unwrap.</param> public static void End(IAsyncResult asyncResult) { if (GetTask(asyncResult) is Task t) { t.GetAwaiter().GetResult(); return; } ThrowArgumentException(asyncResult); } /// <summary>Processes an IAsyncResult returned by Begin.</summary> /// <param name="asyncResult">The IAsyncResult to unwrap.</param> public static TResult End<TResult>(IAsyncResult asyncResult) { if (GetTask(asyncResult) is Task<TResult> task) { return task.GetAwaiter().GetResult(); } ThrowArgumentException(asyncResult); return default!; // unreachable } /// <summary>Gets the task represented by the IAsyncResult.</summary> public static Task? GetTask(IAsyncResult asyncResult) => (asyncResult as TaskAsyncResult)?._task; /// <summary>Throws an argument exception for the invalid <paramref name="asyncResult"/>.</summary> [DoesNotReturn] private static void ThrowArgumentException(IAsyncResult asyncResult!!) => throw new ArgumentException(null, nameof(asyncResult)); /// <summary>Provides a simple IAsyncResult that wraps a Task.</summary> /// <remarks> /// We could use the Task as the IAsyncResult if the Task's AsyncState is the same as the object state, /// but that's very rare, in particular in a situation where someone cares about allocation, and always /// using TaskAsyncResult simplifies things and enables additional optimizations. /// </remarks> internal sealed class TaskAsyncResult : IAsyncResult { /// <summary>The wrapped Task.</summary> internal readonly Task _task; /// <summary>Callback to invoke when the wrapped task completes.</summary> private readonly AsyncCallback? _callback; /// <summary>Initializes the IAsyncResult with the Task to wrap and the associated object state.</summary> /// <param name="task">The Task to wrap.</param> /// <param name="state">The new AsyncState value.</param> /// <param name="callback">Callback to invoke when the wrapped task completes.</param> internal TaskAsyncResult(Task task, object? state, AsyncCallback? callback) { Debug.Assert(task != null); _task = task; AsyncState = state; if (task.IsCompleted) { // Synchronous completion. Invoke the callback. No need to store it. CompletedSynchronously = true; callback?.Invoke(this); } else if (callback != null) { // Asynchronous completion, and we have a callback; schedule it. We use OnCompleted rather than ContinueWith in // order to avoid running synchronously if the task has already completed by the time we get here but still run // synchronously as part of the task's completion if the task completes after (the more common case). _callback = callback; _task.ConfigureAwait(continueOnCapturedContext: false) .GetAwaiter() .OnCompleted(InvokeCallback); // allocates a delegate, but avoids a closure } } /// <summary>Invokes the callback.</summary> private void InvokeCallback() { Debug.Assert(!CompletedSynchronously); Debug.Assert(_callback != null); _callback.Invoke(this); } /// <summary>Gets a user-defined object that qualifies or contains information about an asynchronous operation.</summary> public object? AsyncState { get; } /// <summary>Gets a value that indicates whether the asynchronous operation completed synchronously.</summary> /// <remarks>This is set lazily based on whether the <see cref="_task"/> has completed by the time this object is created.</remarks> public bool CompletedSynchronously { get; } /// <summary>Gets a value that indicates whether the asynchronous operation has completed.</summary> public bool IsCompleted => _task.IsCompleted; /// <summary>Gets a <see cref="WaitHandle"/> that is used to wait for an asynchronous operation to complete.</summary> public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Helper methods for using Tasks to implement the APM pattern. // // Example usage, wrapping a Task<int>-returning FooAsync method with Begin/EndFoo methods: // // public IAsyncResult BeginFoo(..., AsyncCallback? callback, object? state) => // TaskToApm.Begin(FooAsync(...), callback, state); // // public int EndFoo(IAsyncResult asyncResult) => // TaskToApm.End<int>(asyncResult); using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace System.Threading.Tasks { /// <summary> /// Provides support for efficiently using Tasks to implement the APM (Begin/End) pattern. /// </summary> internal static class TaskToApm { /// <summary> /// Marshals the Task as an IAsyncResult, using the supplied callback and state /// to implement the APM pattern. /// </summary> /// <param name="task">The Task to be marshaled.</param> /// <param name="callback">The callback to be invoked upon completion.</param> /// <param name="state">The state to be stored in the IAsyncResult.</param> /// <returns>An IAsyncResult to represent the task's asynchronous operation.</returns> public static IAsyncResult Begin(Task task, AsyncCallback? callback, object? state) => new TaskAsyncResult(task, state, callback); /// <summary>Processes an IAsyncResult returned by Begin.</summary> /// <param name="asyncResult">The IAsyncResult to unwrap.</param> public static void End(IAsyncResult asyncResult) { if (GetTask(asyncResult) is Task t) { t.GetAwaiter().GetResult(); return; } ThrowArgumentException(asyncResult); } /// <summary>Processes an IAsyncResult returned by Begin.</summary> /// <param name="asyncResult">The IAsyncResult to unwrap.</param> public static TResult End<TResult>(IAsyncResult asyncResult) { if (GetTask(asyncResult) is Task<TResult> task) { return task.GetAwaiter().GetResult(); } ThrowArgumentException(asyncResult); return default!; // unreachable } /// <summary>Gets the task represented by the IAsyncResult.</summary> public static Task? GetTask(IAsyncResult asyncResult) => (asyncResult as TaskAsyncResult)?._task; /// <summary>Throws an argument exception for the invalid <paramref name="asyncResult"/>.</summary> [DoesNotReturn] private static void ThrowArgumentException(IAsyncResult asyncResult!!) => throw new ArgumentException(null, nameof(asyncResult)); /// <summary>Provides a simple IAsyncResult that wraps a Task.</summary> /// <remarks> /// We could use the Task as the IAsyncResult if the Task's AsyncState is the same as the object state, /// but that's very rare, in particular in a situation where someone cares about allocation, and always /// using TaskAsyncResult simplifies things and enables additional optimizations. /// </remarks> internal sealed class TaskAsyncResult : IAsyncResult { /// <summary>The wrapped Task.</summary> internal readonly Task _task; /// <summary>Callback to invoke when the wrapped task completes.</summary> private readonly AsyncCallback? _callback; /// <summary>Initializes the IAsyncResult with the Task to wrap and the associated object state.</summary> /// <param name="task">The Task to wrap.</param> /// <param name="state">The new AsyncState value.</param> /// <param name="callback">Callback to invoke when the wrapped task completes.</param> internal TaskAsyncResult(Task task, object? state, AsyncCallback? callback) { Debug.Assert(task != null); _task = task; AsyncState = state; if (task.IsCompleted) { // Synchronous completion. Invoke the callback. No need to store it. CompletedSynchronously = true; callback?.Invoke(this); } else if (callback != null) { // Asynchronous completion, and we have a callback; schedule it. We use OnCompleted rather than ContinueWith in // order to avoid running synchronously if the task has already completed by the time we get here but still run // synchronously as part of the task's completion if the task completes after (the more common case). _callback = callback; _task.ConfigureAwait(continueOnCapturedContext: false) .GetAwaiter() .OnCompleted(InvokeCallback); // allocates a delegate, but avoids a closure } } /// <summary>Invokes the callback.</summary> private void InvokeCallback() { Debug.Assert(!CompletedSynchronously); Debug.Assert(_callback != null); _callback.Invoke(this); } /// <summary>Gets a user-defined object that qualifies or contains information about an asynchronous operation.</summary> public object? AsyncState { get; } /// <summary>Gets a value that indicates whether the asynchronous operation completed synchronously.</summary> /// <remarks>This is set lazily based on whether the <see cref="_task"/> has completed by the time this object is created.</remarks> public bool CompletedSynchronously { get; } /// <summary>Gets a value that indicates whether the asynchronous operation has completed.</summary> public bool IsCompleted => _task.IsCompleted; /// <summary>Gets a <see cref="WaitHandle"/> that is used to wait for an asynchronous operation to complete.</summary> public WaitHandle AsyncWaitHandle => ((IAsyncResult)_task).AsyncWaitHandle; } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Metrics/Aggregator.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.Tracing; namespace System.Diagnostics.Metrics { internal abstract class Aggregator { // This can be called concurrently with Collect() public abstract void Update(double measurement); // This can be called concurrently with Update() public abstract IAggregationStatistics Collect(); } internal interface IAggregationStatistics { } internal readonly struct QuantileValue { public QuantileValue(double quantile, double value) { Quantile = quantile; Value = value; } public double Quantile { get; } public double Value { get; } } internal sealed class HistogramStatistics : IAggregationStatistics { internal HistogramStatistics(QuantileValue[] quantiles) { Quantiles = quantiles; } public QuantileValue[] Quantiles { get; } } internal sealed class LabeledAggregationStatistics { public LabeledAggregationStatistics(IAggregationStatistics stats, params KeyValuePair<string, string>[] labels) { AggregationStatistics = stats; Labels = labels; } public KeyValuePair<string, string>[] Labels { get; } public IAggregationStatistics AggregationStatistics { get; } } }
// 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.Tracing; namespace System.Diagnostics.Metrics { internal abstract class Aggregator { // This can be called concurrently with Collect() public abstract void Update(double measurement); // This can be called concurrently with Update() public abstract IAggregationStatistics Collect(); } internal interface IAggregationStatistics { } internal readonly struct QuantileValue { public QuantileValue(double quantile, double value) { Quantile = quantile; Value = value; } public double Quantile { get; } public double Value { get; } } internal sealed class HistogramStatistics : IAggregationStatistics { internal HistogramStatistics(QuantileValue[] quantiles) { Quantiles = quantiles; } public QuantileValue[] Quantiles { get; } } internal sealed class LabeledAggregationStatistics { public LabeledAggregationStatistics(IAggregationStatistics stats, params KeyValuePair<string, string>[] labels) { AggregationStatistics = stats; Labels = labels; } public KeyValuePair<string, string>[] Labels { get; } public IAggregationStatistics AggregationStatistics { get; } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/Methodical/int64/unsigned/ldc_mul.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; namespace JitTest { internal class Test { private static bool check(ulong op1, ulong op2, ulong product, bool overflow) { Console.Write("Multiplying {0} and {1}...", op1, op2); try { if (unchecked(op1 * op2) != product) return false; Console.WriteLine(); return !overflow; } catch (OverflowException) { Console.WriteLine("overflow."); return overflow; } } private static int Main() { if (!check(0x00000000ffffffff, 0x00000000ffffffff, 0xfffffffe00000001, false)) goto fail; if (!check(0x0000000100000000, 0x00000000ffffffff, 0xffffffff00000000, false)) goto fail; if (!check(0x0000000100000000, 0x0000000100000000, 0x0000000000000000, false)) goto fail; if (!check(0x7fffffffffffffff, 0x0000000000000002, 0xfffffffffffffffe, false)) goto fail; if (!check(0x8000000000000000, 0x0000000000000002, 0x0000000000000000, false)) goto fail; if (!check(0x0000000000100000, 0x0000001000000000, 0x0100000000000000, false)) goto fail; Console.WriteLine("Test passed"); return 100; fail: 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; namespace JitTest { internal class Test { private static bool check(ulong op1, ulong op2, ulong product, bool overflow) { Console.Write("Multiplying {0} and {1}...", op1, op2); try { if (unchecked(op1 * op2) != product) return false; Console.WriteLine(); return !overflow; } catch (OverflowException) { Console.WriteLine("overflow."); return overflow; } } private static int Main() { if (!check(0x00000000ffffffff, 0x00000000ffffffff, 0xfffffffe00000001, false)) goto fail; if (!check(0x0000000100000000, 0x00000000ffffffff, 0xffffffff00000000, false)) goto fail; if (!check(0x0000000100000000, 0x0000000100000000, 0x0000000000000000, false)) goto fail; if (!check(0x7fffffffffffffff, 0x0000000000000002, 0xfffffffffffffffe, false)) goto fail; if (!check(0x8000000000000000, 0x0000000000000002, 0x0000000000000000, false)) goto fail; if (!check(0x0000000000100000, 0x0000001000000000, 0x0100000000000000, false)) goto fail; Console.WriteLine("Test passed"); return 100; fail: Console.WriteLine("Test failed"); return 1; } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/jit64/valuetypes/nullable/castclass/generics/castclass-generics001.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="castclass-generics001.cs" /> <Compile Include="..\structdef.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="castclass-generics001.cs" /> <Compile Include="..\structdef.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/coreclr/tools/Common/TypeSystem/Common/ThrowHelper.Common.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.Text; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem { public static partial class ThrowHelper { [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(string nestedTypeName, ModuleDesc module) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, nestedTypeName, Format.Module(module)); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(string @namespace, string name, ModuleDesc module) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(@namespace, name), Format.Module(module)); } public static void ThrowTypeLoadException(string @namespace, string name, string moduleName) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(@namespace, name), moduleName); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(TypeDesc type) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(type), Format.OwningModule(type)); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(ExceptionStringID id, MethodDesc method) { ThrowTypeLoadException(id, Format.Type(method.OwningType), Format.OwningModule(method), Format.Method(method)); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(ExceptionStringID id, TypeDesc type, string messageArg) { ThrowTypeLoadException(id, Format.Type(type), Format.OwningModule(type), messageArg); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(ExceptionStringID id, TypeDesc type) { ThrowTypeLoadException(id, Format.Type(type), Format.OwningModule(type)); } private static partial class Format { public static string OwningModule(MethodDesc method) { return OwningModule(method.OwningType); } public static string Module(ModuleDesc module) { if (module == null) return "?"; IAssemblyDesc assembly = module as IAssemblyDesc; if (assembly != null) { return assembly.GetName().FullName; } else { Debug.Fail("Multi-module assemblies"); return module.ToString(); } } public static string Type(TypeDesc type) { return ExceptionTypeNameFormatter.Instance.FormatName(type); } public static string Type(string @namespace, string name) { return string.IsNullOrEmpty(@namespace) ? name : @namespace + "." + name; } public static string Field(TypeDesc owningType, string fieldName) { return Type(owningType) + "." + fieldName; } public static string Method(MethodDesc method) { return Method(method.OwningType, method.Name, method.Signature); } public static string Method(TypeDesc owningType, string methodName, MethodSignature signature) { StringBuilder sb = new StringBuilder(); if (signature != null) { sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(signature.ReturnType)); sb.Append(' '); } sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(owningType)); sb.Append('.'); sb.Append(methodName); if (signature != null) { sb.Append('('); for (int i = 0; i < signature.Length; i++) { if (i > 0) { sb.Append(", "); } sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(signature[i])); } sb.Append(')'); } return sb.ToString(); } } } }
// 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.Text; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem { public static partial class ThrowHelper { [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(string nestedTypeName, ModuleDesc module) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, nestedTypeName, Format.Module(module)); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(string @namespace, string name, ModuleDesc module) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(@namespace, name), Format.Module(module)); } public static void ThrowTypeLoadException(string @namespace, string name, string moduleName) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(@namespace, name), moduleName); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(TypeDesc type) { ThrowTypeLoadException(ExceptionStringID.ClassLoadGeneral, Format.Type(type), Format.OwningModule(type)); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(ExceptionStringID id, MethodDesc method) { ThrowTypeLoadException(id, Format.Type(method.OwningType), Format.OwningModule(method), Format.Method(method)); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(ExceptionStringID id, TypeDesc type, string messageArg) { ThrowTypeLoadException(id, Format.Type(type), Format.OwningModule(type), messageArg); } [System.Diagnostics.DebuggerHidden] public static void ThrowTypeLoadException(ExceptionStringID id, TypeDesc type) { ThrowTypeLoadException(id, Format.Type(type), Format.OwningModule(type)); } private static partial class Format { public static string OwningModule(MethodDesc method) { return OwningModule(method.OwningType); } public static string Module(ModuleDesc module) { if (module == null) return "?"; IAssemblyDesc assembly = module as IAssemblyDesc; if (assembly != null) { return assembly.GetName().FullName; } else { Debug.Fail("Multi-module assemblies"); return module.ToString(); } } public static string Type(TypeDesc type) { return ExceptionTypeNameFormatter.Instance.FormatName(type); } public static string Type(string @namespace, string name) { return string.IsNullOrEmpty(@namespace) ? name : @namespace + "." + name; } public static string Field(TypeDesc owningType, string fieldName) { return Type(owningType) + "." + fieldName; } public static string Method(MethodDesc method) { return Method(method.OwningType, method.Name, method.Signature); } public static string Method(TypeDesc owningType, string methodName, MethodSignature signature) { StringBuilder sb = new StringBuilder(); if (signature != null) { sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(signature.ReturnType)); sb.Append(' '); } sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(owningType)); sb.Append('.'); sb.Append(methodName); if (signature != null) { sb.Append('('); for (int i = 0; i < signature.Length; i++) { if (i > 0) { sb.Append(", "); } sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(signature[i])); } sb.Append(')'); } return sb.ToString(); } } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/opt/FastTailCall/FastTailCallInlining.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </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> <Optimize>True</Optimize> <JitOptimizationSensitive>True</JitOptimizationSensitive> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <Compile Include="FastTailCallInlining.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </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> <Optimize>True</Optimize> <JitOptimizationSensitive>True</JitOptimizationSensitive> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <Compile Include="FastTailCallInlining.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Linq.Expressions/src/System/Runtime/CompilerServices/DynamicAttribute.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; namespace System.Runtime.CompilerServices { /// <summary> /// Indicates that the use of <see cref="object"/> on a member is meant to be treated as a dynamically dispatched type. /// </summary> [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Struct)] public sealed class DynamicAttribute : Attribute { private readonly bool[] _transformFlags; /// <summary> /// Initializes a new instance of the <see cref="DynamicAttribute"/> class. /// </summary> /// <remarks> /// When used in an attribute specification, the default constructor is semantically /// equivalent to <c>DynamicAttribute({ true })</c>, and can be considered /// a shorthand for that expression. It should therefore only be used on an element /// of type <see cref="object"/>. /// </remarks> public DynamicAttribute() { _transformFlags = new bool[] { true }; } /// <summary> /// Initializes a new instance of the <see cref="DynamicAttribute"/> class. /// </summary> /// <param name="transformFlags">Specifies, in a prefix traversal of a type's /// construction, which <see cref="object"/> occurrences are meant to /// be treated as a dynamically dispatched type.</param> /// <remarks> /// This constructor is meant to be used on types that are built on an underlying /// occurrence of <see cref="object"/> that is meant to be treated dynamically. /// For instance, if <c>C</c> is a generic type with two type parameters, then a /// use of the constructed type<c>C&lt;<see cref="object"/>, <see cref="object"/>&gt;</c> /// might be intended to treat the first type argument dynamically and the second /// normally, in which case the appropriate attribute specification should /// use a <c>transformFlags</c> value of <c>{ false, true, false }</c>. /// </remarks> public DynamicAttribute(bool[] transformFlags!!) { _transformFlags = transformFlags; } /// <summary> /// Specifies, in a prefix traversal of a type's /// construction, which <see cref="object"/> occurrences are meant to /// be treated as a dynamically dispatched type. /// </summary> public IList<bool> TransformFlags { get { return _transformFlags; } } } }
// 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; namespace System.Runtime.CompilerServices { /// <summary> /// Indicates that the use of <see cref="object"/> on a member is meant to be treated as a dynamically dispatched type. /// </summary> [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Struct)] public sealed class DynamicAttribute : Attribute { private readonly bool[] _transformFlags; /// <summary> /// Initializes a new instance of the <see cref="DynamicAttribute"/> class. /// </summary> /// <remarks> /// When used in an attribute specification, the default constructor is semantically /// equivalent to <c>DynamicAttribute({ true })</c>, and can be considered /// a shorthand for that expression. It should therefore only be used on an element /// of type <see cref="object"/>. /// </remarks> public DynamicAttribute() { _transformFlags = new bool[] { true }; } /// <summary> /// Initializes a new instance of the <see cref="DynamicAttribute"/> class. /// </summary> /// <param name="transformFlags">Specifies, in a prefix traversal of a type's /// construction, which <see cref="object"/> occurrences are meant to /// be treated as a dynamically dispatched type.</param> /// <remarks> /// This constructor is meant to be used on types that are built on an underlying /// occurrence of <see cref="object"/> that is meant to be treated dynamically. /// For instance, if <c>C</c> is a generic type with two type parameters, then a /// use of the constructed type<c>C&lt;<see cref="object"/>, <see cref="object"/>&gt;</c> /// might be intended to treat the first type argument dynamically and the second /// normally, in which case the appropriate attribute specification should /// use a <c>transformFlags</c> value of <c>{ false, true, false }</c>. /// </remarks> public DynamicAttribute(bool[] transformFlags!!) { _transformFlags = transformFlags; } /// <summary> /// Specifies, in a prefix traversal of a type's /// construction, which <see cref="object"/> occurrences are meant to /// be treated as a dynamically dispatched type. /// </summary> public IList<bool> TransformFlags { get { return _transformFlags; } } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/TimestampAttribute.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.DataAnnotations { /// <summary> /// This attribute is used to mark a Timestamp member of a Type. /// </summary> [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class TimestampAttribute : 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.ComponentModel.DataAnnotations { /// <summary> /// This attribute is used to mark a Timestamp member of a Type. /// </summary> [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class TimestampAttribute : Attribute { } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Net.Http/tests/UnitTests/Headers/UriHeaderParserTest.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.Net.Http.Headers; using Xunit; namespace System.Net.Http.Tests { public class UriHeaderParserTest { [Fact] public void Properties_ReadValues_MatchExpectation() { UriHeaderParser parser = UriHeaderParser.RelativeOrAbsoluteUriParser; Assert.False(parser.SupportsMultipleValues); Assert.Null(parser.Comparer); } [Fact] public void TryParse_SetOfValidValueStrings_ParsedCorrectly() { // We don't need to validate all possible Uri values, since we use Uri.TryParse(). // Just make sure the parser calls Uri.TryParse() correctly. CheckValidParsedValue("/this/is/a/rel/uri", 0, new Uri("/this/is/a/rel/uri", UriKind.Relative), 18); CheckValidParsedValue("!! http://example.com/path,/ ", 2, new Uri("http://example.com/path,/"), 30); // Note that Uri.TryParse(.., UriKind.Relative) doesn't remove whitespace CheckValidParsedValue("!! /path/x,/ ", 2, new Uri(" /path/x,/ ", UriKind.Relative), 15); CheckValidParsedValue(" http://example.com/path/?query=value ", 2, new Uri("http://example.com/path/?query=value"), 41); CheckValidParsedValue(" http://example.com/path/?query=value \r\n ", 2, new Uri("http://example.com/path/?query=value"), 43); CheckValidParsedValue("http://idn-iis1.\u65E5\u672C\u56FD.microsoft.com/", 0, new Uri("http://idn-iis1.\u65E5\u672C\u56FD.microsoft.com/"), 34); CheckValidParsedValue("http://idn-iis1.\u00E6\u0097\u00A5\u00E6\u009C\u00AC\u00E5\u009B\u00BD.microsoft.com/", 0, new Uri("http://idn-iis1.\u65E5\u672C\u56FD.microsoft.com/"), 40); } [Fact] public void TryParse_SetOfInvalidValueStrings_ReturnsFalse() { CheckInvalidParsedValue("http://example.com,", 0); CheckInvalidParsedValue(null, 0); CheckInvalidParsedValue(null, 0); CheckInvalidParsedValue(string.Empty, 0); CheckInvalidParsedValue(string.Empty, 0); CheckInvalidParsedValue(" ", 2); CheckInvalidParsedValue(" ", 2); } #region Helper methods private void CheckValidParsedValue(string input, int startIndex, Uri expectedResult, int expectedIndex) { UriHeaderParser parser = UriHeaderParser.RelativeOrAbsoluteUriParser; object result = null; Assert.True(parser.TryParseValue(input, null, ref startIndex, out result), string.Format("TryParse returned false: {0}", input)); Assert.Equal(expectedIndex, startIndex); Assert.Equal(expectedResult, result); } private void CheckInvalidParsedValue(string input, int startIndex) { UriHeaderParser parser = UriHeaderParser.RelativeOrAbsoluteUriParser; object result = null; int newIndex = startIndex; Assert.False(parser.TryParseValue(input, null, ref newIndex, out result), string.Format("TryParse returned true: {0}", input)); Assert.Null(result); Assert.Equal(startIndex, newIndex); } #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.Net.Http.Headers; using Xunit; namespace System.Net.Http.Tests { public class UriHeaderParserTest { [Fact] public void Properties_ReadValues_MatchExpectation() { UriHeaderParser parser = UriHeaderParser.RelativeOrAbsoluteUriParser; Assert.False(parser.SupportsMultipleValues); Assert.Null(parser.Comparer); } [Fact] public void TryParse_SetOfValidValueStrings_ParsedCorrectly() { // We don't need to validate all possible Uri values, since we use Uri.TryParse(). // Just make sure the parser calls Uri.TryParse() correctly. CheckValidParsedValue("/this/is/a/rel/uri", 0, new Uri("/this/is/a/rel/uri", UriKind.Relative), 18); CheckValidParsedValue("!! http://example.com/path,/ ", 2, new Uri("http://example.com/path,/"), 30); // Note that Uri.TryParse(.., UriKind.Relative) doesn't remove whitespace CheckValidParsedValue("!! /path/x,/ ", 2, new Uri(" /path/x,/ ", UriKind.Relative), 15); CheckValidParsedValue(" http://example.com/path/?query=value ", 2, new Uri("http://example.com/path/?query=value"), 41); CheckValidParsedValue(" http://example.com/path/?query=value \r\n ", 2, new Uri("http://example.com/path/?query=value"), 43); CheckValidParsedValue("http://idn-iis1.\u65E5\u672C\u56FD.microsoft.com/", 0, new Uri("http://idn-iis1.\u65E5\u672C\u56FD.microsoft.com/"), 34); CheckValidParsedValue("http://idn-iis1.\u00E6\u0097\u00A5\u00E6\u009C\u00AC\u00E5\u009B\u00BD.microsoft.com/", 0, new Uri("http://idn-iis1.\u65E5\u672C\u56FD.microsoft.com/"), 40); } [Fact] public void TryParse_SetOfInvalidValueStrings_ReturnsFalse() { CheckInvalidParsedValue("http://example.com,", 0); CheckInvalidParsedValue(null, 0); CheckInvalidParsedValue(null, 0); CheckInvalidParsedValue(string.Empty, 0); CheckInvalidParsedValue(string.Empty, 0); CheckInvalidParsedValue(" ", 2); CheckInvalidParsedValue(" ", 2); } #region Helper methods private void CheckValidParsedValue(string input, int startIndex, Uri expectedResult, int expectedIndex) { UriHeaderParser parser = UriHeaderParser.RelativeOrAbsoluteUriParser; object result = null; Assert.True(parser.TryParseValue(input, null, ref startIndex, out result), string.Format("TryParse returned false: {0}", input)); Assert.Equal(expectedIndex, startIndex); Assert.Equal(expectedResult, result); } private void CheckInvalidParsedValue(string input, int startIndex) { UriHeaderParser parser = UriHeaderParser.RelativeOrAbsoluteUriParser; object result = null; int newIndex = startIndex; Assert.False(parser.TryParseValue(input, null, ref newIndex, out result), string.Format("TryParse returned true: {0}", input)); Assert.Null(result); Assert.Equal(startIndex, newIndex); } #endregion } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Net.NameResolution/ref/System.Net.NameResolution.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <Compile Include="System.Net.NameResolution.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\System.Net.Primitives\ref\System.Net.Primitives.csproj" /> <ProjectReference Include="..\..\System.Runtime\ref\System.Runtime.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <Compile Include="System.Net.NameResolution.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\System.Net.Primitives\ref\System.Net.Primitives.csproj" /> <ProjectReference Include="..\..\System.Runtime\ref\System.Runtime.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/native/external/rapidjson/internal/swap.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://opensource.org/licenses/MIT // // Unless required by applicable law or agreed to in writing, software distributed // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR // CONDITIONS OF ANY KIND, either express or implied. See the License for the // specific language governing permissions and limitations under the License. #ifndef RAPIDJSON_INTERNAL_SWAP_H_ #define RAPIDJSON_INTERNAL_SWAP_H_ #include "../rapidjson.h" #if defined(__clang__) RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_OFF(c++98-compat) #endif RAPIDJSON_NAMESPACE_BEGIN namespace internal { //! Custom swap() to avoid dependency on C++ <algorithm> header /*! \tparam T Type of the arguments to swap, should be instantiated with primitive C++ types only. \note This has the same semantics as std::swap(). */ template <typename T> inline void Swap(T& a, T& b) RAPIDJSON_NOEXCEPT { T tmp = a; a = b; b = tmp; } } // namespace internal RAPIDJSON_NAMESPACE_END #if defined(__clang__) RAPIDJSON_DIAG_POP #endif #endif // RAPIDJSON_INTERNAL_SWAP_H_
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://opensource.org/licenses/MIT // // Unless required by applicable law or agreed to in writing, software distributed // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR // CONDITIONS OF ANY KIND, either express or implied. See the License for the // specific language governing permissions and limitations under the License. #ifndef RAPIDJSON_INTERNAL_SWAP_H_ #define RAPIDJSON_INTERNAL_SWAP_H_ #include "../rapidjson.h" #if defined(__clang__) RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_OFF(c++98-compat) #endif RAPIDJSON_NAMESPACE_BEGIN namespace internal { //! Custom swap() to avoid dependency on C++ <algorithm> header /*! \tparam T Type of the arguments to swap, should be instantiated with primitive C++ types only. \note This has the same semantics as std::swap(). */ template <typename T> inline void Swap(T& a, T& b) RAPIDJSON_NOEXCEPT { T tmp = a; a = b; b = tmp; } } // namespace internal RAPIDJSON_NAMESPACE_END #if defined(__clang__) RAPIDJSON_DIAG_POP #endif #endif // RAPIDJSON_INTERNAL_SWAP_H_
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/IL_Conformance/Old/Conformance_Base/rem_r4.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 legacy library mscorlib {} .class public _rem { //-- .method public static int32 _rem(float32,float32,float32) { .maxstack 3 .locals (int32) // -- load args _and divide ldarg 0 ldarg 1 rem // -- dup so the result remains after _call to checkfinite dup // -- see if our number is finite (_ret val of 0 is finite) call int32 _rem::checkfinite(float32) ldc.i4 0x0 ceq // -- If the result is finite, branch brtrue COMPARE // -- our result was _not finite, now check abnormal case // -- call checkfinite again on the initial result // -- should return 1 for NaN, 2 fo -inf, 3 for +inf, _and 255 for error call int32 _rem::checkfinite(float32) stloc 0 ldloc 0 ldc.i4 0xFF ceq brtrue FAIL // error while determining type // -- call checkfinite on our expected value. ldarg 2 call int32 _rem::checkfinite(float32) // -- if the results are == we PASS. If _not, FAIL. ldloc 0 ceq // -- cannot be finite // -- if the results are == we PASS. If _not, FAIL. brfalse FAIL ldc.i4 0x1 br FINISH COMPARE: // -- our result was a finite number. // -- compare it to our expected result. ldarg 2 ceq brfalse FAIL ldc.i4 0x1 br FINISH FAIL: ldc.i4 0x0 br FINISH FINISH: ret } //----------------------------- .method public static int32 checkfinite(float32) { .locals (class [mscorlib]System.ArithmeticException) .maxstack 3 // -- 0 if finite // -- 1 for NaN // -- 2 for -inf // -- 3 for +inf // -- 255 (0xFF) none of the above try_start: ldarg 0 ckfinite pop leave.s try_end try_end: // -- our result is a finite number. ldc.i4 0x0 br FINISH ae: // -- our result is NaN, +inf, _or -inf. Find out which one. isinst [mscorlib]System.ArithmeticException stloc 0 leave HEnd HEnd: ldloc 0 brfalse FAIL // -- check for -inf ldarg 0 ldc.r4 float32(0xFF800000) ceq brtrue NINF // -- check for +inf ldarg 0 ldc.r4 float32(0x7F800000) ceq brtrue PINF // -- must be NaN ldc.i4 0x00000001 br FINISH NINF: ldc.i4 0x00000002 br FINISH PINF: ldc.i4 0x00000003 br FINISH NaN: ldc.i4 0x00000001 br FINISH FAIL: // pop ldc.i4 0xFF br FINISH FINISH: ret .try try_start to try_end catch [mscorlib]System.ArithmeticException handler ae to HEnd } // -- Begin Main -------------------- .method public static int32 main(class [mscorlib]System.String[]) { .entrypoint .maxstack 20 // -- -inf/-inf -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/-min -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/-1 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/-0 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+0 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+1 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+max -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+inf -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf.NaN -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf.float32 -- ldc.r4 float32(0xFF800000) ldc.r4 1.5 ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- -min/-inf -- ldc.r4 float32(0xFF7FFFFF) dup call void [System.Console]System.Console::WriteLine(float32) ldc.r4 float32(0xFF800000) dup call void [System.Console]System.Console::WriteLine(float32) ldc.r4 float32(0xFF7FFFFF) dup call void [System.Console]System.Console::WriteLine(float32) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/-min -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/-1 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/-0 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+0 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+1 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+max -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+inf -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7F800000) ldc.r4 float32(0xFF7FFFFF) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min.NaN -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min.float32 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 1.5 ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- -1/-inf -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/-min -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/-1 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/-0 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+0 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+1 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+max -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+inf -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1.NaN -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1.float32 -- ldc.r4 float32(0xBF800000) ldc.r4 1.5 ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- -0/-inf -- ldc.r4 float32(0x80000000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/-min -- ldc.r4 float32(0x80000000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/-1 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/-0 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+0 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+1 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+max -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+inf -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0.NaN -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0.float32 -- ldc.r4 float32(0x80000000) ldc.r4 1.5 ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +0/-inf -- ldc.r4 float32(0x00000000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/-min -- ldc.r4 float32(0x00000000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/-1 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/-0 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+0 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+1 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+max -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+inf -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0.NaN -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0.float32 -- ldc.r4 float32(0x00000000) ldc.r4 1.5 ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +1/-inf -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/-min -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/-1 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/-0 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+0 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+1 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+max -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+inf -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1.NaN -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1.float32 -- ldc.r4 float32(0x3F800000) ldc.r4 1.5 ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +max/-inf -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7F7FFFFF) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/-min -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/-1 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/-0 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+0 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+1 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+max -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+inf -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7F7FFFFF) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max.NaN -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max.float32 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 1.5 ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +inf/-inf -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/-min -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/-1 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/-0 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+0 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+1 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+max -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+inf -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf.NaN -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf.float32 -- ldc.r4 float32(0x7F800000) ldc.r4 1.5 ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- NaN/-inf -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/-min -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/-1 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/-0 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+0 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+1 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+max -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+inf -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN.NaN -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN.float32 -- ldc.r4 float32(0x7FC00000) ldc.r4 1.5 ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- float32/-inf -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/-min -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/-1 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x3F000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/-0 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+0 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+1 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x3F000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+max -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+inf -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32.NaN -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32.float32 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- PASS -- ldc.i4 100 ret // -- FAIL -- FAIL: ldc.i4 0x0 ret // -- End Main ---------------------- } // // -- EOF --------------------------- } // ---------------------------------- .assembly rem_r4{}
// 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 legacy library mscorlib {} .class public _rem { //-- .method public static int32 _rem(float32,float32,float32) { .maxstack 3 .locals (int32) // -- load args _and divide ldarg 0 ldarg 1 rem // -- dup so the result remains after _call to checkfinite dup // -- see if our number is finite (_ret val of 0 is finite) call int32 _rem::checkfinite(float32) ldc.i4 0x0 ceq // -- If the result is finite, branch brtrue COMPARE // -- our result was _not finite, now check abnormal case // -- call checkfinite again on the initial result // -- should return 1 for NaN, 2 fo -inf, 3 for +inf, _and 255 for error call int32 _rem::checkfinite(float32) stloc 0 ldloc 0 ldc.i4 0xFF ceq brtrue FAIL // error while determining type // -- call checkfinite on our expected value. ldarg 2 call int32 _rem::checkfinite(float32) // -- if the results are == we PASS. If _not, FAIL. ldloc 0 ceq // -- cannot be finite // -- if the results are == we PASS. If _not, FAIL. brfalse FAIL ldc.i4 0x1 br FINISH COMPARE: // -- our result was a finite number. // -- compare it to our expected result. ldarg 2 ceq brfalse FAIL ldc.i4 0x1 br FINISH FAIL: ldc.i4 0x0 br FINISH FINISH: ret } //----------------------------- .method public static int32 checkfinite(float32) { .locals (class [mscorlib]System.ArithmeticException) .maxstack 3 // -- 0 if finite // -- 1 for NaN // -- 2 for -inf // -- 3 for +inf // -- 255 (0xFF) none of the above try_start: ldarg 0 ckfinite pop leave.s try_end try_end: // -- our result is a finite number. ldc.i4 0x0 br FINISH ae: // -- our result is NaN, +inf, _or -inf. Find out which one. isinst [mscorlib]System.ArithmeticException stloc 0 leave HEnd HEnd: ldloc 0 brfalse FAIL // -- check for -inf ldarg 0 ldc.r4 float32(0xFF800000) ceq brtrue NINF // -- check for +inf ldarg 0 ldc.r4 float32(0x7F800000) ceq brtrue PINF // -- must be NaN ldc.i4 0x00000001 br FINISH NINF: ldc.i4 0x00000002 br FINISH PINF: ldc.i4 0x00000003 br FINISH NaN: ldc.i4 0x00000001 br FINISH FAIL: // pop ldc.i4 0xFF br FINISH FINISH: ret .try try_start to try_end catch [mscorlib]System.ArithmeticException handler ae to HEnd } // -- Begin Main -------------------- .method public static int32 main(class [mscorlib]System.String[]) { .entrypoint .maxstack 20 // -- -inf/-inf -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/-min -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/-1 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/-0 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+0 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+1 -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+max -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf/+inf -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf.NaN -- ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -inf.float32 -- ldc.r4 float32(0xFF800000) ldc.r4 1.5 ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- -min/-inf -- ldc.r4 float32(0xFF7FFFFF) dup call void [System.Console]System.Console::WriteLine(float32) ldc.r4 float32(0xFF800000) dup call void [System.Console]System.Console::WriteLine(float32) ldc.r4 float32(0xFF7FFFFF) dup call void [System.Console]System.Console::WriteLine(float32) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/-min -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/-1 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/-0 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+0 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+1 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+max -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min/+inf -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7F800000) ldc.r4 float32(0xFF7FFFFF) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min.NaN -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -min.float32 -- ldc.r4 float32(0xFF7FFFFF) ldc.r4 1.5 ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- -1/-inf -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/-min -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/-1 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/-0 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+0 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+1 -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+max -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1/+inf -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1.NaN -- ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -1.float32 -- ldc.r4 float32(0xBF800000) ldc.r4 1.5 ldc.r4 float32(0xBF800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- -0/-inf -- ldc.r4 float32(0x80000000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/-min -- ldc.r4 float32(0x80000000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/-1 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/-0 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+0 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+1 -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+max -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0/+inf -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0.NaN -- ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- -0.float32 -- ldc.r4 float32(0x80000000) ldc.r4 1.5 ldc.r4 float32(0x80000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +0/-inf -- ldc.r4 float32(0x00000000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/-min -- ldc.r4 float32(0x00000000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/-1 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/-0 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+0 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+1 -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+max -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0/+inf -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0.NaN -- ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +0.float32 -- ldc.r4 float32(0x00000000) ldc.r4 1.5 ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +1/-inf -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/-min -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/-1 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/-0 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+0 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+1 -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+max -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1/+inf -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1.NaN -- ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +1.float32 -- ldc.r4 float32(0x3F800000) ldc.r4 1.5 ldc.r4 float32(0x3F800000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +max/-inf -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7F7FFFFF) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/-min -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/-1 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/-0 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+0 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+1 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+max -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max/+inf -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7F7FFFFF) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max.NaN -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +max.float32 -- ldc.r4 float32(0x7F7FFFFF) ldc.r4 1.5 ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- +inf/-inf -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/-min -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/-1 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/-0 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+0 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+1 -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+max -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf/+inf -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf.NaN -- ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- +inf.float32 -- ldc.r4 float32(0x7F800000) ldc.r4 1.5 ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- NaN/-inf -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/-min -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/-1 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/-0 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+0 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+1 -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+max -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN/+inf -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN.NaN -- ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- NaN.float32 -- ldc.r4 float32(0x7FC00000) ldc.r4 1.5 ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL //----------------------------- // -- float32/-inf -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0xFF800000) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/-min -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0xFF7FFFFF) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/-1 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0xBF800000) ldc.r4 float32(0x3F000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/-0 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x80000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+0 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x00000000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+1 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x3F800000) ldc.r4 float32(0x3F000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+max -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x7F7FFFFF) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32/+inf -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x7F800000) ldc.r4 float32(0x3FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32.NaN -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x7FC00000) ldc.r4 float32(0x7FC00000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- float32.float32 -- ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x3FC00000) ldc.r4 float32(0x00000000) call int32 _rem::_rem(float32,float32,float32) brfalse FAIL // -- PASS -- ldc.i4 100 ret // -- FAIL -- FAIL: ldc.i4 0x0 ret // -- End Main ---------------------- } // // -- EOF --------------------------- } // ---------------------------------- .assembly rem_r4{}
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/Abs.Vector64.SByte.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 Abs_Vector64_SByte() { var test = new SimpleUnaryOpTest__Abs_Vector64_SByte(); 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__Abs_Vector64_SByte { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(SByte[] inArray1, Byte[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<SByte>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Byte>(); 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<SByte, 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<SByte> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref testStruct._fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__Abs_Vector64_SByte testClass) { var result = AdvSimd.Abs(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__Abs_Vector64_SByte testClass) { fixed (Vector64<SByte>* pFld1 = &_fld1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(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<SByte>>() / sizeof(SByte); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Byte>>() / sizeof(Byte); private static SByte[] _data1 = new SByte[Op1ElementCount]; private static Vector64<SByte> _clsVar1; private Vector64<SByte> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__Abs_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _clsVar1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); } public SimpleUnaryOpTest__Abs_Vector64_SByte() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } _dataTable = new DataTable(_data1, 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.Abs( Unsafe.Read<Vector64<SByte>>(_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.Abs( AdvSimd.LoadVector64((SByte*)(_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).GetMethod(nameof(AdvSimd.Abs), new Type[] { typeof(Vector64<SByte>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Abs), new Type[] { typeof(Vector64<SByte>) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Abs( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<SByte>* pClsVar1 = &_clsVar1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(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<SByte>>(_dataTable.inArray1Ptr); var result = AdvSimd.Abs(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var result = AdvSimd.Abs(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__Abs_Vector64_SByte(); var result = AdvSimd.Abs(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__Abs_Vector64_SByte(); fixed (Vector64<SByte>* pFld1 = &test._fld1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Abs(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<SByte>* pFld1 = &_fld1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(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.Abs(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.Abs( AdvSimd.LoadVector64((SByte*)(&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<SByte> op1, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; Byte[] outArray = new Byte[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; Byte[] outArray = new Byte[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<SByte>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(SByte[] firstOp, Byte[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.Abs(firstOp[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.Abs)}<Byte>(Vector64<SByte>): {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 Abs_Vector64_SByte() { var test = new SimpleUnaryOpTest__Abs_Vector64_SByte(); 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__Abs_Vector64_SByte { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(SByte[] inArray1, Byte[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<SByte>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Byte>(); 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<SByte, 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<SByte> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref testStruct._fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__Abs_Vector64_SByte testClass) { var result = AdvSimd.Abs(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__Abs_Vector64_SByte testClass) { fixed (Vector64<SByte>* pFld1 = &_fld1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(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<SByte>>() / sizeof(SByte); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Byte>>() / sizeof(Byte); private static SByte[] _data1 = new SByte[Op1ElementCount]; private static Vector64<SByte> _clsVar1; private Vector64<SByte> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__Abs_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _clsVar1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); } public SimpleUnaryOpTest__Abs_Vector64_SByte() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<SByte>, byte>(ref _fld1), ref Unsafe.As<SByte, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<SByte>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = (sbyte)-TestLibrary.Generator.GetSByte(); } _dataTable = new DataTable(_data1, 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.Abs( Unsafe.Read<Vector64<SByte>>(_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.Abs( AdvSimd.LoadVector64((SByte*)(_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).GetMethod(nameof(AdvSimd.Abs), new Type[] { typeof(Vector64<SByte>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<SByte>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Abs), new Type[] { typeof(Vector64<SByte>) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Byte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Abs( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<SByte>* pClsVar1 = &_clsVar1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(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<SByte>>(_dataTable.inArray1Ptr); var result = AdvSimd.Abs(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((SByte*)(_dataTable.inArray1Ptr)); var result = AdvSimd.Abs(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__Abs_Vector64_SByte(); var result = AdvSimd.Abs(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__Abs_Vector64_SByte(); fixed (Vector64<SByte>* pFld1 = &test._fld1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Abs(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<SByte>* pFld1 = &_fld1) { var result = AdvSimd.Abs( AdvSimd.LoadVector64((SByte*)(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.Abs(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.Abs( AdvSimd.LoadVector64((SByte*)(&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<SByte> op1, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; Byte[] outArray = new Byte[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { SByte[] inArray1 = new SByte[Op1ElementCount]; Byte[] outArray = new Byte[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<SByte>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Byte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Byte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(SByte[] firstOp, Byte[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.Abs(firstOp[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.Abs)}<Byte>(Vector64<SByte>): {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,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLString.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.Data.Common; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Text; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; using System.Diagnostics.CodeAnalysis; namespace System.Data.SqlTypes { // Options that are used in comparison [Flags] [System.Runtime.CompilerServices.TypeForwardedFrom("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] public enum SqlCompareOptions { None = 0x00000000, IgnoreCase = 0x00000001, IgnoreNonSpace = 0x00000002, IgnoreKanaType = 0x00000008, // ignore kanatype IgnoreWidth = 0x00000010, // ignore width BinarySort = 0x00008000, // binary sorting BinarySort2 = 0x00004000, // binary sorting 2 } /// <summary> /// Represents a variable-length stream of characters to be stored in or retrieved from the database. /// </summary> [Serializable] [StructLayout(LayoutKind.Sequential)] [XmlSchemaProvider("GetXsdType")] [System.Runtime.CompilerServices.TypeForwardedFrom("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] public struct SqlString : INullable, IComparable, IXmlSerializable, IEquatable<SqlString> { private string? m_value; // Do not rename (binary serialization) private CompareInfo? m_cmpInfo; // Do not rename (binary serialization) private readonly int m_lcid; // Locale Id. Do not rename (binary serialization) private readonly SqlCompareOptions m_flag; // Compare flags. Do not rename (binary serialization) private bool m_fNotNull; // false if null. Do not rename (binary serialization) /// <summary> /// Represents a null value that can be assigned to the <see cref='System.Data.SqlTypes.SqlString.Value'/> property of an instance of /// the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public static readonly SqlString Null = new SqlString(true); internal static readonly UnicodeEncoding s_unicodeEncoding = new UnicodeEncoding(); /// <summary> /// </summary> public static readonly int IgnoreCase = 0x1; /// <summary> /// </summary> public static readonly int IgnoreWidth = 0x10; /// <summary> /// </summary> public static readonly int IgnoreNonSpace = 0x2; /// <summary> /// </summary> public static readonly int IgnoreKanaType = 0x8; /// <summary> /// </summary> public static readonly int BinarySort = 0x8000; /// <summary> /// </summary> public static readonly int BinarySort2 = 0x4000; private const SqlCompareOptions s_iDefaultFlag = SqlCompareOptions.IgnoreCase | SqlCompareOptions.IgnoreKanaType | SqlCompareOptions.IgnoreWidth; private const CompareOptions s_iValidCompareOptionMask = CompareOptions.IgnoreCase | CompareOptions.IgnoreWidth | CompareOptions.IgnoreNonSpace | CompareOptions.IgnoreKanaType; internal const SqlCompareOptions s_iValidSqlCompareOptionMask = SqlCompareOptions.IgnoreCase | SqlCompareOptions.IgnoreWidth | SqlCompareOptions.IgnoreNonSpace | SqlCompareOptions.IgnoreKanaType | SqlCompareOptions.BinarySort | SqlCompareOptions.BinarySort2; internal const int s_lcidUSEnglish = 0x00000409; private const int s_lcidBinary = 0x00008200; // constructor // construct a Null private SqlString(bool fNull) { m_value = null; m_cmpInfo = null; m_lcid = 0; m_flag = SqlCompareOptions.None; m_fNotNull = false; } // Constructor: Construct from both Unicode and NonUnicode data, according to fUnicode /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[]? data, int index, int count, bool fUnicode) { m_lcid = lcid; ValidateSqlCompareOptions(compareOptions); m_flag = compareOptions; if (data == null) { m_fNotNull = false; m_value = null; m_cmpInfo = null; } else { m_fNotNull = true; // m_cmpInfo is set lazily, so that we don't need to pay the cost // unless the string is used in comparison. m_cmpInfo = null; if (fUnicode) { m_value = s_unicodeEncoding.GetString(data, index, count); } else { CultureInfo culInfo = new CultureInfo(m_lcid); Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage); m_value = cpe.GetString(data, index, count); } } } // Constructor: Construct from both Unicode and NonUnicode data, according to fUnicode /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[] data, bool fUnicode) : this(lcid, compareOptions, data, 0, data.Length, fUnicode) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[]? data, int index, int count) : this(lcid, compareOptions, data, index, count, true) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[] data) : this(lcid, compareOptions, data, 0, data.Length, true) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(string? data, int lcid, SqlCompareOptions compareOptions) { m_lcid = lcid; ValidateSqlCompareOptions(compareOptions); m_flag = compareOptions; m_cmpInfo = null; if (data == null) { m_fNotNull = false; m_value = null; } else { m_fNotNull = true; m_value = data; } } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(string? data, int lcid) : this(data, lcid, s_iDefaultFlag) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(string? data) : this(data, System.Globalization.CultureInfo.CurrentCulture.LCID, s_iDefaultFlag) { } private SqlString(int lcid, SqlCompareOptions compareOptions, string? data, CompareInfo? cmpInfo) { m_lcid = lcid; ValidateSqlCompareOptions(compareOptions); m_flag = compareOptions; if (data == null) { m_fNotNull = false; m_value = null; m_cmpInfo = null; } else { m_value = data; m_cmpInfo = cmpInfo; m_fNotNull = true; } } // INullable /// <summary> /// Gets whether the <see cref='System.Data.SqlTypes.SqlString.Value'/> of the <see cref='System.Data.SqlTypes.SqlString'/> is <see cref='System.Data.SqlTypes.SqlString.Null'/>. /// </summary> public bool IsNull { get { return !m_fNotNull; } } // property: Value /// <summary> /// Gets the string that is to be stored. /// </summary> public string Value { get { if (!IsNull) return m_value!; else throw new SqlNullValueException(); } } public int LCID { get { if (!IsNull) return m_lcid; else throw new SqlNullValueException(); } } public CultureInfo CultureInfo { get { if (!IsNull) return CultureInfo.GetCultureInfo(m_lcid); else throw new SqlNullValueException(); } } private void SetCompareInfo() { Debug.Assert(!IsNull); if (m_cmpInfo == null) m_cmpInfo = (CultureInfo.GetCultureInfo(m_lcid)).CompareInfo; } public CompareInfo CompareInfo { get { if (!IsNull) { SetCompareInfo(); return m_cmpInfo!; } else throw new SqlNullValueException(); } } public SqlCompareOptions SqlCompareOptions { get { if (!IsNull) return m_flag; else throw new SqlNullValueException(); } } // Implicit conversion from String to SqlString public static implicit operator SqlString(string x) { return new SqlString(x); } // Explicit conversion from SqlString to String. Throw exception if x is Null. public static explicit operator string(SqlString x) { return x.Value; } /// <summary> /// Converts a <see cref='System.Data.SqlTypes.SqlString'/> object to a string. /// </summary> public override string ToString() { return IsNull ? SQLResource.NullString : m_value!; } public byte[]? GetUnicodeBytes() { if (IsNull) return null; return s_unicodeEncoding.GetBytes(m_value!); } public byte[]? GetNonUnicodeBytes() { if (IsNull) return null; // Get the CultureInfo CultureInfo culInfo = new CultureInfo(m_lcid); Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage); return cpe.GetBytes(m_value!); } /* internal int GetSQLCID() { if (IsNull) throw new SqlNullValueException(); return MAKECID(m_lcid, m_flag); } */ // Binary operators // Concatenation public static SqlString operator +(SqlString x, SqlString y) { if (x.IsNull || y.IsNull) return SqlString.Null; if (x.m_lcid != y.m_lcid || x.m_flag != y.m_flag) throw new SqlTypeException(SQLResource.ConcatDiffCollationMessage); return new SqlString(x.m_lcid, x.m_flag, x.m_value + y.m_value, (x.m_cmpInfo == null) ? y.m_cmpInfo : x.m_cmpInfo); } // StringCompare: Common compare function which is used by Compare and CompareTo // In the case of Compare (used by comparison operators) the int result needs to be converted to SqlBoolean type // while CompareTo needs the result in int type // Pre-requisite: the null condition of the both string needs to be checked and handled by the caller of this function private static int StringCompare(SqlString x, SqlString y) { Debug.Assert(!x.IsNull && !y.IsNull, "!x.IsNull && !y.IsNull", "Null condition should be handled by the caller of StringCompare method"); if (x.m_lcid != y.m_lcid || x.m_flag != y.m_flag) throw new SqlTypeException(SQLResource.CompareDiffCollationMessage); x.SetCompareInfo(); y.SetCompareInfo(); Debug.Assert(x.FBinarySort() || (x.m_cmpInfo != null && y.m_cmpInfo != null), "x.FBinarySort() || (x.m_cmpInfo != null && y.m_cmpInfo != null)", ""); int iCmpResult; if ((x.m_flag & SqlCompareOptions.BinarySort) != 0) iCmpResult = CompareBinary(x, y); else if ((x.m_flag & SqlCompareOptions.BinarySort2) != 0) iCmpResult = CompareBinary2(x, y); else { // SqlString can be padded with spaces (Padding is turn on by default in SQL Server 2008 // Trim the trailing space for comparison // Avoid using String.TrimEnd function to avoid extra string allocations string rgchX = x.m_value!; string rgchY = y.m_value!; int cwchX = rgchX.Length; int cwchY = rgchY.Length; while (cwchX > 0 && rgchX[cwchX - 1] == ' ') cwchX--; while (cwchY > 0 && rgchY[cwchY - 1] == ' ') cwchY--; CompareOptions options = CompareOptionsFromSqlCompareOptions(x.m_flag); iCmpResult = x.m_cmpInfo!.Compare(x.m_value, 0, cwchX, y.m_value, 0, cwchY, options); } return iCmpResult; } // Comparison operators private static SqlBoolean Compare(SqlString x, SqlString y, EComparison ecExpectedResult) { if (x.IsNull || y.IsNull) return SqlBoolean.Null; int iCmpResult = StringCompare(x, y); bool fResult; switch (ecExpectedResult) { case EComparison.EQ: fResult = (iCmpResult == 0); break; case EComparison.LT: fResult = (iCmpResult < 0); break; case EComparison.LE: fResult = (iCmpResult <= 0); break; case EComparison.GT: fResult = (iCmpResult > 0); break; case EComparison.GE: fResult = (iCmpResult >= 0); break; default: Debug.Fail("Invalid ecExpectedResult"); return SqlBoolean.Null; } return new SqlBoolean(fResult); } // Implicit conversions // Explicit conversions // Explicit conversion from SqlBoolean to SqlString public static explicit operator SqlString(SqlBoolean x) { return x.IsNull ? Null : new SqlString((x.Value).ToString()); } // Explicit conversion from SqlByte to SqlString public static explicit operator SqlString(SqlByte x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlInt16 to SqlString public static explicit operator SqlString(SqlInt16 x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlInt32 to SqlString public static explicit operator SqlString(SqlInt32 x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlInt64 to SqlString public static explicit operator SqlString(SqlInt64 x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlSingle to SqlString public static explicit operator SqlString(SqlSingle x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlDouble to SqlString public static explicit operator SqlString(SqlDouble x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlDecimal to SqlString public static explicit operator SqlString(SqlDecimal x) { return x.IsNull ? Null : new SqlString(x.ToString()); } // Explicit conversion from SqlMoney to SqlString public static explicit operator SqlString(SqlMoney x) { return x.IsNull ? Null : new SqlString(x.ToString()); } // Explicit conversion from SqlDateTime to SqlString public static explicit operator SqlString(SqlDateTime x) { return x.IsNull ? Null : new SqlString(x.ToString()); } // Explicit conversion from SqlGuid to SqlString public static explicit operator SqlString(SqlGuid x) { return x.IsNull ? Null : new SqlString(x.ToString()); } public SqlString Clone() { if (IsNull) return new SqlString(true); else { SqlString ret = new SqlString(m_value!, m_lcid, m_flag); return ret; } } // Overloading comparison operators public static SqlBoolean operator ==(SqlString x, SqlString y) { return Compare(x, y, EComparison.EQ); } public static SqlBoolean operator !=(SqlString x, SqlString y) { return !(x == y); } public static SqlBoolean operator <(SqlString x, SqlString y) { return Compare(x, y, EComparison.LT); } public static SqlBoolean operator >(SqlString x, SqlString y) { return Compare(x, y, EComparison.GT); } public static SqlBoolean operator <=(SqlString x, SqlString y) { return Compare(x, y, EComparison.LE); } public static SqlBoolean operator >=(SqlString x, SqlString y) { return Compare(x, y, EComparison.GE); } //-------------------------------------------------- // Alternative methods for overloaded operators //-------------------------------------------------- // Alternative method for operator + public static SqlString Concat(SqlString x, SqlString y) { return x + y; } public static SqlString Add(SqlString x, SqlString y) { return x + y; } // Alternative method for operator == public static SqlBoolean Equals(SqlString x, SqlString y) { return (x == y); } // Alternative method for operator != public static SqlBoolean NotEquals(SqlString x, SqlString y) { return (x != y); } // Alternative method for operator < public static SqlBoolean LessThan(SqlString x, SqlString y) { return (x < y); } // Alternative method for operator > public static SqlBoolean GreaterThan(SqlString x, SqlString y) { return (x > y); } // Alternative method for operator <= public static SqlBoolean LessThanOrEqual(SqlString x, SqlString y) { return (x <= y); } // Alternative method for operator >= public static SqlBoolean GreaterThanOrEqual(SqlString x, SqlString y) { return (x >= y); } // Alternative method for conversions. public SqlBoolean ToSqlBoolean() { return (SqlBoolean)this; } public SqlByte ToSqlByte() { return (SqlByte)this; } public SqlDateTime ToSqlDateTime() { return (SqlDateTime)this; } public SqlDouble ToSqlDouble() { return (SqlDouble)this; } public SqlInt16 ToSqlInt16() { return (SqlInt16)this; } public SqlInt32 ToSqlInt32() { return (SqlInt32)this; } public SqlInt64 ToSqlInt64() { return (SqlInt64)this; } public SqlMoney ToSqlMoney() { return (SqlMoney)this; } public SqlDecimal ToSqlDecimal() { return (SqlDecimal)this; } public SqlSingle ToSqlSingle() { return (SqlSingle)this; } public SqlGuid ToSqlGuid() { return (SqlGuid)this; } // Utility functions and constants private static void ValidateSqlCompareOptions(SqlCompareOptions compareOptions) { if ((compareOptions & s_iValidSqlCompareOptionMask) != compareOptions) throw new ArgumentOutOfRangeException(nameof(compareOptions)); } public static CompareOptions CompareOptionsFromSqlCompareOptions(SqlCompareOptions compareOptions) { CompareOptions options = CompareOptions.None; ValidateSqlCompareOptions(compareOptions); if ((compareOptions & (SqlCompareOptions.BinarySort | SqlCompareOptions.BinarySort2)) != 0) throw ADP.ArgumentOutOfRange(nameof(compareOptions)); else { if ((compareOptions & SqlCompareOptions.IgnoreCase) != 0) options |= CompareOptions.IgnoreCase; if ((compareOptions & SqlCompareOptions.IgnoreNonSpace) != 0) options |= CompareOptions.IgnoreNonSpace; if ((compareOptions & SqlCompareOptions.IgnoreKanaType) != 0) options |= CompareOptions.IgnoreKanaType; if ((compareOptions & SqlCompareOptions.IgnoreWidth) != 0) options |= CompareOptions.IgnoreWidth; } return options; } private bool FBinarySort() { return (!IsNull && (m_flag & (SqlCompareOptions.BinarySort | SqlCompareOptions.BinarySort2)) != 0); } // Wide-character string comparison for Binary Unicode Collation // Return values: // -1 : wstr1 < wstr2 // 0 : wstr1 = wstr2 // 1 : wstr1 > wstr2 // // Does a memory comparison. private static int CompareBinary(SqlString x, SqlString y) { byte[] rgDataX = s_unicodeEncoding.GetBytes(x.m_value!); byte[] rgDataY = s_unicodeEncoding.GetBytes(y.m_value!); int cbX = rgDataX.Length; int cbY = rgDataY.Length; int cbMin = cbX < cbY ? cbX : cbY; int i; Debug.Assert(cbX % 2 == 0); Debug.Assert(cbY % 2 == 0); for (i = 0; i < cbMin; i++) { if (rgDataX[i] < rgDataY[i]) return -1; else if (rgDataX[i] > rgDataY[i]) return 1; } i = cbMin; int iCh; int iSpace = ' '; if (cbX < cbY) { for (; i < cbY; i += 2) { iCh = rgDataY[i + 1] << 8 + rgDataY[i]; if (iCh != iSpace) return (iSpace > iCh) ? 1 : -1; } } else { for (; i < cbX; i += 2) { iCh = rgDataX[i + 1] << 8 + rgDataX[i]; if (iCh != iSpace) return (iCh > iSpace) ? 1 : -1; } } return 0; } // Wide-character string comparison for Binary2 Unicode Collation // Return values: // -1 : wstr1 < wstr2 // 0 : wstr1 = wstr2 // 1 : wstr1 > wstr2 // // Does a wchar comparison (different from memcmp of BinarySort). private static int CompareBinary2(SqlString x, SqlString y) { Debug.Assert(!x.IsNull && !y.IsNull); string rgDataX = x.m_value!; string rgDataY = y.m_value!; int cwchX = rgDataX.Length; int cwchY = rgDataY.Length; int cwchMin = cwchX < cwchY ? cwchX : cwchY; int i; for (i = 0; i < cwchMin; i++) { if (rgDataX[i] < rgDataY[i]) return -1; else if (rgDataX[i] > rgDataY[i]) return 1; } // If compares equal up to one of the string terminates, // pad it with spaces and compare with the rest of the other one. // char chSpace = ' '; if (cwchX < cwchY) { for (i = cwchMin; i < cwchY; i++) { if (rgDataY[i] != chSpace) return (chSpace > rgDataY[i]) ? 1 : -1; } } else { for (i = cwchMin; i < cwchX; i++) { if (rgDataX[i] != chSpace) return (rgDataX[i] > chSpace) ? 1 : -1; } } return 0; } /* private void Print() { Debug.WriteLine("SqlString - "); Debug.WriteLine("\tlcid = " + m_lcid.ToString()); Debug.Write("\t"); if ((m_flag & SqlCompareOptions.IgnoreCase) != 0) Debug.Write("IgnoreCase, "); if ((m_flag & SqlCompareOptions.IgnoreNonSpace) != 0) Debug.Write("IgnoreNonSpace, "); if ((m_flag & SqlCompareOptions.IgnoreKanaType) != 0) Debug.Write("IgnoreKanaType, "); if ((m_flag & SqlCompareOptions.IgnoreWidth) != 0) Debug.Write("IgnoreWidth, "); Debug.WriteLine(""); Debug.WriteLine("\tvalue = " + m_value); Debug.WriteLine("\tcmpinfo = " + m_cmpInfo); } */ // IComparable // Compares this object to another object, returning an integer that // indicates the relationship. // Returns a value less than zero if this < object, zero if this = object, // or a value greater than zero if this > object. // null is considered to be less than any instance. // If object is not of same type, this method throws an ArgumentException. public int CompareTo(object? value) { if (value is SqlString) { SqlString i = (SqlString)value; return CompareTo(i); } throw ADP.WrongType(value!.GetType(), typeof(SqlString)); } public int CompareTo(SqlString value) { // If both Null, consider them equal. // Otherwise, Null is less than anything. if (IsNull) return value.IsNull ? 0 : -1; else if (value.IsNull) return 1; int returnValue = StringCompare(this, value); // Conver the result into -1, 0, or 1 as this method never returned any other values // This is to ensure the backcompat if (returnValue < 0) { return -1; } if (returnValue > 0) { return 1; } return 0; } // Compares this instance with a specified object public override bool Equals([NotNullWhen(true)] object? value) => value is SqlString other && Equals(other); /// <summary>Indicates whether the current instance is equal to another instance of the same type.</summary> /// <param name="other">An instance to compare with this instance.</param> /// <returns>true if the current instance is equal to the other instance; otherwise, false.</returns> public bool Equals(SqlString other) => other.IsNull || IsNull ? other.IsNull && IsNull : (this == other).Value; // For hashing purpose public override int GetHashCode() { if (IsNull) return 0; byte[] rgbSortKey; if (FBinarySort()) rgbSortKey = s_unicodeEncoding.GetBytes(m_value!.TrimEnd()); else { // GetHashCode should not throw just because this instance has an invalid LCID or compare options. CompareInfo cmpInfo; CompareOptions options; try { SetCompareInfo(); cmpInfo = m_cmpInfo!; options = CompareOptionsFromSqlCompareOptions(m_flag); } catch (ArgumentException) { // SetCompareInfo throws this when instance's LCID is unsupported // CompareOptionsFromSqlCompareOptions throws this when instance's options are invalid cmpInfo = CultureInfo.InvariantCulture.CompareInfo; options = CompareOptions.None; } rgbSortKey = cmpInfo.GetSortKey(m_value!.TrimEnd(), options).KeyData; } return SqlBinary.HashByteArray(rgbSortKey, rgbSortKey.Length); } XmlSchema? IXmlSerializable.GetSchema() { return null; } void IXmlSerializable.ReadXml(XmlReader reader) { string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. reader.ReadElementString(); m_fNotNull = false; } else { m_value = reader.ReadElementString(); m_fNotNull = true; } } void IXmlSerializable.WriteXml(XmlWriter writer) { if (IsNull) { writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); } else { writer.WriteString(m_value); } } public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet) { return new XmlQualifiedName("string", XmlSchema.Namespace); } } // SqlString /* internal struct SLocaleMapItem { public int lcid; // the primary key, not nullable public String name; // unique, nullable public int idCodePage; // the ANSI default code page of the locale public SLocaleMapItem(int lid, String str, int cpid) { lcid = lid; name = str; idCodePage = cpid; } } // Struct to map lcid to ordinal internal struct SLcidOrdMapItem { internal int lcid; internal int uiOrd; }; // Class to store map of lcids to ordinal internal sealed class CBuildLcidOrdMap { internal SLcidOrdMapItem[] m_rgLcidOrdMap; internal int m_cValidLocales; internal int m_uiPosEnglish; // Start binary searches here - this is index in array, not ordinal // Constructor builds the array sorted by lcid // We use a simple n**2 sort because the array is mostly sorted anyway // and objects of this class will be const, hence this will be called // only by VC compiler public CBuildLcidOrdMap() { int i,j; m_rgLcidOrdMap = new SLcidOrdMapItem[SqlString.x_cLocales]; // Compact the array for (i=0,j=0; i < SqlString.x_cLocales; i++) { if (SqlString.x_rgLocaleMap[i].lcid != SqlString.x_lcidUnused) { m_rgLcidOrdMap[j].lcid = SqlString.x_rgLocaleMap[i].lcid; m_rgLcidOrdMap[j].uiOrd = i; j++; } } m_cValidLocales = j; // Set the rest to invalid while (j < SqlString.x_cLocales) { m_rgLcidOrdMap[j].lcid = SqlString.x_lcidUnused; m_rgLcidOrdMap[j].uiOrd = 0; j++; } // Now sort in place // Algo: // Start from 1, assume list before i is sorted, if next item // violates this assumption, exchange with prev items until the // item is in its correct place for (i=1; i<m_cValidLocales; i++) { for (j=i; j>0 && m_rgLcidOrdMap[j].lcid < m_rgLcidOrdMap[j-1].lcid; j--) { // Swap with prev element int lcidTemp = m_rgLcidOrdMap[j-1].lcid; int uiOrdTemp = m_rgLcidOrdMap[j-1].uiOrd; m_rgLcidOrdMap[j-1].lcid = m_rgLcidOrdMap[j].lcid; m_rgLcidOrdMap[j-1].uiOrd = m_rgLcidOrdMap[j].uiOrd; m_rgLcidOrdMap[j].lcid = lcidTemp; m_rgLcidOrdMap[j].uiOrd = uiOrdTemp; } } // Set the position of the US_English LCID (Latin1_General) for (i=0; i<m_cValidLocales && m_rgLcidOrdMap[i].lcid != SqlString.x_lcidUSEnglish; i++) ; // Deliberately empty Debug.Assert(i<m_cValidLocales); // Latin1_General better be present m_uiPosEnglish = i; // This is index in array, not ordinal } } // CBuildLcidOrdMap */ } // namespace System.Data.SqlTypes
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Data.Common; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Text; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; using System.Diagnostics.CodeAnalysis; namespace System.Data.SqlTypes { // Options that are used in comparison [Flags] [System.Runtime.CompilerServices.TypeForwardedFrom("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] public enum SqlCompareOptions { None = 0x00000000, IgnoreCase = 0x00000001, IgnoreNonSpace = 0x00000002, IgnoreKanaType = 0x00000008, // ignore kanatype IgnoreWidth = 0x00000010, // ignore width BinarySort = 0x00008000, // binary sorting BinarySort2 = 0x00004000, // binary sorting 2 } /// <summary> /// Represents a variable-length stream of characters to be stored in or retrieved from the database. /// </summary> [Serializable] [StructLayout(LayoutKind.Sequential)] [XmlSchemaProvider("GetXsdType")] [System.Runtime.CompilerServices.TypeForwardedFrom("System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] public struct SqlString : INullable, IComparable, IXmlSerializable, IEquatable<SqlString> { private string? m_value; // Do not rename (binary serialization) private CompareInfo? m_cmpInfo; // Do not rename (binary serialization) private readonly int m_lcid; // Locale Id. Do not rename (binary serialization) private readonly SqlCompareOptions m_flag; // Compare flags. Do not rename (binary serialization) private bool m_fNotNull; // false if null. Do not rename (binary serialization) /// <summary> /// Represents a null value that can be assigned to the <see cref='System.Data.SqlTypes.SqlString.Value'/> property of an instance of /// the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public static readonly SqlString Null = new SqlString(true); internal static readonly UnicodeEncoding s_unicodeEncoding = new UnicodeEncoding(); /// <summary> /// </summary> public static readonly int IgnoreCase = 0x1; /// <summary> /// </summary> public static readonly int IgnoreWidth = 0x10; /// <summary> /// </summary> public static readonly int IgnoreNonSpace = 0x2; /// <summary> /// </summary> public static readonly int IgnoreKanaType = 0x8; /// <summary> /// </summary> public static readonly int BinarySort = 0x8000; /// <summary> /// </summary> public static readonly int BinarySort2 = 0x4000; private const SqlCompareOptions s_iDefaultFlag = SqlCompareOptions.IgnoreCase | SqlCompareOptions.IgnoreKanaType | SqlCompareOptions.IgnoreWidth; private const CompareOptions s_iValidCompareOptionMask = CompareOptions.IgnoreCase | CompareOptions.IgnoreWidth | CompareOptions.IgnoreNonSpace | CompareOptions.IgnoreKanaType; internal const SqlCompareOptions s_iValidSqlCompareOptionMask = SqlCompareOptions.IgnoreCase | SqlCompareOptions.IgnoreWidth | SqlCompareOptions.IgnoreNonSpace | SqlCompareOptions.IgnoreKanaType | SqlCompareOptions.BinarySort | SqlCompareOptions.BinarySort2; internal const int s_lcidUSEnglish = 0x00000409; private const int s_lcidBinary = 0x00008200; // constructor // construct a Null private SqlString(bool fNull) { m_value = null; m_cmpInfo = null; m_lcid = 0; m_flag = SqlCompareOptions.None; m_fNotNull = false; } // Constructor: Construct from both Unicode and NonUnicode data, according to fUnicode /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[]? data, int index, int count, bool fUnicode) { m_lcid = lcid; ValidateSqlCompareOptions(compareOptions); m_flag = compareOptions; if (data == null) { m_fNotNull = false; m_value = null; m_cmpInfo = null; } else { m_fNotNull = true; // m_cmpInfo is set lazily, so that we don't need to pay the cost // unless the string is used in comparison. m_cmpInfo = null; if (fUnicode) { m_value = s_unicodeEncoding.GetString(data, index, count); } else { CultureInfo culInfo = new CultureInfo(m_lcid); Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage); m_value = cpe.GetString(data, index, count); } } } // Constructor: Construct from both Unicode and NonUnicode data, according to fUnicode /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[] data, bool fUnicode) : this(lcid, compareOptions, data, 0, data.Length, fUnicode) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[]? data, int index, int count) : this(lcid, compareOptions, data, index, count, true) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(int lcid, SqlCompareOptions compareOptions, byte[] data) : this(lcid, compareOptions, data, 0, data.Length, true) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(string? data, int lcid, SqlCompareOptions compareOptions) { m_lcid = lcid; ValidateSqlCompareOptions(compareOptions); m_flag = compareOptions; m_cmpInfo = null; if (data == null) { m_fNotNull = false; m_value = null; } else { m_fNotNull = true; m_value = data; } } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(string? data, int lcid) : this(data, lcid, s_iDefaultFlag) { } /// <summary> /// Initializes a new instance of the <see cref='System.Data.SqlTypes.SqlString'/> class. /// </summary> public SqlString(string? data) : this(data, System.Globalization.CultureInfo.CurrentCulture.LCID, s_iDefaultFlag) { } private SqlString(int lcid, SqlCompareOptions compareOptions, string? data, CompareInfo? cmpInfo) { m_lcid = lcid; ValidateSqlCompareOptions(compareOptions); m_flag = compareOptions; if (data == null) { m_fNotNull = false; m_value = null; m_cmpInfo = null; } else { m_value = data; m_cmpInfo = cmpInfo; m_fNotNull = true; } } // INullable /// <summary> /// Gets whether the <see cref='System.Data.SqlTypes.SqlString.Value'/> of the <see cref='System.Data.SqlTypes.SqlString'/> is <see cref='System.Data.SqlTypes.SqlString.Null'/>. /// </summary> public bool IsNull { get { return !m_fNotNull; } } // property: Value /// <summary> /// Gets the string that is to be stored. /// </summary> public string Value { get { if (!IsNull) return m_value!; else throw new SqlNullValueException(); } } public int LCID { get { if (!IsNull) return m_lcid; else throw new SqlNullValueException(); } } public CultureInfo CultureInfo { get { if (!IsNull) return CultureInfo.GetCultureInfo(m_lcid); else throw new SqlNullValueException(); } } private void SetCompareInfo() { Debug.Assert(!IsNull); if (m_cmpInfo == null) m_cmpInfo = (CultureInfo.GetCultureInfo(m_lcid)).CompareInfo; } public CompareInfo CompareInfo { get { if (!IsNull) { SetCompareInfo(); return m_cmpInfo!; } else throw new SqlNullValueException(); } } public SqlCompareOptions SqlCompareOptions { get { if (!IsNull) return m_flag; else throw new SqlNullValueException(); } } // Implicit conversion from String to SqlString public static implicit operator SqlString(string x) { return new SqlString(x); } // Explicit conversion from SqlString to String. Throw exception if x is Null. public static explicit operator string(SqlString x) { return x.Value; } /// <summary> /// Converts a <see cref='System.Data.SqlTypes.SqlString'/> object to a string. /// </summary> public override string ToString() { return IsNull ? SQLResource.NullString : m_value!; } public byte[]? GetUnicodeBytes() { if (IsNull) return null; return s_unicodeEncoding.GetBytes(m_value!); } public byte[]? GetNonUnicodeBytes() { if (IsNull) return null; // Get the CultureInfo CultureInfo culInfo = new CultureInfo(m_lcid); Encoding cpe = System.Text.Encoding.GetEncoding(culInfo.TextInfo.ANSICodePage); return cpe.GetBytes(m_value!); } /* internal int GetSQLCID() { if (IsNull) throw new SqlNullValueException(); return MAKECID(m_lcid, m_flag); } */ // Binary operators // Concatenation public static SqlString operator +(SqlString x, SqlString y) { if (x.IsNull || y.IsNull) return SqlString.Null; if (x.m_lcid != y.m_lcid || x.m_flag != y.m_flag) throw new SqlTypeException(SQLResource.ConcatDiffCollationMessage); return new SqlString(x.m_lcid, x.m_flag, x.m_value + y.m_value, (x.m_cmpInfo == null) ? y.m_cmpInfo : x.m_cmpInfo); } // StringCompare: Common compare function which is used by Compare and CompareTo // In the case of Compare (used by comparison operators) the int result needs to be converted to SqlBoolean type // while CompareTo needs the result in int type // Pre-requisite: the null condition of the both string needs to be checked and handled by the caller of this function private static int StringCompare(SqlString x, SqlString y) { Debug.Assert(!x.IsNull && !y.IsNull, "!x.IsNull && !y.IsNull", "Null condition should be handled by the caller of StringCompare method"); if (x.m_lcid != y.m_lcid || x.m_flag != y.m_flag) throw new SqlTypeException(SQLResource.CompareDiffCollationMessage); x.SetCompareInfo(); y.SetCompareInfo(); Debug.Assert(x.FBinarySort() || (x.m_cmpInfo != null && y.m_cmpInfo != null), "x.FBinarySort() || (x.m_cmpInfo != null && y.m_cmpInfo != null)", ""); int iCmpResult; if ((x.m_flag & SqlCompareOptions.BinarySort) != 0) iCmpResult = CompareBinary(x, y); else if ((x.m_flag & SqlCompareOptions.BinarySort2) != 0) iCmpResult = CompareBinary2(x, y); else { // SqlString can be padded with spaces (Padding is turn on by default in SQL Server 2008 // Trim the trailing space for comparison // Avoid using String.TrimEnd function to avoid extra string allocations string rgchX = x.m_value!; string rgchY = y.m_value!; int cwchX = rgchX.Length; int cwchY = rgchY.Length; while (cwchX > 0 && rgchX[cwchX - 1] == ' ') cwchX--; while (cwchY > 0 && rgchY[cwchY - 1] == ' ') cwchY--; CompareOptions options = CompareOptionsFromSqlCompareOptions(x.m_flag); iCmpResult = x.m_cmpInfo!.Compare(x.m_value, 0, cwchX, y.m_value, 0, cwchY, options); } return iCmpResult; } // Comparison operators private static SqlBoolean Compare(SqlString x, SqlString y, EComparison ecExpectedResult) { if (x.IsNull || y.IsNull) return SqlBoolean.Null; int iCmpResult = StringCompare(x, y); bool fResult; switch (ecExpectedResult) { case EComparison.EQ: fResult = (iCmpResult == 0); break; case EComparison.LT: fResult = (iCmpResult < 0); break; case EComparison.LE: fResult = (iCmpResult <= 0); break; case EComparison.GT: fResult = (iCmpResult > 0); break; case EComparison.GE: fResult = (iCmpResult >= 0); break; default: Debug.Fail("Invalid ecExpectedResult"); return SqlBoolean.Null; } return new SqlBoolean(fResult); } // Implicit conversions // Explicit conversions // Explicit conversion from SqlBoolean to SqlString public static explicit operator SqlString(SqlBoolean x) { return x.IsNull ? Null : new SqlString((x.Value).ToString()); } // Explicit conversion from SqlByte to SqlString public static explicit operator SqlString(SqlByte x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlInt16 to SqlString public static explicit operator SqlString(SqlInt16 x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlInt32 to SqlString public static explicit operator SqlString(SqlInt32 x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlInt64 to SqlString public static explicit operator SqlString(SqlInt64 x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlSingle to SqlString public static explicit operator SqlString(SqlSingle x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlDouble to SqlString public static explicit operator SqlString(SqlDouble x) { return x.IsNull ? Null : new SqlString((x.Value).ToString((IFormatProvider)null!)); } // Explicit conversion from SqlDecimal to SqlString public static explicit operator SqlString(SqlDecimal x) { return x.IsNull ? Null : new SqlString(x.ToString()); } // Explicit conversion from SqlMoney to SqlString public static explicit operator SqlString(SqlMoney x) { return x.IsNull ? Null : new SqlString(x.ToString()); } // Explicit conversion from SqlDateTime to SqlString public static explicit operator SqlString(SqlDateTime x) { return x.IsNull ? Null : new SqlString(x.ToString()); } // Explicit conversion from SqlGuid to SqlString public static explicit operator SqlString(SqlGuid x) { return x.IsNull ? Null : new SqlString(x.ToString()); } public SqlString Clone() { if (IsNull) return new SqlString(true); else { SqlString ret = new SqlString(m_value!, m_lcid, m_flag); return ret; } } // Overloading comparison operators public static SqlBoolean operator ==(SqlString x, SqlString y) { return Compare(x, y, EComparison.EQ); } public static SqlBoolean operator !=(SqlString x, SqlString y) { return !(x == y); } public static SqlBoolean operator <(SqlString x, SqlString y) { return Compare(x, y, EComparison.LT); } public static SqlBoolean operator >(SqlString x, SqlString y) { return Compare(x, y, EComparison.GT); } public static SqlBoolean operator <=(SqlString x, SqlString y) { return Compare(x, y, EComparison.LE); } public static SqlBoolean operator >=(SqlString x, SqlString y) { return Compare(x, y, EComparison.GE); } //-------------------------------------------------- // Alternative methods for overloaded operators //-------------------------------------------------- // Alternative method for operator + public static SqlString Concat(SqlString x, SqlString y) { return x + y; } public static SqlString Add(SqlString x, SqlString y) { return x + y; } // Alternative method for operator == public static SqlBoolean Equals(SqlString x, SqlString y) { return (x == y); } // Alternative method for operator != public static SqlBoolean NotEquals(SqlString x, SqlString y) { return (x != y); } // Alternative method for operator < public static SqlBoolean LessThan(SqlString x, SqlString y) { return (x < y); } // Alternative method for operator > public static SqlBoolean GreaterThan(SqlString x, SqlString y) { return (x > y); } // Alternative method for operator <= public static SqlBoolean LessThanOrEqual(SqlString x, SqlString y) { return (x <= y); } // Alternative method for operator >= public static SqlBoolean GreaterThanOrEqual(SqlString x, SqlString y) { return (x >= y); } // Alternative method for conversions. public SqlBoolean ToSqlBoolean() { return (SqlBoolean)this; } public SqlByte ToSqlByte() { return (SqlByte)this; } public SqlDateTime ToSqlDateTime() { return (SqlDateTime)this; } public SqlDouble ToSqlDouble() { return (SqlDouble)this; } public SqlInt16 ToSqlInt16() { return (SqlInt16)this; } public SqlInt32 ToSqlInt32() { return (SqlInt32)this; } public SqlInt64 ToSqlInt64() { return (SqlInt64)this; } public SqlMoney ToSqlMoney() { return (SqlMoney)this; } public SqlDecimal ToSqlDecimal() { return (SqlDecimal)this; } public SqlSingle ToSqlSingle() { return (SqlSingle)this; } public SqlGuid ToSqlGuid() { return (SqlGuid)this; } // Utility functions and constants private static void ValidateSqlCompareOptions(SqlCompareOptions compareOptions) { if ((compareOptions & s_iValidSqlCompareOptionMask) != compareOptions) throw new ArgumentOutOfRangeException(nameof(compareOptions)); } public static CompareOptions CompareOptionsFromSqlCompareOptions(SqlCompareOptions compareOptions) { CompareOptions options = CompareOptions.None; ValidateSqlCompareOptions(compareOptions); if ((compareOptions & (SqlCompareOptions.BinarySort | SqlCompareOptions.BinarySort2)) != 0) throw ADP.ArgumentOutOfRange(nameof(compareOptions)); else { if ((compareOptions & SqlCompareOptions.IgnoreCase) != 0) options |= CompareOptions.IgnoreCase; if ((compareOptions & SqlCompareOptions.IgnoreNonSpace) != 0) options |= CompareOptions.IgnoreNonSpace; if ((compareOptions & SqlCompareOptions.IgnoreKanaType) != 0) options |= CompareOptions.IgnoreKanaType; if ((compareOptions & SqlCompareOptions.IgnoreWidth) != 0) options |= CompareOptions.IgnoreWidth; } return options; } private bool FBinarySort() { return (!IsNull && (m_flag & (SqlCompareOptions.BinarySort | SqlCompareOptions.BinarySort2)) != 0); } // Wide-character string comparison for Binary Unicode Collation // Return values: // -1 : wstr1 < wstr2 // 0 : wstr1 = wstr2 // 1 : wstr1 > wstr2 // // Does a memory comparison. private static int CompareBinary(SqlString x, SqlString y) { byte[] rgDataX = s_unicodeEncoding.GetBytes(x.m_value!); byte[] rgDataY = s_unicodeEncoding.GetBytes(y.m_value!); int cbX = rgDataX.Length; int cbY = rgDataY.Length; int cbMin = cbX < cbY ? cbX : cbY; int i; Debug.Assert(cbX % 2 == 0); Debug.Assert(cbY % 2 == 0); for (i = 0; i < cbMin; i++) { if (rgDataX[i] < rgDataY[i]) return -1; else if (rgDataX[i] > rgDataY[i]) return 1; } i = cbMin; int iCh; int iSpace = ' '; if (cbX < cbY) { for (; i < cbY; i += 2) { iCh = rgDataY[i + 1] << 8 + rgDataY[i]; if (iCh != iSpace) return (iSpace > iCh) ? 1 : -1; } } else { for (; i < cbX; i += 2) { iCh = rgDataX[i + 1] << 8 + rgDataX[i]; if (iCh != iSpace) return (iCh > iSpace) ? 1 : -1; } } return 0; } // Wide-character string comparison for Binary2 Unicode Collation // Return values: // -1 : wstr1 < wstr2 // 0 : wstr1 = wstr2 // 1 : wstr1 > wstr2 // // Does a wchar comparison (different from memcmp of BinarySort). private static int CompareBinary2(SqlString x, SqlString y) { Debug.Assert(!x.IsNull && !y.IsNull); string rgDataX = x.m_value!; string rgDataY = y.m_value!; int cwchX = rgDataX.Length; int cwchY = rgDataY.Length; int cwchMin = cwchX < cwchY ? cwchX : cwchY; int i; for (i = 0; i < cwchMin; i++) { if (rgDataX[i] < rgDataY[i]) return -1; else if (rgDataX[i] > rgDataY[i]) return 1; } // If compares equal up to one of the string terminates, // pad it with spaces and compare with the rest of the other one. // char chSpace = ' '; if (cwchX < cwchY) { for (i = cwchMin; i < cwchY; i++) { if (rgDataY[i] != chSpace) return (chSpace > rgDataY[i]) ? 1 : -1; } } else { for (i = cwchMin; i < cwchX; i++) { if (rgDataX[i] != chSpace) return (rgDataX[i] > chSpace) ? 1 : -1; } } return 0; } /* private void Print() { Debug.WriteLine("SqlString - "); Debug.WriteLine("\tlcid = " + m_lcid.ToString()); Debug.Write("\t"); if ((m_flag & SqlCompareOptions.IgnoreCase) != 0) Debug.Write("IgnoreCase, "); if ((m_flag & SqlCompareOptions.IgnoreNonSpace) != 0) Debug.Write("IgnoreNonSpace, "); if ((m_flag & SqlCompareOptions.IgnoreKanaType) != 0) Debug.Write("IgnoreKanaType, "); if ((m_flag & SqlCompareOptions.IgnoreWidth) != 0) Debug.Write("IgnoreWidth, "); Debug.WriteLine(""); Debug.WriteLine("\tvalue = " + m_value); Debug.WriteLine("\tcmpinfo = " + m_cmpInfo); } */ // IComparable // Compares this object to another object, returning an integer that // indicates the relationship. // Returns a value less than zero if this < object, zero if this = object, // or a value greater than zero if this > object. // null is considered to be less than any instance. // If object is not of same type, this method throws an ArgumentException. public int CompareTo(object? value) { if (value is SqlString) { SqlString i = (SqlString)value; return CompareTo(i); } throw ADP.WrongType(value!.GetType(), typeof(SqlString)); } public int CompareTo(SqlString value) { // If both Null, consider them equal. // Otherwise, Null is less than anything. if (IsNull) return value.IsNull ? 0 : -1; else if (value.IsNull) return 1; int returnValue = StringCompare(this, value); // Conver the result into -1, 0, or 1 as this method never returned any other values // This is to ensure the backcompat if (returnValue < 0) { return -1; } if (returnValue > 0) { return 1; } return 0; } // Compares this instance with a specified object public override bool Equals([NotNullWhen(true)] object? value) => value is SqlString other && Equals(other); /// <summary>Indicates whether the current instance is equal to another instance of the same type.</summary> /// <param name="other">An instance to compare with this instance.</param> /// <returns>true if the current instance is equal to the other instance; otherwise, false.</returns> public bool Equals(SqlString other) => other.IsNull || IsNull ? other.IsNull && IsNull : (this == other).Value; // For hashing purpose public override int GetHashCode() { if (IsNull) return 0; byte[] rgbSortKey; if (FBinarySort()) rgbSortKey = s_unicodeEncoding.GetBytes(m_value!.TrimEnd()); else { // GetHashCode should not throw just because this instance has an invalid LCID or compare options. CompareInfo cmpInfo; CompareOptions options; try { SetCompareInfo(); cmpInfo = m_cmpInfo!; options = CompareOptionsFromSqlCompareOptions(m_flag); } catch (ArgumentException) { // SetCompareInfo throws this when instance's LCID is unsupported // CompareOptionsFromSqlCompareOptions throws this when instance's options are invalid cmpInfo = CultureInfo.InvariantCulture.CompareInfo; options = CompareOptions.None; } rgbSortKey = cmpInfo.GetSortKey(m_value!.TrimEnd(), options).KeyData; } return SqlBinary.HashByteArray(rgbSortKey, rgbSortKey.Length); } XmlSchema? IXmlSerializable.GetSchema() { return null; } void IXmlSerializable.ReadXml(XmlReader reader) { string? isNull = reader.GetAttribute("nil", XmlSchema.InstanceNamespace); if (isNull != null && XmlConvert.ToBoolean(isNull)) { // Read the next value. reader.ReadElementString(); m_fNotNull = false; } else { m_value = reader.ReadElementString(); m_fNotNull = true; } } void IXmlSerializable.WriteXml(XmlWriter writer) { if (IsNull) { writer.WriteAttributeString("xsi", "nil", XmlSchema.InstanceNamespace, "true"); } else { writer.WriteString(m_value); } } public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet) { return new XmlQualifiedName("string", XmlSchema.Namespace); } } // SqlString /* internal struct SLocaleMapItem { public int lcid; // the primary key, not nullable public String name; // unique, nullable public int idCodePage; // the ANSI default code page of the locale public SLocaleMapItem(int lid, String str, int cpid) { lcid = lid; name = str; idCodePage = cpid; } } // Struct to map lcid to ordinal internal struct SLcidOrdMapItem { internal int lcid; internal int uiOrd; }; // Class to store map of lcids to ordinal internal sealed class CBuildLcidOrdMap { internal SLcidOrdMapItem[] m_rgLcidOrdMap; internal int m_cValidLocales; internal int m_uiPosEnglish; // Start binary searches here - this is index in array, not ordinal // Constructor builds the array sorted by lcid // We use a simple n**2 sort because the array is mostly sorted anyway // and objects of this class will be const, hence this will be called // only by VC compiler public CBuildLcidOrdMap() { int i,j; m_rgLcidOrdMap = new SLcidOrdMapItem[SqlString.x_cLocales]; // Compact the array for (i=0,j=0; i < SqlString.x_cLocales; i++) { if (SqlString.x_rgLocaleMap[i].lcid != SqlString.x_lcidUnused) { m_rgLcidOrdMap[j].lcid = SqlString.x_rgLocaleMap[i].lcid; m_rgLcidOrdMap[j].uiOrd = i; j++; } } m_cValidLocales = j; // Set the rest to invalid while (j < SqlString.x_cLocales) { m_rgLcidOrdMap[j].lcid = SqlString.x_lcidUnused; m_rgLcidOrdMap[j].uiOrd = 0; j++; } // Now sort in place // Algo: // Start from 1, assume list before i is sorted, if next item // violates this assumption, exchange with prev items until the // item is in its correct place for (i=1; i<m_cValidLocales; i++) { for (j=i; j>0 && m_rgLcidOrdMap[j].lcid < m_rgLcidOrdMap[j-1].lcid; j--) { // Swap with prev element int lcidTemp = m_rgLcidOrdMap[j-1].lcid; int uiOrdTemp = m_rgLcidOrdMap[j-1].uiOrd; m_rgLcidOrdMap[j-1].lcid = m_rgLcidOrdMap[j].lcid; m_rgLcidOrdMap[j-1].uiOrd = m_rgLcidOrdMap[j].uiOrd; m_rgLcidOrdMap[j].lcid = lcidTemp; m_rgLcidOrdMap[j].uiOrd = uiOrdTemp; } } // Set the position of the US_English LCID (Latin1_General) for (i=0; i<m_cValidLocales && m_rgLcidOrdMap[i].lcid != SqlString.x_lcidUSEnglish; i++) ; // Deliberately empty Debug.Assert(i<m_cValidLocales); // Latin1_General better be present m_uiPosEnglish = i; // This is index in array, not ordinal } } // CBuildLcidOrdMap */ } // namespace System.Data.SqlTypes
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Symbols/FieldSymbol.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.Reflection; namespace Microsoft.CSharp.RuntimeBinder.Semantics { // ---------------------------------------------------------------------------- // // FieldSymbol // // FieldSymbol - a symbol representing a member variable of a class. Parent // is a struct or class. // // ---------------------------------------------------------------------------- internal sealed class FieldSymbol : VariableSymbol { public new bool isStatic; // Static member? public bool isReadOnly; // Can only be changed from within constructor. public bool isEvent; // This field is the implementation for an event. public FieldInfo AssociatedFieldInfo; // If fixedAgg is non-null, the ant of the fixed buffer length public void SetType(CType pType) { type = pType; } public new CType GetType() { return type; } public AggregateSymbol getClass() => parent as AggregateSymbol; public EventSymbol getEvent() { Debug.Assert(isEvent); return SymbolLoader.LookupAggMember(name, getClass(), symbmask_t.MASK_EventSymbol) as EventSymbol; } } }
// 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.Reflection; namespace Microsoft.CSharp.RuntimeBinder.Semantics { // ---------------------------------------------------------------------------- // // FieldSymbol // // FieldSymbol - a symbol representing a member variable of a class. Parent // is a struct or class. // // ---------------------------------------------------------------------------- internal sealed class FieldSymbol : VariableSymbol { public new bool isStatic; // Static member? public bool isReadOnly; // Can only be changed from within constructor. public bool isEvent; // This field is the implementation for an event. public FieldInfo AssociatedFieldInfo; // If fixedAgg is non-null, the ant of the fixed buffer length public void SetType(CType pType) { type = pType; } public new CType GetType() { return type; } public AggregateSymbol getClass() => parent as AggregateSymbol; public EventSymbol getEvent() { Debug.Assert(isEvent); return SymbolLoader.LookupAggMember(name, getClass(), symbmask_t.MASK_EventSymbol) as EventSymbol; } } }
-1
dotnet/runtime
66,227
Replace CngCommon hash with OneShotHashHelpers
The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
vcsjones
2022-03-05T00:49:31Z
2022-03-05T03:49:08Z
94480f128c8af3e728b2b6e5ad2b13370f97b8f1
eb57c1276add1ec7e35897bfdbbebb648839dee3
Replace CngCommon hash with OneShotHashHelpers. The CNG asymmetric algorithms will benefit from the better one-shot implementations and reduce duplicate functionality.
./src/tests/JIT/CodeGenBringUpTests/Lt1_r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="Lt1.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="Lt1.cs" /> </ItemGroup> </Project>
-1