Hide types implemented in corefx
authorRahul Kumar <rahku@microsoft.com>
Wed, 30 Nov 2016 20:08:47 +0000 (12:08 -0800)
committerRahul Kumar <rahku@microsoft.com>
Fri, 6 Jan 2017 22:09:35 +0000 (14:09 -0800)
src/mscorlib/model.xml
src/mscorlib/ref/mscorlib.cs
src/vm/mscorlib.h
src/vm/rexcep.h
tests/src/JIT/Methodical/refany/format.cs
tests/src/JIT/Methodical/refany/format.il
tests/src/JIT/Methodical/refany/longsig.il
tests/src/JIT/Methodical/refany/shortsig.il

index 7bb3dde..437d5d6 100644 (file)
@@ -67,8 +67,6 @@
     <Type Name="System.Activator">
       <Member Name="CreateComInstanceFrom(System.String,System.String)" />
       <Member Name="CreateComInstanceFrom(System.String,System.String,System.Byte[],System.Configuration.Assemblies.AssemblyHashAlgorithm)" />
-      <Member Name="CreateInstance(System.AppDomain,System.String,System.String)" />
-      <Member Name="CreateInstance(System.AppDomain,System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
       <Member Name="CreateInstance(System.String,System.String)" />
       <Member Name="CreateInstance(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
       <Member Name="CreateInstance(System.String,System.String,System.Object[])" />
@@ -79,8 +77,6 @@
       <Member Name="CreateInstance(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo)" />
       <Member Name="CreateInstance(System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
       <Member Name="CreateInstance&lt;T&gt;" />
-      <Member Name="CreateInstanceFrom(System.AppDomain,System.String,System.String)" />
-      <Member Name="CreateInstanceFrom(System.AppDomain,System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
       <Member Name="CreateInstanceFrom(System.String,System.String)" />
       <Member Name="CreateInstanceFrom(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[])" />
       <Member Name="CreateInstanceFrom(System.String,System.String,System.Object[])" />
@@ -89,8 +85,8 @@
       <Member Status="ImplRoot" Name="System.Runtime.InteropServices._Activator.GetTypeInfoCount(System.UInt32@)" />
       <Member Status="ImplRoot" Name="System.Runtime.InteropServices._Activator.Invoke(System.UInt32,System.Guid@,System.UInt32,System.Int16,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)" />
     </Type>
-    <Type Name="System.AppDomain">
-      <Member Name="get_CurrentDomain" />
+    <Type Status="ImplRoot" Name="System.AppDomain">
+      <Member Status="ImplRoot" Name="get_CurrentDomain" />
       <Member Status="ImplRoot" Name="get_MonitoringIsEnabled" />
       <Member Status="ImplRoot" Name="set_MonitoringIsEnabled(System.Boolean)" />
       <Member Status="ImplRoot" Name="get_MonitoringTotalProcessorTime" />
       <Member Status="ImplRoot" MemberType="Property" Name="MonitoringTotalAllocatedMemorySize" />
       <Member Status="ImplRoot" MemberType="Property" Name="MonitoringSurvivedMemorySize" />
       <Member Status="ImplRoot" MemberType="Property" Name="MonitoringSurvivedProcessMemorySize" />
-      <Member MemberType="Property" Name="IsFullyTrusted" />
-      <Member Name="GetData(System.String)" />
-      <Member Name="ToString" />
+      <Member Status="ImplRoot" MemberType="Property" Name="IsFullyTrusted" />
+      <Member Status="ImplRoot" Name="GetData(System.String)" />
+      <Member Status="ImplRoot" Name="ToString" />
       <Member Status="ImplRoot" Name="SetupDomainSecurity(System.Security.Policy.Evidence,System.IntPtr,System.Boolean)" />
       <Member Status="ImplRoot" Name="SetupDomainSecurity(System.AppDomainHandle,System.Runtime.CompilerServices.ObjectHandleOnStack,System.IntPtr,System.Boolean)" />
       <Member Status="ImplRoot" MemberType="Event" Name="AssemblyResolve" />
       <Member Status="ImplRoot" Name="Setup(System.Object)" />
       <Member Status="ImplRoot" Name="SetupDomain(System.Boolean,System.String,System.String,System.String[],System.String[])" />
       <Member Status="ImplRoot" Name="nCreateContext" />
-      <Member Name="OnDesignerNamespaceResolveEvent(System.String)" Condition="FEATURE_COMINTEROP" />
-      <Member MemberType="Property" Name="BaseDirectory" />
-      <Member Name="get_BaseDirectory" />
-    </Type>
-    <Type Name="System.AppDomainManager">
-      <Member Name="#ctor" />
-      <Member Name="InitializeNewDomain(System.AppDomainSetup)" />
-      <Member Name="CheckSecuritySettings(System.Security.SecurityState)" />
-    </Type>
-    <Type Name="System.AppDomainUnloadedException">
-      <Member Name="#ctor" />
-      <Member Name="#ctor(System.String)" />
-      <Member Name="#ctor(System.String,System.Exception)" />
-      <Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
+      <Member Status="ImplRoot" Name="OnDesignerNamespaceResolveEvent(System.String)" Condition="FEATURE_COMINTEROP" />
+      <Member Status="ImplRoot" MemberType="Property" Name="BaseDirectory" />
+      <Member Status="ImplRoot" Name="get_BaseDirectory" />
     </Type>
     <Type Name="System.AppContext">
       <Member MemberType="Event" Name="FirstChanceException" />
       <Member Name="#ctor(System.String,System.Exception)" />
       <Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
     </Type>
-    <Type Name="System.ApplicationId">
-      <Member Name="#ctor(System.Byte[],System.String,System.Version,System.String,System.String)" />
-      <Member Name="Copy" />
-      <Member Name="Equals(System.Object)" />
-      <Member Name="get_Culture" />
-      <Member Name="get_Name" />
-      <Member Name="get_ProcessorArchitecture" />
-      <Member Name="get_PublicKeyToken" />
-      <Member Name="get_Version" />
-      <Member Name="GetHashCode" />
-      <Member Name="ToString" />
-      <Member MemberType="Property" Name="Culture" />
-      <Member MemberType="Property" Name="Name" />
-      <Member MemberType="Property" Name="ProcessorArchitecture" />
-      <Member MemberType="Property" Name="PublicKeyToken" />
-      <Member MemberType="Property" Name="Version" />
-    </Type>
     <Type Status="ImplRoot" Name="System.Collections.ArrayList">
       <Member Name="ReadOnly(System.Collections.IList)" />
     </Type>
       <Member Name="ToString(System.String)" />
       <Member Name="ToString(System.String,System.IFormatProvider)" />
     </Type>
-    <Type Name="System.CannotUnloadAppDomainException">
-      <Member Name="#ctor" />
-      <Member Name="#ctor(System.String)" />
-      <Member Name="#ctor(System.String,System.Exception)" />
-      <Member Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
-    </Type>
     <Type Name="System.Char">
       <Member MemberType="Field" Name="MaxValue" />
       <Member MemberType="Field" Name="MinValue" />
     <Type Name="System.Environment">
       <Member Name="get_CurrentManagedThreadId"  />
       <Member Name="get_MachineName"  />
-      <Member Name="get_OSVersion" />
       <Member Name="get_ProcessorCount" />
       <Member Name="get_StackTrace" />
       <Member Name="GetEnvironmentVariable(System.String)" />
       <Member Name="GetCommandLineArgs" />
       <Member Name="SetEnvironmentVariable(System.String,System.String)" />
       <Member Name="ExpandEnvironmentVariables(System.String)" />
-      <Member MemberType="Property" Name="OSVersion" />
       <Member MemberType="Property" Name="ProcessorCount" />
       <Member MemberType="Property" Name="CurrentManagedThreadId"  />
       <Member MemberType="Property" Name="HasShutdownStarted" />
       <Member Name="get_Value"/>
       <Member Status="ImplRoot" Name="OnSerializing(System.Runtime.Serialization.StreamingContext)" />
     </Type>
-    <Type Name="System.LoaderOptimization">
-      <Member MemberType="Field" Name="DisallowBindings" />
-      <Member MemberType="Field" Name="DomainMask" />
-      <Member MemberType="Field" Name="MultiDomain" />
-      <Member MemberType="Field" Name="MultiDomainHost" />
-      <Member MemberType="Field" Name="NotSpecified" />
-      <Member MemberType="Field" Name="SingleDomain" />
-      <Member MemberType="Field" Name="value__" />
-    </Type>
-    <Type Name="System.LoaderOptimizationAttribute">
-      <Member Name="#ctor(System.Byte)" />
-      <Member Name="#ctor(System.LoaderOptimization)" />
-      <Member Name="get_Value" />
-      <Member MemberType="Property" Name="Value" />
-    </Type>
     <Type Name="System.LocalDataStoreSlot">
       <Member Status="ImplRoot" Name="Finalize" />
     </Type>
       <Member MemberType="Property" Name="Message" />
     </Type>
     <Type Status="ImplRoot" Name="System.OleAutBinder" Condition="FEATURE_COMINTEROP" />
-    <Type Name="System.OperatingSystem">
-      <Member Name="#ctor(System.PlatformID,System.Version)" />
-      <Member Status="ImplRoot" Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
-      <Member Name="Clone" />
-      <Member Name="get_Platform" />
-      <Member Name="get_Version" />
-      <Member Name="get_ServicePack" />
-      <Member Name="get_VersionString" />
-      <Member Name="ToString" />
-      <Member MemberType="Property" Name="Platform" />
-      <Member MemberType="Property" Name="Version" />
-      <Member MemberType="Property" Name="ServicePack" />
-      <Member MemberType="Property" Name="VersionString" />
-    </Type>
     <Type Name="System.OutOfMemoryException">
       <Member Name="#ctor" />
       <Member Name="#ctor(System.String)" />
       <Member Name="get_CurrentCulture" />
       <Member Name="get_CurrentThread" />
       <Member Name="get_CurrentUICulture" />
-      <Member Name="GetDomain" />
       <Member Name="get_ManagedThreadId" />
       <Member Name="get_Name" />
       <Member Name="set_Name(System.String)" />
       <Member MemberType="Property" Name="Position" />
       <Member MemberType="Property" Name="PositionPointer" />
     </Type>
-    <Type Name="System.Security.Permissions.SecurityAttribute">
-      <Member Name="#ctor(System.Security.Permissions.SecurityAction)" />
-      <Member Name="get_Action" />
-      <Member Name="get_Unrestricted" />
-      <Member Name="set_Action(System.Security.Permissions.SecurityAction)" />
-      <Member Name="set_Unrestricted(System.Boolean)" />
-      <Member Name="FindSecurityAttributeTypeHandle(System.String)"/>
-      <Member MemberType="Property" Name="Action" />
-      <Member MemberType="Property" Name="Unrestricted" />
-    </Type>
     <Type Status="ApiRoot" Name="System.Diagnostics.Contracts.Contract" >
         <Member MemberType="Event" Name="ContractFailed"    />
         <Member Name="Assert(System.Boolean)" />
     </Type>
  
     <Type Status="ImplRoot" Name="System.Security.Permissions.PermissionState" />
-    <Type Name="System.Security.Permissions.SecurityAction" />
     <Type Status="ImplRoot" Name="System.Security.Permissions.SecurityPermission" />
-    <Type Name="System.Security.Permissions.CodeAccessSecurityAttribute">
-      <Member Name="#ctor(System.Security.Permissions.SecurityAction)" />
-    </Type>
-    <Type Name="System.Security.Permissions.SecurityPermissionAttribute">
-      <Member Name="#ctor(System.Security.Permissions.SecurityAction)" />
-      <Member MemberType="Property" Name="ControlAppDomain" />
-      <Member MemberType="Property" Name="ControlDomainPolicy" />
-      <Member MemberType="Property" Name="ControlEvidence" />
-      <Member MemberType="Property" Name="ControlPolicy" />
-      <Member MemberType="Property" Name="ControlThread" />
-      <Member MemberType="Property" Name="Flags" />
-      <Member MemberType="Property" Name="UnmanagedCode" />
-      <Member MemberType="Property" Name="SkipVerification" />
-    </Type>
     <Type Status="ImplRoot" Name="System.Security.PermissionSet">
       <Member MemberType="Field" Name="m_serializedPermissionSet" />  <!-- smosier: avoid changing layout of objects mirrored in EE for now -->
       <Member MemberType="Field" Name="m_unrestrictedPermSet" />  <!-- smosier: avoid changing layout of objects mirrored in EE for now -->
