Click or drag to resize

GuardStringStartsWith Method

[This is preliminary documentation and is subject to change.]

Checks if value starts with startsWith

Namespace:  CSInfrastructure.CodeContracts
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static string StringStartsWith(
	string value,
	string startsWith,
	string paramName
)

Parameters

value
Type: SystemString
The value to check
startsWith
Type: SystemString
The value value should start with
paramName
Type: SystemString
The name of the parameter being checked

Return Value

Type: String
The value being checked
Exceptions
ExceptionCondition
ArgumentExceptionThrown when value does not start with startsWith
See Also