[nem-en] Re: Matching on indexer properties

Snaury snaury at gmail.com
Wed Jun 28 14:13:01 CEST 2006


Ah! I found it, sorry for bothering :)

    public StringToCorrectString2(s: string) : string
    {
      match(s) {
        | null
        | Length = 0 => s;
        | _ when (s[0] == '=')
        | _ when (s[0] == '\'') => "'" + s;
        | _ => s;
      }
    }



More information about the devel-en mailing list