コード例 #1
0
        public override ConceptualFilter Clone()
        {
            ConceptualTopicIdFilter filter = new ConceptualTopicIdFilter(this);

            if (_dicTopicId == null)
            {
                return(filter);
            }

            Dictionary <string, bool> dicTopic = new Dictionary <string, bool>();

            if (_dicTopicId.Count > 0)
            {
                IEnumerable <string> enumerable = this.TopicIds;
                IEnumerator <string> enumerator = null;
                if (enumerable != null)
                {
                    enumerator = enumerable.GetEnumerator();
                }

                if (enumerator != null)
                {
                    while (enumerator.MoveNext())
                    {
                        string styleKey = enumerator.Current;

                        if (styleKey != null && styleKey.Length == 36)
                        {
                            dicTopic.Add(String.Copy(styleKey),
                                         _dicTopicId[styleKey]);
                        }
                    }
                }
            }

            filter._dicTopicId = dicTopic;

            return(filter);
        }
コード例 #2
0
 public ConceptualTopicIdFilter(ConceptualTopicIdFilter source)
     : base(source)
 {
 }