StringExtensionsFindExact Method
Finds the elements that are equals to the specified string on the source IEnumerableT.
Namespace: DevCase.Extensions.StringExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static IEnumerable<string> FindExact(
this IEnumerable<string> sender,
string searchString,
StringComparison stringComparison
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function FindExact (
sender As IEnumerable(Of String),
searchString As String,
stringComparison As StringComparison
) As IEnumerable(Of String)
Dim sender As IEnumerable(Of String)
Dim searchString As String
Dim stringComparison As StringComparison
Dim returnValue As IEnumerable(Of String)
returnValue = sender.FindExact(searchString,
stringComparison)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static IEnumerable<String^>^ FindExact(
IEnumerable<String^>^ sender,
String^ searchString,
StringComparison stringComparison
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member FindExact :
sender : IEnumerable<string> *
searchString : string *
stringComparison : StringComparison -> IEnumerable<string>
No code example is currently available or this language may not be supported.
- sender IEnumerableString
-
The source collections.
- searchString String
-
The string to search for.
- stringComparison StringComparison
-
The string comparison rule.
IEnumerableStringIEnumerableT.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableString. 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).
This is a code example.
No code example is currently available or this language may not be supported.
Dim col As IEnumerable(Of String) = {"Hello World !!", "a", "b", "c"}
Debug.WriteLine(String.Join(", ", col.FindExact(searchString:="a", stringComparison:=StringComparison.OrdinalIgnoreCase)))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.