示例#1
0
        public object Clone()
        {
            var clone = new PropertyAndTagHolder();

            GetTags().ForEach(clone.AddTag);
            GetProperties().ForEach(p => clone.AddProperty(p.Item1, p.Item2));
            return(clone);
        }
        private NodeMetaData(BranchDataWrapper branchDataWrapper = null, PropertyAndTagHolder holder = null)
        {
            BranchDataWrapper = branchDataWrapper;

            if (holder != null)
            {
                holder.GetTags().ForEach(AddTag);
                holder.GetProperties().ForEach(tuple => AddProperty(tuple.Item1, tuple.Item2));
            }
        }