-
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 Csharp73 new generic constraints #19
Update samples for Csharp73 new generic constraints #19
Conversation
This removes them from the sub-directories in the docs repository.
// <Snippet6> | ||
public interface IMyInterface | ||
{ | ||
} |
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: for the sake of the screen space, I would put all the declaration in one line.
// <Snippet9> | ||
public class Employee | ||
{ | ||
public Employee(string s, int i) => (Name, ID) = (s, i); |
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.
Oh, that's cool!
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.
It's one of my favorite C# 7 tricks.
simplify an empty declaration.
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. You can merge this when ready, @BillWagner.
* import existing snippets This removes them from the sub-directories in the docs repository. * finish generics samples. * respond to feedback. simplify an empty declaration.
This PR has the following changes:
unmanaged
,System.Delegate
andSystem.Enum
.These samples will be part of the work to address dotnet/docs#3964
/cc @OmarTawfik @jcouv