Table of Contents

Method IsFlagsOrEnum

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsFlagsOrEnum(object, PropertyInfo)

Determines whether the specified property represents an enumeration, a flags enumeration, or neither.

public static FlagsOrEnum IsFlagsOrEnum(object instance, PropertyInfo propInfo)

Parameters

instance object

The object instance containing the property to evaluate.

propInfo PropertyInfo

The metadata information for the property to evaluate. Cannot be null.

Returns

FlagsOrEnum

A FlagsOrEnum value indicating the type of the property: Flags if the property is a flags enumeration, Enum if the property is a standard enumeration, or None if the property is neither.

Remarks

This method evaluates the property's type to determine if it is an enumeration or a flags enumeration. If the property type is not an enumeration, None is returned.