private void readJson(JToken node) { switch (node.Type) { case JTokenType.Integer: ObjectId = node.Value <int>(); ObjectType = TypeId; break; case JTokenType.String: ObjectString = ArkName.From(node.Value <string>()); ObjectType = TypePath; break; default: ObjectString = ArkName.From(node.Value <string>("value")); ObjectType = node.Value <bool>("short") ? TypePathNoType : TypePath; break; } }
public ObjectReference(ArkName objectString) { ObjectString = objectString; ObjectType = TypePath; }
public ArkByteValue(ArkName nameValue) { NameValue = nameValue; }