[Mono-list] Implement StrLike in C#

2008-09-28 Thread Andrus
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

[Mono-list] Extending generic methods

2008-09-28 Thread DraconisBG
Hello, Sorry if I send this to the wrong list, please direct me where I should send it. I got a task where I have to modify Mono/GMCS in order to make the following possible: public void GenericMethod (...) {...} ... System.Type typ = ; Generic

Re: [Mono-list] Extending generic methods

2008-09-28 Thread Chris Howie
On Sun, Sep 28, 2008 at 11:52 AM, DraconisBG <[EMAIL PROTECTED]> wrote: > I got a task where I have to modify Mono/GMCS in order to make the following > possible: > > > public void GenericMethod (...) {...} > > ... > > System.Type typ = ; > GenericMe

Re: [Mono-list] Extending generic methods

2008-09-28 Thread Jb Evain
Hey, On 9/28/08, Chris Howie <[EMAIL PROTECTED]> wrote: > On Sun, Sep 28, 2008 at 11:52 AM, DraconisBG <[EMAIL PROTECTED]> wrote: > > I got a task where I have to modify Mono/GMCS in order to make the > following > > possible: > > > > > > publ

Re: [Mono-list] Extending generic methods

2008-09-28 Thread Robert Jordan
DraconisBG wrote: > Hello, > > Sorry if I send this to the wrong list, please direct me where I should send > it. > > I got a task where I have to modify Mono/GMCS in order to make the following > possible: > > > public void GenericMethod (...) {.

[Mono-list] New invitation from Zac Bowling

2008-09-28 Thread Zac Bowling
You have been invited to connect as friends with Zac Bowling <[EMAIL PROTECTED]> Please accept or reject this invitation by clicking below: http://www.bebo.com/in/7871184852a766366492b135 .. Please do not reply directly to this

Re: [Mono-list] Implement StrLike in C#

2008-09-28 Thread Rolf Bjarne Kvinge
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: [EMAIL PROTECTED] [mailto:mono-list- > [EMAIL PROTECTED] On Behalf Of Andrus > Sent:

Re: [Mono-list] Implement StrLike in C#

2008-09-28 Thread Max Metral
Wouldn't regular expressions be a better bet? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rolf Bjarne Kvinge Sent: Sunday, September 28, 2008 4:54 PM To: 'Andrus'; Mono-list@lists.ximian.com Subject: Re: [Mono-list] Implement StrLike in C# Hi, mcs -r

Re: [Mono-list] Implement StrLike in C#

2008-09-28 Thread Benjamin Podszun
On Sun, 28 Sep 2008 17:11:44 -0400, "Max Metral" <[EMAIL PROTECTED]> wrote: > Wouldn't regular expressions be a better bet? No, not at all. Without resorting to the "Now he has two problems" quote: His link [1] describes a scenario where someone expects user input and wants it to behave like the d

Re: [Mono-list] Implement StrLike in C#

2008-09-28 Thread Max Metral
Yeah, I didn't follow the original link, my apologies... Though for my mileage I'd still rather do it in RegEx's for ultimate conceptual portability, I certainly see your point. (I think the thread provided the relatively simple "Like Operator" to RegEx mapping function, and a poster made the v