From a4425a7279d0c6ded433944dfccd43acce61f82f Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 25 Dec 2021 10:44:28 +0300 Subject: [PATCH] fix --- QRCoderGUITreeData.cs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/QRCoderGUITreeData.cs b/QRCoderGUITreeData.cs index 060a827..68d4b68 100644 --- a/QRCoderGUITreeData.cs +++ b/QRCoderGUITreeData.cs @@ -170,7 +170,11 @@ public Dictionary GetConstructors(Type param) }).ToDictionary(k => k.name, v => (Object)v.ctor); } - //get enum dictionary + /// + /// get enum dictionary + /// + /// + /// private IDictionary GetParamEnum(Type param) { // return param.GetEnumValues().Cast().ToDictionary(k => k.ToString(), v => v); @@ -203,15 +207,15 @@ private void GetParamsConstuctor(ConstructorInfo ctor, int nestingLevel, string foreach (object Param in ctor.GetParameters().Length == 0 ? queryProp : queryParam) { } //run function from query } - /********************************************************************************************************** - START - ************************************************************************************************************/ + #region //START + /// /// Gets the GUI tree. /// return the entire GUI tree from the Reflection payload node to create the entire payload panel /// /// The object (payload Reflection node). /// payload GUI tree IList. + public IList GetGUITree(Object obj) { pointTree = rootTree; @@ -220,6 +224,8 @@ public IList GetGUITree(Object obj) return null;// GUITree; } + #endregion + /// /// Gets the GUI tree nodes. /// return a fragment of the GUI tree from a specific constructor to recreate a fragment of the payload panel @@ -236,8 +242,6 @@ public IList GetGUITreeNodes(ConstructorInfo obj, int nodeNestingLevel, string n return null;// GUITreeNodes; } - -#pragma warning disable CS1572 // Комментарий XML имеет тег param для "guiTree", но параметр с таким именем отсутствует. /// /// Gets the GUI tree node. /// return the GUI tree node with the parameters @@ -245,12 +249,10 @@ public IList GetGUITreeNodes(ConstructorInfo obj, int nodeNestingLevel, string n /// Name of the node. /// Type of the node (converted to Type). /// The node definition value. - /// The GUI tree. /// CCurrent nesting level of the node in the GUI tree. /// Name of the node parent. /// System.Int32. private int GetGUITreeNode(string nodeName, Type nodeType, object nodeDefValue, int nodeNestingLevel, string nodeParentName) -#pragma warning restore CS1572 // Комментарий XML имеет тег param для "guiTree", но параметр с таким именем отсутствует. { ValueNode dataNode = new ValueNode();// new GUITreeNode() // DataNodeTree currentNode = rootNode; @@ -450,6 +452,7 @@ public string GetInvokeMember(object initСtor, ConstructorInfo ctor, List /// Gets the invoke ctor. ///