Table of Contents

Class StringExtensions

Namespace
Mythosia.AI.Extensions
Assembly
Mythosia.AI.dll

String extension methods

public static class StringExtensions
Inheritance
StringExtensions
Inherited Members

Methods

ContainsAny(string, params string[])

Checks if a string contains any of the specified values

public static bool ContainsAny(this string value, params string[] values)

Parameters

value string
values string[]

Returns

bool

Truncate(string, int)

Truncates a string to the specified length

public static string Truncate(this string value, int maxLength)

Parameters

value string
maxLength int

Returns

string