Exemplo n.º 1
0
        public static List <QueryVAppOrgVdcNetworkRelationField> Values()
        {
            QueryVAppOrgVdcNetworkRelationField        networkRelationField     = new QueryVAppOrgVdcNetworkRelationField();
            List <QueryVAppOrgVdcNetworkRelationField> networkRelationFieldList = new List <QueryVAppOrgVdcNetworkRelationField>();

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