Skip to content

[New article]: Compiler Warning CS8500 #48468

@xtqqczze

Description

@xtqqczze

Proposed topic or title

Compiler Warning CS8500

Location in table of contents.

https://learn.microsoft.com/dotnet/csharp/language-reference/compiler-messages/

Reason for the article

Documentation should exist for:

  • Compiler Warning CS8500: This takes the address of, gets the size of, or declares a pointer to a managed type

Article abstract

Cannot take the address of, get the size of, or declare a pointer to a managed type.

Example

The following sample generates CS8500:

// CS8500.cs (0,0)

// TODO

Relevant searches

  • Compiler Error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('type')
  • Compiler Error CS0233: 'identifier' does not have a predefined size, therefore sizeof can only be used in an unsafe context

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions