Slice-to-C-Sharp Mapping for Local Types
The mapping for local
enum
, local sequence
, local dictionary
and local struct
to C# is identical to the mapping for these constructs without the local
qualifier. The generated C# code for local enums and structs does not include support for marshaling, so you cannot use them as parameters for operations on non-local types, or as data members on non-local types.
The rest of this section describes the mapping of the remaining local types to C#:
- C-Sharp Mapping for Local Interfaces
- C-Sharp Mapping for Local Classes
- C-Sharp Mapping for Local Exceptions
- C-Sharp Mapping for Operations on Local Types
- C-Sharp Mapping for Data Members in Local Types