public static CodeAttribute2 GetCustomAttribute(this CodeElement2 cc, Type attrType) { var res = cc.GetCustomAttributes().FirstOrDefault(x => x.AsCodeElement().IsEqualToType(attrType)); return(res); }
public static CodeAttribute2 GetCustomAttribute(this CodeElement2 cc, Type attrType) { var res = cc.GetCustomAttributes().FirstOrDefault(x => x.AsCodeElement().IsEqualToType(attrType)); return(res); }