public static bool IsBinary(this ContentType contentType) { ContentTypeMetadata md = contentType.GetMetadata(); if (md != null) { return(md.Binary); } return(false); }
public static string GetValue(this ContentType contentType) { ContentTypeMetadata md = contentType.GetMetadata(); if (md != null) { return(md.Value); } return(ContentTypeMetadata.DefaultValue); }