Show / Hide Table of Contents

Class NamedObjectExtensions

Miscellaneous functions and extensions for all elements of the NamedObject<T> type.

Inheritance
object
NamedObjectExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.dll
Syntax
public static class NamedObjectExtensions

Methods

| Edit this page View Source

AsNamedEnum(Type)

Enumerates all enumeration values of the specified type as a NamedObject<T> .

Declaration
public static IEnumerable<NamedObject<Enum>> AsNamedEnum(this Type t)
Parameters
Type Name Description
Type t

Type of enumeration to convert.

Returns
Type Description
IEnumerable<NamedObject<Enum>>

An enumeration of NamedObject<T> from the enumeration values of the specified type.

| Edit this page View Source

AsNamedObject<T>()

Enumerates all enumeration values of the specified type as a NamedObject<T> .

Declaration
public static IEnumerable<NamedObject<T>> AsNamedObject<T>() where T : struct, Enum
Returns
Type Description
IEnumerable<NamedObject<T>>

An enumeration of NamedObject<T> from the enumeration values of the specified type.

Type Parameters
Name Description
T

Type of enumeration to convert.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX