Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Can't compile generic class


  • Please log in to reply
4 replies to this topic

#1 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 06 January 2012 - 12:46 AM

Hi all!

I get a compilation error when trying to compile a generic class in Visual Studio Express.

The following construct:
public class foo<T>
{
}

produces the following compilation error:
------ Rebuild All started: Project: Common, Configuration: Debug Any CPU ------
MMP : error MMP0000: 0x81010009

I've googled and searched the forum without finding anything applicable. Any ideas?

#2 Jamie Lewis

Jamie Lewis

    Member

  • Members
  • PipPip
  • 29 posts

Posted 06 January 2012 - 01:12 AM

i dont believe generics are supported <_<

#3 Spork

Spork

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 January 2012 - 02:14 AM

As far as I know, generics aren't supported in NETMF. See http://forums.netdui...rics-in-netmf/.

#4 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 06 January 2012 - 02:32 AM

As far as I know, generics aren't supported in NETMF. See http://forums.netdui...rics-in-netmf/.

Thanks, then I know. Kind of a strange error message though.

#5 ErikN

ErikN

    Advanced Member

  • Members
  • PipPipPip
  • 119 posts
  • LocationNew York, NY

Posted 06 January 2012 - 04:54 AM

Thanks, then I know. Kind of a strange error message though.



Visual Studio is happy to let you write code with generics but that's the error you get if you try to compile against the Micro Framework. It's just a disconnect between what the C# language allows and what the Micro Framework supports.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.