diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/Emit/SymbolMethod.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/Emit/SymbolMethod.cs | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/mscorlib/src/System/Reflection/Emit/SymbolMethod.cs b/src/mscorlib/src/System/Reflection/Emit/SymbolMethod.cs index 6b47770608..42713b86db 100644 --- a/src/mscorlib/src/System/Reflection/Emit/SymbolMethod.cs +++ b/src/mscorlib/src/System/Reflection/Emit/SymbolMethod.cs @@ -4,14 +4,14 @@ // -namespace System.Reflection.Emit +namespace System.Reflection.Emit { using System.Runtime.InteropServices; using System; using System.Reflection; using System.Diagnostics.Contracts; using CultureInfo = System.Globalization.CultureInfo; - + internal sealed class SymbolMethod : MethodInfo { #region Private Data Members @@ -26,7 +26,7 @@ namespace System.Reflection.Emit #endregion #region Constructor - internal SymbolMethod(ModuleBuilder mod, MethodToken token, Type arrayClass, String methodName, + internal SymbolMethod(ModuleBuilder mod, MethodToken token, Type arrayClass, String methodName, CallingConventions callingConvention, Type returnType, Type[] parameterTypes) { // This is a kind of MethodInfo to represent methods for array type of unbaked type @@ -47,9 +47,9 @@ namespace System.Reflection.Emit } else { - m_parameterTypes = EmptyArray<Type>.Value; + m_parameterTypes = Array.Empty<Type>(); } - + m_module = mod; m_containingType = arrayClass; m_name = methodName; @@ -70,28 +70,28 @@ namespace System.Reflection.Emit { return mod.GetArrayMethodToken(m_containingType, m_name, m_callingConvention, m_returnType, m_parameterTypes); } - + #endregion #region MemberInfo Overrides - public override Module Module - { - get { return m_module; } - } + public override Module Module + { + get { return m_module; } + } public override Type ReflectedType { get { return m_containingType as Type; } } - public override String Name + public override String Name { get { return m_name; } } - public override Type DeclaringType + public override Type DeclaringType { - get {return m_containingType;} + get { return m_containingType; } } #endregion @@ -99,27 +99,27 @@ namespace System.Reflection.Emit [Pure] public override ParameterInfo[] GetParameters() { - throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); + throw new NotSupportedException(SR.NotSupported_SymbolMethod); } - + public override MethodImplAttributes GetMethodImplementationFlags() { - throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); + throw new NotSupportedException(SR.NotSupported_SymbolMethod); } - - public override MethodAttributes Attributes + + public override MethodAttributes Attributes { - get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); } + get { throw new NotSupportedException(SR.NotSupported_SymbolMethod); } } - - public override CallingConventions CallingConvention + + public override CallingConventions CallingConvention { get { return m_callingConvention; } } - public override RuntimeMethodHandle MethodHandle + public override RuntimeMethodHandle MethodHandle { - get { throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); } + get { throw new NotSupportedException(SR.NotSupported_SymbolMethod); } } #endregion @@ -133,16 +133,16 @@ namespace System.Reflection.Emit } } - public override ICustomAttributeProvider ReturnTypeCustomAttributes + public override ICustomAttributeProvider ReturnTypeCustomAttributes { - get { return null; } + get { return null; } } - + public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) { - throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); + throw new NotSupportedException(SR.NotSupported_SymbolMethod); } - + public override MethodInfo GetBaseDefinition() { return this; @@ -152,19 +152,19 @@ namespace System.Reflection.Emit #region ICustomAttributeProvider Implementation public override Object[] GetCustomAttributes(bool inherit) { - throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); + throw new NotSupportedException(SR.NotSupported_SymbolMethod); } - + public override Object[] GetCustomAttributes(Type attributeType, bool inherit) { - throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); + throw new NotSupportedException(SR.NotSupported_SymbolMethod); } public override bool IsDefined(Type attributeType, bool inherit) { - throw new NotSupportedException(Environment.GetResourceString("NotSupported_SymbolMethod")); + throw new NotSupportedException(SR.NotSupported_SymbolMethod); } - + #endregion #region Public Members |