Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Deserialize()

static void System.ComponentModel.Design.DesigntimeLicenseContextSerializer.Deserialize ( Stream o,
string cryptoKey,
RuntimeLicenseContext context )
inlinestaticpackage

Definition at line 135 of file DesigntimeLicenseContextSerializer.cs.

136 {
137 StreamWrapper streamWrapper = new StreamWrapper(o);
139 {
141 return;
142 }
144 byte firstByte = streamWrapper._firstByte;
145 string text = binaryReader.ReadString();
146 int num = binaryReader.ReadInt32();
147 if (text == cryptoKey)
148 {
149 context._savedLicenseKeys.Clear();
150 for (int i = 0; i < num; i++)
151 {
152 string key = binaryReader.ReadString();
153 string value = binaryReader.ReadString();
154 context._savedLicenseKeys.Add(key, value);
155 }
156 }
157 }
static void DeserializeUsingBinaryFormatter(StreamWrapper wrappedStream, string cryptoKey, RuntimeLicenseContext context)
virtual string ReadString()
static Encoding UTF8
Definition Encoding.cs:526

References System.ComponentModel.Design.RuntimeLicenseContext._savedLicenseKeys, System.Collections.Hashtable.Add(), System.Collections.Hashtable.Clear(), System.ComponentModel.Design.DesigntimeLicenseContextSerializer.DeserializeUsingBinaryFormatter(), System.Runtime.Serialization.Dictionary, System.key, System.IO.BinaryReader.ReadString(), System.ComponentModel.Design.DesigntimeLicenseContextSerializer.StreamIsBinaryFormatted(), System.text, System.Text.Encoding.UTF8, and System.value.

Referenced by System.ComponentModel.Design.RuntimeLicenseContext.GetSavedLicenseKey().