private void method_10(JsonReader jsonReader_0, Interface11 interface11_0, string string_8, Interface10 interface10_0, XmlNamespaceManager xmlNamespaceManager_0) { Func <Interface12, bool> predicate = null; Class106 class2 = new Class106 { string_0 = string_8 }; string str = Class193.smethod_4(class2.string_0); Interface12 interface2 = this.method_14(class2.string_0, interface11_0, str, xmlNamespaceManager_0); interface10_0.imethod_0(interface2); int num = 0; while (jsonReader_0.Read()) { if (jsonReader_0.JsonToken_0 == JsonToken.EndArray) { break; } this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, class2.string_0, interface2); num++; } if (this.WriteArrayAttribute) { this.method_11(interface2, interface11_0); } if ((num == 1) && this.WriteArrayAttribute) { if (predicate == null) { predicate = new Func <Interface12, bool>(class2.method_0); } Interface12 interface3 = interface2.Prop_0.OfType <Interface12>().Single <Interface12>(predicate); this.method_11(interface3, interface11_0); } }
public void method_1 <T>(string string_0, T gparam_0) where T : TreeNode { zzPakNode1 @class = string.IsNullOrEmpty(string_0) ? this : this.method_2(KeyGenerator.smethod_10(string_0)); if (@class.Nodes.ContainsKey(gparam_0.Text)) { @class.Nodes.RemoveByKey(gparam_0.Text); } @class.Nodes.Add(gparam_0); if (gparam_0 is Interface12) { TreeNode treeNode = this; int level = treeNode.Level; while (level-- != 0) { treeNode = treeNode.Parent; } zzPakNode2 class2 = treeNode as zzPakNode2; Interface12 @interface = class2.method_10(string_0); if (@interface == null) { class2.list_0.Add(gparam_0 as Interface12); return; } class2.list_0[class2.list_0.IndexOf(@interface)] = (gparam_0 as Interface12); } }
private void method_11(Interface12 interface12_0, Interface11 interface11_0) { interface12_0.imethod_1(interface11_0.imethod_11("json:Array", "http://james.newtonking.com/projects/json", "true")); if ((interface12_0 is Class100) && (interface12_0.imethod_2("http://james.newtonking.com/projects/json") == null)) { interface12_0.imethod_1(interface11_0.imethod_11("xmlns:json", "http://www.w3.org/2000/xmlns/", "http://james.newtonking.com/projects/json")); } }
private DigitalSignature method_0(Interface12 A_0, bool A_1) { int num = 13; this.digitalSignature_0 = new DigitalSignature(DigitalSignatureType.XmlDsig); this.digitalSignature_0.SignedXmlResult = A_1; while (this.class393_0.method_9(BookmarkStart.b("怲尴倶圸娺䤼䨾㍀♂", num))) { string str = this.class393_0.method_1(); if (str != null) { if (str != BookmarkStart.b("怲尴倶圸帺夼瘾⽀╂⩄", num)) { if (!(str == BookmarkStart.b("砲倴丶瀸唺嬼倾", num))) { if (str == BookmarkStart.b("簲圴崶尸堺䤼", num)) { this.method_3(); } } else { this.method_1(); } } else { this.method_6(); } } } bool flag = A_1; SHA1 sha = new SHA1CryptoServiceProvider(); foreach (Class117 class2 in this.digitalSignature_0.References) { if (class2.method_6()) { Stream stream = A_0.imethod_0(class2); foreach (Class1055 class3 in class2.method_5()) { stream = class3.method_0(stream); } stream.Position = 0L; bool flag2 = Convert.ToBase64String(sha.ComputeHash(stream)) == class2.method_3(); class2.method_8(flag2); flag &= flag2; } else { class2.method_8(A_1); } } this.digitalSignature_0.method_2(flag); return(this.digitalSignature_0); }
public void CreateDot( DxfEntity entity, DrawContext.Wireframe drawContext, ArgbColor color, bool forText, Vector4D position) { Interface12 drawable = (Interface12) new Class343(position, this.GetColor(color), drawContext.GetLineWeight(entity)); this.method_4(forText, drawable); }
public void CreateShape( DxfEntity entity, DrawContext.Wireframe drawContext, ArgbColor color, bool forText, IShape4D shape) { Interface12 drawable = (Interface12) new Class342(this.GetColor(color), shape, shape.IsFilled ? (short)0 : drawContext.GetLineWeight(entity)); this.method_4(forText, drawable); }
public void CreateLine( DxfEntity entity, DrawContext.Wireframe drawContext, ArgbColor color, bool forText, Vector4D start, Vector4D end) { Interface12 drawable = (Interface12) new Class338(start, end, this.GetColor(color), drawContext.GetLineWeight(entity)); this.method_4(forText, drawable); }
public override object Clone() { Interface12 @interface = (Interface12)base.Clone(); @interface.imethod_1(this.int_0); @interface.imethod_3(this.int_1); @interface.imethod_5(this.int_2); @interface.imethod_8(this.int_3); @interface.imethod_11(this.int_4); @interface.imethod_13(this.int_5); @interface.imethod_15(this.enum35_0); if (this.imethod_18()) { @interface.imethod_19(); } return(@interface); }
public void CreatePath( DxfEntity entity, DrawContext.Wireframe drawContext, ArgbColor color, bool forText, IList <Polyline4D> polylines, bool fill, bool correctForBackgroundColor) { if (polylines.Count <= 0) { return; } Interface23[] drawables = this.GetDrawables(polylines); Interface12 drawable = !correctForBackgroundColor ? (drawables.Length != 1 ? (Interface12) new Class346(this.GetColor(color), drawables, fill, drawContext.GetLineWeight(entity)) : (Interface12) new Class337(this.GetColor(color), drawables[0], fill, drawContext.GetLineWeight(entity))) : (drawables.Length != 1 ? (Interface12) new Class340(this.GetColor(color), drawables, fill, drawContext.GetLineWeight(entity)) : (Interface12) new Class341(this.GetColor(color), drawables[0], fill, drawContext.GetLineWeight(entity))); this.method_4(forText, drawable); }
private void method_8(JsonReader jsonReader_0, Interface11 interface11_0, Interface10 interface10_0, string string_8, XmlNamespaceManager xmlNamespaceManager_0) { if (string.IsNullOrEmpty(string_8)) { throw new JsonSerializationException("XmlNodeConverter cannot convert JSON with an empty property name to XML."); } Dictionary <string, string> dictionary = this.method_12(jsonReader_0, xmlNamespaceManager_0); string str = Class193.smethod_4(string_8); if (string_8.StartsWith("@")) { string str2 = string_8.Substring(1); string str3 = jsonReader_0.Object_0.ToString(); string str4 = Class193.smethod_4(str2); Interface10 interface2 = !string.IsNullOrEmpty(str4) ? interface11_0.imethod_11(str2, xmlNamespaceManager_0.LookupNamespace(str4), str3) : interface11_0.imethod_10(str2, str3); ((Interface12)interface10_0).imethod_1(interface2); } else { Interface12 interface3 = this.method_14(string_8, interface11_0, str, xmlNamespaceManager_0); interface10_0.imethod_0(interface3); foreach (KeyValuePair <string, string> pair in dictionary) { string str5 = Class193.smethod_4(pair.Key); Interface10 interface4 = !string.IsNullOrEmpty(str5) ? interface11_0.imethod_11(pair.Key, xmlNamespaceManager_0.LookupNamespace(str5), pair.Value) : interface11_0.imethod_10(pair.Key, pair.Value); interface3.imethod_1(interface4); } if ((((jsonReader_0.JsonToken_0 != JsonToken.String) && (jsonReader_0.JsonToken_0 != JsonToken.Integer)) && ((jsonReader_0.JsonToken_0 != JsonToken.Float) && (jsonReader_0.JsonToken_0 != JsonToken.Boolean))) && (jsonReader_0.JsonToken_0 != JsonToken.Date)) { if ((jsonReader_0.JsonToken_0 != JsonToken.Null) && (jsonReader_0.JsonToken_0 != JsonToken.EndObject)) { xmlNamespaceManager_0.PushScope(); this.method_15(jsonReader_0, interface11_0, xmlNamespaceManager_0, interface3); xmlNamespaceManager_0.PopScope(); } } else { interface3.imethod_0(interface11_0.imethod_2(this.method_9(jsonReader_0))); } } }
private void method_4(bool forText, Interface12 drawable) { LinkedListNodeRef <Interface12> linkedListNodeRef = !forText || !this.bool_0 ? this.linkedListNodeRef_0 : this.linkedListNodeRef_1; if (forText) { bool?nullable0 = this.nullable_0; if ((!nullable0.GetValueOrDefault() ? 1 : (!nullable0.HasValue ? 1 : 0)) != 0) { linkedListNodeRef.Insert((Interface12) new Class807()); this.nullable_0 = new bool?(true); } } else { bool?nullable0 = this.nullable_0; if ((nullable0.GetValueOrDefault() ? 1 : (!nullable0.HasValue ? 1 : 0)) != 0) { linkedListNodeRef.Insert((Interface12) new Class748()); this.nullable_0 = new bool?(false); } } linkedListNodeRef.Insert(drawable); }
public bool method_0(Interface12 interface12_0) { return(interface12_0.String_0 == this.string_0); }
private void method_15(JsonReader jsonReader_0, Interface11 interface11_0, XmlNamespaceManager xmlNamespaceManager_0, Interface10 interface10_0) { string str; Func <Interface12, bool> func; Label_0000: func = null; Class107 class2 = new Class107(); JsonToken token = jsonReader_0.JsonToken_0; switch (token) { case JsonToken.StartConstructor: str = jsonReader_0.Object_0.ToString(); goto Label_0140; case JsonToken.PropertyName: { if ((interface10_0.XmlNodeType_0 == XmlNodeType.Document) && (interface11_0.Interface12_0 != null)) { throw new JsonSerializationException("JSON root object has multiple properties. The root object must have a single property in order to create a valid XML document. Consider specifing a DeserializeRootElementName."); } class2.string_0 = jsonReader_0.Object_0.ToString(); jsonReader_0.Read(); if (jsonReader_0.JsonToken_0 != JsonToken.StartArray) { this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, class2.string_0, interface10_0); break; } int num = 0; while (jsonReader_0.Read()) { if (jsonReader_0.JsonToken_0 == JsonToken.EndArray) { break; } this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, class2.string_0, interface10_0); num++; } if ((num == 1) && this.WriteArrayAttribute) { if (func == null) { func = new Func <Interface12, bool>(class2.method_0); } Interface12 interface2 = interface10_0.Prop_0.OfType <Interface12>().Single <Interface12>(func); this.method_11(interface2, interface11_0); } break; } case JsonToken.Comment: interface10_0.imethod_0(interface11_0.imethod_1((string)jsonReader_0.Object_0)); break; default: switch (token) { case JsonToken.EndObject: case JsonToken.EndArray: return; } throw new JsonSerializationException("Unexpected JsonToken when deserializing node: " + jsonReader_0.JsonToken_0); } Label_0044: if ((jsonReader_0.JsonToken_0 == JsonToken.PropertyName) || jsonReader_0.Read()) { goto Label_0000; } return; Label_0140: if (!jsonReader_0.Read() || (jsonReader_0.JsonToken_0 == JsonToken.EndConstructor)) { goto Label_0044; } this.method_7(jsonReader_0, interface11_0, xmlNamespaceManager_0, str, interface10_0); goto Label_0140; }