Exemple #1
0
        NPropPatchEntry Add(NProperty key)
        {
            var setter = key[_type];

            if (setter == null)
            {
                Debug.WriteLine($"Warning: Property {_type.Name}.{key.Name} is not supported (2)");
            }

            var result = new NPropPatchEntry {
                Key = key, Setter = setter
            };

            if (_tail != null)
            {
                _tail.Next = result;
            }
            else
            {
                _head = result;
            }

            _tail = result;

            return(result);
        }
Exemple #2
0
 NPropDiffer(NElement source, NElement target)
 {
     _source = source;
     _target = target;
     _type   = source.GetXamlType();
     _head   = null;
     _tail   = null;
 }
Exemple #3
0
 public NPropPatch(NElement element, NPropPatchEntry head)
 {
     _element = element;
     _head    = head;
 }