Class StringExtensions
Inheritance
System.Object
StringExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BoldReports.RDL.Data
Assembly: BoldReports.Web.dll
Syntax
public static class StringExtensions
Methods
Contains(String, String, StringComparison)
Determines whether a string contains a specified substring, using the specified comparison option for evaluating and comparing the string.
Declaration
public static bool Contains(this string source, string toCheck, StringComparison comp)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The string instance to search within. |
System.String | toCheck | The substring to seek within the source string. |
System.StringComparison | comp | The comparison type that specifies how the substring should be located in the string. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether the specified substring |
Remarks
Returns false if the source
string is null.