Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Extensions with .net 3.0

$
0
0

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.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>