You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to introduce a static extension method to a type and am able to create the method and mark it as static without issue. But when introducing the parameters to the introduced method, there isn't an option to indicate that the 'this' keyword should be inserted, leaving one unable to actually create an extension method.
varserviceCollectionType=(INamedType)TypeFactory.GetType(typeof(IServiceCollection));
builderType.IntroduceMethod(nameof(BuildMethodTemplate),
IntroductionScope.Static,
buildMethod:b =>{ b.Name ="RegisterAllEntities"; b.Accessibility = Accessibility.Public;//b.AddParameter("serviceCollection", serviceCollectionType); //Need some way to specify 'this'});
I would like to request such a capability. Thank you for the consideration!
The text was updated successfully, but these errors were encountered:
I would like to introduce a static extension method to a type and am able to create the method and mark it as static without issue. But when introducing the parameters to the introduced method, there isn't an option to indicate that the 'this' keyword should be inserted, leaving one unable to actually create an extension method.
I would like to request such a capability. Thank you for the consideration!
The text was updated successfully, but these errors were encountered: