From 60bcf94014621ebdccdfad179eda0d61d78b6472 Mon Sep 17 00:00:00 2001 From: Andrew Payne Date: Mon, 6 Jan 2025 10:26:10 -0500 Subject: [PATCH] Fixes Compute-302 --- src/compute.geometry/GeometryEndPoint.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/compute.geometry/GeometryEndPoint.cs b/src/compute.geometry/GeometryEndPoint.cs index a92d69d8..1c21cb35 100644 --- a/src/compute.geometry/GeometryEndPoint.cs +++ b/src/compute.geometry/GeometryEndPoint.cs @@ -40,6 +40,7 @@ public static IEnumerable AllEndPoints { foreach (var customEndpoint in customEndpoints) { + foreach (var endpoint in GeometryEndPoint.Create(customEndpoint.Item2)) { endpoint.UpdatePath(customEndpoint.Item1); @@ -193,21 +194,24 @@ public static List Create(Type t) break; } - // This is the general "catch all" endpoint that attempts to figure out the best routine to call - GeometryEndPoint endpoint = new GeometryEndPoint(t, overloads.ToArray()); - endpoints.Add(endpoint); + if (overloads.Count > 1) + { + // This is the general "catch all" endpoint that attempts to figure out the best routine to call + GeometryEndPoint endpoint = new GeometryEndPoint(t, overloads.ToArray()); + endpoints.Add(endpoint); + } foreach (var overload in overloads) { // generate explicit endpoints for all overloads, even if there are no parameters (see #142) endpoints.Add(new GeometryEndPoint(t, overload)); } - } return endpoints; } + protected static string PrettyString(Type t) { string rc = t.ToString().Replace("&", "");