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 6039733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:24:45+00:00 2026-05-23T06:24:45+00:00

When talking about a generic type, Foo<T> , T is called the generic argument

  • 0

When talking about a generic type, Foo<T>, T is called the generic argument or type argument of generic type Foo in the .NET System.Type documentation.

Now, when I am dealing with a type such as int? or Nullable<Bar>, how do I refer to the generic argument (i.e. int or Bar in my example) when describing the type?

I’d call it the base type of the nullable type, but base type is usually used to refer to the parent class, when describing a class hierarchy… so I don’t feel it is right to be talking about a base type here. And using the terminology the generic argument of the nullable type makes me feel to general.

So how do you speak about these types?

And more specifically, how would you name this extension method:

public static System.Type GetXxxType(this System.Type type)
{
    if ((type.IsGenericType) &&
        (type.GetGenericTypeDefinition () == typeof (System.Nullable<>)))
    {
        return type.GetGenericArguments ()[0];
    }
    else
    {
        return null;
    }
}

When passed a Nullable<T> this method returns typeof(T) as a result.

  • 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-05-23T06:24:46+00:00Added an answer on May 23, 2026 at 6:24 am

    from the spec:

    A nullable type can represent all
    values of its underlying type plus an
    additional null value. A nullable type
    is written T?, where T is the
    underlying type

    Edit:

    reference:
    C# 4 spec section 4.1.10 Nullable types

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

Sidebar

Related Questions

Talking about System.Collections.Generic.List<T> here. With example below can Method1 and Method2 execute and the
Please note that I am not talking about Generic Type parameters. For example in
I'm not talking about generic classes that declare properties or fields with the type
I'm talking about methods like -removeAllObjects, -removeLastObject, etc for NSMutableArray. The documentation only says
I know that in ASP.NET (talking about 2.0 here primarily) one can set a
Talking about javax.crypto.Cipher I was trying to encrypt data using Cipher.getInstance(RSA/None/NoPadding, BC) but I
Talking about SimpleModal the jQuery plugin. Most of the time I think it is
When talking about HTTPUrlConnection on his blog Tim Bray gives us the following snippet
I read and article talking about moving beyond 960px width for websites. This width
I am talking about windows GUI programs. Say a program-window has a dialog box

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.