From 5637080b999063f34392b657b2fd98f5e195b618 Mon Sep 17 00:00:00 2001 From: AJ Date: Fri, 22 Nov 2019 06:11:23 -0500 Subject: [PATCH] Forgot to remove PunctuateList from the old class --- ExportDXF/Extensions.cs | 1 + ExportDXF/SolidWorksExtensions.cs | 27 --------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/ExportDXF/Extensions.cs b/ExportDXF/Extensions.cs index a628f0e..6b3b6c4 100644 --- a/ExportDXF/Extensions.cs +++ b/ExportDXF/Extensions.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Drawing; +using System.Linq; using System.Text; using System.Windows.Forms; diff --git a/ExportDXF/SolidWorksExtensions.cs b/ExportDXF/SolidWorksExtensions.cs index b2995fd..8c9cc41 100644 --- a/ExportDXF/SolidWorksExtensions.cs +++ b/ExportDXF/SolidWorksExtensions.cs @@ -2,7 +2,6 @@ using SolidWorks.Interop.swconst; using System.Collections.Generic; using System.Diagnostics; -using System.Linq; namespace ExportDXF { @@ -128,31 +127,5 @@ namespace ExportDXF return feature?.Parameter(dimName) as Dimension; } - public static string PunctuateList(this IEnumerable stringList) - { - var list = stringList.ToList(); - - switch (list.Count) - { - case 0: - return string.Empty; - - case 1: - return list[0]; - - case 2: - return string.Format("{0} and {1}", list[0], list[1]); - - default: - var s = string.Empty; - - for (int i = 0; i < list.Count - 1; i++) - s += list[i] + ", "; - - s += "and " + list.Last(); - - return s; - } - } } } \ No newline at end of file