Simply create an ExtensionAttribute class:
using System.Runtime.CompilerServicesThen you need to declare this attribute on each extension method in order to implement extension methods. This is because extension methods require the new ExtensionAttribute class introduced in System.Core.dll in .NET 3.5.
{
public class ExtensionAttribute : Attribute{}
}
Daniel Moth has talked about this in depth here.
No comments:
Post a Comment