Class FieldText¶
Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll
A component field as text and back: what a scene file holds in an attribute, and what prefab overrides and the clipboard will hold. The text is the same in every culture
(true and false, integers decimal, floats the shortest text that reads back as the same number (with
NaN, Infinity and -Infinity), and a 1 2 3, 0 0 0 1).
public static class FieldText
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Format(FieldDef, byte*)¶
The text of the field whose value is at at (the field's own address, not the component's start).
public static string Format(FieldDef field, byte* at)
Parameters¶
field FieldDef
at byte*
Returns¶
Exceptions¶
The kind is
Handles(FieldKind)¶
Whether
public static bool Handles(FieldKind kind)
Parameters¶
kind FieldKind
Returns¶
Parse(FieldDef, string, byte*)¶
Reads text into the field whose value is at at (the field's own address).
public static void Parse(FieldDef field, string text, byte* at)
Parameters¶
field FieldDef
text string
at byte*
Exceptions¶
The text is not a value of the kind, or is out of its range.
The kind is