From f802821bdcbc03e946253846b44a61d3f1037743 Mon Sep 17 00:00:00 2001 From: Youssef Victor <31348972+Youssef1313@users.noreply.github.com> Date: Fri, 2 Oct 2020 20:36:55 +0200 Subject: [PATCH] Update Clashing Enum Members.md (#46816) --- docs/compilers/Visual Basic/Clashing Enum Members.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/compilers/Visual Basic/Clashing Enum Members.md b/docs/compilers/Visual Basic/Clashing Enum Members.md index e990cca1c99..aecb14fd189 100644 --- a/docs/compilers/Visual Basic/Clashing Enum Members.md +++ b/docs/compilers/Visual Basic/Clashing Enum Members.md @@ -1,26 +1,26 @@ Clashing Enum Members ===================== -As reported in #2909, it is possible to reference an enumeration type from VB that contains more than one enumeration member with the same name. For example, a library author might release version 1 of his API in C# with this type +As reported in [#2909](https://github.com/dotnet/roslyn/issues/2909), it is possible to reference an enumeration type from VB that contains more than one enumeration member with the same name. For example, a library author might release version 1 of his API in C# with this type ```cs enum Something { - Something, + Something, Datetime, - SomethingElse, + SomethingElse, } ``` -and then realize later that the name Datetime is misspelled (it should be camel-case, with `Time` capitalized). So in version 2 the type is changed +and then realize later that the name Datetime is misspelled (it should be PascalCase, with `Time` capitalized). So in version 2 the type is changed ```cs enum SomeEnum { - Something, + Something, DateTime, [Obsolete] Datetime = DateTime, - SomethingElse, + SomethingElse, } ``` -- GitLab