Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Micro framework and unsupported features. What is the impact?

I found this table listing the limitations of the .NET Micro framework in embedded development, it states that generics are not available due to the size of the image this would create. The memory footprint needs to be below 300KB, and the inclusion of generics pushes the size over this limit.

Does this mean that any Micro framework code would need to go back to the ways of the ArrayList and related lack of type safety?

What other impacts would these limitations have on development using the .NET micro framework?

Thanks

like image 234
fletcher Avatar asked Jul 24 '10 21:07

fletcher


1 Answers

You are down to arrays, Stack, Queue and ArrayList. There is no lack of type safety, these classes throw an InvalidCastException when the programmer got it wrong. This is not a problem, tons of code have been written in .NET 1.x without generics and these kind of bugs flush out quickly.

The table you linked to doesn't show the large number of standard helper classes that are missing. That could make development awkward when you get started and haven't gotten a feel yet for what's available. Just in the beginning, you'll pick up fast. The fact that it is so small also makes it quick to master.

like image 181
Hans Passant Avatar answered Oct 07 '22 21:10

Hans Passant