[MonoDevelop] Generics issue
Carlos J. Muentes
carlos at rockwithme.org
Mon Jul 17 16:31:00 EDT 2006
I've got a generic class:
public class MyClass<T>{
public void DoSomething( T t ){
}
}
When I compile this in MD, I get
[Task:File=, Line=0, Column=0, Type=Error, Description=Operation is not
supported.(Exception: System.NotSupportedException)
[Task:File=, Line=0, Column=0, Type=Error,
Description=[Internal(1,1):,Internal(1,1):](being compiled)
[Task:File=, Line=0, Column=0, Type=Error, Description=Operation is not
supported.(Exception: System.NotSupportedException)
[Task:File=, Line=0, Column=0, Type=Error, Description=Operation is not
supported.(.NotSupportedException)
[Task:File=, Line=0, Column=0, Type=Error,
Description=/home/carlos/Documents/Programming/mono/myproj/MyClass.cs(1,15):(that
caused the problem begin at)
I selected Mono 2.0 as the runtime in the project options. If I change
the type for 't' to object, it compiles fine. What am I missing?
More information about the Monodevelop-list
mailing list