From c03502b1064f5df5126e0a5a4f28e9a03443c7ac Mon Sep 17 00:00:00 2001 From: Alex Perovich Date: Thu, 23 Mar 2017 14:49:30 -0700 Subject: [PATCH] Remove moved files --- src/mscorlib/System.Private.CoreLib.csproj | 41 ---- .../shared/System.Private.CoreLib.Shared.projitems | 1 - .../System/Reflection/AmbiguousMatchException.cs | 31 --- .../src/System/Reflection/AssemblyAttributes.cs | 259 --------------------- .../src/System/Reflection/AssemblyContentType.cs | 13 -- .../src/System/Reflection/AssemblyNameFlags.cs | 21 -- src/mscorlib/src/System/Reflection/Binder.cs | 19 -- src/mscorlib/src/System/Reflection/BindingFlags.cs | 50 ---- .../src/System/Reflection/CallingConventions.cs | 20 -- .../Reflection/CustomAttributeFormatException.cs | 30 --- .../System/Reflection/DefaultMemberAttribute.cs | 22 -- .../src/System/Reflection/EventAttributes.cs | 22 -- .../Reflection/ExceptionHandlingClauseOptions.cs | 16 -- .../src/System/Reflection/FieldAttributes.cs | 40 ---- .../Reflection/GenericParameterAttributes.cs | 20 -- .../System/Reflection/ICustomAttributeProvider.cs | 13 -- .../src/System/Reflection/IReflectableType.cs | 12 - .../src/System/Reflection/ImageFileMachine.cs | 15 -- .../src/System/Reflection/InterfaceMapping.cs | 14 -- .../System/Reflection/IntrospectionExtensions.cs | 28 --- .../Reflection/InvalidFilterCriteriaException.cs | 30 --- .../src/System/Reflection/ManifestResourceInfo.cs | 23 -- src/mscorlib/src/System/Reflection/MemberFilter.cs | 8 - src/mscorlib/src/System/Reflection/MemberTypes.cs | 20 -- .../src/System/Reflection/MethodAttributes.cs | 50 ---- .../src/System/Reflection/MethodImplAttributes.cs | 38 --- src/mscorlib/src/System/Reflection/Missing.cs | 24 -- .../System/Reflection/ModuleResolveEventHandler.cs | 9 - .../src/System/Reflection/ParameterAttributes.cs | 29 --- .../src/System/Reflection/ParameterModifier.cs | 32 --- .../System/Reflection/PortableExecutableKinds.cs | 18 -- .../src/System/Reflection/ProcessorArchitecture.cs | 16 -- .../src/System/Reflection/PropertyAttributes.cs | 25 -- .../src/System/Reflection/ReflectionContext.cs | 24 -- .../Reflection/ReflectionTypeLoadException.cs | 43 ---- .../src/System/Reflection/ResourceAttributes.cs | 14 -- .../src/System/Reflection/ResourceLocation.cs | 15 -- .../src/System/Reflection/StrongNameKeyPair.cs | 74 ------ .../src/System/Reflection/TargetException.cs | 29 --- .../System/Reflection/TargetInvocationException.cs | 26 --- .../Reflection/TargetParameterCountException.cs | 32 --- .../src/System/Reflection/TypeAttributes.cs | 63 ----- src/mscorlib/src/System/Reflection/TypeFilter.cs | 8 - 43 files changed, 1337 deletions(-) delete mode 100644 src/mscorlib/src/System/Reflection/AmbiguousMatchException.cs delete mode 100644 src/mscorlib/src/System/Reflection/AssemblyAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/AssemblyContentType.cs delete mode 100644 src/mscorlib/src/System/Reflection/AssemblyNameFlags.cs delete mode 100644 src/mscorlib/src/System/Reflection/Binder.cs delete mode 100644 src/mscorlib/src/System/Reflection/BindingFlags.cs delete mode 100644 src/mscorlib/src/System/Reflection/CallingConventions.cs delete mode 100644 src/mscorlib/src/System/Reflection/CustomAttributeFormatException.cs delete mode 100644 src/mscorlib/src/System/Reflection/DefaultMemberAttribute.cs delete mode 100644 src/mscorlib/src/System/Reflection/EventAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/ExceptionHandlingClauseOptions.cs delete mode 100644 src/mscorlib/src/System/Reflection/FieldAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/GenericParameterAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs delete mode 100644 src/mscorlib/src/System/Reflection/IReflectableType.cs delete mode 100644 src/mscorlib/src/System/Reflection/ImageFileMachine.cs delete mode 100644 src/mscorlib/src/System/Reflection/InterfaceMapping.cs delete mode 100644 src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs delete mode 100644 src/mscorlib/src/System/Reflection/InvalidFilterCriteriaException.cs delete mode 100644 src/mscorlib/src/System/Reflection/ManifestResourceInfo.cs delete mode 100644 src/mscorlib/src/System/Reflection/MemberFilter.cs delete mode 100644 src/mscorlib/src/System/Reflection/MemberTypes.cs delete mode 100644 src/mscorlib/src/System/Reflection/MethodAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/MethodImplAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/Missing.cs delete mode 100644 src/mscorlib/src/System/Reflection/ModuleResolveEventHandler.cs delete mode 100644 src/mscorlib/src/System/Reflection/ParameterAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/ParameterModifier.cs delete mode 100644 src/mscorlib/src/System/Reflection/PortableExecutableKinds.cs delete mode 100644 src/mscorlib/src/System/Reflection/ProcessorArchitecture.cs delete mode 100644 src/mscorlib/src/System/Reflection/PropertyAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/ReflectionContext.cs delete mode 100644 src/mscorlib/src/System/Reflection/ReflectionTypeLoadException.cs delete mode 100644 src/mscorlib/src/System/Reflection/ResourceAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/ResourceLocation.cs delete mode 100644 src/mscorlib/src/System/Reflection/StrongNameKeyPair.cs delete mode 100644 src/mscorlib/src/System/Reflection/TargetException.cs delete mode 100644 src/mscorlib/src/System/Reflection/TargetInvocationException.cs delete mode 100644 src/mscorlib/src/System/Reflection/TargetParameterCountException.cs delete mode 100644 src/mscorlib/src/System/Reflection/TypeAttributes.cs delete mode 100644 src/mscorlib/src/System/Reflection/TypeFilter.cs diff --git a/src/mscorlib/System.Private.CoreLib.csproj b/src/mscorlib/System.Private.CoreLib.csproj index 29f247e..e9642ee 100644 --- a/src/mscorlib/System.Private.CoreLib.csproj +++ b/src/mscorlib/System.Private.CoreLib.csproj @@ -433,60 +433,25 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -496,12 +461,6 @@ - - - - - - diff --git a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems index ac63d9a..2e388c4 100644 --- a/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems @@ -209,7 +209,6 @@ - diff --git a/src/mscorlib/src/System/Reflection/AmbiguousMatchException.cs b/src/mscorlib/src/System/Reflection/AmbiguousMatchException.cs deleted file mode 100644 index 07b2323..0000000 --- a/src/mscorlib/src/System/Reflection/AmbiguousMatchException.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public sealed class AmbiguousMatchException : SystemException - { - public AmbiguousMatchException() : base(SR.RFLCT_Ambiguous) - { - HResult = __HResults.COR_E_AMBIGUOUSMATCH; - } - - public AmbiguousMatchException(string message) : base(message) - { - HResult = __HResults.COR_E_AMBIGUOUSMATCH; - } - - public AmbiguousMatchException(string message, Exception inner) : base(message, inner) - { - HResult = __HResults.COR_E_AMBIGUOUSMATCH; - } - - internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } - } -} diff --git a/src/mscorlib/src/System/Reflection/AssemblyAttributes.cs b/src/mscorlib/src/System/Reflection/AssemblyAttributes.cs deleted file mode 100644 index 1554403..0000000 --- a/src/mscorlib/src/System/Reflection/AssemblyAttributes.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Configuration.Assemblies; - -namespace System.Reflection -{ - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyCopyrightAttribute : Attribute - { - public AssemblyCopyrightAttribute(string copyright) - { - Copyright = copyright; - } - - public string Copyright { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyTrademarkAttribute : Attribute - { - public AssemblyTrademarkAttribute(string trademark) - { - Trademark = trademark; - } - - public string Trademark { get; } - } - - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyProductAttribute : Attribute - { - public AssemblyProductAttribute(string product) - { - Product = product; - } - - public string Product { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyCompanyAttribute : Attribute - { - public AssemblyCompanyAttribute(string company) - { - Company = company; - } - - public string Company { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyDescriptionAttribute : Attribute - { - public AssemblyDescriptionAttribute(string description) - { - Description = description; - } - - public string Description { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyTitleAttribute : Attribute - { - public AssemblyTitleAttribute(string title) - { - Title = title; - } - - public string Title { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyConfigurationAttribute : Attribute - { - public AssemblyConfigurationAttribute(string configuration) - { - Configuration = configuration; - } - - public string Configuration { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyDefaultAliasAttribute : Attribute - { - public AssemblyDefaultAliasAttribute(string defaultAlias) - { - DefaultAlias = defaultAlias; - } - - public string DefaultAlias { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyInformationalVersionAttribute : Attribute - { - public AssemblyInformationalVersionAttribute(string informationalVersion) - { - InformationalVersion = informationalVersion; - } - - public string InformationalVersion { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyFileVersionAttribute : Attribute - { - public AssemblyFileVersionAttribute(string version) - { - if (version == null) - throw new ArgumentNullException(nameof(version)); - Version = version; - } - - public string Version { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyCultureAttribute : Attribute - { - public AssemblyCultureAttribute(string culture) - { - Culture = culture; - } - - public string Culture { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyVersionAttribute : Attribute - { - public AssemblyVersionAttribute(string version) - { - Version = version; - } - - public string Version { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyKeyFileAttribute : Attribute - { - public AssemblyKeyFileAttribute(string keyFile) - { - KeyFile = keyFile; - } - - public string KeyFile { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyDelaySignAttribute : Attribute - { - public AssemblyDelaySignAttribute(bool delaySign) - { - DelaySign = delaySign; - } - - public bool DelaySign { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyAlgorithmIdAttribute : Attribute - { - public AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm algorithmId) - { - AlgorithmId = (uint)algorithmId; - } - - [CLSCompliant(false)] - public AssemblyAlgorithmIdAttribute(uint algorithmId) - { - AlgorithmId = algorithmId; - } - - [CLSCompliant(false)] - public uint AlgorithmId { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public unsafe sealed class AssemblyFlagsAttribute : Attribute - { - private AssemblyNameFlags _flags; - - [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")] - [CLSCompliant(false)] - public AssemblyFlagsAttribute(uint flags) - { - _flags = (AssemblyNameFlags)flags; - } - - [Obsolete("This property has been deprecated. Please use AssemblyFlags instead. http://go.microsoft.com/fwlink/?linkid=14202")] - [CLSCompliant(false)] - public uint Flags - { - get { return (uint)_flags; } - } - - public int AssemblyFlags - { - get { return (int)_flags; } - } - - [Obsolete("This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")] - public AssemblyFlagsAttribute(int assemblyFlags) - { - _flags = (AssemblyNameFlags)assemblyFlags; - } - - public AssemblyFlagsAttribute(AssemblyNameFlags assemblyFlags) - { - _flags = assemblyFlags; - } - } - - [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)] - public sealed class AssemblyMetadataAttribute : Attribute - { - public AssemblyMetadataAttribute(string key, string value) - { - Key = key; - Value = value; - } - - public string Key { get; } - - public string Value { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)] - public sealed class AssemblySignatureKeyAttribute : Attribute - { - public AssemblySignatureKeyAttribute(string publicKey, string countersignature) - { - PublicKey = publicKey; - Countersignature = countersignature; - } - - public string PublicKey { get; } - - public string Countersignature { get; } - } - - [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] - public sealed class AssemblyKeyNameAttribute : Attribute - { - public AssemblyKeyNameAttribute(string keyName) - { - KeyName = keyName; - } - - public string KeyName { get; } - } -} - diff --git a/src/mscorlib/src/System/Reflection/AssemblyContentType.cs b/src/mscorlib/src/System/Reflection/AssemblyContentType.cs deleted file mode 100644 index 2ee1a00..0000000 --- a/src/mscorlib/src/System/Reflection/AssemblyContentType.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public enum AssemblyContentType - { - Default = 0, - WindowsRuntime = 1, - } -} - diff --git a/src/mscorlib/src/System/Reflection/AssemblyNameFlags.cs b/src/mscorlib/src/System/Reflection/AssemblyNameFlags.cs deleted file mode 100644 index d321032..0000000 --- a/src/mscorlib/src/System/Reflection/AssemblyNameFlags.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum AssemblyNameFlags - { - None = 0x0000, - // Flag used to indicate that an assembly ref contains the full public key, not the compressed token. - // Must match afPublicKey in CorHdr.h. - PublicKey = 0x0001, - //ProcArchMask = 0x00F0, // Bits describing the processor architecture - // Accessible via AssemblyName.ProcessorArchitecture - EnableJITcompileOptimizer = 0x4000, - EnableJITcompileTracking = 0x8000, - Retargetable = 0x0100, - //ContentType = 0x0E00, // Bits describing the ContentType are accessible via AssemblyName.ContentType - } -} diff --git a/src/mscorlib/src/System/Reflection/Binder.cs b/src/mscorlib/src/System/Reflection/Binder.cs deleted file mode 100644 index 3dc5665..0000000 --- a/src/mscorlib/src/System/Reflection/Binder.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Globalization; - -namespace System.Reflection -{ - public abstract class Binder - { - protected Binder() { } - public abstract FieldInfo BindToField(BindingFlags bindingAttr, FieldInfo[] match, object value, CultureInfo culture); - public abstract MethodBase BindToMethod(BindingFlags bindingAttr, MethodBase[] match, ref object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] names, out object state); - public abstract object ChangeType(object value, Type type, CultureInfo culture); - public abstract void ReorderArgumentArray(ref object[] args, object state); - public abstract MethodBase SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[] modifiers); - public abstract PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers); - } -} diff --git a/src/mscorlib/src/System/Reflection/BindingFlags.cs b/src/mscorlib/src/System/Reflection/BindingFlags.cs deleted file mode 100644 index 26c875d..0000000 --- a/src/mscorlib/src/System/Reflection/BindingFlags.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum BindingFlags - { - // NOTES: We have lookup masks defined in RuntimeType and Activator. If we - // change the lookup values then these masks may need to change also. - - // a place holder for no flag specifed - Default = 0x00, - - // These flags indicate what to search for when binding - IgnoreCase = 0x01, // Ignore the case of Names while searching - DeclaredOnly = 0x02, // Only look at the members declared on the Type - Instance = 0x04, // Include Instance members in search - Static = 0x08, // Include Static members in search - Public = 0x10, // Include Public members in search - NonPublic = 0x20, // Include Non-Public members in search - FlattenHierarchy = 0x40, // Rollup the statics into the class. - - // These flags are used by InvokeMember to determine - // what type of member we are trying to Invoke. - // BindingAccess = 0xFF00; - InvokeMethod = 0x0100, - CreateInstance = 0x0200, - GetField = 0x0400, - SetField = 0x0800, - GetProperty = 0x1000, - SetProperty = 0x2000, - - // These flags are also used by InvokeMember but they should only - // be used when calling InvokeMember on a COM object. - PutDispProperty = 0x4000, - PutRefDispProperty = 0x8000, - - ExactBinding = 0x010000, // Bind with Exact Type matching, No Change type - SuppressChangeType = 0x020000, - - // DefaultValueBinding will return the set of methods having ArgCount or - // more parameters. This is used for default values, etc. - OptionalParamBinding = 0x040000, - - // These are a couple of misc attributes used - IgnoreReturn = 0x01000000, // This is used in COM Interop - } -} diff --git a/src/mscorlib/src/System/Reflection/CallingConventions.cs b/src/mscorlib/src/System/Reflection/CallingConventions.cs deleted file mode 100644 index bb6d6cd..0000000 --- a/src/mscorlib/src/System/Reflection/CallingConventions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// CallingConventions is a set of Bits representing the calling conventions in the system. - -namespace System.Reflection -{ - [Flags] - public enum CallingConventions - { - //NOTE: If you change this please update COMMember.cpp. These - // are defined there. - Standard = 0x0001, - VarArgs = 0x0002, - Any = Standard | VarArgs, - HasThis = 0x0020, - ExplicitThis = 0x0040, - } -} diff --git a/src/mscorlib/src/System/Reflection/CustomAttributeFormatException.cs b/src/mscorlib/src/System/Reflection/CustomAttributeFormatException.cs deleted file mode 100644 index 47752af..0000000 --- a/src/mscorlib/src/System/Reflection/CustomAttributeFormatException.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public class CustomAttributeFormatException : FormatException - { - public CustomAttributeFormatException() - : this(SR.Arg_CustomAttributeFormatException) - { - } - - public CustomAttributeFormatException(string message) - : this(message, null) - { - } - - public CustomAttributeFormatException(string message, Exception inner) - : base(message, inner) - { - HResult = __HResults.COR_E_CUSTOMATTRIBUTEFORMAT; - } - - protected CustomAttributeFormatException(SerializationInfo info, StreamingContext context) : base(info, context) { } - } -} diff --git a/src/mscorlib/src/System/Reflection/DefaultMemberAttribute.cs b/src/mscorlib/src/System/Reflection/DefaultMemberAttribute.cs deleted file mode 100644 index 3511433..0000000 --- a/src/mscorlib/src/System/Reflection/DefaultMemberAttribute.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Serializable] - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] - public sealed class DefaultMemberAttribute : Attribute - { - // You must provide the name of the member, this is required - public DefaultMemberAttribute(string memberName) - { - MemberName = memberName; - } - - // A get accessor to return the name from the attribute. - // NOTE: There is no setter because the name must be provided - // to the constructor. The name is not optional. - public string MemberName { get; } - } -} diff --git a/src/mscorlib/src/System/Reflection/EventAttributes.cs b/src/mscorlib/src/System/Reflection/EventAttributes.cs deleted file mode 100644 index fbc2972..0000000 --- a/src/mscorlib/src/System/Reflection/EventAttributes.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// EventAttributes are an enum defining the attributes associated with and Event. -// These are defined in CorHdr.h and are a combination of bits and enums. - -namespace System.Reflection -{ - [Flags] - public enum EventAttributes - { - None = 0x0000, - - // This Enum matchs the CorEventAttr defined in CorHdr.h - SpecialName = 0x0200, // event is special. Name describes how. - - RTSpecialName = 0x0400, // Runtime(metadata internal APIs) should check name encoding. - - ReservedMask = 0x0400, - } -} diff --git a/src/mscorlib/src/System/Reflection/ExceptionHandlingClauseOptions.cs b/src/mscorlib/src/System/Reflection/ExceptionHandlingClauseOptions.cs deleted file mode 100644 index 22c141b..0000000 --- a/src/mscorlib/src/System/Reflection/ExceptionHandlingClauseOptions.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags()] - public enum ExceptionHandlingClauseOptions : int - { - Clause = 0x0, - Filter = 0x1, - Finally = 0x2, - Fault = 0x4, - } -} - diff --git a/src/mscorlib/src/System/Reflection/FieldAttributes.cs b/src/mscorlib/src/System/Reflection/FieldAttributes.cs deleted file mode 100644 index 048d0e7..0000000 --- a/src/mscorlib/src/System/Reflection/FieldAttributes.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - // This Enum matchs the CorFieldAttr defined in CorHdr.h - [Flags] - public enum FieldAttributes - { - // member access mask - Use this mask to retrieve accessibility information. - FieldAccessMask = 0x0007, - PrivateScope = 0x0000, // Member not referenceable. - Private = 0x0001, // Accessible only by the parent type. - FamANDAssem = 0x0002, // Accessible by sub-types only in this Assembly. - Assembly = 0x0003, // Accessibly by anyone in the Assembly. - Family = 0x0004, // Accessible only by type and sub-types. - FamORAssem = 0x0005, // Accessibly by sub-types anywhere, plus anyone in assembly. - Public = 0x0006, // Accessibly by anyone who has visibility to this scope. - // end member access mask - - // field contract attributes. - Static = 0x0010, // Defined on type, else per instance. - InitOnly = 0x0020, // Field may only be initialized, not written to after init. - Literal = 0x0040, // Value is compile time constant. - NotSerialized = 0x0080, // Field does not have to be serialized when type is remoted. - - SpecialName = 0x0200, // field is special. Name describes how. - - // interop attributes - PinvokeImpl = 0x2000, // Implementation is forwarded through pinvoke. - - RTSpecialName = 0x0400, // Runtime(metadata internal APIs) should check name encoding. - HasFieldMarshal = 0x1000, // Field has marshalling information. - HasDefault = 0x8000, // Field has default. - HasFieldRVA = 0x0100, // Field has RVA. - - ReservedMask = 0x9500, - } -} diff --git a/src/mscorlib/src/System/Reflection/GenericParameterAttributes.cs b/src/mscorlib/src/System/Reflection/GenericParameterAttributes.cs deleted file mode 100644 index 4b579d2..0000000 --- a/src/mscorlib/src/System/Reflection/GenericParameterAttributes.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum GenericParameterAttributes - { - None = 0x0000, - VarianceMask = 0x0003, - Covariant = 0x0001, - Contravariant = 0x0002, - SpecialConstraintMask = 0x001C, - ReferenceTypeConstraint = 0x0004, - NotNullableValueTypeConstraint = 0x0008, - DefaultConstructorConstraint = 0x0010, - } -} - diff --git a/src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs b/src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs deleted file mode 100644 index 3cae295..0000000 --- a/src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public interface ICustomAttributeProvider - { - object[] GetCustomAttributes(bool inherit); - object[] GetCustomAttributes(Type attributeType, bool inherit); - bool IsDefined(Type attributeType, bool inherit); - } -} \ No newline at end of file diff --git a/src/mscorlib/src/System/Reflection/IReflectableType.cs b/src/mscorlib/src/System/Reflection/IReflectableType.cs deleted file mode 100644 index 5e2c0eda..0000000 --- a/src/mscorlib/src/System/Reflection/IReflectableType.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public interface IReflectableType - { - TypeInfo GetTypeInfo(); - } -} - diff --git a/src/mscorlib/src/System/Reflection/ImageFileMachine.cs b/src/mscorlib/src/System/Reflection/ImageFileMachine.cs deleted file mode 100644 index 230bc95..0000000 --- a/src/mscorlib/src/System/Reflection/ImageFileMachine.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public enum ImageFileMachine - { - I386 = 0x014c, - IA64 = 0x0200, - AMD64 = 0x8664, - ARM = 0x01c4, - } -} - diff --git a/src/mscorlib/src/System/Reflection/InterfaceMapping.cs b/src/mscorlib/src/System/Reflection/InterfaceMapping.cs deleted file mode 100644 index 2e0c0d8..0000000 --- a/src/mscorlib/src/System/Reflection/InterfaceMapping.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public struct InterfaceMapping - { - public Type TargetType; // The type implementing the interface - public Type InterfaceType; // The type representing the interface - public MethodInfo[] TargetMethods; // The methods implementing the interface - public MethodInfo[] InterfaceMethods; // The methods defined on the interface - } -} diff --git a/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs b/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs deleted file mode 100644 index 3329360..0000000 --- a/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Diagnostics; - -namespace System.Reflection -{ - public static class IntrospectionExtensions - { - public static TypeInfo GetTypeInfo(this Type type) - { - IReflectableType reflectableType = type as IReflectableType; - if (reflectableType != null) - return reflectableType.GetTypeInfo(); - - if (type == null) - throw new ArgumentNullException(nameof(type)); - - // This is bizarre but compatible with the desktop which casts "type" to IReflectableType without checking and - // thus, throws an InvalidCastException. - object ignore = (IReflectableType)type; - Debug.Fail("Did not expect to get here."); - throw new InvalidOperationException(); - } - } -} - diff --git a/src/mscorlib/src/System/Reflection/InvalidFilterCriteriaException.cs b/src/mscorlib/src/System/Reflection/InvalidFilterCriteriaException.cs deleted file mode 100644 index 19738ec..0000000 --- a/src/mscorlib/src/System/Reflection/InvalidFilterCriteriaException.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public class InvalidFilterCriteriaException : ApplicationException - { - public InvalidFilterCriteriaException() - : this(SR.Arg_InvalidFilterCriteriaException) - { - } - - public InvalidFilterCriteriaException(string message) - : this(message, null) - { - } - - public InvalidFilterCriteriaException(string message, Exception inner) - : base(message, inner) - { - HResult = __HResults.COR_E_INVALIDFILTERCRITERIA; - } - - protected InvalidFilterCriteriaException(SerializationInfo info, StreamingContext context) : base(info, context) { } - } -} diff --git a/src/mscorlib/src/System/Reflection/ManifestResourceInfo.cs b/src/mscorlib/src/System/Reflection/ManifestResourceInfo.cs deleted file mode 100644 index b9c56ab..0000000 --- a/src/mscorlib/src/System/Reflection/ManifestResourceInfo.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public class ManifestResourceInfo - { - public ManifestResourceInfo(Assembly containingAssembly, - string containingFileName, - ResourceLocation resourceLocation) - { - ReferencedAssembly = containingAssembly; - FileName = containingFileName; - ResourceLocation = resourceLocation; - } - - public virtual Assembly ReferencedAssembly { get; } - public virtual string FileName { get; } - public virtual ResourceLocation ResourceLocation { get; } - } -} - diff --git a/src/mscorlib/src/System/Reflection/MemberFilter.cs b/src/mscorlib/src/System/Reflection/MemberFilter.cs deleted file mode 100644 index bb1b157..0000000 --- a/src/mscorlib/src/System/Reflection/MemberFilter.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public delegate bool MemberFilter(MemberInfo m, object filterCriteria); -} \ No newline at end of file diff --git a/src/mscorlib/src/System/Reflection/MemberTypes.cs b/src/mscorlib/src/System/Reflection/MemberTypes.cs deleted file mode 100644 index 57072dc..0000000 --- a/src/mscorlib/src/System/Reflection/MemberTypes.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum MemberTypes - { - Constructor = 0x01, - Event = 0x02, - Field = 0x04, - Method = 0x08, - Property = 0x10, - TypeInfo = 0x20, - Custom = 0x40, - NestedType = 0x80, - All = Constructor | Event | Field | Method | Property | TypeInfo | NestedType, - } -} \ No newline at end of file diff --git a/src/mscorlib/src/System/Reflection/MethodAttributes.cs b/src/mscorlib/src/System/Reflection/MethodAttributes.cs deleted file mode 100644 index 1a7c7bf..0000000 --- a/src/mscorlib/src/System/Reflection/MethodAttributes.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum MethodAttributes - { - // NOTE: This Enum matchs the CorMethodAttr defined in CorHdr.h - - // member access mask - Use this mask to retrieve accessibility information. - MemberAccessMask = 0x0007, - PrivateScope = 0x0000, // Member not referenceable. - Private = 0x0001, // Accessible only by the parent type. - FamANDAssem = 0x0002, // Accessible by sub-types only in this Assembly. - Assembly = 0x0003, // Accessibly by anyone in the Assembly. - Family = 0x0004, // Accessible only by type and sub-types. - FamORAssem = 0x0005, // Accessibly by sub-types anywhere, plus anyone in assembly. - Public = 0x0006, // Accessibly by anyone who has visibility to this scope. - // end member access mask - - // method contract attributes. - Static = 0x0010, // Defined on type, else per instance. - Final = 0x0020, // Method may not be overridden. - Virtual = 0x0040, // Method virtual. - HideBySig = 0x0080, // Method hides by name+sig, else just by name. - CheckAccessOnOverride = 0x0200, - - // vtable layout mask - Use this mask to retrieve vtable attributes. - VtableLayoutMask = 0x0100, - ReuseSlot = 0x0000, // The default. - NewSlot = 0x0100, // Method always gets a new slot in the vtable. - // end vtable layout mask - - // method implementation attributes. - Abstract = 0x0400, // Method does not provide an implementation. - SpecialName = 0x0800, // Method is special. Name describes how. - - // interop attributes - PinvokeImpl = 0x2000, // Implementation is forwarded through pinvoke. - UnmanagedExport = 0x0008, // Managed method exported via thunk to unmanaged code. - RTSpecialName = 0x1000, // Runtime should check name encoding. - - HasSecurity = 0x4000, // Method has security associate with it. - RequireSecObject = 0x8000, // Method calls another method containing security code. - - ReservedMask = 0xd000, - } -} diff --git a/src/mscorlib/src/System/Reflection/MethodImplAttributes.cs b/src/mscorlib/src/System/Reflection/MethodImplAttributes.cs deleted file mode 100644 index 0a67e2c..0000000 --- a/src/mscorlib/src/System/Reflection/MethodImplAttributes.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - // This Enum matchs the CorMethodImpl defined in CorHdr.h - public enum MethodImplAttributes - { - // code impl mask - CodeTypeMask = 0x0003, // Flags about code type. - IL = 0x0000, // Method impl is IL. - Native = 0x0001, // Method impl is native. - /// - OPTIL = 0x0002, // Method impl is OPTIL - Runtime = 0x0003, // Method impl is provided by the runtime. - // end code impl mask - - // managed mask - ManagedMask = 0x0004, // Flags specifying whether the code is managed or unmanaged. - Unmanaged = 0x0004, // Method impl is unmanaged, otherwise managed. - Managed = 0x0000, // Method impl is managed. - // end managed mask - - // implementation info and interop - ForwardRef = 0x0010, // Indicates method is not defined; used primarily in merge scenarios. - PreserveSig = 0x0080, // Indicates method sig is exported exactly as declared. - - InternalCall = 0x1000, // Internal Call... - - Synchronized = 0x0020, // Method is single threaded through the body. - NoInlining = 0x0008, // Method may not be inlined. - AggressiveInlining = 0x0100, // Method should be inlined if possible. - NoOptimization = 0x0040, // Method may not be optimized. - - MaxMethodImplVal = 0xffff, - } -} diff --git a/src/mscorlib/src/System/Reflection/Missing.cs b/src/mscorlib/src/System/Reflection/Missing.cs deleted file mode 100644 index fa32d43..0000000 --- a/src/mscorlib/src/System/Reflection/Missing.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public sealed class Missing : ISerializable - { - public static readonly Missing Value = new Missing(); - - private Missing() { } - - void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) - { - if (info == null) - throw new ArgumentNullException(nameof(info)); - - UnitySerializationHolder.GetUnitySerializationInfo(info, this); - } - } -} diff --git a/src/mscorlib/src/System/Reflection/ModuleResolveEventHandler.cs b/src/mscorlib/src/System/Reflection/ModuleResolveEventHandler.cs deleted file mode 100644 index eb8926b..0000000 --- a/src/mscorlib/src/System/Reflection/ModuleResolveEventHandler.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public delegate Module ModuleResolveEventHandler(object sender, ResolveEventArgs e); -} - diff --git a/src/mscorlib/src/System/Reflection/ParameterAttributes.cs b/src/mscorlib/src/System/Reflection/ParameterAttributes.cs deleted file mode 100644 index ce19589..0000000 --- a/src/mscorlib/src/System/Reflection/ParameterAttributes.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// ParameterAttributes is an enum defining the attributes that may be -// associated with a Parameter. These are defined in CorHdr.h. - -namespace System.Reflection -{ - // This Enum matchs the CorParamAttr defined in CorHdr.h - [Flags] - public enum ParameterAttributes - { - None = 0x0000, // no flag is specified - In = 0x0001, // Param is [In] - Out = 0x0002, // Param is [Out] - Lcid = 0x0004, // Param is [lcid] - - Retval = 0x0008, // Param is [Retval] - Optional = 0x0010, // Param is optional - - HasDefault = 0x1000, // Param has default value. - HasFieldMarshal = 0x2000, // Param has FieldMarshal. - - Reserved3 = 0x4000, - Reserved4 = 0x8000, - ReservedMask = 0xf000, - } -} diff --git a/src/mscorlib/src/System/Reflection/ParameterModifier.cs b/src/mscorlib/src/System/Reflection/ParameterModifier.cs deleted file mode 100644 index cdd25da..0000000 --- a/src/mscorlib/src/System/Reflection/ParameterModifier.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Serializable] - public struct ParameterModifier - { - public ParameterModifier(int parameterCount) - { - if (parameterCount <= 0) - throw new ArgumentException(SR.Arg_ParmArraySize); - - IsByRefArray = new bool[parameterCount]; - } - - public bool this[int index] - { - get - { - return IsByRefArray[index]; - } - set - { - IsByRefArray[index] = value; - } - } - - internal bool[] IsByRefArray { get; } - } -} diff --git a/src/mscorlib/src/System/Reflection/PortableExecutableKinds.cs b/src/mscorlib/src/System/Reflection/PortableExecutableKinds.cs deleted file mode 100644 index 79be338..0000000 --- a/src/mscorlib/src/System/Reflection/PortableExecutableKinds.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum PortableExecutableKinds - { - NotAPortableExecutableImage = 0x0, - ILOnly = 0x1, - Required32Bit = 0x2, - PE32Plus = 0x4, - Unmanaged32Bit = 0x8, - Preferred32Bit = 0x10, - } -} - diff --git a/src/mscorlib/src/System/Reflection/ProcessorArchitecture.cs b/src/mscorlib/src/System/Reflection/ProcessorArchitecture.cs deleted file mode 100644 index becb346..0000000 --- a/src/mscorlib/src/System/Reflection/ProcessorArchitecture.cs +++ /dev/null @@ -1,16 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public enum ProcessorArchitecture - { - None = 0x0000, - MSIL = 0x0001, - X86 = 0x0002, - IA64 = 0x0003, - Amd64 = 0x0004, - Arm = 0x0005 - } -} diff --git a/src/mscorlib/src/System/Reflection/PropertyAttributes.cs b/src/mscorlib/src/System/Reflection/PropertyAttributes.cs deleted file mode 100644 index 31e7a65..0000000 --- a/src/mscorlib/src/System/Reflection/PropertyAttributes.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -// PropertyAttributes is an enum which defines the attributes that may be associated -// with a property. The values here are defined in Corhdr.h. - -namespace System.Reflection -{ - // This Enum matchs the CorPropertyAttr defined in CorHdr.h - [Flags] - public enum PropertyAttributes - { - None = 0x0000, - SpecialName = 0x0200, // property is special. Name describes how. - - RTSpecialName = 0x0400, // Runtime(metadata internal APIs) should check name encoding. - HasDefault = 0x1000, // Property has default - - Reserved2 = 0x2000, - Reserved3 = 0x4000, - Reserved4 = 0x8000, - ReservedMask = 0xf400, - } -} diff --git a/src/mscorlib/src/System/Reflection/ReflectionContext.cs b/src/mscorlib/src/System/Reflection/ReflectionContext.cs deleted file mode 100644 index e9e93da..0000000 --- a/src/mscorlib/src/System/Reflection/ReflectionContext.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public abstract class ReflectionContext - { - protected ReflectionContext() { } - - public abstract Assembly MapAssembly(Assembly assembly); - - public abstract TypeInfo MapType(TypeInfo type); - - public virtual TypeInfo GetTypeForObject(object value) - { - if (value == null) - throw new ArgumentNullException(nameof(value)); - - return MapType(value.GetType().GetTypeInfo()); - } - } -} - diff --git a/src/mscorlib/src/System/Reflection/ReflectionTypeLoadException.cs b/src/mscorlib/src/System/Reflection/ReflectionTypeLoadException.cs deleted file mode 100644 index 4bfd985..0000000 --- a/src/mscorlib/src/System/Reflection/ReflectionTypeLoadException.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public sealed class ReflectionTypeLoadException : SystemException, ISerializable - { - public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions) : base(null) - { - Types = classes; - LoaderExceptions = exceptions; - HResult = __HResults.COR_E_REFLECTIONTYPELOAD; - } - - public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions, string message) : base(message) - { - Types = classes; - LoaderExceptions = exceptions; - HResult = __HResults.COR_E_REFLECTIONTYPELOAD; - } - - internal ReflectionTypeLoadException(SerializationInfo info, StreamingContext context) : base(info, context) - { - Types = (Type[])(info.GetValue("Types", typeof(Type[]))); - LoaderExceptions = (Exception[])(info.GetValue("Exceptions", typeof(Exception[]))); - } - - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - info.AddValue("Types", Types, typeof(Type[])); - info.AddValue("Exceptions", LoaderExceptions, typeof(Exception[])); - } - - public Type[] Types { get; } - - public Exception[] LoaderExceptions { get; } - } -} diff --git a/src/mscorlib/src/System/Reflection/ResourceAttributes.cs b/src/mscorlib/src/System/Reflection/ResourceAttributes.cs deleted file mode 100644 index 2d03f42..0000000 --- a/src/mscorlib/src/System/Reflection/ResourceAttributes.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum ResourceAttributes - { - Public = 0x0001, - Private = 0x0002, - } -} - diff --git a/src/mscorlib/src/System/Reflection/ResourceLocation.cs b/src/mscorlib/src/System/Reflection/ResourceLocation.cs deleted file mode 100644 index 4902333..0000000 --- a/src/mscorlib/src/System/Reflection/ResourceLocation.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - [Flags] - public enum ResourceLocation - { - ContainedInAnotherAssembly = 2, - ContainedInManifestFile = 4, - Embedded = 1, - } -} - diff --git a/src/mscorlib/src/System/Reflection/StrongNameKeyPair.cs b/src/mscorlib/src/System/Reflection/StrongNameKeyPair.cs deleted file mode 100644 index 8d2bf1f..0000000 --- a/src/mscorlib/src/System/Reflection/StrongNameKeyPair.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.IO; -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public class StrongNameKeyPair : IDeserializationCallback, ISerializable - { - private bool _keyPairExported; - private byte[] _keyPairArray; - private string _keyPairContainer; - private byte[] _publicKey; - - // Build key pair from file. - public StrongNameKeyPair(FileStream keyPairFile) - { - if (keyPairFile == null) - throw new ArgumentNullException(nameof(keyPairFile)); - - int length = (int)keyPairFile.Length; - _keyPairArray = new byte[length]; - keyPairFile.Read(_keyPairArray, 0, length); - - _keyPairExported = true; - } - - // Build key pair from byte array in memory. - public StrongNameKeyPair(byte[] keyPairArray) - { - if (keyPairArray == null) - throw new ArgumentNullException(nameof(keyPairArray)); - - _keyPairArray = new byte[keyPairArray.Length]; - Array.Copy(keyPairArray, _keyPairArray, keyPairArray.Length); - - _keyPairExported = true; - } - - protected StrongNameKeyPair(SerializationInfo info, StreamingContext context) - { - _keyPairExported = (bool)info.GetValue("_keyPairExported", typeof(bool)); - _keyPairArray = (byte[])info.GetValue("_keyPairArray", typeof(byte[])); - _keyPairContainer = (string)info.GetValue("_keyPairContainer", typeof(string)); - _publicKey = (byte[])info.GetValue("_publicKey", typeof(byte[])); - } - - public StrongNameKeyPair(string keyPairContainer) - { - throw new PlatformNotSupportedException(); - } - - public byte[] PublicKey - { - get - { - throw new PlatformNotSupportedException(); - } - } - - void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) - { - info.AddValue("_keyPairExported", _keyPairExported); - info.AddValue("_keyPairArray", _keyPairArray); - info.AddValue("_keyPairContainer", _keyPairContainer); - info.AddValue("_publicKey", _publicKey); - } - - void IDeserializationCallback.OnDeserialization(object sender) { } - } -} diff --git a/src/mscorlib/src/System/Reflection/TargetException.cs b/src/mscorlib/src/System/Reflection/TargetException.cs deleted file mode 100644 index 0f1aa71..0000000 --- a/src/mscorlib/src/System/Reflection/TargetException.cs +++ /dev/null @@ -1,29 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public class TargetException : ApplicationException - { - public TargetException() - : this(null) - { - } - - public TargetException(string message) - : this(message, null) - { - } - - public TargetException(string message, Exception inner) : base(message, inner) - { - HResult = __HResults.COR_E_TARGET; - } - - protected TargetException(SerializationInfo info, StreamingContext context) : base(info, context) { } - } -} diff --git a/src/mscorlib/src/System/Reflection/TargetInvocationException.cs b/src/mscorlib/src/System/Reflection/TargetInvocationException.cs deleted file mode 100644 index aa9a5b1..0000000 --- a/src/mscorlib/src/System/Reflection/TargetInvocationException.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public sealed class TargetInvocationException : ApplicationException - { - public TargetInvocationException(Exception inner) - : base(SR.Arg_TargetInvocationException, inner) - { - HResult = __HResults.COR_E_TARGETINVOCATION; - } - - public TargetInvocationException(string message, Exception inner) - : base(message, inner) - { - HResult = __HResults.COR_E_TARGETINVOCATION; - } - - internal TargetInvocationException(SerializationInfo info, StreamingContext context) : base(info, context) { } - } -} diff --git a/src/mscorlib/src/System/Reflection/TargetParameterCountException.cs b/src/mscorlib/src/System/Reflection/TargetParameterCountException.cs deleted file mode 100644 index 19c4b2c..0000000 --- a/src/mscorlib/src/System/Reflection/TargetParameterCountException.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.Serialization; - -namespace System.Reflection -{ - [Serializable] - public sealed class TargetParameterCountException : ApplicationException - { - public TargetParameterCountException() - : base(SR.Arg_TargetParameterCountException) - { - HResult = __HResults.COR_E_TARGETPARAMCOUNT; - } - - public TargetParameterCountException(string message) - : base(message) - { - HResult = __HResults.COR_E_TARGETPARAMCOUNT; - } - - public TargetParameterCountException(string message, Exception inner) - : base(message, inner) - { - HResult = __HResults.COR_E_TARGETPARAMCOUNT; - } - - internal TargetParameterCountException(SerializationInfo info, StreamingContext context) : base(info, context) { } - } -} diff --git a/src/mscorlib/src/System/Reflection/TypeAttributes.cs b/src/mscorlib/src/System/Reflection/TypeAttributes.cs deleted file mode 100644 index aa30331..0000000 --- a/src/mscorlib/src/System/Reflection/TypeAttributes.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System.Runtime.InteropServices; - -namespace System.Reflection -{ - // This Enum matchs the CorTypeAttr defined in CorHdr.h - [Flags] - public enum TypeAttributes - { - VisibilityMask = 0x00000007, - NotPublic = 0x00000000, // Class is not public scope. - Public = 0x00000001, // Class is public scope. - NestedPublic = 0x00000002, // Class is nested with public visibility. - NestedPrivate = 0x00000003, // Class is nested with private visibility. - NestedFamily = 0x00000004, // Class is nested with family visibility. - NestedAssembly = 0x00000005, // Class is nested with assembly visibility. - NestedFamANDAssem = 0x00000006, // Class is nested with family and assembly visibility. - NestedFamORAssem = 0x00000007, // Class is nested with family or assembly visibility. - - // Use this mask to retrieve class layout informaiton - // 0 is AutoLayout, 0x2 is SequentialLayout, 4 is ExplicitLayout - LayoutMask = 0x00000018, - AutoLayout = 0x00000000, // Class fields are auto-laid out - SequentialLayout = 0x00000008, // Class fields are laid out sequentially - ExplicitLayout = 0x00000010, // Layout is supplied explicitly - // end layout mask - - // Use this mask to distinguish whether a type declaration is an interface. (Class vs. ValueType done based on whether it subclasses S.ValueType) - ClassSemanticsMask = 0x00000020, - Class = 0x00000000, // Type is a class (or a value type). - Interface = 0x00000020, // Type is an interface. - - // Special semantics in addition to class semantics. - Abstract = 0x00000080, // Class is abstract - Sealed = 0x00000100, // Class is concrete and may not be extended - SpecialName = 0x00000400, // Class name is special. Name describes how. - - // Implementation attributes. - Import = 0x00001000, // Class / interface is imported - Serializable = 0x00002000, // The class is Serializable. - WindowsRuntime = 0x00004000, // Type is a Windows Runtime type. - - // Use tdStringFormatMask to retrieve string information for native interop - StringFormatMask = 0x00030000, - AnsiClass = 0x00000000, // LPTSTR is interpreted as ANSI in this class - UnicodeClass = 0x00010000, // LPTSTR is interpreted as UNICODE - AutoClass = 0x00020000, // LPTSTR is interpreted automatically - CustomFormatClass = 0x00030000, // A non-standard encoding specified by CustomFormatMask - CustomFormatMask = 0x00C00000, // Use this mask to retrieve non-standard encoding information for native interop. The meaning of the values of these 2 bits is unspecified. - - // end string format mask - - BeforeFieldInit = 0x00100000, // Initialize the class any time before first static field access. - - RTSpecialName = 0x00000800, // Runtime should check name encoding. - HasSecurity = 0x00040000, // Class has security associate with it. - - ReservedMask = 0x00040800, - } -} diff --git a/src/mscorlib/src/System/Reflection/TypeFilter.cs b/src/mscorlib/src/System/Reflection/TypeFilter.cs deleted file mode 100644 index eb049f8..0000000 --- a/src/mscorlib/src/System/Reflection/TypeFilter.cs +++ /dev/null @@ -1,8 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System.Reflection -{ - public delegate bool TypeFilter(Type m, object filterCriteria); -} -- 2.7.4