Fauna csharp driver  4.2.0
Public Member Functions | Properties | List of all members
FaunaDB.Types.FaunaEnum Class Reference

Instruct the encoder/decoder to rename the annotated enum field. If not used the method Enum.GetName(Type, object) will be used instead. More...

Inheritance diagram for FaunaDB.Types.FaunaEnum:

Public Member Functions

 FaunaEnum (string alias)
 

Properties

string Alias [get]
 Alias used to encode/decode the enum value More...
 

Detailed Description

Instruct the encoder/decoder to rename the annotated enum field. If not used the method Enum.GetName(Type, object) will be used instead.

enum CpuTypes { [FaunaEnum("x86_32")] X86, [FaunaEnum("x86_64")] X86_64, ARM, MIPS }

Definition at line 198 of file Attributes.cs.

Constructor & Destructor Documentation

◆ FaunaEnum()

FaunaDB.Types.FaunaEnum.FaunaEnum ( string  alias)

Definition at line 205 of file Attributes.cs.

Property Documentation

◆ Alias

string FaunaDB.Types.FaunaEnum.Alias
get

Alias used to encode/decode the enum value

Definition at line 203 of file Attributes.cs.


The documentation for this class was generated from the following file: