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); }
public static QueryVAppOrgVdcNetworkRelationField FromValue( string value) { foreach (QueryVAppOrgVdcNetworkRelationField networkRelationField in QueryVAppOrgVdcNetworkRelationField.Values()) { if (networkRelationField.Value().Equals(value)) { return(networkRelationField); } } throw new ArgumentException(value.ToString()); }