StringExtensionsEnsureContains Method

Definition

Namespace: Recrovit.RecroGridFramework.Abstraction.Extensions
Assembly: Recrovit.RecroGridFramework.Abstraction (in Recrovit.RecroGridFramework.Abstraction.dll) Version: 1.14.0.11230
C#
public static string EnsureContains(
	this string originalString,
	string valuesToEnsure,
	char separatorChar,
	bool shouldTrim = true
)

Parameters

originalString  String
 
valuesToEnsure  String
 
separatorChar  Char
 
shouldTrim  Boolean  (Optional)
 

Return Value

String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also