From d5331a45ff5cda8a46deb8315750429c44cb75cf Mon Sep 17 00:00:00 2001 From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD> Date: Sun, 11 Apr 2010 14:29:24 +0000 Subject: [PATCH] --- source/Cosmos.sln | 34 ++++++- .../SimpleMethodsTest.csproj | 3 + .../SimpleMethodsTest}/SimpleMethodsTests.xml | Bin .../MonoCecilToEcmaCil1.Tests/BaseTest.cs | 6 +- .../MonoCecilToEcmaCil1.Tests.csproj | 3 - .../Testing/MonoCecilToEcmaCil1/Reader.cs | 10 +- .../ReflectionToEcmaCil.Tests/BaseTest.cs | 42 +++++++++ .../Properties/AssemblyInfo.cs | 36 ++++++++ .../ReflectionToEcmaCil.Tests.csproj | 86 ++++++++++++++++++ .../ReflectionToEcmaCil.Tests.csproj.vspscc | 10 ++ .../SimpleMethodsTest.cs | 11 +++ .../Testing/ReflectionToEcmaCil/OurHashset.cs | 60 ++++++++++++ .../Properties/AssemblyInfo.cs | 36 ++++++++ .../Testing/ReflectionToEcmaCil/Reader.cs | 11 +++ .../ReflectionToEcmaCil.csproj | 70 ++++++++++++++ .../ReflectionToEcmaCil.csproj.vspscc | 10 ++ 16 files changed, 416 insertions(+), 12 deletions(-) rename source2/Users/Matthijs ter Woord/Testing/{MonoCecilToEcmaCil1.Tests => FileToEcmaCilTests/SimpleMethodsTest}/SimpleMethodsTests.xml (100%) create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/BaseTest.cs create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/Properties/AssemblyInfo.cs create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/ReflectionToEcmaCil.Tests.csproj create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/ReflectionToEcmaCil.Tests.csproj.vspscc create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/SimpleMethodsTest.cs create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/OurHashset.cs create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Properties/AssemblyInfo.cs create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Reader.cs create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj create mode 100644 source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj.vspscc diff --git a/source/Cosmos.sln b/source/Cosmos.sln index dfaa6d541..b9d7db2bb 100644 --- a/source/Cosmos.sln +++ b/source/Cosmos.sln @@ -112,9 +112,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleMethodsTest", "..\sou EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.IL2CPU.Plugs", "..\source2\IL2PCU\Cosmos.IL2CPU.Plugs\Cosmos.IL2CPU.Plugs.csproj", "{C801F19C-A9D3-42D5-9A57-9FFDF9B4D05E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReflectionToEcmaCil", "..\source2\Users\Matthijs ter Woord\Testing\ReflectionToEcmaCil\ReflectionToEcmaCil.csproj", "{FD4B2006-B518-4884-B196-C2EF2B83FD6F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReflectionToEcmaCil.Tests", "..\source2\Users\Matthijs ter Woord\Testing\ReflectionToEcmaCil.Tests\ReflectionToEcmaCil.Tests.csproj", "{0D162A82-CBC1-4A39-916D-E1079B212DDE}" +EndProject Global GlobalSection(TeamFoundationVersionControl) = preSolution - SccNumberOfProjects = 33 + SccNumberOfProjects = 35 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = https://tfs04.codeplex.com/ SccLocalPath0 = . @@ -246,6 +250,14 @@ Global SccProjectTopLevelParentUniqueName32 = Cosmos.sln SccProjectName32 = ../source2/IL2PCU/Cosmos.IL2CPU.Plugs SccLocalPath32 = ..\\source2\\IL2PCU\\Cosmos.IL2CPU.Plugs + SccProjectUniqueName33 = ..\\source2\\Users\\Matthijs\u0020ter\u0020Woord\\Testing\\ReflectionToEcmaCil\\ReflectionToEcmaCil.csproj + SccProjectTopLevelParentUniqueName33 = Cosmos.sln + SccProjectName33 = ../source2/Users/Matthijs\u0020ter\u0020Woord/Testing/ReflectionToEcmaCil + SccLocalPath33 = ..\\source2\\Users\\Matthijs\u0020ter\u0020Woord\\Testing\\ReflectionToEcmaCil + SccProjectUniqueName34 = ..\\source2\\Users\\Matthijs\u0020ter\u0020Woord\\Testing\\ReflectionToEcmaCil.Tests\\ReflectionToEcmaCil.Tests.csproj + SccProjectTopLevelParentUniqueName34 = Cosmos.sln + SccProjectName34 = ../source2/Users/Matthijs\u0020ter\u0020Woord/Testing/ReflectionToEcmaCil.Tests + SccLocalPath34 = ..\\source2\\Users\\Matthijs\u0020ter\u0020Woord\\Testing\\ReflectionToEcmaCil.Tests EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Bootstrap|Any CPU = Bootstrap|Any CPU @@ -628,6 +640,24 @@ Global {C801F19C-A9D3-42D5-9A57-9FFDF9B4D05E}.Release|Any CPU.Build.0 = Release|Any CPU {C801F19C-A9D3-42D5-9A57-9FFDF9B4D05E}.Release|x86.ActiveCfg = Release|Any CPU {C801F19C-A9D3-42D5-9A57-9FFDF9B4D05E}.Release|x86.Build.0 = Release|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Bootstrap|Any CPU.ActiveCfg = Release|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Bootstrap|Any CPU.Build.0 = Release|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Bootstrap|x86.ActiveCfg = Release|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Debug|x86.ActiveCfg = Debug|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Release|Any CPU.Build.0 = Release|Any CPU + {FD4B2006-B518-4884-B196-C2EF2B83FD6F}.Release|x86.ActiveCfg = Release|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Bootstrap|Any CPU.ActiveCfg = Release|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Bootstrap|Any CPU.Build.0 = Release|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Bootstrap|x86.ActiveCfg = Release|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Debug|x86.ActiveCfg = Debug|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Release|Any CPU.Build.0 = Release|Any CPU + {0D162A82-CBC1-4A39-916D-E1079B212DDE}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -678,6 +708,8 @@ Global {54795C40-B3E8-4DBB-A3DE-FACBADD20ADB} = {3C6DFC2F-DE70-4B1C-A938-A9D3FE890520} {0D9C1BC2-E743-4E13-8A93-11174DBCB433} = {3C6DFC2F-DE70-4B1C-A938-A9D3FE890520} {3FAC94DC-A2A1-44C9-86C3-35D8D9BDDF23} = {3C6DFC2F-DE70-4B1C-A938-A9D3FE890520} + {FD4B2006-B518-4884-B196-C2EF2B83FD6F} = {3C6DFC2F-DE70-4B1C-A938-A9D3FE890520} + {0D162A82-CBC1-4A39-916D-E1079B212DDE} = {3C6DFC2F-DE70-4B1C-A938-A9D3FE890520} {AE684C98-F100-47AE-9C8C-E71BF8C9F8AA} = {0D9C1BC2-E743-4E13-8A93-11174DBCB433} {8612AC0F-6C80-4F14-AFFA-7A96AFF18A6D} = {3FAC94DC-A2A1-44C9-86C3-35D8D9BDDF23} {7A24BC15-49A3-43AF-AF2B-3681D9A06C62} = {3FAC94DC-A2A1-44C9-86C3-35D8D9BDDF23} diff --git a/source2/Users/Matthijs ter Woord/Testing/FileToEcmaCilTests/SimpleMethodsTest/SimpleMethodsTest.csproj b/source2/Users/Matthijs ter Woord/Testing/FileToEcmaCilTests/SimpleMethodsTest/SimpleMethodsTest.csproj index 972d45881..01b55f1fe 100644 --- a/source2/Users/Matthijs ter Woord/Testing/FileToEcmaCilTests/SimpleMethodsTest/SimpleMethodsTest.csproj +++ b/source2/Users/Matthijs ter Woord/Testing/FileToEcmaCilTests/SimpleMethodsTest/SimpleMethodsTest.csproj @@ -52,6 +52,9 @@ + + + + \ No newline at end of file diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/ReflectionToEcmaCil.Tests.csproj.vspscc b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/ReflectionToEcmaCil.Tests.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/ReflectionToEcmaCil.Tests.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/SimpleMethodsTest.cs b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/SimpleMethodsTest.cs new file mode 100644 index 000000000..d8dc62258 --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil.Tests/SimpleMethodsTest.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ReflectionToEcmaCil.Tests +{ + public class SimpleMethodsTest: BaseTest + { + } +} diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/OurHashset.cs b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/OurHashset.cs new file mode 100644 index 000000000..1097e3e79 --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/OurHashset.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Collections; + +namespace ReflectionToEcmaCil +{ + public class OurHashSet : IEnumerable + { + private Dictionary mItems = new Dictionary(); + + public bool Contains(T aItem) + { + if (aItem == null) + { + throw new ArgumentNullException("aItem"); + } + return mItems.ContainsKey(aItem.GetHashCode()); + } + + public void Add(T aItem) + { + if (aItem == null) + { + throw new ArgumentNullException("aItem"); + } + mItems.Add(aItem.GetHashCode(), aItem); + } + + public IEnumerator GetEnumerator() + { + return (from item in mItems + select item.Value).GetEnumerator(); + } + + public T GetItemInList(T aItem) + { + if (aItem == null) + { + throw new ArgumentNullException("aItem"); + } + T xResult; + if (mItems.TryGetValue(aItem.GetHashCode(), out xResult)) + { + return xResult; + } + else + { + return aItem; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return (from item in mItems + select item.Value).GetEnumerator(); + } + } +} \ No newline at end of file diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Properties/AssemblyInfo.cs b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..1f1bfb4f3 --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ReflectionToEcmaCil")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("ReflectionToEcmaCil")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("201b6c38-2eec-4eef-95c6-725eb7a47d4b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Reader.cs b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Reader.cs new file mode 100644 index 000000000..741f2c975 --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/Reader.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ReflectionToEcmaCil +{ + public class Reader + { + } +} \ No newline at end of file diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj new file mode 100644 index 000000000..d0d97b0cc --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj @@ -0,0 +1,70 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {FD4B2006-B518-4884-B196-C2EF2B83FD6F} + Library + Properties + ReflectionToEcmaCil + ReflectionToEcmaCil + v3.5 + 512 + SAK + SAK + SAK + SAK + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + + + {AE684C98-F100-47AE-9C8C-E71BF8C9F8AA} + EcmaCil + + + + + \ No newline at end of file diff --git a/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj.vspscc b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/source2/Users/Matthijs ter Woord/Testing/ReflectionToEcmaCil/ReflectionToEcmaCil.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +}