Tag: var

  • var keyword constraints as class fields in C#

    Hello friends. Hope you are doing well!! Wish you happy new year!! I am here to talk about the var keyword constraint, when using it in the class level fields in C#. Sometimes , we get a question that why can’t we use var keyword in initializing the class level fields. Let’s have a look at…