Question:You are developing a method that searches a string for a substring. The method will be
localized to Italy. Your method accepts the following parameters: The string to be searched, which is
named searchList The string for which to search, which is named searchValue You need to write the
code. Which code segment should you use? -(VB.NET) 

A Return searchList.IndexOf(searchValue) 

B Dim comparer As CompareInfo = New CultureInfo("it-IT").CompareInfo
Return comparer.Compare(searchList, searchlist, searchValue) 

C Dim comparer As Culture = New CultureInfo("it-IT")
If searchList.IndexOf(searchValue) > 0 Then
Return True
Else
Return False
End If 

D Dim comparer As CompareInfo = New CultureInfo("it-IT").CompareInfo
If comparer.IndexOf(searchList, searchValue) > 0 Then
Return True
Else
Return False
End If 

+ Answer
+ Report
Total Preview: 1211

Copyright © 2024. Powered by Intellect Software Ltd