[Mono-list] Implement StrLike in C#
Rolf Bjarne Kvinge
rolflists at ya.com
Sun Sep 28 16:53:56 EDT 2008
Hi,
mcs -r:Microsoft.Visual.Basic.dll ... and you can use that code snippet.
The code is in mono-basic/vbruntime/Microsoft.VisualBasic/... (i.e. not in
the mcs module)
Rolf
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Andrus
> Sent: domingo, 28 de septiembre de 2008 17:36
> To: Mono-list at lists.ximian.com
> Subject: [Mono-list] Implement StrLike in C#
>
> How to implement method below in Mono in C# ?
>
> I havent from StrLike implementation in MCS source code.
> Since VB Like operator requires this it must be implemented somewhere.
>
> Andrus.
>
> public static bool Like(string pattern, string source)
> {
> return
> Microsoft.VisualBasic.CompilerServices.StringType.StrLike(source,
> pattern,
> Microsoft.VisualBasic.CompareMethod.Text);
> }
>
> I created this code by following this thread:
>
> http://groups.google.com/group/microsoft.public.dotnet.languages.csharp
> /browse_thread/thread/32649965654df408/57ba3e39a6c2711f?lnk=st&q=#57ba3
> e39a6c2711f
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list