Also part of the common Delta.Utilities assembly. This namespace contains several helper classes, which mostly extend existing .NET functionality for strings, enums, files, dates, directories, math, threads, etc.
An example can be found here: http://DeltaEngine.net/About/CodingStyle
An example can be found here: http://DeltaEngine.net/About/CodingStyle
Classes
Class | Description | |
---|---|---|
ArrayExtensions |
Additional array manipulation and array to text methods.
View code on GitHub | |
AssemblyExtensions |
Additional methods for assembly related actions.
View code on GitHub | |
AssemblyStarter |
Used to start VisualTests from assemblies in an extra AppDomain for the SampleBrowser. Also
used in the ContinuousUpdater to get all tests and start them safely in the Editor.
View code on GitHub | |
ChangeableList T |
Like , but allows you to add and remove elements while enumerating. When
all enumerations are complete, all remembered removed and added elements will be applied.
Use when adding and removing is rare, otherwise just create a new list before enumerating.
List T View code on GitHub | |
DateExtensions |
Allows to write out date values as structured iso date strings and parses iso or english dates
View code on GitHub | |
EnumExtensions |
Provides the number of elements in an enum and some conversion and enumeration methods.
View code on GitHub | |
ExceptionExtensions |
Categorizes exceptions into fatal and weak ones. Fatal exceptions are always rethrown and weak
ones (most likely simple programming mistakes) can be logged and ignored if no debugger is
attached. See http://vasters.com/clemensv/2012/09/06/Are+You+Catching+Falling+Knives.aspx
View code on GitHub | |
MathExtensions |
Extends the System.Math class, but uses floats and provides some extra constants.
View code on GitHub | |
PathExtensions | ||
PathExtensions NoDeltaEngineFoundInFallbackPaths | ||
StackTraceExtensions |
Provides additional check methods on stack traces to find out where we are (e.g. in tests)
View code on GitHub | |
StringExtensions |
Provides additional and simplified string manipulation methods.
View code on GitHub | |
ThreadExtensions |
Useful wrapper functions for threading.
View code on GitHub | |
ThreadStatic T |
Provides an object which can be scoped and is static within a thread (e.g. tests). Based on
http://startbigthinksmall.wordpress.com/2008/04/24/nice-free-and-reusable-net-ambient-context-pattern-implementation/
View code on GitHub | |
ThreadStatic T DisposingOnDifferentThreadToCreation | ||
ThreadStatic T NoValueAvailable | ||
UniqueList T |
Based on , but this also checks if elements do already exist. It will
not add duplicates, they are ignored and no exception is thrown! Each element is unique.
Unlike , which behaves similarly this one preserves the adding order.
List T HashSet T View code on GitHub |