Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The initializer list in an anonymous type declaration cannot be empty.
' Not valid.
' Dim anonInstance = New With {}
Error ID: BC36574
To correct this error
Declare a member within the braces, as shown in the following code.
Dim anonInstance = New With {.MemberName = "value"}