Attribute member values in Visual Basic .NET

An important safety tip that I forgot last week.  When you want to set the member values of an attribute using Visual Basic .NET, you need to use ":=".  This forgotten item hounded me for a couple of hours last week as I would "forget" the syntax.  In C#, the "=" sign is all that is needed.

Another thing that I did remember but can "catch" someone is the "<" in VB.NET vs. "[" in C# delimiters.  I remember back during the beta 1 days of .NET 1.0, this drove me crazy until Joe Long helped me out on this.

Wally

No Comments