title: what is the expected exception in this code? C#
body: <p><a href="https://i.stack.imgur.com/UdRII.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UdRII.png" alt="Is this NullReferenceException?" /></a></p>
  <pre class="lang-cs prettyprint-override"><code>using System;
  namespace ConsoleApp1{
      class Player
      {
          public string Name { get; set; }
      }
      class Program
      {
          public static void PrintName(Player p)
          {
              System.Console.WriteLine(p.Name);
          }
          public static void Main(string[] args)
          {
              Player player = new Player();
              PrintName(player);
          }
      }
  }
  
  </code></pre>
  <p>Hello, i'm trying to solve this question but i found if i get Name value before setting its value, i will get <code>null</code> value, but it's not an exception.
  Is answer to the question is <code>NullReferenceException</code>?</p>
  <p>Thanks for you all guys :)</p>