none
Extensions with .net 3.0 RRS feed

  • Question

  • Hi Team,

    How can we implement extensions in .net framework 3.0, I have tried below approach but they don't work,

    namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public class ExtensionAttribute : Attribute { } }

    It says, to implement extension class should be static but if I declare class as static then error as

    static class should derive from objects.

    Thanks,

    Nikhil.

    Tuesday, March 18, 2014 2:58 PM

Answers

All replies