Search Results for

    Show / Hide Table of Contents

    Class PublicExtensions

    Some extension methods provided by RageCoop

    Inheritance
    Object
    PublicExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: RageCoop.Core
    Assembly: RageCoop.Core.dll
    Syntax
    public static class PublicExtensions

    Methods

    GetSHA256Hash(String)

    Get a SHA256 hashed byte array of the input string, internally used to hash password at client side.

    Declaration
    public static byte[] GetSHA256Hash(this string inputString)
    Parameters
    Type Name Description
    String inputString
    Returns
    Type Description
    Byte[]

    ToHexString(Byte[])

    Convert a byte array to hex-encoded string, internally used to trigger handshake event

    Declaration
    public static string ToHexString(this byte[] data)
    Parameters
    Type Name Description
    Byte[] data
    Returns
    Type Description
    String

    ToIP(String)

    Convert a string to IP address

    Declaration
    public static IPAddress ToIP(this string ip)
    Parameters
    Type Name Description
    String ip
    Returns
    Type Description
    IPAddress
    In This Article
    Back to top Generated by DocFX