I am converting a VB.NET project over to C#. After the conversion I still have some outstanding issues to deal with. One is the left over DesignerGenerated() attribute.
[Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]
internal partial class Tags : ServiceBase {
...
I do not want to just reference the VisualBasic assembly to make this code happy. I don't want any remenence of VB period. So I don't know how to replace this attribute with an equivilant C# attribute here. It looks like this DesignerGenerated() is only used in VB.NET so not sure how to resolve this and convert it to some C# eq开发者_运维技巧uivalent.
Only the VB.NET compiler ever checks for this attribute. See this answer for the reason it exists.
You can safely remove it.
Also check this code as well. This attribute is just available for VB.NET
精彩评论