Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does TypeKind.Submission and TypeKind.Module mean in the Microsoft.CodeAnalysis.TypeKind enum?

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?

like image 488
SENya Avatar asked Nov 18 '25 09:11

SENya


1 Answers

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)

like image 62
SLaks Avatar answered Nov 21 '25 00:11

SLaks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!