Pinned Repositories
CLSS
A collection of independent or loosely-coupled tools to enhance the syntax of C# in a minimal way.
CLSS.Constants.CollectionPool
A collection of statically-defined pools of Base Class Library's built-in collection types. A part of the C# Language Syntactic Sugar suite.
CLSS.Constants.DefaultRandom
A default-constructed instance of the System.Random class. A part of the C# Language Syntactic Sugar suite.
CLSS.Constants.NoOp
A collection of statically-defined No-op methods used in place of anonymous no-ops to save memory allocations. A part of the C# Language Syntactic Sugar suite.
CLSS.Constants.ValueEquivalentStrings
A global cache of default string representations of values of value types. A part of the C# Language Syntactic Sugar suite.
CLSS.ExtensionMethods.CommonMathOps
A collection of common math operations in a functional syntax. A part of the C# Language Syntactic Sugar suite.
CLSS.ExtensionMethods.IComparable.ClampToRange
An extension method to clamp the source value into a range. A part of the C# Language Syntactic Sugar suite.
CLSS.ExtensionMethods.IComparable.InRange
An extension method to check whether the source value is within a range. A part of the C# Language Syntactic Sugar suite.
CLSS.ExtensionMethods.IDictionary.GetOrAdd
An extension method to provide GetOrAdd as found in ConcurrentDictionary to every IDictionary type. A part of the C# Language Syntactic Sugar suite.
CLSS.ExtensionMethods.IEnumerable.ForEach
An extension method to provide ForEach as found in List to every IEnumerable type. A part of the C# Language Syntactic Sugar suite.
tonygiang's Repositories
tonygiang/CLSS
A collection of independent or loosely-coupled tools to enhance the syntax of C# in a minimal way.
tonygiang/CLSS.ExtensionMethods.IEnumerable.ForEach
An extension method to provide ForEach as found in List to every IEnumerable type. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.CommonMathOps
A collection of common math operations in a functional syntax. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IComparable.ClampToRange
An extension method to clamp the source value into a range. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IComparable.InRange
An extension method to check whether the source value is within a range. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IDictionary.GetOrAdd
An extension method to provide GetOrAdd as found in ConcurrentDictionary to every IDictionary type. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IDictionary.MoveKey
An extension method to move the value of a dictionary's key to another key. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IDictionary.RemoveAndProcess
An extension method that combines the removal of a key from an IDictionary and post-removal processing of that key's associated value into one method call. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IDictionary.SwapKeys
An extension method to swap the values at 2 different keys in an IDictionary. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IEnumerable.Looping
An extension method create an enumerable that infinitely loops over a collection. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IEnumerable.MinMaxBy
An extension method to provide MinBy and MaxBy as found in .NET 6 to projects running on an earlier runtime version. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IEnumerator.LoopNext
An extension method to infinitely advance an enumerator in a loop. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.FillBy
An extension method to fill all indices of an IList with a default value. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.FirstLastIndex
An extension method to find the first or last index of an IList element matching a condition. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.GetLoopingElementAt
An extension method to cyclically convert any integer number into a valid index to get an element from a list. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.GetRandom
An extension method to select a random element from a list. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.GetWeightedRandom
An extension method to select a weighted random element from a list. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.RemoveAndProcess
An extension method that combines the removal of an element from an IList and post-removal processing of that element into one method call. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.Shuffle
An extension method to shuffle an IList in place using the Fisher-Yates algorithm. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.IList.SwapIndices
An extension method to swap the values at 2 different indices in an IList. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.Object.As
An extension method to cast reference types in a functional-style syntax. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.Object.Is
An extension method to check reference types in a functional-style syntax. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.Object.ToStringFormattedBy
An extension method to transform one or several objects into string form following a particular format. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.ExtensionMethods.Reference.Action.Once
An extension method to register a listener to a delegate that will only execute once. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.Types.AgnosticObjectPool
A domain-agnostic object pool that only handles pooling logic and lets you customize object creation and availability checking logic. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.Types.EventLatch
A synchronisation aid object for single-threaded context. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.Types.Reference
A class that encapsulates a single value with the primary intention of making value types referenceable. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.Types.SortedAction
A delegate-like type that allows executions by key order. A part of the C# Language Syntactic Sugar suite.
tonygiang/CLSS.Types.ValueRange
A type-safe, serializable generic struct type tailored to semantically represent a range of comparable values. A part of the C# Language Syntactic Sugar suite.
tonygiang/UnityNuGet
Provides a service to install NuGet packages into a Unity project via the Unity Package Manager