Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EnumOutput.cs
1using System;
2using System.Reflection;
4
6{
11 {
17 public Grade Supports(Type Object) => Object.GetTypeInfo().IsEnum ? Grade.Ok : Grade.NotAtAll;
18
24 public string GetString(object Value)
25 {
26 return Expression.ToString((Enum)Value);
27 }
28 }
29}
Class managing a script expression.
Definition: Expression.cs:39
static string ToString(double Value)
Converts a value to a string, that can be parsed as part of an expression.
Definition: Expression.cs:4496
Converts enumeration values to expression strings.
Definition: EnumOutput.cs:11
string GetString(object Value)
Gets a string representing a value.
Definition: EnumOutput.cs:24
Grade Supports(Type Object)
If the interface understands objects such as Object .
Interface for custom string output classes. Converts objects of a given type to an expression string.
Grade
Grade enumeration
Definition: Grade.cs:7