index da37877..d5a5e96 100644 (file)
@@ -115,9 +115,6 @@ namespace System
         public static System.Runtime.Remoting.ObjectHandle CreateComInstanceFrom(string assemblyName, string typeName) { throw null; }
         public static System.Runtime.Remoting.ObjectHandle CreateComInstanceFrom(string assemblyName, string typeName, byte[] hashValue, System.Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm) { throw null; }
         [System.Security.SecurityCriticalAttribute]
-        public static System.Runtime.Remoting.ObjectHandle CreateInstance(System.AppDomain domain, string assemblyName, string typeName) { throw null; }
-        [System.Security.SecurityCriticalAttribute]
-        public static System.Runtime.Remoting.ObjectHandle CreateInstance(System.AppDomain domain, string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; }
         [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
         [System.Security.SecuritySafeCriticalAttribute]
         public static System.Runtime.Remoting.ObjectHandle CreateInstance(string assemblyName, string typeName) { throw null; }
@@ -139,9 +136,6 @@ namespace System
         [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
         public static T CreateInstance<T>() { throw null; }
         [System.Security.SecurityCriticalAttribute]
-        public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(System.AppDomain domain, string assemblyFile, string typeName) { throw null; }
-        [System.Security.SecurityCriticalAttribute]
-        public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(System.AppDomain domain, string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; }
         public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName) { throw null; }
         public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, object[] args, System.Globalization.CultureInfo culture, object[] activationAttributes) { throw null; }
         public static System.Runtime.Remoting.ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object[] activationAttributes) { throw null; }
@@ -180,56 +174,6 @@ namespace System
         public static event System.EventHandler<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs> FirstChanceException { add { } remove { } }
         public static event System.EventHandler ProcessExit { add { } remove { } }
     }
