title: call data of one class in another class c#
body: <p>I’ve a class</p>
  
  <pre><code>public class GetRate : INotifyPropertyChanged
  {
      public event PropertyChangedEventHandler PropertyChanged;
  
      private string StockName;
      private decimal? VolumeOrdered;
      private decimal? BuyRate;
      private decimal? SellRate;        
      private DateTime? OrderedDate;        
  }
  </code></pre>
  
  <p>Another class which initializes it with a webservice.</p>
  
  <pre><code>private static void Parse(List&lt;GetRate&gt; rates, XDocument doc)
      {
          XElement results = doc.Root.Element("results");
  
          foreach (GetRate getRate in rates)
          {                
       XElement q = results.Elements("rate").First(w=&gt;w.Attribute"StockName").Value==rates.Symbol);
  
              rates. VolumeOrdered = GetDecimal(q.Element("VolumeOrdered").Value);
              rates. BuyRate = GetDecimal(q.Element("BuyRate").Value);
              rates. SellRate = GetDecimal(q.Element("SellRate").Value);
              rates.LastUpdate = DateTime.Now;
      }
  }
  </code></pre>
  
  <p>Now I want use its value in another class. How it may possible?
  I want use</p>
  
  <pre><code> class ABC
   {
      VolumeOrdered* BuyRate;
       //Or
      VolumeOrdered* SellRate;
   }
  </code></pre>
  
  <p>Need help…
  Thanks in Advance...</p>