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); } }
private DragDropEffects method_10(DragEventArgs dragEventArgs_0) { DragDropEffects result = DragDropEffects.None; Interface11 @interface = dragEventArgs_0.Data.GetData("IDragDropSource") as Interface11; if (@interface != null && this.string_0 == @interface.imethod_0()) { if (@interface == this) { if (this.bool_3 && !base.Sorted) { result = DragDropEffects.Move; } } else if (this.bool_4) { if (@interface.imethod_1() && ([email protected]_2() || dragEventArgs_0.KeyState == 9)) { result = DragDropEffects.Copy; } else if (@interface.imethod_2()) { result = DragDropEffects.Move; } } } return(result); }
private void method_7(JsonReader jsonReader_0, Interface11 interface11_0, XmlNamespaceManager xmlNamespaceManager_0, string string_8, Interface10 interface10_0) { switch (string_8) { case "#text": interface10_0.imethod_0(interface11_0.imethod_2(jsonReader_0.Object_0.ToString())); return; case "#cdata-section": interface10_0.imethod_0(interface11_0.imethod_3(jsonReader_0.Object_0.ToString())); return; case "#whitespace": interface10_0.imethod_0(interface11_0.imethod_4(jsonReader_0.Object_0.ToString())); return; case "#significant-whitespace": interface10_0.imethod_0(interface11_0.imethod_5(jsonReader_0.Object_0.ToString())); return; } if (!string.IsNullOrEmpty(string_8) && (string_8[0] == '?')) { this.method_13(jsonReader_0, interface11_0, interface10_0, string_8); } else if (jsonReader_0.JsonToken_0 == JsonToken.StartArray) { this.method_10(jsonReader_0, interface11_0, string_8, interface10_0, xmlNamespaceManager_0); } else { this.method_8(jsonReader_0, interface11_0, interface10_0, string_8, xmlNamespaceManager_0); } }
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")); } }
// Token: 0x06001562 RID: 5474 // RVA: 0x0001317C File Offset: 0x0001137C public void imethod_2(Interface11 interface11_1) { if (interface11_1 == null) { this.interface11_0 = new Class212(); return; } this.interface11_0 = interface11_1; }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.JsonToken_0 == JsonToken.Null) { return(null); } XmlNamespaceManager manager = new XmlNamespaceManager(new NameTable()); Interface11 interface2 = null; Interface10 interface3 = null; if (typeof(XObject).IsAssignableFrom(objectType)) { if ((objectType != typeof(XDocument)) && (objectType != typeof(XElement))) { throw new JsonSerializationException("XmlNodeConverter only supports deserializing XDocument or XElement."); } XDocument document = new XDocument(); interface2 = new Class99(document); interface3 = interface2; } if (typeof(System.Xml.XmlNode).IsAssignableFrom(objectType)) { if (objectType != typeof(XmlDocument)) { throw new JsonSerializationException("XmlNodeConverter only supports deserializing XmlDocuments"); } XmlDocument document2 = new XmlDocument(); interface2 = new Class93(document2); interface3 = interface2; } if ((interface2 == null) || (interface3 == null)) { throw new JsonSerializationException("Unexpected type when converting XML: " + objectType); } if (reader.JsonToken_0 != JsonToken.StartObject) { throw new JsonSerializationException("XmlNodeConverter can only convert JSON that begins with an object."); } if (!string.IsNullOrEmpty(this.DeserializeRootElementName)) { this.method_8(reader, interface2, interface3, this.DeserializeRootElementName, manager); } else { reader.Read(); this.method_15(reader, interface2, manager, interface3); } if (!(objectType == typeof(XElement))) { return(interface2.Object_0); } XElement element = (XElement)interface2.Interface12_0.Object_0; element.Remove(); return(element); }
public Class380( WpfWireframeGraphics3DUsingDrawingVisual wpfWireframeGraphics3D) { this.wpfWireframeGraphics3DUsingDrawingVisual_0 = wpfWireframeGraphics3D; this.interface11_0 = Class622.Create(wpfWireframeGraphics3D.Config); this.graphicsConfig_0 = wpfWireframeGraphics3D.graphicsConfig_0; this.visualCollection_0 = wpfWireframeGraphics3D.visualCollection_0; this.matrix4D_0 = wpfWireframeGraphics3D.matrix4D_0; this.double_0 = wpfWireframeGraphics3D.double_0; this.double_1 = wpfWireframeGraphics3D.double_1; this.objectTaggerDelegate_0 = wpfWireframeGraphics3D.DrawingVisualTagger; }
private void method_13(JsonReader jsonReader_0, Interface11 interface11_0, Interface10 interface10_0, string string_8) { if (!(string_8 == "?xml")) { Interface10 interface3 = interface11_0.imethod_7(string_8.Substring(1), jsonReader_0.Object_0.ToString()); interface10_0.imethod_0(interface3); } else { string str = null; string str2 = null; string str3 = null; while (true) { if (!jsonReader_0.Read() || (jsonReader_0.JsonToken_0 == JsonToken.EndObject)) { Interface10 interface2 = interface11_0.imethod_6(str, str2, str3); interface10_0.imethod_0(interface2); return; } string str4 = jsonReader_0.Object_0.ToString(); if (str4 == null) { break; } if (str4 != "@version") { if (!(str4 == "@encoding")) { if (!(str4 == "@standalone")) { break; } jsonReader_0.Read(); str3 = jsonReader_0.Object_0.ToString(); } else { jsonReader_0.Read(); str2 = jsonReader_0.Object_0.ToString(); } } else { jsonReader_0.Read(); str = jsonReader_0.Object_0.ToString(); } } throw new JsonSerializationException("Unexpected property name encountered while deserializing XmlDeclaration: " + jsonReader_0.Object_0); } }
public Class452(WpfWireframeGraphics3D graphics) { this.wpfWireframeGraphics3D_0 = graphics; this.interface11_0 = Class622.Create(graphics.Config); this.graphicsConfig_0 = graphics.graphicsConfig_0; this.linkedListNodeRef_0 = new LinkedListNodeRef <Interface37>(graphics.linkedList_0); this.matrix4D_0 = graphics.matrix4D_0; this.double_0 = graphics.double_0; this.double_1 = graphics.double_1; this.objectTaggerDelegate_0 = graphics.FrameworkElementTagger; this.bool_0 = graphics.bool_0; this.dictionary_0 = graphics.dictionary_0; if (!graphics.bool_0) { return; } this.stack_0 = new Stack <WpfWireframeGraphics3D.Class451>(); }
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))); } } }
public void BeginGeometry( DxfEntity entity, DrawContext.Wireframe drawContext, ArgbColor color, bool forText, bool fill, bool stroke, bool correctForBackgroundColor) { WpfWireframeGraphics3DUsingDrawingVisual.Class380.Class381 class381 = new WpfWireframeGraphics3DUsingDrawingVisual.Class380.Class381(entity); class381.Visual.Tag = this.objectTaggerDelegate_0(entity, (DrawContext)drawContext); class381.Fill = fill; Interface11 nterface11 = correctForBackgroundColor ? this.interface11_0 : this.interface11_1; class381.Brush = nterface11.imethod_0(color); class381.PenThickness = this.method_0(entity, (DrawContext)drawContext, forText); if (stroke) { class381.Pen = nterface11.imethod_1(color, class381.PenThickness); } this.stack_0.Push(class381); this.visualCollection_0.Add((Visual)class381.Visual); }
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; }
private Interface12 method_14(string string_8, Interface11 interface11_0, string string_9, XmlNamespaceManager xmlNamespaceManager_0) { string str = string.IsNullOrEmpty(string_9) ? xmlNamespaceManager_0.DefaultNamespace : xmlNamespaceManager_0.LookupNamespace(string_9); return(!string.IsNullOrEmpty(str) ? interface11_0.imethod_9(string_8, str) : interface11_0.imethod_8(string_8)); }
protected override void OnDragDrop(DragEventArgs drgevent) { base.OnDragDrop(drgevent); this.class230_0.method_1(); Interface11 @interface = drgevent.Data.GetData("IDragDropSource") as Interface11; object[] array = @interface.imethod_3(); bool sorted = base.Sorted; base.Sorted = false; int num = this.method_9(drgevent.Y); int num2 = num; if (num >= base.Items.Count) { base.Items.AddRange(array); } else { object[] array2 = array; for (int i = 0; i < array2.Length; i++) { object item = array2[i]; base.Items.Insert(num++, item); } } Enum34 @enum; if (drgevent.Effect == DragDropEffects.Move) { int num3 = num2; @interface.imethod_4(ref num3); if (@interface == this) { num2 = num3; @enum = Enum34.const_0; } else { @enum = Enum34.const_1; } } else { @enum = Enum34.const_2; } base.ClearSelected(); if (this.SelectionMode == SelectionMode.One) { this.SelectedIndex = num2; } else if (this.SelectionMode != SelectionMode.None) { for (int j = num2; j < num2 + array.Length; j++) { base.SetSelected(j, true); } } base.Sorted = sorted; this.imethod_5(new EventArgs2 { enum34_0 = @enum, interface11_0 = @interface, interface11_1 = this, object_0 = array }); if (@enum != Enum34.const_0) { @interface.imethod_5(new EventArgs2 { enum34_0 = (@enum == Enum34.const_1) ? Enum34.const_3 : Enum34.const_4, interface11_0 = @interface, interface11_1 = this, object_0 = array }); } }
// Token: 0x06001561 RID: 5473 // RVA: 0x00013157 File Offset: 0x00011357 public Class206() { this.interface11_0 = new Class212(); }