Hi

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

Thanks

Regards

Re: Overloading string split function by Armin

Armin
Thu May 08 08:26:27 CDT 2008

"John" <info@nospam.infovis.co.uk> schrieb
> 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


Re: Overloading string split function by FamilyTreeMike

FamilyTreeMike
Sat May 10 07:58:00 CDT 2008

Besides that, you can not inherit from a sealed class string.

"Armin Zingler" wrote:

> "John" <info@nospam.infovis.co.uk> schrieb
> > 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
>
>