GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - WindowsCE/NETStandard.WindowsCE: A library that implements the API of .NET Standard specification on Microsoft Windows CE platform

BranchesTags
Open more actions menu

Latest commit

 

History

205 Commits
205 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
tools
tools
 
 
vs2008
vs2008
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
NETStandard.WindowsCE.nuspec
NETStandard.WindowsCE.nuspec
 
 
NETStandard.WindowsCE.props
NETStandard.WindowsCE.props
 
 
NuGet.bat
NuGet.bat
 
 
README.md
README.md
 
 
References.txt
References.txt
 
 
build.bat
build.bat
 
 
netstandard-net35cf.sln
netstandard-net35cf.sln
 
 
netstandard-net35cf.sln.DotSettings
netstandard-net35cf.sln.DotSettings
 
 

Repository files navigation

NETStandard.WindowsCE

Nuget version (NETStandard.WindowsCE)

A library that implements the API of .NET Standard specification on Microsoft Windows CE platform.

Getting Started

Install the NuGet package

How existing classes are extended

The naming of classes that extends existing types are the same but appended '2' digit, as Activator2 and Int322. Instance methods are implemented using extension methods and class methods as static method.

using System;

// Lesser disruptive way for a code that needs to be compatible
// with multiple platforms
#if !WindowsCE
using static System.Int32;
#else
using static System.Int322;
#endif

namespace Tests
{
    static class Program
    {
        static void Main(string[])
        {
            int result;
            // Calls System.Int322.TryParse for Windows CE platforms
            // or calls System.Int32.TryParse for others
            if (!TryParse("123", NumberStyles.None, null, out result))
                System.Console.WriteLine("Could not parse provided string");
            else
                System.Console.WriteLine("The provided string could be parsed");
            
            const string text = "Lorem ipsum dolor sit amet";
            string croppedText = text.Remove(11);	// <-- Extension method
            System.Console.WriteLine("The text after processing: {0}", croppedText);
        }
    }
}

How not supported API are marked

The API that is not supported on Microsoft Windows CE platform throw PlatformNotSupportedException exception when called and are marked as deprecated using ObsoleteAttribute attribute.

VS showing deprecated message for not supported API

About

A library that implements the API of .NET Standard specification on Microsoft Windows CE platform

Resources

Readme
License
Activity
Custom properties

Stars

33 stars

Watchers

1 watching

Forks

10 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.