Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CaseInsensitiveStringOutput.cs
1using System;
5
7{
12 {
18 public Grade Supports(Type Object) => Object == typeof(CaseInsensitiveString) ? Grade.Ok : Grade.NotAtAll;
19
25 public string GetString(object Value)
26 {
27 if (Value is null)
28 return "null";
29 else if (Value is CaseInsensitiveString cs)
30 return Expression.ToString(cs.Value);
31 else
32 return Value.ToString();
33 }
34 }
35}
Represents a case-insensitive string.
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 values of type CaseInsensitiveString to expression strings.
string GetString(object Value)
Gets a string representing a value.
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