Skip to content

Conversation

@BillWagner
Copy link
Member

Move existing snippets from docs repo.
Add samples for new uses of readonly.

For dotnet/docs#5682

Move existing snippets from docs repo.
Add samples for new uses of readonly.
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.

Left one very minor nit, @BillWagner, but otherwise LGTM. You can merge when you're ready.

@@ -0,0 +1,89 @@
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.

nit: this and the System.Text namespace aren't actually used in the example, so I'd remove them.

@mairaw
Copy link
Contributor

mairaw commented Jun 21, 2018

should we also remove the old ones that readonly would rely on once I got to that topic to make the switch to dotnet/samples? let me find where that would be.

@mairaw
Copy link
Contributor

mairaw commented Jun 21, 2018

They are here: https://github.com/dotnet/samples/blob/master/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsModifiers/CS/csrefKeywordsModifiers.cs

I made as far as letter C on the keywords folder to remove the inline snippets 😄

@BillWagner
Copy link
Member Author

@mairaw In dotnet/docs#6086 I removed the snippets from docs that were in this topic.

I've been trying to remove any as I move them. We can start a separate task to remove other unused snippets in that repo, but that feels like a lower priority.

@BillWagner BillWagner merged commit 4dbaf69 into dotnet:master Jun 21, 2018
@BillWagner BillWagner mentioned this pull request Jun 21, 2018
@mairaw
Copy link
Contributor

mairaw commented Jun 21, 2018

No, no... what I meant is that the sample already existed here and now we have two of the same (or almost the same).

@BillWagner BillWagner deleted the migrate-readonly-snippets branch June 26, 2018 18:46
karelz pushed a commit to karelz/samples that referenced this pull request Aug 31, 2018
Move existing snippets from docs repo.
Add samples for new uses of readonly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants