Table of Contents

Method HasPrefix

Namespace
Alternet.UI.Extensions
Assembly
Alternet.UI.Common.dll

HasPrefix(string, string)

Checks whether string has the specified prefix (position of the prefix occurrence is at the beginning of the string).

public static bool HasPrefix(this string s, string prefix)

Parameters

s string

String to check.

prefix string

Prefix text to use for check.

Returns

bool