GraphZen
  • Home
  • Blog
  • Documentation
  • API
  • Get Started
Show / Hide Table of Contents

Class EnumTypeBuilder<TEnum>

Inheritance
Object
EnumTypeBuilder<TEnum>
Implements
IEnumTypeBuilder<TEnum>
IAnnotableBuilder<IEnumTypeBuilder<TEnum>>
Namespace: GraphZen.TypeSystem
Assembly: GraphZen.TypeSystem.dll
Syntax
public class EnumTypeBuilder<TEnum> : IEnumTypeBuilder<TEnum>, IAnnotableBuilder<IEnumTypeBuilder<TEnum>>, IInfrastructure<InternalEnumTypeBuilder>
Type Parameters
Name Description
TEnum

Constructors

EnumTypeBuilder(InternalEnumTypeBuilder)

Declaration
public EnumTypeBuilder(InternalEnumTypeBuilder builder)
Parameters
Type Name Description
GraphZen.TypeSystem.Internal.InternalEnumTypeBuilder builder

Methods

ClrType(Type)

Declaration
public IEnumTypeBuilder<object> ClrType(Type clrType)
Parameters
Type Name Description
Type clrType
Returns
Type Description
IEnumTypeBuilder<Object>

ClrType<T>()

Declaration
public IEnumTypeBuilder<T> ClrType<T>()
Returns
Type Description
IEnumTypeBuilder<T>
Type Parameters
Name Description
T

Description(String)

Declaration
public IEnumTypeBuilder<TEnum> Description(string description)
Parameters
Type Name Description
String description
Returns
Type Description
IEnumTypeBuilder<TEnum>

DirectiveAnnotation(String, Object)

Declaration
public IEnumTypeBuilder<TEnum> DirectiveAnnotation(string name, object value = null)
Parameters
Type Name Description
String name
Object value
Returns
Type Description
IEnumTypeBuilder<TEnum>

IgnoreDirectiveAnnotation(String)

Declaration
public IEnumTypeBuilder<TEnum> IgnoreDirectiveAnnotation(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IEnumTypeBuilder<TEnum>

IgnoreValue(TEnum)

Declaration
public IEnumTypeBuilder<TEnum> IgnoreValue(TEnum value)
Parameters
Type Name Description
TEnum value
Returns
Type Description
IEnumTypeBuilder<TEnum>

Name(String)

Declaration
public IEnumTypeBuilder<TEnum> Name(string name)
Parameters
Type Name Description
String name
Returns
Type Description
IEnumTypeBuilder<TEnum>

UnignoreValue(TEnum)

Declaration
public IEnumTypeBuilder<TEnum> UnignoreValue(TEnum value)
Parameters
Type Name Description
TEnum value
Returns
Type Description
IEnumTypeBuilder<TEnum>

Value(TEnum, Action<IEnumValueBuilder>)

Declaration
public IEnumTypeBuilder<TEnum> Value(TEnum value, Action<IEnumValueBuilder> configurator = null)
Parameters
Type Name Description
TEnum value
Action<IEnumValueBuilder> configurator
Returns
Type Description
IEnumTypeBuilder<TEnum>

Implements

IEnumTypeBuilder<TEnumValue>
IAnnotableBuilder<TBuilder>
Back to top Copyright © 2017-2019 GraphZen LLC