Skip to content

Conversation

@Erroman
Copy link
Contributor

@Erroman Erroman commented Jun 21, 2020

Summary

Variable is substituted to <typeof(Color)> for the example to be correct and compile in line 32 of dotnet-api-docs\samples\snippets\csharp\VS_Snippets_Winforms\Classic TypeConverter Example\CS\source.cs
Color c = Color.Red;
Console.WriteLine(TypeDescriptor.GetConverter(c).ConvertToString(c));

@dotnet-bot dotnet-bot added this to the June 2020 milestone Jun 21, 2020
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

@safern I think this change is correct. Can you double check?

Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

TypeDescriptor.GetConverter has an override that accepts an object, so I don't know why it wouldn't compile.

@gewarren gewarren merged commit a557ad6 into dotnet:master Jun 23, 2020
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.

4 participants