-    [System.Runtime.InteropServices.ClassInterfaceAttribute((System.Runtime.InteropServices.ClassInterfaceType)(0))]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class AppDomain
-    {
-        internal AppDomain() { }
-        public string BaseDirectory { [System.Security.SecurityCriticalAttribute]get { throw null; } }
-        public static System.AppDomain CurrentDomain { get { throw null; } }
-        public bool IsFullyTrusted { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
-        [System.Security.SecurityCriticalAttribute]
-        public object GetData(string name) { throw null; }
-        [System.Security.SecuritySafeCriticalAttribute]
-        public override string ToString() { throw null; }
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    [System.Security.SecurityCriticalAttribute]
-    public partial class AppDomainManager
-    {
-        public AppDomainManager() { }
-        public virtual bool CheckSecuritySettings(System.Security.SecurityState state) { throw null; }
-        [System.Security.SecurityCriticalAttribute]
-        public virtual void InitializeNewDomain(System.AppDomainSetup appDomainInfo) { }
-    }
-    [System.Runtime.InteropServices.ClassInterfaceAttribute((System.Runtime.InteropServices.ClassInterfaceType)(0))]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class AppDomainSetup
-    {
-        internal AppDomainSetup() { }
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public partial class AppDomainUnloadedException : System.SystemException
-    {
-        public AppDomainUnloadedException() { }
-        public AppDomainUnloadedException(string message) { }
-        public AppDomainUnloadedException(string message, System.Exception innerException) { }
-        protected AppDomainUnloadedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class ApplicationId
-    {
-        public ApplicationId(byte[] publicKeyToken, string name, System.Version version, string processorArchitecture, string culture) { }
-        public string Culture { get { throw null; } }
-        public string Name { get { throw null; } }
-        public string ProcessorArchitecture { get { throw null; } }
-        public byte[] PublicKeyToken { get { throw null; } }
-        public System.Version Version { get { throw null; } }
-        public System.ApplicationId Copy() { throw null; }
-        public override bool Equals(object o) { throw null; }
-        public override int GetHashCode() { throw null; }
-        public override string ToString() { throw null; }
-    }
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
     public partial class ApplicationException : System.Exception
     {
@@ -731,14 +675,6 @@ namespace System
         public static bool TryParse(string s, System.Globalization.NumberStyles style, System.IFormatProvider provider, out System.Byte result) { result = default(byte); throw null; }
     }
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public partial class CannotUnloadAppDomainException : System.SystemException
-    {
-        public CannotUnloadAppDomainException() { }
-        public CannotUnloadAppDomainException(string message) { }
-        public CannotUnloadAppDomainException(string message, System.Exception innerException) { }
-        protected CannotUnloadAppDomainException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
     [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
     public partial struct Char : System.IComparable, System.IComparable<char>, System.IConvertible, System.IEquatable<char>
     {
@@ -1947,13 +1883,11 @@ namespace System
         public static bool HasShutdownStarted { [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]get { throw null; } }
         public static string MachineName { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
         public static string NewLine { get { throw null; } }
-        public static System.OperatingSystem OSVersion { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
         public static int ProcessorCount { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
         public static string StackTrace { [System.Security.SecuritySafeCriticalAttribute]get { throw null; } }
         public static int TickCount { [System.Security.SecuritySafeCriticalAttribute][System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]get { throw null; } }
         public static System.Version Version { get { throw null; } }
         [System.Security.SecuritySafeCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         public static void Exit(int exitCode) { }
         [System.Security.SecuritySafeCriticalAttribute]
         public static string ExpandEnvironmentVariables(string name) { throw null; }
@@ -2480,26 +2414,6 @@ namespace System
         public override string ToString() { throw null; }
     }
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public enum LoaderOptimization
-    {
-        [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")]
-        DisallowBindings = 4,
-        [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202")]
-        DomainMask = 3,
-        MultiDomain = 2,
-        MultiDomainHost = 3,
-        NotSpecified = 0,
-        SingleDomain = 1,
-    }
-    [System.AttributeUsageAttribute((System.AttributeTargets)(64))]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class LoaderOptimizationAttribute : System.Attribute
-    {
-        public LoaderOptimizationAttribute(byte value) { }
-        public LoaderOptimizationAttribute(System.LoaderOptimization value) { }
-        public System.LoaderOptimization Value { get { throw null; } }
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
     public sealed partial class LocalDataStoreSlot
     {
         internal LocalDataStoreSlot() { }
@@ -2904,19 +2818,6 @@ namespace System
         public string Message { get { throw null; } }
     }
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class OperatingSystem : System.ICloneable, System.Runtime.Serialization.ISerializable
-    {
-        public OperatingSystem(System.PlatformID platform, System.Version version) { }
-        public System.PlatformID Platform { get { throw null; } }
-        public string ServicePack { get { throw null; } }
-        public System.Version Version { get { throw null; } }
-        public string VersionString { get { throw null; } }
-        public object Clone() { throw null; }
-        [System.Security.SecurityCriticalAttribute]
-        public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
-        public override string ToString() { throw null; }
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
     public partial class OperationCanceledException : System.SystemException
     {
         public OperationCanceledException() { }
@@ -2951,17 +2852,6 @@ namespace System
         public ParamArrayAttribute() { }
     }
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public enum PlatformID
-    {
-        MacOSX = 6,
-        Unix = 4,
-        Win32NT = 2,
-        Win32S = 0,
-        Win32Windows = 1,
-        WinCE = 3,
-        Xbox = 5,
-    }
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
     public partial class PlatformNotSupportedException : System.NotSupportedException
     {
         public PlatformNotSupportedException() { }
@@ -7177,7 +7067,6 @@ namespace System.IO
         public void Dispose() { }
         protected virtual void Dispose(bool disposing) { }
         [System.Security.SecuritySafeCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         protected void Initialize(System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, System.IO.FileAccess access) { }
         [System.Security.SecurityCriticalAttribute]
         public void Read<T>(long position, out T structure) where T : struct { structure = default(T); throw null; }
@@ -10487,10 +10376,8 @@ namespace System.Runtime.InteropServices
     public sealed partial class BStrWrapper
     {
         [System.Security.SecuritySafeCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         public BStrWrapper(object value) { }
         [System.Security.SecuritySafeCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         public BStrWrapper(string value) { }
         public string WrappedObject { get { throw null; } }
     }
@@ -10695,7 +10582,6 @@ namespace System.Runtime.InteropServices
     public sealed partial class DispatchWrapper
     {
         [System.Security.SecuritySafeCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         public DispatchWrapper(object obj) { }
         public object WrappedObject { get { throw null; } }
     }
@@ -10736,7 +10622,6 @@ namespace System.Runtime.InteropServices
     public sealed partial class ErrorWrapper
     {
         [System.Security.SecuritySafeCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         public ErrorWrapper(System.Exception e) { }
         public ErrorWrapper(int errorCode) { }
         public ErrorWrapper(object errorCode) { }
@@ -12405,80 +12290,6 @@ namespace System.Security
         protected VerificationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
     }
 }
-namespace System.Security.Permissions
-{
-    [System.AttributeUsageAttribute((System.AttributeTargets)(109), AllowMultiple=true, Inherited=false)]
-    [System.ObsoleteAttribute("CodeAccessSecurityAttribute is no longer accessible to application code.")]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public abstract partial class CodeAccessSecurityAttribute : System.Security.Permissions.SecurityAttribute
-    {
-        protected CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
-    }
-    [System.ObsoleteAttribute("SecurityAction is no longer accessible to application code.")]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public enum SecurityAction
-    {
-        Assert = 3,
-        Demand = 2,
-        [System.ObsoleteAttribute("Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
-        Deny = 4,
-        InheritanceDemand = 7,
-        LinkDemand = 6,
-        PermitOnly = 5,
-        [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
-        RequestMinimum = 8,
-        [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
-        RequestOptional = 9,
-        [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
-        RequestRefuse = 10,
-    }
-    [System.AttributeUsageAttribute((System.AttributeTargets)(109), AllowMultiple=true, Inherited=false)]
-    [System.ObsoleteAttribute("SecurityAttribute is no longer accessible to application code.")]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public abstract partial class SecurityAttribute : System.Attribute
-    {
-        protected SecurityAttribute(System.Security.Permissions.SecurityAction action) { }
-        public System.Security.Permissions.SecurityAction Action { get { throw null; } set { } }
-        public bool Unrestricted { get { throw null; } set { } }
-    }
-    [System.AttributeUsageAttribute((System.AttributeTargets)(109), AllowMultiple=true, Inherited=false)]
-    [System.ObsoleteAttribute("SecurityPermissionAttribute is no longer accessible to application code.")]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public sealed partial class SecurityPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute
-    {
-        public SecurityPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { }
-        public bool ControlAppDomain { get { throw null; } set { } }
-        public bool ControlDomainPolicy { get { throw null; } set { } }
-        public bool ControlEvidence { get { throw null; } set { } }
-        public bool ControlPolicy { get { throw null; } set { } }
-        public bool ControlThread { get { throw null; } set { } }
-        public System.Security.Permissions.SecurityPermissionFlag Flags { get { throw null; } set { } }
-        public bool SkipVerification { get { throw null; } set { } }
-        public bool UnmanagedCode { get { throw null; } set { } }
-    }
-    [System.FlagsAttribute]
-    [System.ObsoleteAttribute("SecurityPermissionFlag is no longer accessible to application code.")]
-    [System.Runtime.InteropServices.ComVisibleAttribute(true)]
-    public enum SecurityPermissionFlag
-    {
-        AllFlags = 16383,
-        Assertion = 1,
-        BindingRedirects = 8192,
-        ControlAppDomain = 1024,
-        ControlDomainPolicy = 256,
-        ControlEvidence = 32,
-        ControlPolicy = 64,
-        ControlPrincipal = 512,
-        ControlThread = 16,
-        Execution = 8,
-        Infrastructure = 4096,
-        NoFlags = 0,
-        RemotingConfiguration = 2048,
-        SerializationFormatter = 128,
-        SkipVerification = 4,
-        UnmanagedCode = 2,
-    }
-}
 namespace System.Security.Principal
 {
     [System.Runtime.InteropServices.ComVisibleAttribute(true)]
@@ -13535,7 +13346,6 @@ namespace System.Threading
         public new string Name { get { throw null; } [System.Security.SecuritySafeCriticalAttribute]set { } }
         ~Thread() { }
         [System.Security.SecuritySafeCriticalAttribute]
-        public static System.AppDomain GetDomain() { throw null; }
         [System.Runtime.InteropServices.ComVisibleAttribute(false)]
         public override int GetHashCode() { throw null; }
         [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)][System.Security.SecuritySafeCriticalAttribute]
@@ -13582,7 +13392,6 @@ namespace System.Threading
     public static partial class ThreadPool
     {
         [System.Security.SecurityCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, Flags=(System.Security.Permissions.SecurityPermissionFlag)(2))]
         public static bool BindHandle(System.Runtime.InteropServices.SafeHandle osHandle) { throw null; }
         [System.Security.SecuritySafeCriticalAttribute]
         public static void GetMaxThreads(out int workerThreads, out int completionPortThreads) { workerThreads = default(int); completionPortThreads = default(int); }
@@ -13602,10 +13411,8 @@ namespace System.Threading
         [System.Security.SecuritySafeCriticalAttribute]
         public static System.Threading.RegisteredWaitHandle RegisterWaitForSingleObject(System.Threading.WaitHandle waitObject, System.Threading.WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce) { throw null; }
         [System.Security.SecurityCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, ControlThread=true)]
         public static bool SetMaxThreads(int workerThreads, int completionPortThreads) { throw null; }
         [System.Security.SecurityCriticalAttribute]
-        [System.Security.Permissions.SecurityPermissionAttribute(System.Security.Permissions.SecurityAction.Demand, ControlThread=true)]
         public static bool SetMinThreads(int workerThreads, int completionPortThreads) { throw null; }
     }
     public enum ThreadPriority
index cb95868..bd40a7d 100644 (file)
@@ -1400,8 +1400,10 @@ DEFINE_CLASS(SAFE_CSHANDLE, Threading, SafeCompressedStackHandle)
 DEFINE_CLASS(SECURITY_ACTION,       Permissions,            SecurityAction)
 DEFINE_CLASS(HOST_PROTECTION_RESOURCE, Permissions,         HostProtectionResource)
 
+#ifdef FEATURE_CAS_POLICY
 DEFINE_CLASS(SECURITY_ATTRIBUTE,    Permissions,            SecurityAttribute)
 DEFINE_METHOD(SECURITY_ATTRIBUTE, FIND_SECURITY_ATTRIBUTE_TYPE_HANDLE, FindSecurityAttributeTypeHandle, SM_Str_RetIntPtr)
+#endif
 
 #ifdef FEATURE_CAS_POLICY
 DEFINE_CLASS(SECURITY_ELEMENT,      Security,               SecurityElement)
index 1d1d938..3ff4963 100644 (file)
@@ -142,7 +142,13 @@ DEFINE_EXCEPTION(g_SystemNS,       BadImageFormatException,        true,
                  META_E_BAD_SIGNATURE,
                  COR_E_LOADING_WINMD_REFERENCE_ASSEMBLY)
 
+#ifdef FEATURE_CORECLR
+// CannotUnloadAppDomainException is removed in CoreCLR
+#define kCannotUnloadAppDomainException kException 
+#else
 DEFINE_EXCEPTION(g_SystemNS,           CannotUnloadAppDomainException, false,  COR_E_CANNOTUNLOADAPPDOMAIN)
+#endif // FEATURE_CORECLR
+
 DEFINE_EXCEPTION(g_CodeContractsNS,    ContractException,              false,  COR_E_CODECONTRACTFAILED)
 
 #ifdef FEATURE_REMOTING
index 7b4c90c..33f9273 100644 (file)
@@ -6,6 +6,16 @@ using System;
 
 namespace JitTest
 {
+    public enum PlatformID
+    {
+        MacOSX = 6,
+        Unix = 4,
+        Win32NT = 2,
+        Win32S = 0,
+        Win32Windows = 1,
+        WinCE = 3,
+        Xbox = 5,
+    }
     internal enum Mood
     {
         good,
index 41bd149..86cae21 100644 (file)
 .module format.exe
 .namespace JitTest
 {
+  .class public auto ansi sealed PlatformID
+         extends [mscorlib]System.Enum
+  {
+    .field public specialname rtspecialname int32 value__
+    .field public static literal valuetype JitTest.PlatformID MacOSX = int32(0x00000006)
+    .field public static literal valuetype JitTest.PlatformID Unix = int32(0x00000004)
+    .field public static literal valuetype JitTest.PlatformID Win32NT = int32(0x00000002)
+    .field public static literal valuetype JitTest.PlatformID Win32S = int32(0x00000000)
+    .field public static literal valuetype JitTest.PlatformID Win32Windows = int32(0x00000001)
+    .field public static literal valuetype JitTest.PlatformID WinCE = int32(0x00000003)
+    .field public static literal valuetype JitTest.PlatformID Xbox = int32(0x00000005)
+  } // end of class JitTest.PlatformID
   .class value private auto ansi serializable sealed Mood
          extends [mscorlib]System.Enum
   {
@@ -37,7 +49,7 @@
     .field private float64 m_dbl
     .field private bool m_b
     .field private static value class [mscorlib]System.DateTime m_t
-    .field private value class [mscorlib]System.PlatformID m_pid
+    .field private value class JitTest.PlatformID m_pid
     .field private value class JitTest.Mood m_mood
     .method private hidebysig static string 
             Format(typedref format,
       IL_031d:  ldarg.1
       IL_031e:  refanytype
       IL_0320:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(value class [mscorlib]System.RuntimeTypeHandle)
-      IL_0325:  ldtoken    [mscorlib]System.PlatformID
+      IL_0325:  ldtoken    JitTest.PlatformID
       IL_032a:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(value class [mscorlib]System.RuntimeTypeHandle)
       IL_032f:  beq.s      IL_0337
 
 
       IL_0337:  ldloc.2
       IL_0338:  ldarg.1
-      IL_0339:  refanyval  [mscorlib]System.PlatformID
-               ldobj  [mscorlib]System.PlatformID
-      IL_033e:  box        [mscorlib]System.PlatformID
+      IL_0339:  refanyval  JitTest.PlatformID
+               ldobj  JitTest.PlatformID
+      IL_033e:  box        JitTest.PlatformID
       IL_0343:  call       instance string [mscorlib]System.Enum::ToString()
       IL_0348:  call       string [mscorlib]System.String::Concat(string,
                                                                                string)
                float64 V_5,
                bool V_6,
                value class [mscorlib]System.DateTime V_7,
-               value class [mscorlib]System.PlatformID V_8,
+               value class JitTest.PlatformID V_8,
                value class JitTest.Mood V_9)
       IL_0000:  ldc.i4.s   10
       IL_0002:  stloc.0
                                                         string)
       IL_00f6:  ldstr      "{%p}"
       IL_00fb:  ldloca.s   V_8
-      IL_00fd:  mkrefany   [mscorlib]System.PlatformID
+      IL_00fd:  mkrefany   JitTest.PlatformID
       IL_0102:  ldstr      "{Win32NT}"
       IL_0107:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                                                         string)
       IL_00e1:  ldstr      "{%p}"
       IL_00e6:  ldarg.0
-      IL_00e7:  ldflda     value class [mscorlib]System.PlatformID JitTest.TestClass::m_pid
-      IL_00ec:  mkrefany   [mscorlib]System.PlatformID
+      IL_00e7:  ldflda     value class JitTest.PlatformID JitTest.TestClass::m_pid
+      IL_00ec:  mkrefany   JitTest.PlatformID
       IL_00f1:  ldstr      "{Win32NT}"
       IL_00f6:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                            float64& dbl,
                            bool& b,
                            value class [mscorlib]System.DateTime& t,
-                           value class [mscorlib]System.PlatformID& pid) il managed
+                           value class JitTest.PlatformID& pid) il managed
     {
       .maxstack  5
       IL_0000:  ldstr      "{%d}"
                                                         string)
       IL_00bd:  ldstr      "{%p}"
       IL_00c2:  ldarg.s    pid
-      IL_00c4:  mkrefany   [mscorlib]System.PlatformID
+      IL_00c4:  mkrefany   JitTest.PlatformID
       IL_00c9:  ldstr      "{Win32NT}"
       IL_00ce:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                float64 V_5,
                bool V_6,
                value class [mscorlib]System.DateTime V_7,
-               value class [mscorlib]System.PlatformID V_8)
+               value class JitTest.PlatformID V_8)
       IL_0000:  ldc.i4.s   20
       IL_0002:  stloc.0
       IL_0003:  ldc.i4.s   21
                                                                   float64&,
                                                                   bool&,
                                                                   value class [mscorlib]System.DateTime&,
-                                                                  value class [mscorlib]System.PlatformID&)
+                                                                  value class JitTest.PlatformID&)
       IL_0049:  ret
     } // end of method TestClass::TestArgSlots
 
                float64[] V_5,
                bool[] V_6,
                value class [mscorlib]System.DateTime[] V_7,
-               value class [mscorlib]System.PlatformID[] V_8,
+               value class JitTest.PlatformID[] V_8,
                value class JitTest.Mood[] V_9,
                int32[] V_10,
                unsigned int32[] V_11,
                float32[] V_14,
                float64[] V_15,
                bool[] V_16,
-               value class [mscorlib]System.PlatformID[] V_17,
+               value class JitTest.PlatformID[] V_17,
                value class JitTest.Mood[] V_18)
       IL_0000:  ldc.i4.1
       IL_0001:  newarr     [mscorlib]System.Int32
                                                                           int32,
                                                                           int32)
       IL_00a3:  ldc.i4.1
-      IL_00a4:  newarr     [mscorlib]System.PlatformID
+      IL_00a4:  newarr     JitTest.PlatformID
       IL_00a9:  stloc.s    V_17
       IL_00ab:  ldloc.s    V_17
       IL_00ad:  ldc.i4.0
       IL_01b3:  ldstr      "{%p}"
       IL_01b8:  ldloc.s    V_8
       IL_01ba:  ldc.i4.0
-      IL_01bb:  ldelema    [mscorlib]System.PlatformID
-      IL_01c0:  mkrefany   [mscorlib]System.PlatformID
+      IL_01bb:  ldelema    JitTest.PlatformID
+      IL_01c0:  mkrefany   JitTest.PlatformID
       IL_01c5:  ldstr      "{Win32NT}"
       IL_01ca:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
       IL_002d:  stfld      bool JitTest.TestClass::m_b
       IL_0032:  ldarg.0
       IL_0033:  ldc.i4.2
-      IL_0034:  stfld      value class [mscorlib]System.PlatformID JitTest.TestClass::m_pid
+      IL_0034:  stfld      value class JitTest.PlatformID JitTest.TestClass::m_pid
       IL_0039:  ldarg.0
       IL_003a:  ldc.i4.0
       IL_003b:  stfld      value class JitTest.Mood JitTest.TestClass::m_mood
index 0aafa47..395d042 100644 (file)
 .module format.exe
 .namespace JitTest
 {
+  .class public auto ansi sealed PlatformID
+         extends [mscorlib]System.Enum
+  {
+    .field public specialname rtspecialname int32 value__
+    .field public static literal valuetype JitTest.PlatformID MacOSX = int32(0x00000006)
+    .field public static literal valuetype JitTest.PlatformID Unix = int32(0x00000004)
+    .field public static literal valuetype JitTest.PlatformID Win32NT = int32(0x00000002)
+    .field public static literal valuetype JitTest.PlatformID Win32S = int32(0x00000000)
+    .field public static literal valuetype JitTest.PlatformID Win32Windows = int32(0x00000001)
+    .field public static literal valuetype JitTest.PlatformID WinCE = int32(0x00000003)
+    .field public static literal valuetype JitTest.PlatformID Xbox = int32(0x00000005)
+  } // end of class JitTest.PlatformID
   .class value private auto ansi serializable sealed Mood
          extends [mscorlib]System.Enum
   {
@@ -37,7 +49,7 @@
     .field private float64 m_dbl
     .field private bool m_b
     .field private static value class [mscorlib]System.DateTime m_t
-    .field private value class [mscorlib]System.PlatformID m_pid
+    .field private value class JitTest.PlatformID m_pid
     .field private value class JitTest.Mood m_mood
     .method private hidebysig static string 
             Format(typedref format,
       IL_031d:  ldarg.1
       IL_031e:  refanytype
       IL_0320:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(value class [mscorlib]System.RuntimeTypeHandle)
-      IL_0325:  ldtoken    [mscorlib]System.PlatformID
+      IL_0325:  ldtoken    JitTest.PlatformID
       IL_032a:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(value class [mscorlib]System.RuntimeTypeHandle)
       IL_032f:  beq.s      IL_0337
 
 
       IL_0337:  ldloc.2
       IL_0338:  ldarg.1
-      IL_0339:  refanyval  [mscorlib]System.PlatformID
-               ldobj [mscorlib]System.PlatformID
-      IL_033e:  box        [mscorlib]System.PlatformID
+      IL_0339:  refanyval  JitTest.PlatformID
+               ldobj JitTest.PlatformID
+      IL_033e:  box        JitTest.PlatformID
       IL_0343:  call       instance string [mscorlib]System.Enum::ToString()
       IL_0348:  call       string [mscorlib]System.String::Concat(string,
                                                                                string)
                [5] float64 V_5,
                [6] bool V_6,
                [7] value class [mscorlib]System.DateTime V_7,
-               [8] value class [mscorlib]System.PlatformID V_8,
+               [8] value class JitTest.PlatformID V_8,
                [9] value class JitTest.Mood V_9)
       IL_0000:  ldc.i4.s   10
       IL_0002:  stloc.0
                                                         string)
       IL_00f6:  ldstr      "{%p}"
       IL_00fb:  ldloca.s   V_8
-      IL_00fd:  mkrefany   [mscorlib]System.PlatformID
+      IL_00fd:  mkrefany   JitTest.PlatformID
       IL_0102:  ldstr      "{Win32NT}"
       IL_0107:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                                                         string)
       IL_00e1:  ldstr      "{%p}"
       IL_00e6:  ldarg.0
-      IL_00e7:  ldflda     value class [mscorlib]System.PlatformID JitTest.TestClass::m_pid
-      IL_00ec:  mkrefany   [mscorlib]System.PlatformID
+      IL_00e7:  ldflda     value class JitTest.PlatformID JitTest.TestClass::m_pid
+      IL_00ec:  mkrefany   JitTest.PlatformID
       IL_00f1:  ldstr      "{Win32NT}"
       IL_00f6:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                            float64& dbl,
                            bool& b,
                            value class [mscorlib]System.DateTime& t,
-                           value class [mscorlib]System.PlatformID& pid) il managed
+                           value class JitTest.PlatformID& pid) il managed
     {
       .maxstack  5
       IL_0000:  ldstr      "{%d}"
                                                         string)
       IL_00bd:  ldstr      "{%p}"
       IL_00c2:  ldarg.s    pid
-      IL_00c4:  mkrefany   [mscorlib]System.PlatformID
+      IL_00c4:  mkrefany   JitTest.PlatformID
       IL_00c9:  ldstr      "{Win32NT}"
       IL_00ce:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                [5] float64 V_5,
                [6] bool V_6,
                [7] value class [mscorlib]System.DateTime V_7,
-               [8] value class [mscorlib]System.PlatformID V_8)
+               [8] value class JitTest.PlatformID V_8)
       IL_0000:  ldc.i4.s   20
       IL_0002:  stloc.0
       IL_0003:  ldc.i4.s   21
                                                                   float64&,
                                                                   bool&,
                                                                   value class [mscorlib]System.DateTime&,
-                                                                  value class [mscorlib]System.PlatformID&)
+                                                                  value class JitTest.PlatformID&)
       IL_0049:  ret
     } // end of method TestClass::TestArgSlots
 
                [5] float64[] V_5,
                [6] bool[] V_6,
                [7] value class [mscorlib]System.DateTime[] V_7,
-               [8] value class [mscorlib]System.PlatformID[] V_8,
+               [8] value class JitTest.PlatformID[] V_8,
                [9] value class JitTest.Mood[] V_9,
                [10] int32[] V_10,
                [11] unsigned int32[] V_11,
                [14] float32[] V_14,
                [15] float64[] V_15,
                [16] bool[] V_16,
-               [17] value class [mscorlib]System.PlatformID[] V_17,
+               [17] value class JitTest.PlatformID[] V_17,
                [18] value class JitTest.Mood[] V_18)
       IL_0000:  ldc.i4.1
       IL_0001:  newarr     [mscorlib]System.Int32
                                                                           int32,
                                                                           int32)
       IL_00a3:  ldc.i4.1
-      IL_00a4:  newarr     [mscorlib]System.PlatformID
+      IL_00a4:  newarr     JitTest.PlatformID
       IL_00a9:  stloc.s    V_17
       IL_00ab:  ldloc.s    V_17
       IL_00ad:  ldc.i4.0
       IL_01b3:  ldstr      "{%p}"
       IL_01b8:  ldloc.s    V_8
       IL_01ba:  ldc.i4.0
-      IL_01bb:  ldelema    [mscorlib]System.PlatformID
-      IL_01c0:  mkrefany   [mscorlib]System.PlatformID
+      IL_01bb:  ldelema    JitTest.PlatformID
+      IL_01c0:  mkrefany   JitTest.PlatformID
       IL_01c5:  ldstr      "{Win32NT}"
       IL_01ca:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
       IL_002d:  stfld      bool JitTest.TestClass::m_b
       IL_0032:  ldarg.0
       IL_0033:  ldc.i4.2
-      IL_0034:  stfld      value class [mscorlib]System.PlatformID JitTest.TestClass::m_pid
+      IL_0034:  stfld      value class JitTest.PlatformID JitTest.TestClass::m_pid
       IL_0039:  ldarg.0
       IL_003a:  ldc.i4.0
       IL_003b:  stfld      value class JitTest.Mood JitTest.TestClass::m_mood
index f336dfd..e013bae 100644 (file)
 }
 .namespace JitTest
 {
+  .class public auto ansi sealed PlatformID
+         extends [mscorlib]System.Enum
+  {
+    .field public specialname rtspecialname int32 value__
+    .field public static literal valuetype JitTest.PlatformID MacOSX = int32(0x00000006)
+    .field public static literal valuetype JitTest.PlatformID Unix = int32(0x00000004)
+    .field public static literal valuetype JitTest.PlatformID Win32NT = int32(0x00000002)
+    .field public static literal valuetype JitTest.PlatformID Win32S = int32(0x00000000)
+    .field public static literal valuetype JitTest.PlatformID Win32Windows = int32(0x00000001)
+    .field public static literal valuetype JitTest.PlatformID WinCE = int32(0x00000003)
+    .field public static literal valuetype JitTest.PlatformID Xbox = int32(0x00000005)
+  } // end of class JitTest.PlatformID
   .class value private auto ansi serializable sealed Mood
          extends [mscorlib]System.Enum
   {
@@ -36,7 +48,7 @@
     .field private float64 m_dbl
     .field private bool m_b
     .field private static value class [mscorlib]System.DateTime m_t
-    .field private value class [mscorlib]System.PlatformID m_pid
+    .field private value class JitTest.PlatformID m_pid
     .field private value class JitTest.Mood m_mood
     .method private hidebysig static string 
             Format(typedref format,
       IL_031d:  ldarg.1
       IL_031e:  refanytype
       IL_0320:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(value class [mscorlib]System.RuntimeTypeHandle)
-      IL_0325:  ldtoken    [mscorlib]System.PlatformID
+      IL_0325:  ldtoken    JitTest.PlatformID
       IL_032a:  call       class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(value class [mscorlib]System.RuntimeTypeHandle)
       IL_032f:  beq.s      IL_0337
 
 
       IL_0337:  ldloc.2
       IL_0338:  ldarg.1
-      IL_0339:  refanyval  [mscorlib]System.PlatformID
-               ldobj [mscorlib]System.PlatformID
-      IL_033e:  box        [mscorlib]System.PlatformID
+      IL_0339:  refanyval  JitTest.PlatformID
+               ldobj JitTest.PlatformID
+      IL_033e:  box        JitTest.PlatformID
       IL_0343:  call       instance string [mscorlib]System.Enum::ToString()
       IL_0348:  call       string [mscorlib]System.String::Concat(string,
                                                                                string)
                [5] float64 V_5,
                [6] bool V_6,
                [7] value class [mscorlib]System.DateTime V_7,
-               [8] value class [mscorlib]System.PlatformID V_8,
+               [8] value class JitTest.PlatformID V_8,
                [9] value class JitTest.Mood V_9)
       IL_0000:  ldc.i4.s   10
       IL_0002:  stloc.0
                                                         string)
       IL_00f6:  ldstr      "{%p}"
       IL_00fb:  ldloca.s   V_8
-      IL_00fd:  mkrefany   [mscorlib]System.PlatformID
+      IL_00fd:  mkrefany   JitTest.PlatformID
       IL_0102:  ldstr      "{Win32NT}"
       IL_0107:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                                                         string)
       IL_00e1:  ldstr      "{%p}"
       IL_00e6:  ldarg.0
-      IL_00e7:  ldflda     value class [mscorlib]System.PlatformID JitTest.TestClass::m_pid
-      IL_00ec:  mkrefany   [mscorlib]System.PlatformID
+      IL_00e7:  ldflda     value class JitTest.PlatformID JitTest.TestClass::m_pid
+      IL_00ec:  mkrefany   JitTest.PlatformID
       IL_00f1:  ldstr      "{Win32NT}"
       IL_00f6:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                            float64& dbl,
                            bool& b,
                            value class [mscorlib]System.DateTime& t,
-                           value class [mscorlib]System.PlatformID& pid) il managed
+                           value class JitTest.PlatformID& pid) il managed
     {
       .maxstack  5
       IL_0000:  ldstr      "{%d}"
                                                         string)
       IL_00bd:  ldstr      "{%p}"
       IL_00c2:  ldarg.s    pid
-      IL_00c4:  mkrefany   [mscorlib]System.PlatformID
+      IL_00c4:  mkrefany   JitTest.PlatformID
       IL_00c9:  ldstr      "{Win32NT}"
       IL_00ce:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
                [5] float64 V_5,
                [6] bool V_6,
                [7] value class [mscorlib]System.DateTime V_7,
-               [8] value class [mscorlib]System.PlatformID V_8)
+               [8] value class JitTest.PlatformID V_8)
       IL_0000:  ldc.i4.s   20
       IL_0002:  stloc.0
       IL_0003:  ldc.i4.s   21
                                                                   float64&,
                                                                   bool&,
                                                                   value class [mscorlib]System.DateTime&,
-                                                                  value class [mscorlib]System.PlatformID&)
+                                                                  value class JitTest.PlatformID&)
       IL_0049:  ret
     } // end of method TestClass::TestArgSlots
 
                [5] float64[] V_5,
                [6] bool[] V_6,
                [7] value class [mscorlib]System.DateTime[] V_7,
