Beispiel #1
0
        private List<Tag> ReplaceTag(List<ReplaceTags> configReplaceTag, Dictionary<string, object> originData)
        {
            List<Tag> _output = new List<Tag>();

            for (int i = 0; i < configReplaceTag.Count; ++i)
            {
                if (originData.ContainsKey(configReplaceTag[i].originKey))
                {
                    Tag _new = new Tag(configReplaceTag[i].key, originData[configReplaceTag[i].originKey].ToString());

                    _output.Add(_new);
                }
            }

            return _output;
        }
Beispiel #2
0
        private List<Tag> GenerateNewTag(List<AddTags> configAddTag)
        {
            List<Tag> _output = new List<Tag>();

            for (int i = 0; i < configAddTag.Count; ++i)
            {
                Tag _new = new Tag(configAddTag[i].key, configAddTag[i].value);

                _output.Add(_new);
            }

            return _output;
        }