Ejemplo n.º 1
0
 public FileType(FileTypeCategory category, string contentType, IEnumerable <string> extensions, IEnumerable <string> altContentTypes = null)
 {
     this.Category                = category;
     this.ContentType             = contentType;
     this.Extensions              = extensions;
     this.AlternativeContentTypes = altContentTypes ?? Enumerable.Empty <string>();
 }
Ejemplo n.º 2
0
 public FileType(FileTypeCategory category, string contentType, string extension, IEnumerable<string> altContentTypes = null)
     : this(category, contentType, new string[] { extension }, altContentTypes) {
 }
Ejemplo n.º 3
0
 public FileType(FileTypeCategory category, string contentType, IEnumerable<string> extensions, IEnumerable<string> altContentTypes = null) {
     this.Category = category;
     this.ContentType = contentType;
     this.Extensions = extensions;
     this.AlternativeContentTypes = altContentTypes ?? Enumerable.Empty<string>();
 }
Ejemplo n.º 4
0
 public FileType(FileTypeCategory category, string name, string contentType, string extension, IEnumerable <string> altContentTypes = null)
     : this(category, name, contentType, new string[] { extension }, altContentTypes)
 {
 }