title: How to initialize dictionary inside class constructor
body: <p>I have a class with a property of type <code>Dictionary&lt;&gt;</code>. I am trying to initialize the property in the constructor using the following code. It gives error. Why? </p>
  
  <p><strong>Error 1</strong> </p>
  
  <blockquote>
    <p>'Permissions' is a 'property' but is used like a 'type'</p>
  </blockquote>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>public class UserModel
  {
      public UserModel()   // constructor
      {
          Permissions = new Permissions&lt;Guid, List&lt;Guid&gt;();
      }
  
      public Dictionary&lt;Guid, List&lt;Guid&gt;&gt; Permissions { get; set; }
  }
  </code></pre>