문제

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?

도움이 되었습니까?

해결책

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 { }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top