看起来扩展方法在.NET Micro Framework中不受支持/无法工作。
有没有办法让这个有用的语言特性工作?
看起来扩展方法在.NET Micro Framework中不受支持/无法工作。
有没有办法让这个有用的语言特性工作?
ExtensionAttribute
类时,您可以在 .NET 微框架中使用扩展方法。namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
public sealed class ExtensionAttribute : Attribute { }
}