[MonoDevelop] Generics issue

Carlos J. Muentes carlos at rockwithme.org
Wed Jul 19 11:01:42 EDT 2006


Does anyone have any idea's on this?  I'm kind of stuck right now, and I
was planning on a release this weekend.  Thanks!



> -------- Original Message --------
> Subject: [MonoDevelop] Generics issue
> From: "Carlos J. Muentes" <carlos at rockwithme.org>
> Date: Mon, July 17, 2006 4:31 pm
> To: Monodevelop List <monodevelop-list at lists.ximian.com>
> 
> 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?
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list