LoadFromStream() public static méthode

public static LoadFromStream ( System aData ) : JSONNode
aData System
Résultat JSONNode
 // Token: 0x06000286 RID: 646 RVA: 0x0000B60C File Offset: 0x0000980C
 public static JSONNode LoadFromBase64(string aBase64)
 {
     return(JSONNode.LoadFromStream(new MemoryStream(Convert.FromBase64String(aBase64))
     {
         Position = 0L
     }));
 }
Exemple #2
0
 public static JSONNode LoadFromBase64(String aBase64)
 {
     Byte[] buffer = Convert.FromBase64String(aBase64);
     return(JSONNode.LoadFromStream(new MemoryStream(buffer)
     {
         Position = 0L
     }));
 }
Exemple #3
0
        public static JSONNode LoadFromBase64(string aBase64)
        {
            byte[]       array        = Convert.FromBase64String(aBase64);
            MemoryStream memoryStream = new MemoryStream(array);

            memoryStream.set_Position(0L);
            return(JSONNode.LoadFromStream(memoryStream));
        }
        public static JSONNode LoadFromBase64(string aBase64)
        {
            MemoryStream memoryStream = new MemoryStream(Convert.FromBase64String(aBase64))
            {
                Position = (long)0
            };

            return(JSONNode.LoadFromStream(memoryStream));
        }
        // Token: 0x06000285 RID: 645 RVA: 0x0000B5D4 File Offset: 0x000097D4
        public static JSONNode LoadFromFile(string aFileName)
        {
            JSONNode result;

            using (FileStream fileStream = File.OpenRead(aFileName))
            {
                result = JSONNode.LoadFromStream(fileStream);
            }
            return(result);
        }
        public static JSONNode LoadFromFile(string aFileName)
        {
            JSONNode jSONNode;

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