</ItemGroup>
<ItemGroup>
<Compile Include="$(BclSourcesRoot)\System\Runtime\Reliability\CriticalFinalizerObject.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Runtime\Reliability\ReliabilityContractAttribute.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\Reliability\PrePrepareMethodAttribute.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(BclSourcesRoot)\System\Reflection\MethodInfo.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\Missing.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\Module.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Reflection\ObfuscateAssemblyAttribute.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Reflection\ObfuscationAttribute.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\MethodBody.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\ParameterAttributes.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\ParameterInfo.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\TargetInvocationException.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\TargetParameterCountException.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\TypeAttributes.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Reflection\TypeDelegator.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\TypeFilter.cs" />
<Compile Include="$(BclSourcesRoot)\System\Reflection\TypeInfo.cs" />
</ItemGroup>
<Compile Include="$(BclSourcesRoot)\System\Runtime\Serialization\SerializationInfo.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\Serialization\SerializationInfoEnumerator.cs" />
<Compile Include="$(BclSourcesRoot)\System\Runtime\Serialization\StreamingContext.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Runtime\Serialization\SafeSerializationManager.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(BclSourcesRoot)\System\Runtime\Versioning\TargetFrameworkAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\ParamArrayAttribute.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\PlatformNotSupportedException.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\RankException.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ObfuscateAssemblyAttribute.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)System\Reflection\ObfuscationAttribute.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)System\Reflection\TypeDelegator.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ExtensionAttribute.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\FormattableStringFactory.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\IsVolatile.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\ITuple.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\TupleElementNamesAttribute.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Cer.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\Consistency.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Runtime\ConstrainedExecution\ReliabilityContractAttribute.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\StringBuffer.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\ISafeSerializationData.cs"/>
+ <Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Serialization\SafeSerializationEventArgs.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Security\AllowPartiallyTrustedCallersAttribute.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Security\CryptographicException.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)System\Security\PartialTrustVisibilityLevel.cs"/>
--- /dev/null
+// 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
+{
+ [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
+ public sealed class ObfuscateAssemblyAttribute : Attribute
+ {
+ public ObfuscateAssemblyAttribute(bool assemblyIsPrivate)
+ {
+ AssemblyIsPrivate = assemblyIsPrivate;
+ }
+
+ public bool AssemblyIsPrivate { get; }
+ public bool StripAfterObfuscation { get; set; } = true;
+ }
+}
+
--- /dev/null
+// 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
+{
+ [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
+ AllowMultiple = true, Inherited = false)]
+ public sealed class ObfuscationAttribute : Attribute
+ {
+ public ObfuscationAttribute()
+ {
+ }
+
+ public bool StripAfterObfuscation { get; set; } = true;
+ public bool Exclude { get; set; } = true;
+ public bool ApplyToMembers { get; set; } = true;
+ public string Feature { get; set; } = "all";
+ }
+}
+
--- /dev/null
+// 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.
+
+// TypeDelegator
+//
+// This class wraps a Type object and delegates all methods to that Type.
+
+using CultureInfo = System.Globalization.CultureInfo;
+
+namespace System.Reflection
+{
+ [Serializable]
+ public class TypeDelegator : TypeInfo
+ {
+ public override bool IsAssignableFrom(TypeInfo typeInfo)
+ {
+ if (typeInfo == null)
+ return false;
+ return IsAssignableFrom(typeInfo.AsType());
+ }
+
+ protected Type typeImpl;
+
+ protected TypeDelegator() { }
+
+ public TypeDelegator(Type delegatingType)
+ {
+ if (delegatingType == null)
+ throw new ArgumentNullException(nameof(delegatingType));
+
+ typeImpl = delegatingType;
+ }
+
+ public override Guid GUID => typeImpl.GUID;
+ public override int MetadataToken => typeImpl.MetadataToken;
+
+ public override object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target,
+ object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
+ {
+ return typeImpl.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
+ }
+
+ public override Module Module => typeImpl.Module;
+ public override Assembly Assembly => typeImpl.Assembly;
+ public override RuntimeTypeHandle TypeHandle => typeImpl.TypeHandle;
+ public override string Name => typeImpl.Name;
+ public override string FullName => typeImpl.FullName;
+ public override string Namespace => typeImpl.Namespace;
+ public override string AssemblyQualifiedName => typeImpl.AssemblyQualifiedName;
+ public override Type BaseType => typeImpl.BaseType;
+
+ protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
+ CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
+ {
+ return typeImpl.GetConstructor(bindingAttr, binder, callConvention, types, modifiers);
+ }
+
+ public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => typeImpl.GetConstructors(bindingAttr);
+
+ protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder binder,
+ CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
+ {
+ // This is interesting there are two paths into the impl. One that validates
+ // type as non-null and one where type may be null.
+ if (types == null)
+ return typeImpl.GetMethod(name, bindingAttr);
+ else
+ return typeImpl.GetMethod(name, bindingAttr, binder, callConvention, types, modifiers);
+ }
+
+ public override MethodInfo[] GetMethods(BindingFlags bindingAttr) => typeImpl.GetMethods(bindingAttr);
+
+ public override FieldInfo GetField(string name, BindingFlags bindingAttr) => typeImpl.GetField(name, bindingAttr);
+ public override FieldInfo[] GetFields(BindingFlags bindingAttr) => typeImpl.GetFields(bindingAttr);
+
+ public override Type GetInterface(string name, bool ignoreCase) => typeImpl.GetInterface(name, ignoreCase);
+
+ public override Type[] GetInterfaces() => typeImpl.GetInterfaces();
+
+ public override EventInfo GetEvent(string name, BindingFlags bindingAttr) => typeImpl.GetEvent(name, bindingAttr);
+
+ public override EventInfo[] GetEvents() => typeImpl.GetEvents();
+
+ protected override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder binder,
+ Type returnType, Type[] types, ParameterModifier[] modifiers)
+ {
+ if (returnType == null && types == null)
+ return typeImpl.GetProperty(name, bindingAttr);
+ else
+ return typeImpl.GetProperty(name, bindingAttr, binder, returnType, types, modifiers);
+ }
+
+ public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => typeImpl.GetProperties(bindingAttr);
+ public override EventInfo[] GetEvents(BindingFlags bindingAttr) => typeImpl.GetEvents(bindingAttr);
+ public override Type[] GetNestedTypes(BindingFlags bindingAttr) => typeImpl.GetNestedTypes(bindingAttr);
+ public override Type GetNestedType(string name, BindingFlags bindingAttr) => typeImpl.GetNestedType(name, bindingAttr);
+ public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => typeImpl.GetMember(name, type, bindingAttr);
+ public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => typeImpl.GetMembers(bindingAttr);
+
+ protected override TypeAttributes GetAttributeFlagsImpl() => typeImpl.Attributes;
+
+ protected override bool IsArrayImpl() => typeImpl.IsArray;
+ protected override bool IsPrimitiveImpl() => typeImpl.IsPrimitive;
+ protected override bool IsByRefImpl() => typeImpl.IsByRef;
+ protected override bool IsPointerImpl() => typeImpl.IsPointer;
+ protected override bool IsValueTypeImpl() => typeImpl.IsValueType;
+ protected override bool IsCOMObjectImpl() => typeImpl.IsCOMObject;
+ public override bool IsConstructedGenericType => typeImpl.IsConstructedGenericType;
+ public override Type GetElementType() => typeImpl.GetElementType();
+ protected override bool HasElementTypeImpl() => typeImpl.HasElementType;
+
+ public override Type UnderlyingSystemType => typeImpl.UnderlyingSystemType;
+
+ // ICustomAttributeProvider
+ public override object[] GetCustomAttributes(bool inherit) => typeImpl.GetCustomAttributes(inherit);
+ public override object[] GetCustomAttributes(Type attributeType, bool inherit) => typeImpl.GetCustomAttributes(attributeType, inherit);
+
+ public override bool IsDefined(Type attributeType, bool inherit) => typeImpl.IsDefined(attributeType, inherit);
+ public override InterfaceMapping GetInterfaceMap(Type interfaceType) => typeImpl.GetInterfaceMap(interfaceType);
+ }
+}
--- /dev/null
+// 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.Runtime.ConstrainedExecution
+{
+ [Serializable]
+ public enum Cer : int
+ {
+ None = 0,
+ MayFail = 1, // Might fail, but the method will say it failed
+ Success = 2,
+ }
+}
--- /dev/null
+// 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.Runtime.ConstrainedExecution
+{
+ [Serializable]
+ public enum Consistency : int
+ {
+ MayCorruptProcess = 0,
+ MayCorruptAppDomain = 1,
+ MayCorruptInstance = 2,
+ WillNotCorruptState = 3,
+ }
+}
**
===========================================================*/
-using System.Runtime.InteropServices;
-using System;
-
namespace System.Runtime.ConstrainedExecution
{
- [Serializable]
- public enum Consistency : int
- {
- MayCorruptProcess = 0,
- MayCorruptAppDomain = 1,
- MayCorruptInstance = 2,
- WillNotCorruptState = 3,
- }
-
- [Serializable]
- public enum Cer : int
- {
- None = 0,
- MayFail = 1, // Might fail, but the method will say it failed
- Success = 2,
- }
-
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Interface /* | AttributeTargets.Delegate*/, Inherited = false)]
public sealed class ReliabilityContractAttribute : Attribute
{
- private Consistency _consistency;
- private Cer _cer;
-
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer)
{
- _consistency = consistencyGuarantee;
- _cer = cer;
- }
-
- public Consistency ConsistencyGuarantee
- {
- get { return _consistency; }
+ ConsistencyGuarantee = consistencyGuarantee;
+ Cer = cer;
}
- public Cer Cer
- {
- get { return _cer; }
- }
+ public Consistency ConsistencyGuarantee { get; }
+ public Cer Cer { get; }
}
}
// 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;
-using System.Collections;
-using System.Collections.Generic;
-using System.Diagnostics.Contracts;
-using System.Reflection;
-using System.Security;
-
namespace System.Runtime.Serialization
{
//
// }
//
- // SafeSerializationEventArgs are provided to the delegates which do safe serialization. Each delegate
- // serializes its own state into an IDeserializationCallback instance which must, itself, be serializable.
- // These indivdiual states are then added to the SafeSerializationEventArgs in order to be saved away when
- // the original ISerializable type is serialized.
- public sealed class SafeSerializationEventArgs : EventArgs
- {
- private StreamingContext m_streamingContext;
- private List<object> m_serializedStates = new List<object>();
-
- internal SafeSerializationEventArgs() { }
-
- public void AddSerializedState(ISafeSerializationData serializedState)
- {
- if (serializedState == null)
- throw new ArgumentNullException(nameof(serializedState));
- if (!serializedState.GetType().IsSerializable)
- throw new ArgumentException(Environment.GetResourceString("Serialization_NonSerType", serializedState.GetType(), serializedState.GetType().Assembly.FullName));
-
- m_serializedStates.Add(serializedState);
- }
-
- public StreamingContext StreamingContext
- {
- get { return m_streamingContext; }
- }
- }
-
// Interface to be supported by objects which are stored in safe serialization stores
public interface ISafeSerializationData
{
--- /dev/null
+// 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.Collections.Generic;
+
+namespace System.Runtime.Serialization
+{
+ // SafeSerializationEventArgs are provided to the delegates which do safe serialization. Each delegate
+ // serializes its own state into an IDeserializationCallback instance which must, itself, be serializable.
+ // These indivdiual states are then added to the SafeSerializationEventArgs in order to be saved away when
+ // the original ISerializable type is serialized.
+ public sealed class SafeSerializationEventArgs : EventArgs
+ {
+ private readonly List<object> _serializedStates = new List<object>();
+
+ internal SafeSerializationEventArgs() { }
+
+ public void AddSerializedState(ISafeSerializationData serializedState)
+ {
+ if (serializedState == null)
+ throw new ArgumentNullException(nameof(serializedState));
+ if (!serializedState.GetType().IsSerializable)
+ throw new ArgumentException(SR.Format(SR.Serialization_NonSerType, serializedState.GetType(), serializedState.GetType().Assembly.FullName));
+
+ _serializedStates.Add(serializedState);
+ }
+
+ public StreamingContext StreamingContext { get; }
+ }
+}
{
get { return Environment.GetResourceString("Lazy_ToString_ValueNotCreated"); }
}
+
+ internal static string Serialization_NonSerType
+ {
+ get { return Environment.GetResourceString("Serialization_NonSerType"); }
+ }
}
; ValueTuple
ArgumentException_ValueTupleIncorrectType=Argument must be of type {0}.
ArgumentException_ValueTupleLastArgumentNotAValueTuple=The last element of an eight element ValueTuple must be a ValueTuple.
+
+; SafeSerializationEventArgs
+Serialization_NonSerType=Type '{0}' in Assembly '{1}' is not marked as serializable.
+
+++ /dev/null
-// 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;
-using System.Reflection;
-
-
-namespace System.Reflection
-{
- [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
- public sealed class ObfuscateAssemblyAttribute : Attribute
- {
- private bool m_assemblyIsPrivate;
- private bool m_strip = true;
-
- public ObfuscateAssemblyAttribute(bool assemblyIsPrivate)
- {
- m_assemblyIsPrivate = assemblyIsPrivate;
- }
-
- public bool AssemblyIsPrivate
- {
- get
- {
- return m_assemblyIsPrivate;
- }
- }
-
- public bool StripAfterObfuscation
- {
- get
- {
- return m_strip;
- }
- set
- {
- m_strip = value;
- }
- }
- }
-}
-
+++ /dev/null
-// 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;
-using System.Reflection;
-
-namespace System.Reflection
-{
- [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Delegate,
- AllowMultiple = true, Inherited = false)]
- public sealed class ObfuscationAttribute : Attribute
- {
- private bool m_strip = true;
- private bool m_exclude = true;
- private bool m_applyToMembers = true;
- private string m_feature = "all";
-
- public ObfuscationAttribute()
- {
- }
-
- public bool StripAfterObfuscation
- {
- get
- {
- return m_strip;
- }
- set
- {
- m_strip = value;
- }
- }
-
- public bool Exclude
- {
- get
- {
- return m_exclude;
- }
- set
- {
- m_exclude = value;
- }
- }
-
- public bool ApplyToMembers
- {
- get
- {
- return m_applyToMembers;
- }
- set
- {
- m_applyToMembers = value;
- }
- }
-
- public string Feature
- {
- get
- {
- return m_feature;
- }
- set
- {
- m_feature = value;
- }
- }
- }
-}
-
+++ /dev/null
-// 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.
-
-// TypeDelegator
-//
-// This class wraps a Type object and delegates all methods to that Type.
-
-namespace System.Reflection
-{
- using System;
- using System.Runtime.InteropServices;
- using System.Diagnostics.Contracts;
- using CultureInfo = System.Globalization.CultureInfo;
-
- [Serializable]
- public class TypeDelegator : TypeInfo
- {
- public override bool IsAssignableFrom(System.Reflection.TypeInfo typeInfo)
- {
- if (typeInfo == null) return false;
- return IsAssignableFrom(typeInfo.AsType());
- }
-
- protected Type typeImpl;
-
- protected TypeDelegator() { }
-
- public TypeDelegator(Type delegatingType)
- {
- if (delegatingType == null)
- throw new ArgumentNullException(nameof(delegatingType));
- Contract.EndContractBlock();
-
- typeImpl = delegatingType;
- }
-
- public override Guid GUID
- {
- get { return typeImpl.GUID; }
- }
-
- public override int MetadataToken { get { return typeImpl.MetadataToken; } }
-
- public override Object InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target,
- Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
- {
- return typeImpl.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
- }
-
- public override Module Module
- {
- get { return typeImpl.Module; }
- }
-
- public override Assembly Assembly
- {
- get { return typeImpl.Assembly; }
- }
-
- public override RuntimeTypeHandle TypeHandle
- {
- get { return typeImpl.TypeHandle; }
- }
-
- public override String Name
- {
- get { return typeImpl.Name; }
- }
-
- public override String FullName
- {
- get { return typeImpl.FullName; }
- }
-
- public override String Namespace
- {
- get { return typeImpl.Namespace; }
- }
-
- public override String AssemblyQualifiedName
- {
- get
- {
- return typeImpl.AssemblyQualifiedName;
- }
- }
-
- public override Type BaseType
- {
- get { return typeImpl.BaseType; }
- }
-
- protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder binder,
- CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
- {
- return typeImpl.GetConstructor(bindingAttr, binder, callConvention, types, modifiers);
- }
-
- public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)
- {
- return typeImpl.GetConstructors(bindingAttr);
- }
-
- protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
- CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
- {
- // This is interesting there are two paths into the impl. One that validates
- // type as non-null and one where type may be null.
- if (types == null)
- return typeImpl.GetMethod(name, bindingAttr);
- else
- return typeImpl.GetMethod(name, bindingAttr, binder, callConvention, types, modifiers);
- }
-
- public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
- {
- return typeImpl.GetMethods(bindingAttr);
- }
-
- public override FieldInfo GetField(String name, BindingFlags bindingAttr)
- {
- return typeImpl.GetField(name, bindingAttr);
- }
-
- public override FieldInfo[] GetFields(BindingFlags bindingAttr)
- {
- return typeImpl.GetFields(bindingAttr);
- }
-
- public override Type GetInterface(String name, bool ignoreCase)
- {
- return typeImpl.GetInterface(name, ignoreCase);
- }
-
- public override Type[] GetInterfaces()
- {
- return typeImpl.GetInterfaces();
- }
-
- public override EventInfo GetEvent(String name, BindingFlags bindingAttr)
- {
- return typeImpl.GetEvent(name, bindingAttr);
- }
-
- public override EventInfo[] GetEvents()
- {
- return typeImpl.GetEvents();
- }
-
- protected override PropertyInfo GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder,
- Type returnType, Type[] types, ParameterModifier[] modifiers)
- {
- if (returnType == null && types == null)
- return typeImpl.GetProperty(name, bindingAttr);
- else
- return typeImpl.GetProperty(name, bindingAttr, binder, returnType, types, modifiers);
- }
-
- public override PropertyInfo[] GetProperties(BindingFlags bindingAttr)
- {
- return typeImpl.GetProperties(bindingAttr);
- }
-
- public override EventInfo[] GetEvents(BindingFlags bindingAttr)
- {
- return typeImpl.GetEvents(bindingAttr);
- }
-
- public override Type[] GetNestedTypes(BindingFlags bindingAttr)
- {
- return typeImpl.GetNestedTypes(bindingAttr);
- }
-
- public override Type GetNestedType(String name, BindingFlags bindingAttr)
- {
- return typeImpl.GetNestedType(name, bindingAttr);
- }
-
- public override MemberInfo[] GetMember(String name, MemberTypes type, BindingFlags bindingAttr)
- {
- return typeImpl.GetMember(name, type, bindingAttr);
- }
-
- public override MemberInfo[] GetMembers(BindingFlags bindingAttr)
- {
- return typeImpl.GetMembers(bindingAttr);
- }
-
- protected override TypeAttributes GetAttributeFlagsImpl()
- {
- return typeImpl.Attributes;
- }
-
- protected override bool IsArrayImpl()
- {
- return typeImpl.IsArray;
- }
-
- protected override bool IsPrimitiveImpl()
- {
- return typeImpl.IsPrimitive;
- }
-
- protected override bool IsByRefImpl()
- {
- return typeImpl.IsByRef;
- }
-
- protected override bool IsPointerImpl()
- {
- return typeImpl.IsPointer;
- }
-
- protected override bool IsValueTypeImpl()
- {
- return typeImpl.IsValueType;
- }
-
- protected override bool IsCOMObjectImpl()
- {
- return typeImpl.IsCOMObject;
- }
-
- public override bool IsConstructedGenericType
- {
- get
- {
- return typeImpl.IsConstructedGenericType;
- }
- }
-
- public override Type GetElementType()
- {
- return typeImpl.GetElementType();
- }
-
- protected override bool HasElementTypeImpl()
- {
- return typeImpl.HasElementType;
- }
-
- public override Type UnderlyingSystemType
- {
- get { return typeImpl.UnderlyingSystemType; }
- }
-
- // ICustomAttributeProvider
- public override Object[] GetCustomAttributes(bool inherit)
- {
- return typeImpl.GetCustomAttributes(inherit);
- }
-
- public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
- {
- return typeImpl.GetCustomAttributes(attributeType, inherit);
- }
-
- public override bool IsDefined(Type attributeType, bool inherit)
- {
- return typeImpl.IsDefined(attributeType, inherit);
- }
-
- public override InterfaceMapping GetInterfaceMap(Type interfaceType)
- {
- return typeImpl.GetInterfaceMap(interfaceType);
- }
- }
-}