예제 #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--;
        }