Show / Hide Table of Contents

Class EnumExtensions

Extension methods for Enum.

Inheritance
object
EnumExtensions
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class EnumExtensions

Methods

View Source

GetAttributeValue<TAttribute, TType>(Enum, Func<TAttribute, TType>)

Gets the value of the given attribute.

Declaration
public static TType GetAttributeValue<TAttribute, TType>(this Enum @enum, Func<TAttribute, TType> expression) where TAttribute : Attribute
Parameters
Type Name Description
Enum enum

The @enum.

Func<TAttribute, TType> expression

The expression.

Returns
Type Description
TType
Type Parameters
Name Description
TAttribute

The attribute type

TType

The Type of the attribute value.

  • View Source
Back to top Generated by DocFX