Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

cf5585a3 5484 9f7e aec4 2f0ba900a010

haplokuon edited this page May 6, 2023 · 1 revision

StringEnum<T> Class

netDxf 3.0.0 Library

Helper class for working with 'extended' enums using StringValueAttribute attributes.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public class StringEnum<T>
where T : Enum

VB

Public Class StringEnum(Of T As Enum)

C++

generic<typename T>
where T : Enum
public ref class StringEnum

F#

type StringEnum<'T when 'T : Enum> = class end
Inheritance Object → StringEnum(T)

Type Parameters

\[Missing <typeparam name="T"/> documentation for "T:netDxf.StringEnum`1"\]

Constructors

StringEnum(T) Creates a new StringEnum(T) instance.

Properties

EnumType Gets the underlying enum type for this instance.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetStringValue Gets a string value for a particular enum value.
GetStringValues Gets the string values associated with the enum.
GetType Gets the Type of the current instance.
(Inherited from Object)
GetValues Gets the enum entry and string value pairs.
IsStringDefined(String) Return the existence of the given string value within the enum.
IsStringDefined(String, StringComparison) Return the existence of the given string value within the enum.
Parse(String) Parses the supplied enum and string value to find an associated enum value.
Parse(String, StringComparison) Parses the supplied enum and string value to find an associated enum value.
ToString Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

netDxf Namespace

Clone this wiki locally