コード例 #1
0
 public static SafeList <TypeEx> GetInvolvedTypes(IPexComponent host, TermManager termManager, Term t)
 {
     using (var ofc = new ObjectFieldCollector(host, termManager))
     {
         ofc.VisitTerm(default(TVoid), t);
         return(ofc.Types);
     }
 }
コード例 #2
0
 public static SafeList <Field> GetInvolvedFields(IPexComponent host, TermManager termManager, Term t,
                                                  out SafeDictionary <Field, FieldValueHolder> fieldValues, out SafeList <TypeEx> allFieldTypes)
 {
     using (var ofc = new ObjectFieldCollector(host, termManager))
     {
         ofc.VisitTerm(default(TVoid), t);
         fieldValues   = ofc.FieldValues;
         allFieldTypes = ofc.Types;
         return(ofc.Fields);
     }
 }