Vra

It seems that extensions methods are not supported/working with the .NET Micro Framework.

Is there any way to get this usefull language feature working?

Was dit nuttig?

Oplossing

When you add the ExtensionAttribute class to your project you can use extension methods also in the .NET Micro Framework.

namespace System.Runtime.CompilerServices
{
    [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
    public sealed class ExtensionAttribute : Attribute { }
}
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top