SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Utils Namespace Reference

Classes

class  Algorithm
 Provides generic algorithm utilities similar to the C++ STL, including fill, copy, move, min/max, clamp, rotation, and lexicographical comparison for arrays.
class  Layout
 Provides validation utilities for unmanaged structs used in native interop, binary serialization, GPU buffers, and memory‑mapped structures.
Ensures that a struct:

  • uses LayoutKind.Sequential
  • has identical sizeof(T) and System.Runtime.InteropServices.Marshal.SizeOf<T>(T)
  • matches an optional expected unmanaged size

.

class  MissingStructLayoutSequentialException
 Exception thrown when a struct used for unmanaged interop does not specify StructLayoutAttribute with LayoutKind.Sequential.
Required for deterministic field ordering in native interop, binary serialization, and memory‑mapped structures. More...
class  SizeMismatchException
 Exception thrown when the managed size of a struct does not match the expected unmanaged size.
Used to validate binary compatibility between C# structs and native memory layouts. More...

Enumerations

enum  CompareResult : sbyte {
  AIsLargerB = 1 , AIsSmallerB = -1 , Equal = 0 , AIsEqualLargerB = 2 ,
  AIsEqualSmallerB = 3
}
 Specifies the result of a comparison between two values. More...

Functions

delegate CompareResult CompFunc< T > (T? a, T? b)
 Represents a comparison function for two values of type T .

Enumeration Type Documentation

◆ CompareResult

Specifies the result of a comparison between two values.

Enumerator
AIsLargerB 

A is larger as B.

AIsSmallerB 

A is smaller as B.

Equal 

A is Equal B.

AIsEqualLargerB 

A is equal greater B.

AIsEqualSmallerB 

A is equal smaller B.

26 : sbyte {
30 AIsLargerB = 1,
34 AIsSmallerB = -1,
38 Equal = 0,
47 }
@ AIsLargerB
A is larger as B.
Definition Algorithm.cs:30
@ AIsSmallerB
A is smaller as B.
Definition Algorithm.cs:34
@ AIsEqualLargerB
A is equal greater B.
Definition Algorithm.cs:42
@ Equal
A is Equal B.
Definition Algorithm.cs:38
@ AIsEqualSmallerB
A is equal smaller B.
Definition Algorithm.cs:46

Function Documentation

◆ CompFunc< T >()

delegate CompareResult SystemEx.Utils.CompFunc< T > ( T? a,
T? b )

Represents a comparison function for two values of type T .

Template Parameters
TThe value type to compare.
Parameters
aThe first value.
bThe second value.
Returns
The comparison result.