C# Func<x,y> in mono -> fehlendes package?

Gast #2309512
Lesenswert?

Hallo,

folgender Code kompiliert bei mir unter mono nicht:
1
using System;
2
public class HelloWorld
3
{
4
  public static void Main()
5
  {
6
  Func<int, string> func1 = (x) => string.Format("string = {0}", x);
7
  }
8
}

Das ganze unter Mono 2.6.7 und Monodevelop 2.4 mit .NET 3.5 eingestellt.
Gibt es Func überhaupt unter .NET 3.5?
Als Fehler erhalt ich Error CS0246: The type or namespace name `Func`2' 
could not be found. Are you missing a using directive or an assembly 
reference? (CS0246) (functest)

Vielen Dank schonmal

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren