Anonymous type initializers are not valid in debug windows

An anonymous type initializer has been entered in the Watch or Immediate window during a debugging session. Anonymous type initializers are not available in debugging windows.

Error ID: BC36577

To correct this error

  • Test anonymous type initializers in the Code Editor.

See Also

Tasks

Closer Look: What If... Testing Code in the Immediate Window

Concepts

Anonymous Types

Debugging Your Visual Basic Application