title: How to use string value from one class to another class using Properties
body: <p>I have the class:</p>
  
  <pre><code>   public class pro {
  
           private string url = string.Empty;
  
           public string GetURL() { return url; }              
  
           public void SetURL(string value) { url = value; }
     }
  </code></pre>
  
  <p>In this line I'm getting value:</p>
  
  <pre><code>    string url = li1.Value;          
      pro itm = new pro();  // I have create Proprtie so I'm calling that   
      itm.SetURL(url); // here I'm setting value
  </code></pre>
  
  <p>Then later:</p>
  
  <pre><code>     pro itm = new pro(); //properties object I have created
       string url = itm.GetURL(); // I'm not getting value which I have set in first class.
  </code></pre>
  
  <p>I have create Properties also; what am I doing wrong?</p>
  
  <p>Tell me how to get my String value of first class to second class using Properties. Tell me the code for that I am trying that but not able to do that.</p>