Example #1
0
 // Token: 0x06000036 RID: 54 RVA: 0x00002B5C File Offset: 0x00000F5C
 public static JSONNode LoadFromBase64(string aBase64)
 {
     byte[] buffer = Convert.FromBase64String(aBase64);
     return(JSONNode.LoadFromStream(new MemoryStream(buffer)
     {
         Position = 0L
     }));
 }
Example #2
0
        // Token: 0x06000035 RID: 53 RVA: 0x00002B1C File Offset: 0x00000F1C
        public static JSONNode LoadFromFile(string aFileName)
        {
            JSONNode result;

            using (FileStream fileStream = File.OpenRead(aFileName))
            {
                result = JSONNode.LoadFromStream(fileStream);
            }
            return(result);
        }