UltEventUtils Class

Summary

Various utility methods used by UltEvents.
Assembly
UltEvents.dll
Namespace
UltEvents
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["UltEventUtils"] class Type type-node

Syntax

public static class UltEventUtils

Fields

Name Constant Value Summary
AnyAccessBindings 60
Commonly used System.Reflection.BindingFlags.
static
APIDocumentationURL https://kybernetik.com.au/ultevents/api/UltEvents
The address of the API documentation.
static
ComponentMenuPrefix UltEvents/
The sub-menu which all UltEvents components are listed in.
static
DocumentationURL https://kybernetik.com.au/ultevents
The address of the online documentation.
static
InstanceBindings 52
Commonly used System.Reflection.BindingFlags.
static
StaticBindings 56
Commonly used System.Reflection.BindingFlags.
static

Methods

Name Value Summary
AppendDeepToString(StringBuilder, IEnumerator, string) void
Each element returned by `enumerator` is appended to `text`.
static
AppendNameAndGenericArguments(StringBuilder, Type, bool, int) int
Appends the generic arguments of `type` (after skipping the specified number).
static
AppendNameCS(StringBuilder, MemberInfo, bool) StringBuilder
Appends the full name of a `member` as it would appear in C# code.
static
CalculateLevenshteinDistance(string, string) int
Calculate the number of removals, inserts, and replacements needed to turn `a` into `b`.
static
DeepToString(IEnumerable) string
Returns a string containing the value of each element in `collection` (each on a new line).
static
DeepToString(IEnumerable, string) string
Returns a string containing the value of each element in `collection`.
static
DeepToString(IEnumerator) string
Returns a string containing the value of each element in `enumerator` (each on a new line).
static
DeepToString(IEnumerator, string) string
Returns a string containing the value of each element in `enumerator`.
static
GetFullyQualifiedName(MemberInfo) string
Returns "AssemblyQualifiedName.MemberName".
static
GetNameCS(MemberInfo, bool) string
Returns the full name of a `member` as it would appear in C# code.
static
GetNameCS(Type, bool) string
Returns the name of a `type` as it would appear in C# code.
static
GetPlacementName(int) string
Translates a zero based index to a placement name: 0 = "1st", 1 = "2nd", etc.
static
GetReturnType(MemberInfo) Type
Returns the System.Reflection.MemberInfo.DeclaringType for constructors or System.Reflection.MethodInfo.ReturnType for regular methods or System.Reflection.FieldInfo.FieldType for fields.
static
GetReturnType(MethodBase) Type
Returns the System.Reflection.MemberInfo.DeclaringType for constructors or System.Reflection.MethodInfo.ReturnType for regular methods.
static
StableInsertionSort<T>(IList<T>) void
Sorts `list`, maintaining the order of any elements with an identical comparison (unlike the standard System.Collections.Generic.List`1.Sort method).
static
StableInsertionSort<T>(IList<T>, Comparison<T>) void
Sorts `list`, maintaining the order of any elements with an identical comparison (unlike the standard System.Collections.Generic.List`1.Sort(System.Comparison{`0}) method).
static