protected string MemberToAuthor(MemberInfo info) { foreach (Attribute attrib in info.GetCustomAttributes(true)) { AuthorAttribute auth = attrib as AuthorAttribute; if (auth != null) { return(auth.Name); } } return(null); }
public string GetNotes() { foreach (Attribute attrib in _type.GetCustomAttributes(true)) { AuthorAttribute auth = attrib as AuthorAttribute; if (auth != null) { return(auth.Notes); } } return(null); }
public string GetAssemblyAuthorName(string asmName) { Assembly asm = Assembly.Load(asmName); if (asm != null) { foreach (Attribute attrib in asm.GetCustomAttributes(true)) { AuthorAttribute auth = attrib as AuthorAttribute; if (auth != null) { return(auth.Name); } } } return(null); }