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>(); }
public FileType(FileTypeCategory category, string contentType, string extension, IEnumerable<string> altContentTypes = null) : this(category, contentType, new string[] { extension }, altContentTypes) { }
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>(); }
public FileType(FileTypeCategory category, string name, string contentType, string extension, IEnumerable <string> altContentTypes = null) : this(category, name, contentType, new string[] { extension }, altContentTypes) { }