static void Main(string[] args) { var p1 = new PByte(1000); // Won't compile var p2 = new PByte(5); //'\0' var p3 = new PByte(65); //'A' var p4 = new PByte(125); //'}' var p5 = new PByte(175); //'\0' }
// Token: 0x06006B9A RID: 27546 RVA: 0x001E2AB4 File Offset: 0x001E0CB4 public static bool Get(JsonObject j, string key, ref PByte value) { object obj = JsonUtility.GetObj(j, key); if (obj == null) { return(false); } if (obj.GetType() != typeof(long)) { return(false); } value = (byte)((long)obj); return(true); }