Exemplo n.º 1
0
        public object GetAnnotation(int idx)
        {
            ArgumentValidator.ThrowIfTrue(idx < 0, "idx must be >= 0 but was {0}".Fi(idx));

            if (null == this._annotations)
            {
                return(null);
            }

            if (this._annotations.Count <= idx)
            {
                return(null);
            }

            return(this._annotations[idx]);
        }
Exemplo n.º 2
0
 public string UnMask(string value)
 {
     ArgumentValidator.ThrowIfNull(value, "value");
     ArgumentValidator.ThrowIfTrue(value.Length > this.Mask.Length, "Argument length must not exceed mask's length.");
     return(value.Where((t, i) => IsMaskChar(this.Mask[i])).Aggregate("", (current, t) => current + t));
 }