© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
35 replies
hutonahill

✅ using using to clear up ambiguous references.

I've to two method called index:
Microsoft.EntityFrameworkCore.Index
Microsoft.EntityFrameworkCore.Index

System.ComponentModel.DataAnnotations.Schema.Index
System.ComponentModel.DataAnnotations.Schema.Index


i don't use the 2nd one. I want every mention of index to be interpreted as the first one.

I've tried adding one of these using's to fix the problem, but nether works, it just says it Cannot resolve symbol 'Index'

using Index = Microsoft.EntityFrameworkCore.Index;
using IndexCB = System.ComponentModel.DataAnnotations.Schema.Index;
using Index = Microsoft.EntityFrameworkCore.Index;
using IndexCB = System.ComponentModel.DataAnnotations.Schema.Index;
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

❔ Nonsense Ambiguous Reference
C#CC# / help
3y ago
DLL references
C#CC# / help
12mo ago
✅ Circular References
C#CC# / help
2y ago
❔ ✅ Using generics that implement IEqualityOperators results in ambiguous call to the == operator
C#CC# / help
3y ago