예제 #1
0
        public static List <QueryDatastoreProviderVdcRelationField> Values()
        {
            QueryDatastoreProviderVdcRelationField        vdcRelationField     = new QueryDatastoreProviderVdcRelationField();
            List <QueryDatastoreProviderVdcRelationField> vdcRelationFieldList = new List <QueryDatastoreProviderVdcRelationField>();

            foreach (FieldInfo field in vdcRelationField.GetType().GetFields())
            {
                vdcRelationFieldList.Add((QueryDatastoreProviderVdcRelationField)field.GetValue((object)vdcRelationField));
            }
            return(vdcRelationFieldList);
        }
예제 #2
0
 public static QueryDatastoreProviderVdcRelationField FromValue(
     string value)
 {
     foreach (QueryDatastoreProviderVdcRelationField vdcRelationField in QueryDatastoreProviderVdcRelationField.Values())
     {
         if (vdcRelationField.Value().Equals(value))
         {
             return(vdcRelationField);
         }
     }
     throw new ArgumentException(value.ToString());
 }