/// <summary> /// Gets the <see cref="RdfAboutAttribute" /> for the specified object. /// </summary> public static RdfAboutAttribute Get(Type type, out PropertyInfo property) { Contract.Requires(type != null); var classAttribute = RdfClassAttribute.Get(type); if (classAttribute != null && !String.IsNullOrWhiteSpace(classAttribute.About)) { return(Get(type, classAttribute.About, out property)); } property = null; return(null); }
/// <summary> /// Gets the <see cref="RdfClassAttribute" /> of the object. /// </summary> public RdfClassAttribute GetClassAttribute() => RdfClassAttribute.Get(this.GetType());