Is there a way to query synonyms?
↧
Querying SQL Server synonyms?
↧
How to convert string to int for SQL?
Brand spanking new to LINQ, enjoy it so far but having hard time with what seems like simple task. Tried googling all different types with no success. Tried int.Parse, Convert.ToInt32,
Converting to C# Programs (with this have no idea how to point to my table)
Thanks for any help
Converting to C# Programs (with this have no idea how to point to my table)
Thanks for any help
from p in ProviderInfo
where "056428" == p.Provnum
//where 056428 == int.Parse( p.Provnum ) // Method 'Int32 Parse(System.String)' has no supported translation to SQL.
//where 056428 == Convert.ToInt32( p.Provnum ) // SqlException: Conversion failed when converting the nvarchar value '37E024' to data type int.
select new{
p.Provnum
,p.PROVNAME
,p.PHONE
}
↧
↧
Join 2 Queries with a key
Dim dc As DataContext = Me
' Dim t = dc.GetTable(Of Cash)()
Dim QueryCash = From c In Cashs _
Group By Key = c.TeamId Into Group _
Select Teamid = Key, _
TotDay = Group.Sum(Function(c) c.cashwon),
GrandTot = Group.Sum(Function(c) c.AverageWon)
Dim tm = dc.GetTable(Of Teams)
' Following Works
' QueryCash.ToList()
QueryCash.Dump()
tm.Dump()
The above code works now I would like to combine QueryCash and tm into a combined result on a key they both have.
First I am brand new to Linq, LinqPad5 and please note I use vb.net.
Any help would be appreciated. TIA
↧
ValueTuple name display?
Hey Joe,
At the risk of making your head too big. Linqpad is awesome, and I have been a big fan for years.
With that out of the way, I am wondering if you see a way to implement dumping of the user-assigned ValueTuple names when assigned? And if you think you might add support?
I have only looked into this for five minutes, but it looks like some compilers emit attributes that would allow you to enhance .Dump() to display this information. Of course, I am not certain and don't know the difficulty to do so.
Well, I would be interested to know if you think it is possible and you are considering using the user-assigned names as some point?
http://mustoverride.com/tuples_names/ [ search for TupleElementNames in page ]
https://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.tupleelementnamesattribute(v=vs.110).aspx
Regards,
Cameron
At the risk of making your head too big. Linqpad is awesome, and I have been a big fan for years.
With that out of the way, I am wondering if you see a way to implement dumping of the user-assigned ValueTuple names when assigned? And if you think you might add support?
I have only looked into this for five minutes, but it looks like some compilers emit attributes that would allow you to enhance .Dump() to display this information. Of course, I am not certain and don't know the difficulty to do so.
Well, I would be interested to know if you think it is possible and you are considering using the user-assigned names as some point?
http://mustoverride.com/tuples_names/ [ search for TupleElementNames in page ]
https://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.tupleelementnamesattribute(v=vs.110).aspx
Regards,
Cameron
↧
lprun has exception NullReferenceException, Query in windows run as expected
Hi,
I run an LINQPad SQL query (lin2db provider) without any issues. If I try to run the same query with LPRUN.exe (Batch-File) I get a NullReferenceException. Mere snippets (without LINQ SQL) work fine for both LINQPad and LPRUN.exe.
Other LINQ SQL queries with linq2db provider have the same behavior. I tried with: sql2db provider for SQL Server and ACCESS.
I tried LINQ SQL with one of the samples with Microsoft SQL provider and it works fine.
Any idea?
Thanks a lot and best regards,
Helmut
NullReferenceException: Object reference not set to an instance of an object.
at LinqToDB.LINQPad.DriverHelper.<>c__DisplayClass2_0.b__0(TraceInfo info) in C:\projects\linq2db-linqpad\Source\DriverHelper.cs:line 211
at LinqToDB.Data.DataConnection.ExecuteReader(CommandBehavior commandBehavior) in c:\projects\linq2db\Source\Data\DataConnection.cs:line 838
at LinqToDB.Data.DataConnection.LinqToDB.IDataContext.ExecuteReader(Object query) in c:\projects\linq2db\Source\Data\DataConnection.Linq.cs:line 264
at LinqToDB.Linq.Query`1.d__12.MoveNext() in c:\projects\linq2db\Source\Linq\Query.cs:line 411
at LinqToDB.Linq.Query`1.
I run an LINQPad SQL query (lin2db provider) without any issues. If I try to run the same query with LPRUN.exe (Batch-File) I get a NullReferenceException. Mere snippets (without LINQ SQL) work fine for both LINQPad and LPRUN.exe.
Other LINQ SQL queries with linq2db provider have the same behavior. I tried with: sql2db provider for SQL Server and ACCESS.
I tried LINQ SQL with one of the samples with Microsoft SQL provider and it works fine.
Any idea?
Thanks a lot and best regards,
Helmut
NullReferenceException: Object reference not set to an instance of an object.
at LinqToDB.LINQPad.DriverHelper.<>c__DisplayClass2_0.b__0(TraceInfo info) in C:\projects\linq2db-linqpad\Source\DriverHelper.cs:line 211
at LinqToDB.Data.DataConnection.ExecuteReader(CommandBehavior commandBehavior) in c:\projects\linq2db\Source\Data\DataConnection.cs:line 838
at LinqToDB.Data.DataConnection.LinqToDB.IDataContext.ExecuteReader(Object query) in c:\projects\linq2db\Source\Data\DataConnection.Linq.cs:line 264
at LinqToDB.Linq.Query`1.d__12.MoveNext() in c:\projects\linq2db\Source\Linq\Query.cs:line 411
at LinqToDB.Linq.Query`1.
↧
↧
Unable to add a reference to nuget package Microsoft.AspNetCore v2.0.0
I am trying to self host an aspnetcore mvc endpoint in a linqpad script.
Trying to add the Microsoft.AspNetCore v2.0.0 nuget package results in the following error message
Installing Microsoft.AspNetCore v1.12 which targets .net 4.5.1 and netstandard 1.6 appears to work
Trying to add the Microsoft.AspNetCore v2.0.0 nuget package results in the following error message
I'm assuming that linqpad is unable to reference packages targeting netstandard 2.0.
---------------------------
LINQPad
---------------------------
There are no usable .NET assemblies in package 'Microsoft.AspNetCore'.
---------------------------
OK
---------------------------
Installing Microsoft.AspNetCore v1.12 which targets .net 4.5.1 and netstandard 1.6 appears to work
↧
Unable to open configSource file 'user.config'.
I recently installed v5.22.02. I also have v4.57.02. When I executed a query in v5.22.02, I got the following exception.
The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Message The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Data
InnerException Unable to open configSource file 'user.config'. (C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config line 3...
Message Unable to open configSource file 'user.config'. (C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config line 35)
BareMessage Unable to open configSource file 'user.config'.
Filename C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config
Our app.config has a reference to another config file named user.config. v5.22.02 appears to be making a copy of the bin folder of a DLL that I am referencing but it isn't pulling over the user.config file. If I manually copy it to the temp folder, the query runs. This was not a problem in v4.
The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Message The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Data
InnerException Unable to open configSource file 'user.config'. (C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config line 3...
Message Unable to open configSource file 'user.config'. (C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config line 35)
BareMessage Unable to open configSource file 'user.config'.
Filename C:\Users\stuart.dickerson\AppData\Local\Temp\LINQPad5\_zljzuxaw\query_wyavit.dll.custom.config
Our app.config has a reference to another config file named user.config. v5.22.02 appears to be making a copy of the bin folder of a DLL that I am referencing but it isn't pulling over the user.config file. If I manually copy it to the temp folder, the query runs. This was not a problem in v4.
↧
how do I reference a MSSQL server that is not Northwnd?
Most examples are Northwnd: 'Northwnd db = new Northwnd(@c:\northwnd.mdf);'
What is the syntax for server.database?
What is the syntax for server.database?
↧
Is it True that can't join tables from different servers?
https://stackoverflow.com/questions/32272091/joining-two-tables-from-different-servers-using-linq
According to this, it's not possible. If it is, what is the syntax? I have a connection that used additional linked servers but don't know how to differentiate primary connection and additional one when it is a different server
According to this, it's not possible. If it is, what is the syntax? I have a connection that used additional linked servers but don't know how to differentiate primary connection and additional one when it is a different server
from p in TableInPrimaryServer
join r in TableInSecondaryServer.RM00101s on p.PHONE equals r.PHONE1
↧
↧
Entity Framework: Type Name of Typed DbContext failing (unable to connect to EF)
Here are the steps taken to attempt to connect to Entity Framework:
1. After clicking on "Add Connection" in Linqpad5, I selected "Entity Framework (DbContext V4/V5/V6)
![image]()
2. Next, from my website's "bin" folder, I selected the assembly "EntityFramework.dll".
3. After selecting this assembly, I then clicked on "Choose" for the "Full Type Name of Typed DbContext", and a pop-up "Custom Type Name" menu appears (see screenshot below). I tried each of the 5 types that appear in this menu, but they all produce the same error as shown in the screenshot below: "Error: the type must define a public parameterless constructor and/or a constructor accepting a single string parameter."
![image]()
4. Because all of the types in this pop-up screen produced this error, I then reviewed my Web.config file to see if any other Type Names exist that would resolve the error. In the Web.config file, there is an "entityFramework" element that contains a child element "defaultConnectionFactory" with a "type" attribute of "System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework". Within this child element, a "parameters" child element exists with a single parameter (see extract from my web.config file below):
![image]()
So I manually entered "System.Data.Entity.Infrastructure.LocalDbConnectionFactory" for the type, which appeared to work because the error disappeared after manually entering this type:
![image]()
However, when clicking on "Test", the following error appeared that is related to this type.
![image]()
Given that my understanding of web.config files is not thorough enough to understand if selecting "System.Data.Entity.Infrastructure.LocalDbConnectionFactory" as the Type is correct, my questions would be:
1. Is this the correct element to contain the information Linqpad5 requires for the database to address this last error?
2. If no, can anyone point to where I should be looking? Otherwise, if yes, can anyone point me to where I can find how to define the database in this element? (I tried googling this, and experimenting with what attributes that these elements would accept, and I was not able to determine this).
3. Although the approach I have taken appears to be very straightforward, is there any fundamental errors made that I have missed?
Any help would be appreciated, as I am trying to view the sql generated from linq queries in the code, and from what I understand, Linqpad5 is among the best developer tools out there for this purpose. Thank you in advance.
- Matt
1. After clicking on "Add Connection" in Linqpad5, I selected "Entity Framework (DbContext V4/V5/V6)

2. Next, from my website's "bin" folder, I selected the assembly "EntityFramework.dll".
3. After selecting this assembly, I then clicked on "Choose" for the "Full Type Name of Typed DbContext", and a pop-up "Custom Type Name" menu appears (see screenshot below). I tried each of the 5 types that appear in this menu, but they all produce the same error as shown in the screenshot below: "Error: the type must define a public parameterless constructor and/or a constructor accepting a single string parameter."

4. Because all of the types in this pop-up screen produced this error, I then reviewed my Web.config file to see if any other Type Names exist that would resolve the error. In the Web.config file, there is an "entityFramework" element that contains a child element "defaultConnectionFactory" with a "type" attribute of "System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework". Within this child element, a "parameters" child element exists with a single parameter (see extract from my web.config file below):

So I manually entered "System.Data.Entity.Infrastructure.LocalDbConnectionFactory" for the type, which appeared to work because the error disappeared after manually entering this type:

However, when clicking on "Test", the following error appeared that is related to this type.

Given that my understanding of web.config files is not thorough enough to understand if selecting "System.Data.Entity.Infrastructure.LocalDbConnectionFactory" as the Type is correct, my questions would be:
1. Is this the correct element to contain the information Linqpad5 requires for the database to address this last error?
2. If no, can anyone point to where I should be looking? Otherwise, if yes, can anyone point me to where I can find how to define the database in this element? (I tried googling this, and experimenting with what attributes that these elements would accept, and I was not able to determine this).
3. Although the approach I have taken appears to be very straightforward, is there any fundamental errors made that I have missed?
Any help would be appreciated, as I am trying to view the sql generated from linq queries in the code, and from what I understand, Linqpad5 is among the best developer tools out there for this purpose. Thank you in advance.
- Matt
↧
nullable check first ?
the example Associations code on http://www.linqpad.net/WhyLINQBeatsSQL.aspx reads
where p.Customer.Address.State == "WA" || p.Customer == null
surely the 2nd condition should be checked first
where p.Customer == null || p.Customer.Address.State == "WA"
where p.Customer.Address.State == "WA" || p.Customer == null
surely the 2nd condition should be checked first
where p.Customer == null || p.Customer.Address.State == "WA"
↧
401 with custom Nuget Source
Version: 5.22.02
This is a weird issue and I have not pinned down how to reliably reproduce it every time. Essentially, when I open the NuGet Manager and then click 'Settings' I often (nearly always but occasionally not) get an error dialog when I click 'OK' if I have a custom NuGet source (the source requires authentication). This is the error message I receive:
Here is a summary of the sequence HTTP requests (host address has been removed) that I captured with Fiddler when I first open the NuGet Manager (when everything works):
Continuing, this is what I capture if I open and close the 'Settings' window:
You can see here that when a 401 is returned from {host}/artifactory/api/nuget/nuget/Search() LinqPad never retries the request with the authorization header as it does above. Instead, it pops up an error dialog and the dialog text is the response body of the 401 response (the same message at the top of this post). If I break on the HTTP response for the search request in Fiddler and change the 401 to 200 on the wire then LinqPad does not show the error dialog. Of course I don't have any search results either when I do this.
Let me know if i can provide any more information.
This is a weird issue and I have not pinned down how to reliably reproduce it every time. Essentially, when I open the NuGet Manager and then click 'Settings' I often (nearly always but occasionally not) get an error dialog when I click 'OK' if I have a custom NuGet source (the source requires authentication). This is the error message I receive:
{The thing is, if I close LinqPad and reopen it and then open NuGet Manager everything works fine and the packages from the custom source show up in the search window. But if I click 'Settings' the whole problem starts again when I close the settings window.
"errors" : [ {
"status" : 401,
"message" : "Authentication is required"
} ]
}
Here is a summary of the sequence HTTP requests (host address has been removed) that I captured with Fiddler when I first open the NuGet Manager (when everything works):
GET {host}/artifactory/api/nuget/nugetYou can see that LinqPad initially tries the request without sending an authorization header. After receiving a 401 response LinqPad then retries the request with the authorization header and everything works fine. As an aside why does LinqPad send the request without an authorization header in the first place? If I configured my custom source in LinqPad with credentials it seems like it should assume authentication is required and include the authorization header with the request.
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget
200 OK (application/xml)
GET {host}/artifactory/api/nuget/nuget/$metadata
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget/$metadata
200 OK (application/xml)
GET {host}/artifactory/api/nuget/nuget/Search()?$filter=IsLatestVersion&$top=20&searchTerm=''&targetFramework=''&includePrerelease=false
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget/Search()?$filter=IsLatestVersion&$top=20&searchTerm=''&targetFramework=''&includePrerelease=false
200 OK (application/atom+xml)
GET {host}/artifactory/api/nuget/nuget/Packages()?$filter={removedForBrevity}&$select=Id,Version
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget/Packages()?$filter={removedForBrevity}&$select=Id,Version
200 OK (application/atom+xml)
Continuing, this is what I capture if I open and close the 'Settings' window:
GET {host}/artifactory/api/nuget/nuget/Packages()?$filter={removedForBrevity}&$select=Id,Version
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget/Search()?$filter=IsLatestVersion&$top=20&searchTerm=''&targetFramework=''&includePrerelease=false
401 Unauthorized (application/json)
GET {host}/artifactory/api/nuget/nuget/Packages()?$filter={removedForBrevity}&$select=Id,Version
200 OK (application/atom+xml)
You can see here that when a 401 is returned from {host}/artifactory/api/nuget/nuget/Search() LinqPad never retries the request with the authorization header as it does above. Instead, it pops up an error dialog and the dialog text is the response body of the 401 response (the same message at the top of this post). If I break on the HTTP response for the search request in Fiddler and change the 401 to 200 on the wire then LinqPad does not show the error dialog. Of course I don't have any search results either when I do this.
Let me know if i can provide any more information.
↧
Query runs forever when observable output is truncated by Dump
In LinqPad 5.22.02, a C# Expression query of
With
Observable.Interval(TimeSpan.Zero).Take(1001)displays a result with 1001 rows, as expected.
With
Observable.Interval(TimeSpan.Zero).Take(1002)the output is truncated at 1001 rows, the last row containing '(limit of graph)'. But I then see "Query continuing asycnhronously...", forever. Is this expected? I would have expected Dump to unsubscribe after it had consumed the 1001 rows it is going to display, and hence cause the query to terminate - just like it does if you add a .ToList() to the end.
↧
↧
Uncatchable exception
Since yesterday, every query I run results in a yellow information bar at the top of the query window that says
Query ended because an uncatchable exception was thrown.
There is a delay, then the query runs anyhow. It even happens with the language set to C# Statement(s) and no connection selected for this:
int i = 10;
i.Dump();
I do have references to a number of custom assemblies set as query default, but I removed all such references for this query and still receive the error.
What's happening and how can I fix it?
Thanks!
Query ended because an uncatchable exception was thrown.
There is a delay, then the query runs anyhow. It even happens with the language set to C# Statement(s) and no connection selected for this:
int i = 10;
i.Dump();
I do have references to a number of custom assemblies set as query default, but I removed all such references for this query and still receive the error.
What's happening and how can I fix it?
Thanks!
↧
BUG: Can't run an F# program with a main entry point
fails with TargetParameterCountException - Parameter count mismatch
[<EntryPoint>]
let main args =
printfn "%A" args
0
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
↧
BUG: Util.ToHtmlString repeats HTML header
In LinqPad 5.08.01, any use of ToHtmlString or CreateXhtmlWriter+Write causes the resulting HTML to contain a repeat of all content between
After the first body tag, you will immediately see the header repeated starting at line 207:
<!DOCTYPE HTML>
and
<body>
After the first body tag, you will immediately see the header repeated starting at line 207:
</head>
<body><!DOCTYPE HTML>
<html>
<head>
To reproduce, run this C# program query and inspect the output file.void Main()
{
var a = new { Hello = "Hello" };
System.IO.File.WriteAllText(Environment.ExpandEnvironmentVariables("%HOMEPATH%\\Documents\\Linqtest.html"), Util.ToHtmlString(a));
}
↧
How to name a connection using -cxname for file based databases like Access
Hello,
I use LPRun.exe to access the LINQPad query. To choose the database I use -cxname=. This works well for databases like SQL Server.
If I want to use Access I get the error message about a wrong connection name. How do I have to name the Access connection. I thought just the filename so LINQPad can find the right connection string.
I tried: '-cxname=localhost.d:\hoData\Projects\00Current\Work.Software.eap'. The full path of the assecc db
The connection exists and in fact is the current connection of the *.linq file. I can see the connection xml parameters.
Thanks in advance,
Helmut
I use LPRun.exe to access the LINQPad query. To choose the database I use -cxname=. This works well for databases like SQL Server.
If I want to use Access I get the error message about a wrong connection name. How do I have to name the Access connection. I thought just the filename so LINQPad can find the right connection string.
I tried: '-cxname=localhost.d:\hoData\Projects\00Current\Work.Software.eap'. The full path of the assecc db
The connection exists and in fact is the current connection of the *.linq file. I can see the connection xml parameters.
Thanks in advance,
Helmut
↧
↧
.NETStandard 2.0 packages: No usable .NET assemblies in package
Hey, I’m trying to consume the aspnetcore-dev MyGet feed for prerelease version of ASP.NET Core and related packages.
In particular, I’m trying to load the following packages:
https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.EntityFrameworkCore
https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.Extensions.Logging
https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.Extensions.Configuration
I keep getting the error message “There are no usable .NET assemblies in package 'XY'.” regardless of which version I attempt to download.
I assume this may be an error with the .NET framework version since those prerelease packages need .NETStandard 2.0. So I made sure that I have the .NET Framework 4.7 installed (which should implement .NETStandard 2.0) and tried the latest LINQPad beta, but that didn’t help.
Is there some fix required in LINQPad to make this work, or am I doing something wrong?
In particular, I’m trying to load the following packages:
https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.EntityFrameworkCore
https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.Extensions.Logging
https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.Extensions.Configuration
I keep getting the error message “There are no usable .NET assemblies in package 'XY'.” regardless of which version I attempt to download.
I assume this may be an error with the .NET framework version since those prerelease packages need .NETStandard 2.0. So I made sure that I have the .NET Framework 4.7 installed (which should implement .NETStandard 2.0) and tried the latest LINQPad beta, but that didn’t help.
Is there some fix required in LINQPad to make this work, or am I doing something wrong?
↧
IntelliSense for strings doesn't work as expected
In this case the Last() extension method isn't recommended by the intellisense menu, but it should be.
In this case Last() is recommended:
I assume because of that behavior a lot of people expect they must add AsQueryable() to use Last().
"12345".Last()
In this case Last() is recommended:
"12345".AsQueryable().Last()
I assume because of that behavior a lot of people expect they must add AsQueryable() to use Last().
↧
BUG(V5.22.02, C# Program): Cannot execute text selection
//LINQPad_V5_22_02_Bug_CannotExecuteTextSelection.linq
void Main() {
42.Dump();
}
/** text selection 0 -> Cannot execute ... if in "C# Program"
from x in Enumerable.Range(start:char.MinValue,count:char.MaxValue-char.MinValue+1)
let c = (char)x
let isDigit = char.IsDigit(c)
where isDigit
select new{ x, c, isDigit }
**/
/** text selection 1 -> OK
from x in Enumerable.Range(start:char.MinValue,count:char.MaxValue-char.MinValue+1)
let c = (char)x
let isDigit = char.IsDigit(c)
where isDigit
select ( x, c, isDigit ) // <= instead of select new ...
**/
/** text selection 2 -> Cannot execute ...
from x in Enumerable.Range(start:char.MinValue,count:char.MaxValue-char.MinValue+1)
let c = (char)x
let isDigit = char.IsDigit(c)
where isDigit
select ( x, c, isDigit ) // <= instead of select new{ x, c, isDigit }
**/
/**
Error from text selection 0 and 2.
Occurs for "C# Program" only, not for "C# Statement(s)" or "C# Expression"
**//**
Cannot execute text selection: CS1003 Syntax error, ',' expected
CS1002 ; expected
CS1519 Invalid token '(' in class, struct, or interface member declaration
CS8124 Tuple must contain at least two elements.
CS1026 ) expected
**/
↧