• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

VB Equivalent to C# Attribute Syntax

Class Attribute

C# VB.NET
[Serializable()]
public class Foo
<Serializable()>
Public Class Foo

Method Attribute

C# VB.NET
[System.Diagnostics.DebuggerHidden()]
public void Method()
<DebuggerHidden()>
Public Sub Method()

Method Return Type Attribute

C# VB.NET
[return: ReturnAttribute]
public int TestReturnValueAttribute()
Public Function Method() As <ReturnAttribute> Integer

Method Parameter Attribute

C# VB.NET
public void Method([xyz] int x) Public Sub Method(<xyz> ByVal x As Integer)


Use Instant VB to convert from C# to VB.NET.     

Additional resource: VB.NET and C# Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.