コード例 #1
0
 public static QueryOrgVdcGatewayField FromValue(string value)
 {
     foreach (QueryOrgVdcGatewayField orgVdcGatewayField in QueryOrgVdcGatewayField.Values())
     {
         if (orgVdcGatewayField.Value().Equals(value))
         {
             return(orgVdcGatewayField);
         }
     }
     throw new ArgumentException(value.ToString());
 }
コード例 #2
0
        public static List <QueryOrgVdcGatewayField> Values()
        {
            QueryOrgVdcGatewayField        orgVdcGatewayField     = new QueryOrgVdcGatewayField();
            List <QueryOrgVdcGatewayField> orgVdcGatewayFieldList = new List <QueryOrgVdcGatewayField>();

            foreach (FieldInfo field in orgVdcGatewayField.GetType().GetFields())
            {
                orgVdcGatewayFieldList.Add((QueryOrgVdcGatewayField)field.GetValue((object)orgVdcGatewayField));
            }
            return(orgVdcGatewayFieldList);
        }