[Mono-list] Implement StrLike in C#
Max Metral
max at artsalliancelabs.com
Sun Sep 28 17:11:44 EDT 2008
Wouldn't regular expressions be a better bet?
-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Rolf Bjarne
Kvinge
Sent: Sunday, September 28, 2008 4:54 PM
To: 'Andrus'; Mono-list at lists.ximian.com
Subject: Re: [Mono-list] Implement StrLike in C#
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
_______________________________________________
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