title: Can I get the name of my object in C#?
body: <p>Let us say I have the following class..</p>
  
  <pre><code>Class Boy
  {
      public void hello()
      {
          Console.WriteLine("Hello!");
      }
      static void Main(String[] args)
      {
              Boy a = new Boy();
              a.hello();
      }
  }
  </code></pre>
  
  <p>I know that the variable <strong>'a'</strong> is a reference variable of type <strong>'Boy'</strong>. The keyword <strong>'new'</strong> created an object of <strong>'Boy'</strong> assigning the address of it to the variable <strong>'a'</strong>. </p>
  
  <p>Now, is it possible for me to get the name of my object. Does an object in C# have a name at all ? </p>