解決方法:
2. We could not implicitly version the Replace function.
Workaround:
=====================
The workaround for this issue is by implementing a different replace method and using it instead of the replace function in string class as follows.
Public Function MyReplace( _
ByVal Expression As String, ByVal Find As String, ByVal Replacement As String, _
Optional ByVal Start As Integer = 1, Optional ByVal Count As Integer = -1, _
<Microsoft.VisualBasic.CompilerServices.OptionCompareAttribute()> _
Optional ByVal [Compare] As CompareMethod = CompareMethod.Binary) As String
If Not Expression Is Nothing AndAlso Expression.Length = 0 Then
Return String.Empty
Else
Return Replace(Expression, Find, Replacement, Start, Count, Compare)
End If
End Function
以上提供相關設計者參考。