C#(Csharp)
-
HashSetC#(Csharp) 2021. 7. 24. 15:37
고성능 집합 작업을 제공 한다. 집합은 중복 요소를 포함 하지 않는 컬렉션이며 해당 요소가 특정 순서로 정렬 되어 있지 않다. HashSet클래스는 수학 집합의 모델을 기반으로 하여, Dictionary 또는 컬렉션의 키에 액세스 하는 것과 비슷한 고성능 집합 작업을 제공 합니다. Dictionary에서 값이 없는 컬렉션으로 간주할 수 있다. var hs1 = new HashSet(); hs1.Add("black"); hs1.Add("white"); if(hs1.Contains("black")) { "contain" } 집합 추가 (공용 구조체) 및 집합 뺄셈과 같은 여러 가지 수학적 집합 연산을 제공한다. UnionWith: Union 또는 set 더하기 IntersectWith: 교집합 ExceptW..
-
Csc Microsoft (R) Visual C# CompilerC#(Csharp) 2021. 6. 23. 21:56
Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.5420 for Microsoft (R) .NET Framework version 3.5 Copyright (C) Microsoft Corporation. All rights reserved. Visual C# 2008 Compiler Options - OUTPUT FILES - /out: Specify output file name (default: base name of file with main class or first file) /target:exe Build a console executable (default) (Short form: /t:exe) /target:winexe Build a Wi..
-
C# - 시간측정 StopwatchC#(Csharp) 2021. 3. 25. 21:44
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // work Debug.Log("ElapsedMilliseconds : " + sw.ElapsedMilliseconds.ToString() + "ms"); // work sw.Stop(); Debug.Log("ElapsedMilliseconds : " + sw.ElapsedMilliseconds.ToString() + "ms");