Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:41:03+00:00 2026-06-16T00:41:03+00:00

Here is a very basic example of method overloading , two methods with the

  • 0

Here is a very basic example of method overloading , two methods with the same name but with different signatures :

int MyMethod(int a)
int MyMethod(int a, string b)

Now let’s say I define two generic interfaces, sharing the exact same name but with different number of type parameters, such as:

IMyInterface<T>
IMyInterface<T1,T2>

Can I say this represents “generic interface overloading” ? Or does the “overloading” term only applies to methods in such a context ? Still it looks kind of very similar to method overloading, in the sense that we are keeping an exact same name but varying the parameters.

If I can’t say “generic interface overload/overloading” what can I say about these two different interfaces sharing the same name ?

Thanks and sorry if this is a dumb question, but googling arround “generic interface overload” or “generic interface overloading” doesn’t give me much but results concerning interface methods overloading, which is not what I’m interested in.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:41:04+00:00Added an answer on June 16, 2026 at 12:41 am

    Types with the same name but a different number of generic type parameters (including zero) are simply different types. The term “overloading” does not apply here. Overloading really only applies to methods belonging to the same type and having the same name but different signatures.


    It is very common to have a generic as well as a non-generic interface with the same name (example from the .NET Library):

    public interface IList : ICollection, IEnumerable
    
    public interface IList<T> : ICollection<T>, IEnumerable<T>, IEnumerable
    

    They are just called generic and non-generic.


    The .NET name of a generic type is the name of the type ending with a grave accent (`) and the number of type parameters. For example the type IMyType<T> in C# or IMyType(Of T) in VB is translated to

    IMyType`1

    internally. The <T> is really just a C# syntactic construction which is translated to an internal .NET name used by the CLR.

    IMyType<T,U> would be translated to

    IMyType`2

    This shows clearly that types with the same name in C# differing only by their number of generic type parameters are in (CLR-) reality types with different names.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To provide as much information as I can, here's a very basic example of
This is very basic stuff , but here goes. I find that I am
This seems very basic and I must be missing something, but here goes anyways...
This is a very basic question...quite embarassing, but here goes: I have a Stopwatch
I know it sounds very basic, but I am new to Javascript. Here is
I have a very basic RSpec example that doesn't work. Here's the code: require
I have a very basic one table scenario; tblFamiles entryID : Int name: Text
Here is a very basic example of what I want to do. The code
Here is a very basic class for handling sessions on App Engine: Lightweight implementation
I'm learning assembly and I have a very basic loop here segment .data msg:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.