© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
gr8stalin

scope of using statements and extension methods

i want to encapsulate some logic for a specific type i have into an extension method. however, when i try to find that extension method on the type with intellisense, it doesn't appear in the list.

when i enter the method name by hand and press the intellisense shortcut, it prompts me to add a using statement for the namepsace i added the extension method to. i do have that namespace in a using method, but i have it as an alias like so:

using CustomService = MyProject.Services.CustomService;
using CustomService = MyProject.Services.CustomService;


does this not count for having the namespace in the current scope?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Extension Methods
C#CC# / help
2y ago
Extension Methods
C#CC# / help
2y ago
✅ Solution, namespace, using statements
C#CC# / help
8mo ago