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

    | Improve this Doc 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

    | Improve this Doc 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
    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

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc View Source

    Drop<T>(IEnumerable<T>, Int32)

    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

    Int32 count

    TBD

    Returns
    Type Description
    IEnumerable<T>

    TBD

    Type Parameters
    Name Description
    T

    TBD

    | Improve this Doc 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.

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc 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

    | Improve this Doc View Source

    TakeRight<T>(IEnumerable<T>, Int32)

    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

    Int32 n

    TBD

    Returns
    Type Description
    IEnumerable<T>

    TBD

    Type Parameters
    Name Description
    T

    TBD

    In This Article
    • githubImprove this Doc
    • 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