protected override string GetValueCore(List <DmFile> files, DmFile file)
        {
            if (string.IsNullOrEmpty(Extension))
            {
                return(base.GetValueCore(files, file));
            }

            return(Extension);
        }
        protected override string GetValueCore(List <DmFile> files, DmFile file)
        {
            PropertyInfo info = typeof(DmFile).GetProperty(PropertyName, BindingFlags.Instance | BindingFlags.Public);

            if (info == null)
            {
                return("null");
            }

            object value = info.GetValue(file, null);

            if (value == null)
            {
                return(string.Empty);
            }

            return(value.ToString());
        }
        public string GetValueText(List <DmFile> files, DmFile file)
        {
            string value = GetValueCore(files, file);

            switch (CaseMode)
            {
            case Model.CaseMode.Default:
                return(value);

            case Model.CaseMode.LowerCase:
                return(value.ToLower());

            case Model.CaseMode.UpperCase:
                return(value.ToUpper());

            case Model.CaseMode.FirstLetter:
                return(value.Substring(0, 1).ToUpper() + value.Substring(1, value.Length - 1).ToLower());
            }
            return(value);
        }
 protected abstract string GetValueCore(List <DmFile> files, DmFile file);