public PropertyInfo Clone() { var Result = new PropertyInfo { Tag = Tag?.Clone(), Prop = Prop?.Clone(), KVType = KVType, Parent = Parent, ArrayIndex = ArrayIndex, RawData = RawData }; var NewChildren = new ObservableCollection <PropertyInfo>(); foreach (var Child in Children) { var NewChild = Child.Clone(); NewChild.Parent = Result; NewChildren.Add(NewChild); } Result.Children = NewChildren; return(Result); }
public UProperty Clone() { return(new UArrayProperty { Length = Length, InnerTag = InnerTag.Clone() }); }