O'Reilly logo

IronPython in Action by Christian Muirhead, Michael Foord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. A whirlwind tour of C#

Obviously this book has primarily been about IronPython, but in several places we’ve explored some aspects of using IronPython with other .NET languages, the foremost being C#. If you don’t know C#, this appendix will give you a brief overview of the core parts of the language. It should be enough to let you read the code examples in the book, although you’ll probably want more detail if you’re trying to write C# code.

Namespaces

Namespaces are similar to Python packages and modules. The classes in an assembly live in namespaces, which can be nested to provide a hierarchical structure. This structure is used to group together related classes to make them easier to find. Namespaces are specified in C# like so:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required