public byte[] Encode() { Collection<byte> collection1 = new Collection<byte>(); collection1.Add(100); ArrayList list1 = new ArrayList(); foreach (string text1 in dict.Keys) { list1.Add(text1); } foreach (string text2 in list1) { ValueString text3 = new ValueString(text2); foreach (byte num1 in text3.Encode()) { collection1.Add(num1); } foreach (byte num2 in dict[text2].Encode()) { collection1.Add(num2); } } collection1.Add(0x65); byte[] buffer1 = new byte[collection1.Count]; collection1.CopyTo(buffer1, 0); return buffer1; }
public byte[] Encode() { Collection <byte> collection1 = new Collection <byte>(); collection1.Add(100); ArrayList list1 = new ArrayList(); foreach (string text1 in dict.Keys) { list1.Add(text1); } foreach (string text2 in list1) { ValueString text3 = new ValueString(text2); foreach (byte num1 in text3.Encode()) { collection1.Add(num1); } foreach (byte num2 in dict[text2].Encode()) { collection1.Add(num2); } } collection1.Add(0x65); byte[] buffer1 = new byte[collection1.Count]; collection1.CopyTo(buffer1, 0); return(buffer1); }
public byte[] Encode() { Collection <byte> collection = new Collection <byte>(); collection.Add(100); ArrayList list = new ArrayList(); foreach (string str in this.dict.Keys) { list.Add(str); } foreach (string str2 in list) { ValueString str3 = new ValueString(str2); foreach (byte num in str3.Encode()) { collection.Add(num); } foreach (byte num2 in this.dict[str2].Encode()) { collection.Add(num2); } } collection.Add(0x65); byte[] array = new byte[collection.Count]; collection.CopyTo(array, 0); return(array); }