Overloading string split function

A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top