This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CountDictionary<TKey> : IDictionary<TKey, int> where TKey : notnull | |
{ | |
public CountDictionary() | |
{ | |
Collections = new(); | |
} | |
public CountDictionary(IEnumerable<KeyValuePair<TKey, int>> pair) | |
{ | |
Collections = new(pair); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
[Flags] | |
public enum Options | |
{ | |
Upper = 1, | |
Lower = 1 << 1, | |
Number = 1 << 2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RecentCollection<T> : ICollection<T> | |
{ | |
public RecentCollection() | |
{ | |
_collection = new List<T>(); | |
} | |
public RecentCollection(int capacity) | |
{ | |
_collection = new List<T>(capacity); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace CustomArray | |
{ | |
#region SpanArray<T> | |
public class SpanArray<T> : IEnumerable<T> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
namespace EnglishConvert | |
{ | |
public class EngToKo | |
{ | |
#region Const Values | |
const int FINAL = 28; | |
const int NEUTRAL = 21; |