Exemple #1
0
        public DictionaryObjectTreeItem(ObjectTreeItem parent, string propertyName, DictionaryData source, int depth) : base(parent, propertyName, source)
        {
            var builder = new List <ObjectTreeItem>(source.Dictionary.Count);

            foreach (var item in source.Dictionary)
            {
                builder.Add(StateFormatter.ToTreeHierarchy(this, item.Value, depth + 1, Convert.ToString(item.Key)));
            }
            Children = builder.ToArray();
        }
        public StateObjectTreeItem(ObjectTreeItem parent, string propertyName, StateObjectData source, int depth) :
            base(parent, propertyName, source)
        {
            var properties = new List <ObjectTreeItem>(source.Properties.Count);

            foreach (var item in source.Properties)
            {
                properties.Add(StateFormatter.ToTreeHierarchy(this, item.Value, depth + 1, item.Key));
            }
            Children = properties.ToArray();
        }
Exemple #3
0
        public ListObjectTreeItem(ObjectTreeItem parent, string propertyName, ListData source, int depth) :
            base(parent, propertyName, source)
        {
            var builder = new List <ObjectTreeItem>(source.List.Length);

            foreach (var item in source.List)
            {
                builder.Add(StateFormatter.ToTreeHierarchy(this, item, depth + 1, null));
            }
            Children = builder.ToArray();
        }
Exemple #4
0
 public DifferenceItemContainer(DifferenceItem[] children, ObjectTreeItem current, ObjectTreeItem next, DiffType diffType) : base(current, next, diffType)
 {
     Children = children;
 }
 public DifferenceItem(ObjectTreeItem current, ObjectTreeItem next, DiffType diffType)
 {
     Current  = current;
     Next     = next;
     DiffType = diffType;
 }
 public ObjectTreeItem(ObjectTreeItem parent, string propertyName, ObjectData source)
 {
     Parent       = parent;
     PropertyName = propertyName;
     Source       = source;
 }
Exemple #7
0
 public PrimitiveObjectTreeItem(object value, ObjectTreeItem parent, string propertyName, ObjectData source) : base(parent, propertyName, source)
 {
     Value = value;
 }