Beispiel #1
0
        public static bool IsBinary(this ContentType contentType)
        {
            ContentTypeMetadata md = contentType.GetMetadata();

            if (md != null)
            {
                return(md.Binary);
            }
            return(false);
        }
Beispiel #2
0
        public static string GetValue(this ContentType contentType)
        {
            ContentTypeMetadata md = contentType.GetMetadata();

            if (md != null)
            {
                return(md.Value);
            }
            return(ContentTypeMetadata.DefaultValue);
        }