diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs b/src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs new file mode 100644 index 0000000000..000a62b52c --- /dev/null +++ b/src/mscorlib/src/System/Reflection/ICustomAttributeProvider.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +//////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// +// +// ICustomAttributeProvider is an interface that is implemented by reflection +// +// objects which support custom attributes. +// +// +namespace System.Reflection { + + using System; + + // Interface does not need to be marked with the serializable attribute +[System.Runtime.InteropServices.ComVisible(true)] + public interface ICustomAttributeProvider + { + + // Return an array of custom attributes identified by Type + Object[] GetCustomAttributes(Type attributeType, bool inherit); + + + // Return an array of all of the custom attributes (named attributes are not included) + Object[] GetCustomAttributes(bool inherit); + + + // Returns true if one or more instance of attributeType is defined on this member. + bool IsDefined (Type attributeType, bool inherit); + + } +} |