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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:03:08+00:00 2026-05-26T05:03:08+00:00

I have a .net 3.5 project in vs2008 and I’m trying to use this

  • 0

I have a .net 3.5 project in vs2008 and I’m trying to use this overload of string.Join() (the one that takes a string and IEnumerable<T>) and the compiler does not seem to know about this overload.

This is the code that I tried

    var result = string.Join(" ", Foo());

where Foo() is

    IEnumerable<string> Foo()
    {

        foreach(string s in new []{"1", "2", "3"} )
        {
            yield return s;
        }
    }

I get

> Error 2   Argument '2': cannot convert from
> 'System.Collections.Generic.IEnumerable<string>' to 'string[]'

Of course, if I use Foo().ToArray() it works but I’m wondering why the overload that takes IEnumerable<T> won’t work.

MSDN in classic view says it’s compatible with vs2008/.net 3.5

enter image description here

(I couldn’t find the message “This page is specific to….” in non-classic views so I thought I’d put up a screen-cap.)

  • 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-26T05:03:09+00:00Added an answer on May 26, 2026 at 5:03 am

    The version information at the bottom says something different:

    Version information on MSDN

    Note that you can find that version information at the bottom of the article, regardless of the selected view (it might just look a little different).

    The note in the upper-right you have found is referring to the selected resource version you can find in the URL, such as in:

    http://msdn.microsoft.com/en-us/library/dd783876(VS.90).aspx

    (highlighted in bold). Usually this selects the framework version as well (since those are released in tandem with VS), but apparently there seems to be a mistake in the classification here.

    I’d just report it as a mistake.

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

Sidebar

Related Questions

I have a .NET project (VS2008 .NET 3.5) that builds an exe. I have
I have a Class Library project created with VS2008 (for .net framework 3.5) that
I have an ASP.NET project (VS2008 on Windows 7 with either webforms, MVC1, or
I have built a web setup project in VS2008 which installs my ASP.NET/Silverlight app
I have a .NET project that I've been compiling with Visual Studio and running
I have a .NET project in VS 2010 that has grown to consist of
I have a vb.net project that loads plugin dlls at runtime to crunch some
I have an ASP.NET project that contains many classes. I am thinking about creating
We have a VS2008 CS DLL project targeting .NET 3.5. It builds successfully on
I have created a new VS2008 ASP.Net Web service project, with the default name

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.