Search Results for

    Show / Hide Table of Contents

    Class Extensions

    TBD

    Inheritance
    object
    Extensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Util.Internal
    Assembly: Akka.dll
    Syntax
    public static class Extensions

    Methods

    | Edit this page View Source

    AddAndReturn<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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    BetweenDoubleQuotes(string)

    TBD

    Declaration
    public static string BetweenDoubleQuotes(this string self)
    Parameters
    Type Name Description
    string self

    TBD

    Returns
    Type Description
    string

    TBD

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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 action is discarded.

    Type Parameters
    Name Description
    T

    The type of the elements of source.

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET