.NET Micro Framework的扩展方法

似乎扩展方法不支持/使用.NET Micro Framework。

有没有办法让这个有用的语言function工作?

ExtensionAttribute类添加到项目中时,也可以在.NET Micro Framework中使用扩展方法。

 namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)] public sealed class ExtensionAttribute : Attribute { } }