private static bool HasAttrWithArg(Mono.Collections.Generic.Collection<CustomAttribute> asmAttrs, string attrTypeName) { var foundAttr = asmAttrs.SingleOrDefault(attr => attr.AttributeType.FullName == attrTypeName); if (foundAttr == null) { return false; } var foundAttrArg = foundAttr.ConstructorArguments.SingleOrDefault(); var attrValue = foundAttrArg.Value as string; return !string.IsNullOrEmpty(attrValue); }