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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:27:50+00:00 2026-06-10T17:27:50+00:00

Non-generic delegate declaration is done as follows: delegate void Print(int arg); where void is

  • 0

Non-generic delegate declaration is done as follows:

delegate void Print(int arg);

where void is a return type and int is the argument type.

A Generic delegate declaration is as below:

delegate void Print<T> (T arg);

where void is again the return type and T in parentheses is generic argument type.

Now we already know the return-type and arguments type then why do we require extra Type in angle bracktes Print<T> ? What does it signify ?

Thank you all in advance.

  • 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-10T17:27:52+00:00Added an answer on June 10, 2026 at 5:27 pm

    The <T> in Print<T> is needed to tell the compiler that you are intending to create a generic method. Otherwise it could think T is some type, rather than a type parameter. While intuitively you can infer what the author meant, the compiler is more literal about it.

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

Sidebar

Related Questions

Is it possible to Marshal a generic return type as non-generic for COM interop?
A newbie question. Arrays in C# return a non generic (classic) IEnumerator. Other collections
I know how to implement the non generic IEnumerable, like this: using System; using
System.BitArray only implements the non-generic IEnumerable, which returns an Object for the IEnumerator.Current property.
Which I'm trying to accomplish is have two classes, a non generic and a
AssemblyInstaller.Install expects a System.Collections.IDictionary. Am I right to be 'allergic' to using non-generic collections
Non inline function defined in header file with guards #if !defined(HEADER_RANDOM_H) #define HEADER_RANDOM_H void
I have a generic method (in a non generic class) returning elements. public IEnumerable<T>
The Java class CircularFifoBuffer in the package org.apache.commons.collections.buffer is non-generic, and can store objects
I read somewhere that EventHandler is a built-in generic type. Why is that so?

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.