title: How to get all properties in a method of same base class?
body: <p>Actually, I want to access properties of a base class in a method and I am not instantiating that object directly. Below is code, I am working on:</p>
  
  <pre><code>public class Test
  {
      public static void Main()
      {
          drivedclass obj = new drivedclass();
          obj.DoSomething();
      }
  }
  
  public class drivedclass : baseclass
  {
      public void DoSomething()
      {
          LoadSomeThing();
      }
  }
  
  public class baseclass
  {
      public string property1
      {
          get;
          set;
      }
      public string property2
      {
          get;
          set;
      }
      public void LoadSomeThing()
      {
          //here I want to access values of all properties
      }
  }
  </code></pre>
  
  <p>I would like to know if there is a way, I can access the properties in method of same class and that class is base class.</p>