.net - Can I specify a meaningful name for an anonymous class in C#? -


We all know that when we create an anonymous class like this:

  var Employee = new {id = 5, name = "Pacific"};  

... This will be the type of time running:

   

Is there a way to specify meaningful names for such classes?

  public class employee {}  


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -