Beispiel #1
0
 /// <summary>
 /// Convenience method.
 /// </summary>
 /// <param name="encoding">
 ///            the choice for the encoding, either auto, single or double are valid parameters </param>
 public virtual void addEncodingChoice(string encoding)
 {
     if (!string.ReferenceEquals(encoding, null))
     {
         EncodingChoice = EncodingChoice.fromString(encoding);
     }
 }
 public static EncodingChoice valueOf(string name)
 {
     foreach (EncodingChoice enumInstance in EncodingChoice.values())
     {
         if (enumInstance.nameValue == name)
         {
             return(enumInstance);
         }
     }
     throw new System.ArgumentException(name);
 }