Table of contents
TOC
Collapse the table of content
Expand the table of content

EnumerationExtensions Class

SharePoint Dev Documents|Last Updated: 5/22/2017
|
1 Contributor

Extension methods to make working with Enum values easier. Copied from http://hugoware.net/blog/enumeration-extensions-2-0.

Namespace:System
Assembly: OfficeDevPnP.Core.dll

Inheritance Hierarchy

System.Object

Syntax

public static class EnumerationExtensions

Extension Methods

NameDescription
Has<T>(Enum, T)Checks if an enumerated type contains a value
Include<T>(Enum, T)Includes an enumerated type and returns the new value
Missing<T>(Enum, T)Checks if an enumerated type is missing a value
Remove<T>(Enum, T)Removes an enumerated type and returns the new value

See also

© 2018 Microsoft