[IronPython] C#, Types and IronPython
Keith J. Farmer
kfarmer at thuban.org
Mon Mar 12 09:26:07 CET 2007
Reflector is your friend:
Whether you see int or System.Int32 in C# code is a matter of aesthetics on the part of the person who wrote the code. As mentioned elsewhere, int is defined in C# as an alias for the type identifier System.Int32 (see below). The predefined types are listed in 8.2.1 of the C# spec:
The predefined Simple types are in 11.1.4:
Reserved word Aliased type
typeof is defined in 14.5.11.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Sunday, March 11, 2007 8:08 AM
Ok - cool. That's very helpful. I'm still not really used to the idea of
decompiling assemblies to get this sort of information.
Several of the MSDN examples use 'typeof(int)', why not just specify
'Int32' ? I guess it makes the code less platform dependent ?? Oh well.
More information about the Ironpython-users