Beispiel #1
0
        private TreeIter Add(TreeIter parent, string prefix, RuntimeObject node)
        {
            Type type = node.GetType();

            parent = store.AppendValues(parent, prefix + TypeNames.GetName(type), node);

            // FIXME
            try
            {
                foreach (string field in Pattern.PatternForType(type).Fields)
                {
                    Add(parent, field + ": ", type.GetField(field).GetValue(node));
                }
            }
            catch (Exception)
            {
            }

            return(parent);
        }
 public override string ToString()
 {
     return($"{ReferencedFileSave?.Name} from {DataModel?.GetType()} as {RuntimeObject?.GetType()}");
 }
 private TreeIter Add(TreeIter parent, string prefix, RuntimeObject node)
 {
     Type type = node.GetType();
     parent = store.AppendValues(parent, prefix + TypeNames.GetName(type), node);
     
     // FIXME
     try
     {
     foreach (string field in Pattern.PatternForType(type).Fields)
         Add(parent, field + ": ", type.GetField(field).GetValue(node));
     }
     catch (Exception)
     {
     }
     
     return parent;
 }