Jump to content

How many built-in classes does C# have?

AleksanderK

A little known fact about C#; it doesn't require the .NET framework! Don't confuse the two...

 

Quote

(CLI is based on a subset of the .NET Framework.) Although Microsoft’s implementation of C# relies on CLI for library and runtime support, other implementations of C# need not, provided they support an alternate way of getting at the minimum CLI features required by this C# standard (see Annex D).

-- <https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf>

I haven't bothered to count the classes in Annex D (there are also structs and enums, FWIW) so I can't say how many there are, but it wouldn't take more than a few minutes to count them.

Note that these are the only classes required for a conforming C# implementation. There may be (and often are) extensions... Those extensions aren't a part of C#.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×