Exemple #1
0
        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);
        }
Exemple #2
0
 public FileFormat(EFileExtension FileExtension, EFormat Format, String Version)
 {
     this.FileExtension = FileExtension;
     this.Format        = Format;
     this.Version       = Version;
 }