DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 27 Jul 2007 19:44:40 -0000,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Susumu
          2    ctacke/ ctacke[at]opennetcf[dot]com


Porting from .NET Framework to .NET Compact Framework   
I am attempting to port a C# library written under .NET Framework 3.0
to .NET Compact Framework 2.0, and am running into several issues
where I am not sure how to proceed.

As there are a number of classes that the library references that are
not in the Compact Framework, I have been taking the following three
approaches (in order of priority): 1) attempt to remove the dependency
altogether by stripping out functionality, 2) re-implement the
functionality offered by the Framework class using only CF classes,
and 3) manually pulling in Framework class definitions (using Rotor's
Reflector) and including it in my project.

When I have to resort to 3), I've come across a number of class
definitions that make use of attributes that do not exist in .NET CF,
such as SecurityPermissionAttribute and ReliabilityContractAttribute.
I'm not too familiar with exactly how these attributes are used, but
since these don't exist in .NET CF, would it be safe to simply comment
them out?

Also, when I used Reflector to look into
System.Collections.Generic.SortedDictionary, it generated a number of
lines that fail to compile, such as:

if (base.valueComparer.Equals(node.Item.Value,
base.<>8__locals4.value))

I've never seen such syntax, is this a limitation of Reflector?  Has
anyone ported SortedDictionary functionality to CF? (I suppose it
wouldn't be too bad to reimplement but it would be nice if something
already exists).

Thank you!

Susumu
Date:Fri, 27 Jul 2007 19:44:40 -0000   Author:  

Re: Porting from .NET Framework to .NET Compact Framework   
#3 is most certainly a license violation.

Search for Daniel Moth's blog - he's got loads of tips on writing code to 
work on both.


-- 

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


"Susumu"  wrote in message 
news:1185565480.909720.204840@e16g2000pri.googlegroups.com...

>
> I am attempting to port a C# library written under .NET Framework 3.0
> to .NET Compact Framework 2.0, and am running into several issues
> where I am not sure how to proceed.
>
> As there are a number of classes that the library references that are
> not in the Compact Framework, I have been taking the following three
> approaches (in order of priority): 1) attempt to remove the dependency
> altogether by stripping out functionality, 2) re-implement the
> functionality offered by the Framework class using only CF classes,
> and 3) manually pulling in Framework class definitions (using Rotor's
> Reflector) and including it in my project.
>
> When I have to resort to 3), I've come across a number of class
> definitions that make use of attributes that do not exist in .NET CF,
> such as SecurityPermissionAttribute and ReliabilityContractAttribute.
> I'm not too familiar with exactly how these attributes are used, but
> since these don't exist in .NET CF, would it be safe to simply comment
> them out?
>
> Also, when I used Reflector to look into
> System.Collections.Generic.SortedDictionary, it generated a number of
> lines that fail to compile, such as:
>
> if (base.valueComparer.Equals(node.Item.Value,
> base.<>8__locals4.value))
>
> I've never seen such syntax, is this a limitation of Reflector?  Has
> anyone ported SortedDictionary functionality to CF? (I suppose it
> wouldn't be too bad to reimplement but it would be nice if something
> already exists).
>
> Thank you!
>
> Susumu
> 
Date:Fri, 27 Jul 2007 17:07:22 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us