Table of Contents

Class Common

Namespace
TaleWorlds.Library
Assembly
TaleWorlds.Library.dll
public static class Common
Inheritance
Common
Inherited Members

Properties

ConfigName

public static string ConfigName { get; }

Property Value

string

ParallelOptions

public static ParallelOptions ParallelOptions { get; }

Property Value

ParallelOptions

PlatformFileHelper

public static IPlatformFileHelper PlatformFileHelper { get; set; }

Property Value

IPlatformFileHelper

Methods

CalculateMD5Hash(string)

public static string CalculateMD5Hash(string input)

Parameters

input string

Returns

string

CombineBytes(byte[], byte[], byte[], byte[], byte[])

public static byte[] CombineBytes(byte[] arr1, byte[] arr2, byte[] arr3 = null, byte[] arr4 = null, byte[] arr5 = null)

Parameters

arr1 byte[]
arr2 byte[]
arr3 byte[]
arr4 byte[]
arr5 byte[]

Returns

byte[]

DeserializeObject(byte[])

public static object DeserializeObject(byte[] serializeData)

Parameters

serializeData byte[]

Returns

object

DeserializeObject(byte[], int, int)

public static object DeserializeObject(byte[] serializeData, int index, int length)

Parameters

serializeData byte[]
index int
length int

Returns

object

DeserializeObjectFromJson<T>(string)

public static T DeserializeObjectFromJson<T>(string json)

Parameters

json string

Returns

T

Type Parameters

T

DynamicInvokeWithLog(Delegate, params object[])

public static object DynamicInvokeWithLog(this Delegate method, params object[] args)

Parameters

method Delegate
args object[]

Returns

object

FindType(string)

public static Type FindType(string typeName)

Parameters

typeName string

Returns

Type

FromUrlSafeBase64(string)

public static byte[] FromUrlSafeBase64(string base64)

Parameters

base64 string

Returns

byte[]

GetDJB2(string)

public static int GetDJB2(string str)

Parameters

str string

Returns

int

GetMethodInfo(Expression<Action>)

public static MethodInfo GetMethodInfo(Expression<Action> expression)

Parameters

expression Expression<Action>

Returns

MethodInfo

GetMethodInfo(LambdaExpression)

public static MethodInfo GetMethodInfo(LambdaExpression expression)

Parameters

expression LambdaExpression

Returns

MethodInfo

GetMethodInfo<T>(Expression<Action<T>>)

public static MethodInfo GetMethodInfo<T>(Expression<Action<T>> expression)

Parameters

expression Expression<Action<T>>

Returns

MethodInfo

Type Parameters

T

GetMethodInfo<T, TResult>(Expression<Func<T, TResult>>)

public static MethodInfo GetMethodInfo<T, TResult>(Expression<Func<T, TResult>> expression)

Parameters

expression Expression<Func<T, TResult>>

Returns

MethodInfo

Type Parameters

T
TResult

InvokeWithLog(ConstructorInfo, params object[])

public static object InvokeWithLog(this ConstructorInfo constructorInfo, params object[] args)

Parameters

constructorInfo ConstructorInfo
args object[]

Returns

object

InvokeWithLog(MethodInfo, object, params object[])

public static object InvokeWithLog(this MethodInfo methodInfo, object obj, params object[] args)

Parameters

methodInfo MethodInfo
obj object
args object[]

Returns

object

IsAllLetters(string)

public static bool IsAllLetters(string text)

Parameters

text string

Returns

bool

IsAllLettersOrWhiteSpaces(string)

public static bool IsAllLettersOrWhiteSpaces(string text)

Parameters

text string

Returns

bool

IsCharAsian(char)

public static bool IsCharAsian(char character)

Parameters

character char

Returns

bool

MemoryCleanupGC(bool)

public static void MemoryCleanupGC(bool forceTimer = false)

Parameters

forceTimer bool

ParseIpAddress(string)

public static uint ParseIpAddress(string address)

Parameters

address string

Returns

uint

SerializeObject(object)

public static byte[] SerializeObject(object sObject)

Parameters

sObject object

Returns

byte[]

SerializeObjectAsJson(object)

public static byte[] SerializeObjectAsJson(object o)

Parameters

o object

Returns

byte[]

SerializeObjectAsJsonString(object)

public static string SerializeObjectAsJsonString(object o)

Parameters

o object

Returns

string

SetInvariantCulture()

public static void SetInvariantCulture()

TextContainsSpecialCharacters(string)

public static bool TextContainsSpecialCharacters(string text)

Parameters

text string

Returns

bool

ToRoman(int)

public static string ToRoman(int number)

Parameters

number int

Returns

string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).