Exemple #1
0
        public static List <QueryVAppOrgNetworkRelationField> Values()
        {
            QueryVAppOrgNetworkRelationField        networkRelationField     = new QueryVAppOrgNetworkRelationField();
            List <QueryVAppOrgNetworkRelationField> networkRelationFieldList = new List <QueryVAppOrgNetworkRelationField>();

            foreach (FieldInfo field in networkRelationField.GetType().GetFields())
            {
                networkRelationFieldList.Add((QueryVAppOrgNetworkRelationField)field.GetValue((object)networkRelationField));
            }
            return(networkRelationFieldList);
        }
Exemple #2
0
 public static QueryVAppOrgNetworkRelationField FromValue(
     string value)
 {
     foreach (QueryVAppOrgNetworkRelationField networkRelationField in QueryVAppOrgNetworkRelationField.Values())
     {
         if (networkRelationField.Value().Equals(value))
         {
             return(networkRelationField);
         }
     }
     throw new ArgumentException(value.ToString());
 }