-
Notifications
You must be signed in to change notification settings - Fork 6.1k
First linq code sample #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updating with remote
Merging in latest with fork
…y syntax Updated where sample one with code demonstrating both method and query syntax
|
This is for #90 @BethMassi |
|
@matthewreily thanks for this. We want to be able to run these samples against the latest coreclr runtime so we need a couple things. First, we'll need to add a main entry point so I think we should have a program.cs file for each project.json we have. Something like: public class Program Next, it looks like we'll need to specify "dnxcore50" in the frameworks section of the project.json. Then we should be able to "dnvm upgrade latest -r coreclr -u" and then "dnx run" in the sample folder. Can you fix your PR? |
… program.cs that invokes the sample code.
|
I created step-by-step instructions here: https://github.com/dotnet/core-docs/blob/master/samples/README.md Hope this helps! 😄 |
|
You are amazing @BethMassi! Thank you for your help. I noticed one issue in the readme.md in regards to the version of system.console. I recieved an error "Unable to locate Dependency System.Console >= 4.0.0-rc1-" when running dnu restore. I updated my project.json to use the 4.0.0-Beta- version |
Hello, @mairaw , Localization team has reported source content issue that causes localized version to have broken/different format compared to en-us version. "&dotnet#91; and &dotnet#93; are the codes used to create "[" and "]" characters. However, when it is localized it is shown as &dotnet#91; and &dotnet#93; breaking the code" Please review and merge the proposed file change to fix to target versions. If you make related fix in another PR then share your PR number so we can confirm and close this PR. Many thanks in advance.
Looking for some feedback on the structure of this example. I went out and grabbed one of the examples from the linq 101 msdn site https://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b. With this sample I created 2 methods to show both the linq query and method syntax. Is this how we should go about it or should we just show one version of the syntax?