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("&", ""); diff --git a/src/compute.geometry/compute.geometry.csproj b/src/compute.geometry/compute.geometry.csproj index 2f334152..57e3c067 100644 --- a/src/compute.geometry/compute.geometry.csproj +++ b/src/compute.geometry/compute.geometry.csproj @@ -44,8 +44,8 @@ - - - + + +