Skip to main content
added 1 character in body
Source Link
ery245gs
  • 211
  • 1
  • 6

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values, while also be able to use them as properties ofin Serializable classes. The serialization is made using System.Text.Json.Serialization.

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values while also be able to use them as properties of Serializable classes. The serialization is made using System.Text.Json.Serialization.

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values, while also be able to use them as properties in Serializable classes. The serialization is made using System.Text.Json.Serialization.

added 100 characters in body
Source Link
ery245gs
  • 211
  • 1
  • 6

How can StringEnumeration be changed in the code below into a generic class, so that ConsensusState wouldn't need the JsonConverter attribute to enable ainstances of the class to be used as if itthey were a serializable enumenums with associated string values?

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values while also be able to use them as properties of Serializable classes. The serialization is made using System.Text.Json.Serialization.

How can StringEnumeration be changed into a generic class, so that ConsensusState wouldn't need the JsonConverter attribute to enable a class to be used as if it were a serializable enum with associated string values?

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values. The serialization is made using System.Text.Json.Serialization.

How can StringEnumeration be changed in the code below into a generic class, so that ConsensusState wouldn't need the JsonConverter attribute to enable instances of the class to be used as if they were serializable enums with associated string values?

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values while also be able to use them as properties of Serializable classes. The serialization is made using System.Text.Json.Serialization.

added 72 characters in body
Source Link
ery245gs
  • 211
  • 1
  • 6

That would allow meI'm using StringEnumeration to test their valuesallow checking instances of ConsensusState agains stringsstring objects in conditional statements or to print them directly to the console as stringsstring values.

I'm The serialization is made using System.Text.Json.Serialization, here is how to define a class using those types.

Here are the classes:

That would allow me to test their values agains strings or print them to the console as strings.

I'm using System.Text.Json.Serialization, here is how to define a class using those types:

I'm using StringEnumeration to allow checking instances of ConsensusState agains string objects in conditional statements or to print them directly to the console as string values. The serialization is made using System.Text.Json.Serialization.

Here are the classes:

added 144 characters in body
Source Link
ery245gs
  • 211
  • 1
  • 6
Loading
deleted 9 characters in body
Source Link
ery245gs
  • 211
  • 1
  • 6
Loading
Source Link
ery245gs
  • 211
  • 1
  • 6
Loading