Пример #1
0
        public void VisitMCSOtherElement(MCSOtherElement element)
        {
            if (!IsNeedProcessElement(element.ValueObject))
            {
                return;
            }

            string value = element.ValueObject.ToString();

            PrepareString(ref value);

            _builder.WriteSingleElement(element.TypeName,
                                        element.Name,
                                        value);
        }
Пример #2
0
 public void VisitMCSOtherElement(MCSOtherElement element)
 {
     MCSOtherElementsCount += 1;
 }
Пример #3
0
        public void VisitMCSOtherElement(MCSOtherElement element)
        {
            if (_visited.ContainsKey(element.ValueObject))
            {
                return;
            }

            _visited.Add(element.ValueObject, true);

            depth++;
            for (int i = 0; i < depth; ++i)
            {
                _writer.Write("  ");
            }

            string valueString = element.ValueObject.ToString();

            if (element.TypeName.Equals("Location"))
            {
                valueString = valueString.Replace(@"C:\Users\fanatic\documents\visual studio 2010\Projects\", "");
            }

            _writer.WriteLine("Class: {0}, Name: {1}, Value: {2}", element.TypeName, element.Name, valueString);
            depth--;
        }