What is an internal sealed class in C#?

后端 未结 6 524
长情又很酷
长情又很酷 2021-01-31 13:31

I was looking through some C# code for extending language support in VS2010 (Ook example). I saw some classes called internal sealed class

What do these do?

6条回答
  •  误落风尘
    2021-01-31 13:55

    An internal sealed class is one that is:

    internal - Only accessible from within the same assembly
    sealed - Cannot be subclassed

    In other words, there's no way for you to use it directly.

提交回复
热议问题