예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <summary>
 /// Gets the <see cref="RdfClassAttribute" /> of the object.
 /// </summary>
 public RdfClassAttribute GetClassAttribute()
 => RdfClassAttribute.Get(this.GetType());