Overloading string split function

  • Thread starter Thread starter John
  • Start date Start date
John said:
Hi

Is there a way to overload split function from system.string?

Why? What's the target? Usually that's not necessary. If you insist.....
In VB 2008 there are extension methods. Example:

Module Module1
<System.Runtime.CompilerServices.Extension()> _
Function Split( _
ByVal value As String, _
ByVal Whatever As Integer) _
As String()

End Function

End Module


AZ
 
Back
Top