Exemplo n.º 1
0
        public void AppendAnnotations(AnnotatedItem source, Dictionary <object, object> cloneContext)
        {
            if (source.WhereSection == null)
            {
                WhereSection = null;
            }
            else
            {
                WhereSection = new List <Value>();

                foreach (var item in source.WhereSection)
                {
                    WhereSection.Add(item.CloneValue(cloneContext));
                }
            }

            if (source.Holder == null)
            {
                Holder = null;
            }
            else
            {
                Holder = source.Holder;
            }

            if (source.Annotations == null)
            {
                Annotations = null;
            }
            else
            {
                Annotations = new List <RuleInstance>();

                foreach (var annotation in source.Annotations)
                {
                    Annotations.Add(annotation.Clone());
                }
            }
        }
Exemplo n.º 2
0
        public void AppendAnnotations(AnnotatedItem source)
        {
            var cloneContext = new Dictionary <object, object>();

            AppendAnnotations(source, cloneContext);
        }