[Mono-list] Console.ReadLine.Split -> NullReferenceException

Felipe Lessa felipe.lessa at gmail.com
Sun Oct 21 13:37:09 EDT 2007


It's working perfectly fine for me. Test case:

using System;
public class C {
  public static void Main() {
    string[] sInput = Console.ReadLine().Split(new char[] {' '});
    foreach (string s in sInput)
      Console.WriteLine("Got {0}.", s);
  }
}

-- 
Felipe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071021/c02264e0/attachment.html 


More information about the Mono-list mailing list