Share via


Class Details Window Usage Notes

Please note the following tips for using the Class Details window.

Editable and non-editable cells

All cells in the Class Details window are editable with a few exceptions:

  • The entire type is read-only, when, for example, it resides in a referenced assembly (see Display of Read-Only Information.) When you select the shape in the Class Designer, the Class Details window displays its details in a read-only state.

  • For indexers, the name is read-only and the rest (type, modifier, summary) are editable.

  • All generics have read-only parameters in the Class Details window. To change a generic parameter, edit its source code.

  • The name of the type parameter that is defined on a generic type is read-only.

  • When a type's code is broken (unparsable), Class Details window displays the type's contents as read-only.

The Class Details Window and source code

  • You can view source code by right-clicking a shape in the Class Details window (or the Class Designer) and then clicking View Code. The source code file opens and scrolls to the selected element.

  • Changing source code is immediately reflected in the display of signature information in the Class Designer and the Class Details window. If the Class Details window is closed at the time, the new information is visible the next time you open it.

  • When a type's code is broken (unparsable), Class Details window displays the type's contents as read only.

Clipboard functionality in the Class Details Window

You can copy or cut fields or rows from the Class Details window and paste them into another type. You can cut a row only if it is not read-only. When you paste the row, Class Details window assigns a new name (derived from the name of the copied row) to avoid a conflict.

See Also

Concepts

Keyboard Shortcuts for the Class Details Window

Display of Read-Only Information