From d2ddf8571ad8adddb9165af64fcea2a208cfd23c Mon Sep 17 00:00:00 2001 From: "PC-PC\\PC" Date: Mon, 20 Nov 2017 20:16:21 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=A0=95=EB=A0=AC=20=EB=AA=A8=EB=93=88=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GSharp.Modules.Sort/GSharp.Modules.Sort.cs | 27 ++++++++++ .../GSharp.Modules.Sort.csproj | 51 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 36 +++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 GSharp.Modules.Sort/GSharp.Modules.Sort.cs create mode 100644 GSharp.Modules.Sort/GSharp.Modules.Sort.csproj create mode 100644 GSharp.Modules.Sort/Properties/AssemblyInfo.cs diff --git a/GSharp.Modules.Sort/GSharp.Modules.Sort.cs b/GSharp.Modules.Sort/GSharp.Modules.Sort.cs new file mode 100644 index 0000000..dff6226 --- /dev/null +++ b/GSharp.Modules.Sort/GSharp.Modules.Sort.cs @@ -0,0 +1,27 @@ +using GSharp.Extension.Abstracts; +using GSharp.Extension.Attributes; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace GSharp.Modules.Sort +{ + public class ArraySort : GModule + { + [GCommand("{0} 배열 정렬")] + public static void SortArray(string[] arr) + { + Array.Sort(arr); + } + + [GCommand("{0} 배열 역순으로 정렬")] + public static void ReverseArray(string[] arr) + { + Array.Sort(arr); + Array.Reverse(arr); + } + } +} \ No newline at end of file diff --git a/GSharp.Modules.Sort/GSharp.Modules.Sort.csproj b/GSharp.Modules.Sort/GSharp.Modules.Sort.csproj new file mode 100644 index 0000000..de2cd72 --- /dev/null +++ b/GSharp.Modules.Sort/GSharp.Modules.Sort.csproj @@ -0,0 +1,51 @@ + + + + + Debug + AnyCPU + {26376259-269B-4F67-BAC2-4D559725DD2D} + Library + Properties + GSharp.Modules.Sort + GSharp.Modules.Sort + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\..\Desktop\GSharp.Extension.dll + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GSharp.Modules.Sort/Properties/AssemblyInfo.cs b/GSharp.Modules.Sort/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..56124f2 --- /dev/null +++ b/GSharp.Modules.Sort/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 +// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 +// 이러한 특성 값을 변경하세요. +[assembly: AssemblyTitle("GSharp.Modules.Sort")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GSharp.Modules.Sort")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 +// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 +// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. +[assembly: ComVisible(false)] + +// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. +[assembly: Guid("26376259-269b-4f67-bac2-4d559725dd2d")] + +// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. +// +// 주 버전 +// 부 버전 +// 빌드 번호 +// 수정 버전 +// +// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 +// 기본값으로 할 수 있습니다. +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] From 7d6312bbd96f169e9d985c7f4ddade5440b28c0e Mon Sep 17 00:00:00 2001 From: hodu1994 Date: Mon, 20 Nov 2017 20:27:13 +0900 Subject: [PATCH 2/3] Update GSharp.Modules.Sort.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit string을 '사전식으로' 정렬하는 모듈입니다. 어폐가 조금 있었던 것 같습니다. --- GSharp.Modules.Sort/GSharp.Modules.Sort.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GSharp.Modules.Sort/GSharp.Modules.Sort.cs b/GSharp.Modules.Sort/GSharp.Modules.Sort.cs index dff6226..e583210 100644 --- a/GSharp.Modules.Sort/GSharp.Modules.Sort.cs +++ b/GSharp.Modules.Sort/GSharp.Modules.Sort.cs @@ -11,17 +11,17 @@ namespace GSharp.Modules.Sort { public class ArraySort : GModule { - [GCommand("{0} 배열 정렬")] + [GCommand("{0} 사전식 정렬")] public static void SortArray(string[] arr) { Array.Sort(arr); } - [GCommand("{0} 배열 역순으로 정렬")] + [GCommand("{0} 배열 사전식 역순으로 정렬")] public static void ReverseArray(string[] arr) { Array.Sort(arr); Array.Reverse(arr); } } -} \ No newline at end of file +} From 9184451ee1e6214af1f401d18348656985a626a7 Mon Sep 17 00:00:00 2001 From: hodu1994 Date: Mon, 20 Nov 2017 23:07:22 +0900 Subject: [PATCH 3/3] Update GSharp.Modules.Sort.cs --- GSharp.Modules.Sort/GSharp.Modules.Sort.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GSharp.Modules.Sort/GSharp.Modules.Sort.cs b/GSharp.Modules.Sort/GSharp.Modules.Sort.cs index e583210..96be0ae 100644 --- a/GSharp.Modules.Sort/GSharp.Modules.Sort.cs +++ b/GSharp.Modules.Sort/GSharp.Modules.Sort.cs @@ -11,14 +11,14 @@ namespace GSharp.Modules.Sort { public class ArraySort : GModule { - [GCommand("{0} 사전식 정렬")] - public static void SortArray(string[] arr) + [GCommand("{0} 배열 순서대로 정렬")] + public static void SortArray(Array arr) { Array.Sort(arr); } - [GCommand("{0} 배열 사전식 역순으로 정렬")] - public static void ReverseArray(string[] arr) + [GCommand("{0} 배열 역순으로 정렬")] + public static void ReverseArray(Array arr) { Array.Sort(arr); Array.Reverse(arr);