Contenido principal

NetDocEnum Example Assembly

The C# example NetDocEnum.cs defines enumerations used in these examples. To run the examples, build and load the NetDocEnum assembly as described in Build and Load .NET Assembly for MATLAB. The source code is:

{
    [System.Flags()]
    public enum MyDays
    {
        None = 0,
        Monday = 1,
        Tuesday = 2,
        Wednesday = 4,
        Thursday = 8,
        Friday = 16,
        Saturday = 32,
        Sunday = 64
    }

    public enum Range : long
    {
        Max = 2147483648L,
        Min = 255L
    }
}

To view the enum classes:

asm.Enums
ans = 
    'NetDocEnum.MyDays'
    'NetDocEnum.Range'

See Also

Topics