System.Attribute.Attribute.IsDefined C# (CSharp) Method

IsDefined() public static method

public static IsDefined ( ParameterInfo element, Type attributeType, bool inherit ) : bool
element System.Reflection.ParameterInfo
attributeType Type
inherit bool
return bool
		public static bool IsDefined (ParameterInfo element, Type attributeType, bool inherit)
		{
			CheckParameters (element, attributeType);

			if (element.IsDefined (attributeType, inherit))
				return true;

			// FIXME: MS walks up the inheritance chain in some crazy way
			return IsDefined (element.Member, attributeType, inherit);
		}

Same methods

Attribute.Attribute::IsDefined ( Assembly element, Type attributeType ) : bool
Attribute.Attribute::IsDefined ( Assembly element, Type attributeType, bool inherit ) : bool
Attribute.Attribute::IsDefined ( MemberInfo element, Type attributeType ) : bool
Attribute.Attribute::IsDefined ( MemberInfo element, Type attributeType, bool inherit ) : bool
Attribute.Attribute::IsDefined ( Module element, Type attributeType ) : bool
Attribute.Attribute::IsDefined ( Module element, Type attributeType, bool inherit ) : bool
Attribute.Attribute::IsDefined ( ParameterInfo element, Type attributeType ) : bool