title: Implementing visitor Pattern in C#
body: <p>I'm new in this pattern , could please someone help me in it?</p>
  
  <p>I got an Object like this :</p>
  
  <pre><code>public class Object
      {
          public string Name { get; set; }
          public object Value { get; set; }
          public List&lt;Object&gt; Childs { get; set; }
      }
  </code></pre>
  
  <p>Here is an JSON example:</p>
  
  <pre><code>  {
      "Name": "Method",
      "Value": "And",
      "Childs": [{
          "Name": "Method",
          "Value": "And",
          "Childs": [{
              "Name": "Operator",
              "Value": "IsEqual",
              "Childs": [{
                  "Name": "Name",
                  "Value": "5",
                  "Childs": []
              }]
          },
          {
              "Name": "Operator",
              "Value": "IsEqual",
              "Childs": [{
                  "Name": "Name",
                  "Value": "6",
                  "Childs": []
              }]
          }]
      },
      {
          "Name": "Operator",
          "Value": "IsEqual",
          "Childs": [{
              "Name": "Name",
              "Value": "3",
              "Childs": []
          }]
      }]
  }
  </code></pre>
  
  <p>My question how to make Visitor Pattern in order to get this final string:</p>
  
  <pre><code>(Name IsEqual 3)And((Name IsEqul 5)And(Name IsEqual 6))
  </code></pre>