Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Apr 11, 2018

Moved samples from the snippets folder in the dotnet/docs repo.

Add project file and main program to run snippets.

Add second sample that uses stackalloc initializers.

Samples for dotnet/docs#4772

Must merge with dotnet/docs#4922

Moved samples from the snippets folder in the dotnet/docs repo.

Add project file and main program to run snippets.

Add second sample that uses stackalloc initializers.
@BillWagner BillWagner added the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Apr 11, 2018
@BillWagner BillWagner requested review from mairaw and rpetrusha April 11, 2018 21:35
Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @BillWagner. Left just one very minor comment.

@@ -0,0 +1,104 @@
using System;
using System.Collections.Generic;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any reason to include System.Collections.Generic and System.Text?

0b0001_0000_0000_0000,
0b0010_0000_0000_0000,
0b0100_0000_0000_0000,
0b1000_0000_0000_0000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would adding one more underscore to literals make it more readable, e.g., 0b_1000_0000_0000_0000?

@BillWagner BillWagner merged commit 351f254 into dotnet:master Apr 12, 2018
@BillWagner BillWagner deleted the csharp73-stackalloc-initializers branch April 12, 2018 13:48
@mairaw mairaw added the 📁 Repo - samples Indicates PRs done in the samples repo. label Apr 27, 2018
karelz pushed a commit to karelz/samples that referenced this pull request Aug 31, 2018
* update samples for stackalloc

Moved samples from the snippets folder in the dotnet/docs repo.

Add project file and main program to run snippets.

Add second sample that uses stackalloc initializers.

* respond to feedback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) 📁 Repo - samples Indicates PRs done in the samples repo.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants