-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
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)
// TODORelevant 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.
- ID: fc586192-534e-0108-d265-c4f2f6947c57
- Version Independent ID: 4d39f536-5d78-335b-3525-d4b581c28fdc
- Platform ID: 8aea770e-f968-8193-911d-67975929d147
- Content: Compiler messages - C# reference
- Content Source: docs/csharp/language-reference/compiler-messages/index.md
- Service: dotnet-csharp
- Sub-service: errors-warnings
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn