Show / Hide Table of Contents

    Class StringExtensions

    Inheritance
    System.Object
    StringExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Lib.Extensions
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public static class StringExtensions

    Methods

    | Improve this Doc View Source

    BuildPeerIdFromBase32Key(String, IPAddress, Int32)

    Declaration
    public static PeerId BuildPeerIdFromBase32Key(this string base32Key, IPAddress ipAddress, int port)
    Parameters
    Type Name Description
    System.String base32Key
    System.Net.IPAddress ipAddress
    System.Int32 port
    Returns
    Type Description
    PeerId
    | Improve this Doc View Source

    BuildPeerIdFromBase32Key(String, IPEndPoint)

    Declaration
    public static PeerId BuildPeerIdFromBase32Key(this string base32Key, IPEndPoint ipEndPoint)
    Parameters
    Type Name Description
    System.String base32Key
    System.Net.IPEndPoint ipEndPoint
    Returns
    Type Description
    PeerId
    | Improve this Doc View Source

    ParseHexStringTo<T>(String)

    Declaration
    public static T ParseHexStringTo<T>(this string hex16Pid)
    
        where T : IMessage<T>, new()
    Parameters
    Type Name Description
    System.String hex16Pid
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    ToMemoryStream(String)

    Declaration
    public static Stream ToMemoryStream(this string s)
    Parameters
    Type Name Description
    System.String s
    Returns
    Type Description
    System.IO.Stream
    | Improve this Doc View Source

    ToUtf8Bytes(String)

    Declaration
    public static byte[] ToUtf8Bytes(this string string)
    Parameters
    Type Name Description
    System.String string
    Returns
    Type Description
    System.Byte[]
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network