Exemple #1
0
        /// <summary>
        /// Sets dependent values from a comma-separated list.
        /// </summary>
        /// <param name="text">Comma-separated list of dependent values.</param>
        public void SetDependentValues(string text)
        {
            var split = text.Split(new[] { ',' });

            DependentValues.Clear();
            foreach (var s in split)
            {
                DependentValues.Add(s);
            }
        }
Exemple #2
0
 /// <summary>
 /// Returns a clone of this instance.
 /// </summary>
 /// <returns>Cloned copy of this instance.</returns>
 public Field Clone()
 {
     return(new Field
     {
         AllowNotFoundValid = AllowNotFoundValid,
         DependentField = DependentField,
         DependentValues = DependentValues.ToList(),
         DynamicLength = DynamicLength,
         ExclusiveDependency = ExclusiveDependency,
         Length = Length,
         Name = Name,
         OptionValues = OptionValues.ToList(),
         ParseUntil = ParseUntil,
         RejectionCode = RejectionCode,
         Repetitions = Repetitions,
         Skip = Skip,
         SkipUntil = SkipUntil,
         StaticRepetitions = StaticRepetitions,
         Type = Type,
         ValidValues = ValidValues.ToList()
     });
 }