Beispiel #1
0
        public Extension(IPartsSequence parts) : this()
        {
            _plainText = new CachedValue <string>(() =>
            {
                var p = parts.Last().SplitBy('.');

                if (p.Count() == 1)
                {
                    return(string.Empty);
                }

                return(p.Last().PlainText);
            });
        }
Beispiel #2
0
 public FileName(IPartsSequence parts)
 {
     _name = new CachedValue <string>(() => { return(parts.Last().SplitBy('.').First().PlainText); });
 }