What C# Version Does Unity Use?

Looking to get a new O’Reilly book on C#. Is Unity using C# 5.0?

Unity uses Mono 2.6, and the C# version is mostly but not entirely 4.0.

–Eric

Thanks-- any recommendations for books?

Personally I just look stuff up on the internet.

–Eric

Several years ago I got the O’Reilly C# 3.0 / with 3.5 stuff added " In A Nutshell" book.
It helped with my transition from Java.

I would recommend any O’Reilly book.
The “Nutshell” books are more of a reference book, but they still have examples in them.
If you have never programmed in C# or Java, the one you picked would be fine as long as you can identify the stuff Unity wont do.

I mostly use MSDN to look up things.

Programming Guide: Programming Concepts - C# | Microsoft Learn

Sometimes I do a Google search and add msdn to it.
Try this google search:

dictionary msdn