public FileExtension([Localizable(false)] string value, EFileExtension type, string description = null) { XContract.ArgIsNotNull(value, nameof(value)); if (XHelper.Enums.IsIn(type, EFileExtension.Unknown, EFileExtension.MultiExtensions) && string.IsNullOrEmpty(description)) { throw new ArgumentNullException(nameof(description)); } Type = type; Value = value; Description = description ?? XHelper.Enums.GetDisplay(type); }
public FileFormat(EFileExtension FileExtension, EFormat Format, String Version) { this.FileExtension = FileExtension; this.Format = Format; this.Version = Version; }