Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » C# » Extension Methods   (RSS)

Why Can’t Extension methods on Value Type be curried

This is a followup to an post Extension Methods and Curried delegates . I have been recently asked if why Error CS1113: “Extension methods ' Name ' defined on value type ' typename ' cannot be used to create delegates” was added and what does it mean

Extension methods Interoperability between languages

Extension methods written in C# can be imported and called with Extension method semantics in VB and vice versa. This is possible since me decorate the assemblies , types and methods in the same manner. Using the Attribute [AttributeUsage(AttributeTargets.Method
Posted by Sree_c | 4 Comments
Filed under: ,

Conversion rules for Instance parameters and their impact

Overview: Instance parameter is the first parameter of an extension method and has the " this " parameter modifier. I discuss special conversion rules for them and some of the things that users of extension methods might encounter. Consider the code bellow
Posted by Sree_c | 2 Comments
Filed under: ,

Extension methods in C#

Overview Extension methods are a new feature for C# 3.0 and I had the opportunity to implement them in the Compiler. These methods can then be called with instance syntax on any object that is convertible(see convertibility section for details) to the
Posted by Sree_c | 18 Comments
Filed under: ,
 
Page view tracker