ContextualMemberInfo
A member info with contextual information.
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace Namotion.Reflection
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ContextualMemberInfo : ICustomAttributeProvider
{
public abstract MemberInfo MemberInfo { get; }
public abstract string Name { get; }
public override string ToString()
{
return Name + " (" + GetType().Name.Replace("Contextual", "").Replace("Info", "") + ") - " + base.ToString();
}
public abstract object[] GetCustomAttributes(Type attributeType, bool inherit);
public abstract object[] GetCustomAttributes(bool inherit);
public abstract bool IsDefined(Type attributeType, bool inherit);
}
}