8000 c is substituted to typeof(Color) for the example to compile and be c… · CAndRyan/dotnet-api-docs@a557ad6 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit a557ad6

Browse files
authored
c is substituted to typeof(Color) for the example to compile and be correct (dotnet#4420)
1 parent 4e7d674 commit a557ad6

File tree

1 file changed

+1
-1
lines changed
  • samples/snippets/csharp/VS_Snippets_Winforms/Classic TypeConverter Example/CS

1 file changed

+1
-1
lines changed

samples/snippets/csharp/VS_Snippets_Winforms/Classic TypeConverter Example/CS/source.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void Method1()
2929
{
3030
// <Snippet3>
3131
Color c = Color.Red;
32-
Console.WriteLine(TypeDescriptor.GetConverter(c).ConvertToString(c));
32+
Console.WriteLine(TypeDescriptor.GetConverter(typeof(Color)).ConvertToString(c));
3333
// </Snippet3>
3434
}
3535
public void Method2()

0 commit comments

Comments
 (0)
0