3

I've encountered TypeKind enum: https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.typekind?view=roslyn-dotnet

Could anybody explain what does TypeKind.Submission mean? What types are "interactive submissions"?

Also what is TypeKind.Module? What is module type?

SENya
  • 1,083
  • 11
  • 26
  • 1
    In VS: View > Other Windows > C# Interactive. That's where you create a TypeKind.Submission type. TypeKind.Module is specific to VB.NET code and implements the Module keyword. Pretty similar to a static class in C#. – Hans Passant Feb 21 '18 at 16:01

1 Answers1

2

Module is the VB keyword for a static class.

In C#, it becomes a class.


TypeKind.Submission refers to the auto-generated class used to hold variables in interactive sessions. (src)

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964