[Mono-list] StringSplitOptions missing assembly reference?

milasch jfilho at gmail.com
Tue Jun 9 11:37:48 EDT 2009


If I try compiling the code below

using System;
using System.Text;

namespace ConsoleApplication1
    class Program
        static void Main(string[] args)
            string text = "\"this\",\"is\",\"an\",\"example\"";
            foreach (string word in text.Split(new string[] { "\",\"" },

I get a compiler error:

$ mcs test.cs
test.cs(13,86): error CS0103: The name `StringSplitOptions' does not exist
in the current context
Compilation failed: 1 error(s), 0 warnings

My mono version is 2.4.0

$ mcs --version
Mono C# compiler version

It should compile without any problems, since StringSplitOptions is under
System namespace.

View this message in context: http://www.nabble.com/StringSplitOptions-missing-assembly-reference--tp23945470p23945470.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list