Class Extensions
TBD
Inherited Members
Namespace: Akka.Util.Internal
Assembly: Akka.dll
Syntax
public static class Extensions
Methods
| Edit this page View SourceAddAndReturn<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
TBD
Declaration
public static IDictionary<TKey, TValue> AddAndReturn<TKey, TValue>(this IDictionary<TKey, TValue> hash, TKey key, TValue value)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | hash | TBD |
TKey | key | TBD |
TValue | value | TBD |
Returns
Type | Description |
---|---|
IDictionary<TKey, TValue> | TBD |
Type Parameters
Name | Description |
---|---|
TKey | TBD |
TValue | TBD |
AddOrSet<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
Dictionary helper that allows for idempotent updates. You don't need to care whether or not this item is already in the collection in order to update it.
Declaration
[Obsolete("Use the dictionary setter directly")]
public static void AddOrSet<TKey, TValue>(this IDictionary<TKey, TValue> hash, TKey key, TValue value)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | hash | TBD |
TKey | key | TBD |
TValue | value | TBD |
Type Parameters
Name | Description |
---|---|
TKey | TBD |
TValue | TBD |
AsInstanceOf<T>(object)
TBD
Declaration
public static T AsInstanceOf<T>(this object self)
Parameters
Type | Name | Description |
---|---|---|
object | self | TBD |
Returns
Type | Description |
---|---|
T | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
BetweenDoubleQuotes(string)
TBD
Declaration
public static string BetweenDoubleQuotes(this string self)
Parameters
Type | Name | Description |
---|---|---|
string | self | TBD |
Returns
Type | Description |
---|---|
string | TBD |
Concat<T>(IEnumerable<T>?, T)
TBD
Declaration
public static IEnumerable<T> Concat<T>(this IEnumerable<T>? enumerable, T item)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | enumerable | TBD |
T | item | TBD |
Returns
Type | Description |
---|---|
IEnumerable<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Drop<T>(IEnumerable<T>, int)
Scala alias for Skip
Declaration
public static IEnumerable<T> Drop<T>(this IEnumerable<T> self, int count)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | self | TBD |
int | count | TBD |
Returns
Type | Description |
---|---|
IEnumerable<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
ForEach<T>(IEnumerable<T>, Action<T>)
Applies a delegate action
to all elements of this enumerable.
Declaration
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | source | An IEnumerable<T> to iterate. |
Action<T> | action | The function that is applied for its side-effect to every element. The result of function |
Type Parameters
Name | Description |
---|---|
T | The type of the elements of |
GetOrElse<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
TBD
Declaration
public static TValue GetOrElse<TKey, TValue>(this IDictionary<TKey, TValue> hash, TKey key, TValue elseValue)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TKey, TValue> | hash | TBD |
TKey | key | TBD |
TValue | elseValue | TBD |
Returns
Type | Description |
---|---|
TValue | TBD |
Type Parameters
Name | Description |
---|---|
TKey | TBD |
TValue | TBD |
Head<T>(IEnumerable<T>)
Scala alias for FirstOrDefault
Declaration
public static T Head<T>(this IEnumerable<T> self)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | self | TBD |
Returns
Type | Description |
---|---|
T | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Join(IEnumerable<string>, string)
TBD
Declaration
public static string Join(this IEnumerable<string> self, string separator)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | self | TBD |
string | separator | TBD |
Returns
Type | Description |
---|---|
string | TBD |
Max(TimeSpan, TimeSpan)
TBD
Declaration
public static TimeSpan Max(this TimeSpan @this, TimeSpan other)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | this | TBD |
TimeSpan | other | TBD |
Returns
Type | Description |
---|---|
TimeSpan | TBD |
Min(TimeSpan, TimeSpan)
TBD
Declaration
public static TimeSpan Min(this TimeSpan @this, TimeSpan other)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | this | TBD |
TimeSpan | other | TBD |
Returns
Type | Description |
---|---|
TimeSpan | TBD |
SplitDottedPathHonouringQuotes(string)
Splits a 'dotted path' in its elements, honouring quotes (not splitting by dots between quotes)
Declaration
public static IEnumerable<string> SplitDottedPathHonouringQuotes(this string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The input path |
Returns
Type | Description |
---|---|
IEnumerable<string> | The path elements |
TakeRight<T>(IEnumerable<T>, int)
Selects last n elements.
Declaration
public static IEnumerable<T> TakeRight<T>(this IEnumerable<T> self, int n)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | self | TBD |
int | n | TBD |
Returns
Type | Description |
---|---|
IEnumerable<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |