-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
update samples for stackalloc #14
update samples for stackalloc #14
Conversation
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.
There was a problem hiding this 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; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
?
* 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.
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