You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2024. It is now read-only.
//Generic types will return like Type`1 and the docs change to Type-1
@@ -151,13 +150,13 @@ public static string GetPath(object o, bool withInheritanceMarkup = true)
151
150
152
151
return$"{type}: {typeWrapper.DisplayName} in {typeWrapper.TypeInfo.Namespace}";
153
152
}
154
-
returnoisMethodInfoWrappermethod
155
-
?$"Method: {method.Method.Name} in {method.Parent.TypeInfo.Namespace}.{method.Parent.DisplayName}{(global::DSharpPlusDocs.Query.ResultDisplay.IsInherited(method)&&withInheritanceMarkup?" (i)":"")}"
156
-
:oisPropertyInfoWrapperproperty
157
-
?$"Property: {property.Property.Name} in {property.Parent.TypeInfo.Namespace}.{property.Parent.DisplayName}{(global::DSharpPlusDocs.Query.ResultDisplay.IsInherited(property)&&withInheritanceMarkup?" (i)":"")}"
158
-
:oisEventInfoWrappereve
159
-
?$"Event: {eve.Event.Name} in {eve.Parent.TypeInfo.Namespace}.{eve.Parent.DisplayName}"
160
-
:o.GetType().ToString();
153
+
returnoswitch
154
+
{
155
+
MethodInfoWrappermethod=>$"Method: {method.Method.Name} in {method.Parent.TypeInfo.Namespace}.{method.Parent.DisplayName}{(global::DSharpPlusDocs.Query.ResultDisplay.IsInherited(method)&&withInheritanceMarkup?" (i)":"")}",
156
+
PropertyInfoWrapperproperty=>$"Property: {property.Property.Name} in {property.Parent.TypeInfo.Namespace}.{property.Parent.DisplayName}{(global::DSharpPlusDocs.Query.ResultDisplay.IsInherited(property)&&withInheritanceMarkup?" (i)":"")}",
157
+
EventInfoWrappereve=>$"Event: {eve.Event.Name} in {eve.Parent.TypeInfo.Namespace}.{eve.Parent.DisplayName}",
158
+
_ =>o.GetType().ToString()
159
+
};
161
160
}
162
161
163
162
publicstaticstringGetSimplePath(objecto)
@@ -176,28 +175,32 @@ public static string GetSimplePath(object o)
0 commit comments