Skip to content

Files

52 lines (36 loc) · 1.45 KB

File metadata and controls

52 lines (36 loc) · 1.45 KB

DemoPropertyFlags Enum

Namespace: DemoProject
Assembly: DemoProject

An example of a "flag" enum

[Flags]
public enum DemoPropertyFlags
{
    Flag1 = 0x1,
    Flag2 = 0x2,
    Flag3 = 0x4
}

Inheritance: object → ValueType → Enum → DemoPropertyFlags

Attributes: FlagsAttribute

Remarks

DemoPropertyFlags serves two purposes:

On the one hand it showcases the generated documentation for "flag" enums. For flag enums, the numeric values for the possible enum values are represented as hexadecimal numbers in contrast to decimal numbers for other enum types.

Furthermore, this enum is used in DemoPropertyAnnotationAttribute and demonstrates how custom attributes are included in the documentation for properties (see Property2)

Fields

Name Description
Flag1 Example of an enum value
Flag2 Example of an enum value
Flag3 Example of an enum value

See Also


Documentation generated by MdDocs