-
Notifications
You must be signed in to change notification settings - Fork 0
JTokenExtensionsGetSet
Rob edited this page Aug 4, 2026
·
1 revision
Extra helpers for getting and setting
public static class JTokenExtensionsGetSetInheritance System.Object 🡒 JTokenExtensionsGetSet
Get the value if there, if not, return default value. Ensure its present in the Object
if the value is not compatible it will be overwritten
public static T GetSet<T>(this QuickJSON.JToken token, string name, T defaultvalue);
token JToken
JObject to get the value from. Assert if not value
name System.String
property name
defaultvalue T
default value to use if value is not there or not int
T
Current value
JsonException
GetSet on a non object