Why am I getting a compilation error when calling string.Select in C #?

In another question ( How to split a number into separate digits? ) They call a method Selectfor a string. This site also suggests that this is possible.

However, when I try to do this using code samples found in any of these places, I get a compilation error. What could be the reason for this and how can I use a method Selectfor a string?

+3
source share
3 answers

Just add a link system.core.dll

1. In Solution Explorer, right-click the node project and click Add Link.

2. " " , , .

3.On.NET System.Core, OK.

using System.Linq , ;

, youre 3.5, .

+1

LINQ.

, .Net 3.5 , System.Core.dll using System.Linq.

+12

Are you sure you provided the link System.Linq?

using System.Linq;

+2
source

All Articles