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

List


  • Please log in to reply
5 replies to this topic

#1 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 16 August 2010 - 05:16 AM

What happened to the List<object>? Why wouldn't you have that? Its very useful.

#2 Solidus

Solidus

    Member

  • Members
  • PipPip
  • 12 posts

Posted 16 August 2010 - 05:19 AM

What happened to the List<object>? Why wouldn't you have that? Its very useful.

There is a list.

Edit: oh, you meant generics. Short answer: it's not possible yet.

Edit 2: Check this out

Programming Languages: C#. Other programming languages are not supported. Supports v1.1. CLI ECMA standard, with the exception of the native pointer types and relative conversions. Because generics were introduced in CLI v2.0, the .NET Micro Framework does not support them.


Edited by Solidus, 16 August 2010 - 05:27 AM.


#3 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 16 August 2010 - 05:25 AM

There is a list.

Edit: oh, you meant generics. Short answer: it's not possible yet.

can I make a list of Cpu.Pin?

#4 Solidus

Solidus

    Member

  • Members
  • PipPip
  • 12 posts

Posted 16 August 2010 - 05:29 AM

can I make a list of Cpu.Pin?

I don't see why not. Store them in an ArrayList and cast them on extraction.

#5 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 16 August 2010 - 05:29 AM

There is a list.

Edit: oh, you meant generics. Short answer: it's not possible yet.

Edit 2: Check this out

oh no!

#6 kingpin2k

kingpin2k

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationUSA

Posted 16 August 2010 - 06:23 AM

Generics isn't a part of the .net micro framework :) It's not that it's not possible yet, it's just not part of the framework at all. You can always create your own datatype/collection that uses a certain object etc.
Homer: [Meeting Aliens] Please don't eat me! I have a wife and kids. Eat them!




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.