-               [8] value class [mscorlib]System.PlatformID[] V_8,
+               [8] value class JitTest.PlatformID[] V_8,
                [9] value class JitTest.Mood[] V_9,
                [10] int32[] V_10,
                [11] unsigned int32[] V_11,
                [14] float32[] V_14,
                [15] float64[] V_15,
                [16] bool[] V_16,
-               [17] value class [mscorlib]System.PlatformID[] V_17,
+               [17] value class JitTest.PlatformID[] V_17,
                [18] value class JitTest.Mood[] V_18)
       IL_0000:  ldc.i4.1
       IL_0001:  newarr     [mscorlib]System.Int32
                                                                           int32,
                                                                           int32)
       IL_00a3:  ldc.i4.1
-      IL_00a4:  newarr     [mscorlib]System.PlatformID
+      IL_00a4:  newarr     JitTest.PlatformID
       IL_00a9:  stloc.s    V_17
       IL_00ab:  ldloc.s    V_17
       IL_00ad:  ldc.i4.0
       IL_01b3:  ldstr      "{%p}"
       IL_01b8:  ldloc.s    V_8
       IL_01ba:  ldc.i4.0
-      IL_01bb:  ldelema    [mscorlib]System.PlatformID
-      IL_01c0:  mkrefany   [mscorlib]System.PlatformID
+      IL_01bb:  ldelema    JitTest.PlatformID
+      IL_01c0:  mkrefany   JitTest.PlatformID
       IL_01c5:  ldstr      "{Win32NT}"
       IL_01ca:  call       void JitTest.TestClass::Test(string,
                                                         typedref,
       IL_002d:  stfld      bool JitTest.TestClass::m_b
       IL_0032:  ldarg.0
       IL_0033:  ldc.i4.2
-      IL_0034:  stfld      value class [mscorlib]System.PlatformID JitTest.TestClass::m_pid
+      IL_0034:  stfld      value class JitTest.PlatformID JitTest.TestClass::m_pid
       IL_0039:  ldarg.0
       IL_003a:  ldc.i4.0
       IL_003b:  stfld      value class JitTest.Mood JitTest.TestClass::m_mood