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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:41:40+00:00 2026-06-03T04:41:40+00:00

This example gives a The type or namespace name ‘MyType’ could not be found

  • 0

This example gives a “The type or namespace name ‘MyType’ could not be found (are you missing a using directive or an assembly reference?)”

using MyType = System.Func<System.Int32, System.Tuple<System.Int32, MyType>>;

Is it at all possible to declare a recursive type like this?

  • 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-03T04:41:41+00:00Added an answer on June 3, 2026 at 4:41 am

    No, I don’t think it is possible. The right-hand side of your using statement needs to resolve to a real type before you can assign an alias to it. In your case, in order to resolve the right-hande side, the compiler must fully define the allias… which requires it to resolve the right-hand side. This recursive problem has no ending, so the compiler is clearly not going to bother.

    To make the problem here more clear: lets assume the compiler managed to compile your alias, and I did this:

    MyType mytype = x => Tuple<int, MyType>.Create(x, ???);
    

    What could I possible put in the body of the function to define the return value? Eventually I need to have a constructable type somewhere to return.

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

Sidebar

Related Questions

Reading PHP & jQuery Cookbook right now and it gives this example for using
This example uses a StringWriter to hold the serialized data, then calling ToString() gives
Given this example XML file: <doc> <tag> Hello ! </tag> <tag> My name is
Given the example below, can someone please show me how this could be called?
The facebook SDK gives this example for passing the registration form fields: var fields
Given this example, how would I return the result of the equation rather than
In VBA Help for the RefersTo Property, they give this example of listing all
Please give me some examples of jump table usage. I have seen this example
Given I have a long phrase, say, in line :12 , as this example:
when I look up the syntax for .data(), it gives examples like this: $('body').data('foo',

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.