public static List <IpsecVpnEncryptionProtocolType> Values()
        {
            IpsecVpnEncryptionProtocolType        encryptionProtocolType     = new IpsecVpnEncryptionProtocolType();
            List <IpsecVpnEncryptionProtocolType> encryptionProtocolTypeList = new List <IpsecVpnEncryptionProtocolType>();

            foreach (FieldInfo field in encryptionProtocolType.GetType().GetFields())
            {
                encryptionProtocolTypeList.Add((IpsecVpnEncryptionProtocolType)field.GetValue((object)encryptionProtocolType));
            }
            return(encryptionProtocolTypeList);
        }
 public static IpsecVpnEncryptionProtocolType FromValue(
     string value)
 {
     foreach (IpsecVpnEncryptionProtocolType encryptionProtocolType in IpsecVpnEncryptionProtocolType.Values())
     {
         if (encryptionProtocolType.Value().Equals(value))
         {
             return(encryptionProtocolType);
         }
     }
     throw new ArgumentException(value.ToString());
 }