public static class MiniUtil
<ExtensionAttribute>
Public NotInheritable Class MiniUtil
[ExtensionAttribute]
public ref class MiniUtil abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type MiniUtil = class end
AddEntriesT, S(T, S) | Add multiple values to a collection at once. |
AddEntriesT, S(T, IEnumerableS) | Add multiple values to a collection at once. |
AsBase64 | Converts the byte array to an base64 string. |
CompiledAt | Deliver build date. |
ContainedT(T, T) | Test if a value is in a list of values. Instead of new []{ 1, 3, 5}.Contains(2), 2.Contained(1, 3, 5); can be written. |
ContainedT(T, IEnumerableT) | |
ContainerType | test if object is (a container like) a list or an array. |
CreateForT | Create an object of type T by calling T.Create(). |
CreateOrNewForT | Like CreateFor<T>(), but when T.Create() is missed new T() is used. |
DictFromObj | Copy the fields from an object into a dictionary. |
DictionaryAccessorTk, Tv |
Allows simple testing of potential keys per parameter list,
or with ??.
synopsis:
C#
|
ExpandoFromDictT | Convert a Dictionary to an ExpandoObject. |
GetValueOrDefaultTKey, TValue | |
IsNullableT | check nullability. |
MacAddrs | Returns MAC addresses from the machine. |
NewForT | Create an object of type T by calling T.Create(). |
ReadAsmAttributeFromExec |
C#
|
ReadGuidFromExec | Returns GUID from actual assembly. |
ReinterpretAsString | Reinterpret byte array as string. |
ReplaceEntriesT, S(T, IEnumerableS) | Add multiple values to a collection at once. |
ReplaceEntriesT, S(T, S) | Add multiple values to a collection at once. |
ShellExecute | |
StringDictFromObj | Copy the fields from an object into a dictionary. |
ToArray(CaptureCollection) | .ToArray() for older C#. |
ToArray(GroupCollection) | |
ToPairT | Convert am array with (at least) two elements in a pair (2-tuple). |
ToTupleT | Convert am array/list/... with (at least) n elements in a n-tuple. |
ToUnsignedBigEndianByteArray | Converts a BigInteger to a unsigned byte array in big endianness order. |
ToValues(CaptureCollection) | return value strings from CaptureCollection. |
ToValues(GroupCollection) | |
UnwrapTu, Tw | remove wrapper from list elements. For example convert a list of GH_Number to double by double[] ns = Unwrap>>GH_Number, double<(...).ToArray(). |
WithIndexT | Converts a list to a list with tuples of value and index. |
WithOrdinalityT | Converts a list to a list with tuples of value and index. |
WrapTu, Tw | convert a list by calling the ctor of the target piecewise. For example convert a list of double to a list of GH_Number's by var ns = Wrap<double, GH_Number>(...).ToList(). |