DISCLAIMER: Project owner DG-MARKT.
public InMemoryDocument(byte[] document, string name) { this.document = document; this.name = name; this.mimeType = MimeType.FromFileName(name); }
public InMemoryDocument(byte[] document, string name, MimeType mimeType) { this.document = document; this.name = name; this.mimeType = mimeType; }
public virtual MimeType GetMimeType() { return(MimeType.FromFileName(GetName())); }