Skip to content

Span<T>(void* pointer, int length) ctor document null-pointer behaviour #861

@fredrikhr

Description

@fredrikhr

What if the pointer passed in to the Span constructor is a null pointer (e.g. created from IntPtr.Zero.ToPoiner())? It might be helpful to special case the documentation what the behaviour is in such cases.


Document Details

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

  • ID: 12542bab-90d5-ee4f-fe42-3ad37dd133a1
  • Version Independent ID: 1265f19b-bf12-ea32-0b5a-1bfae94b1be4
  • Content: Span<T> Constructor (System)
  • Content Source: [xml/System/Span1.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/Span1.xml)
  • Product: dotnet-api
  • GitHub Login: @dotnet-bot
  • Microsoft Alias: dotnetcontent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions