public static GetAttributes ( Collection |
||
customAttributes | Collection |
|
attributeName | string | |
리턴 | IEnumerable |
public static IEnumerable<CustomAttribute> GetAttributes(Collection<CustomAttribute> customAttributes, string attributeName)
{
return (from attribute in customAttributes
where attribute.Constructor.DeclaringType.FullName.Contains(attributeName)
select attribute);
}
CecilExtensions::GetAttributes ( this typeDefinition, string attributeName ) : IEnumerable |