Where do I find the new Span?

后端 未结 2 1403
轮回少年
轮回少年 2020-12-20 11:41

Everyone is writing about how great the new type Span is so I eagerly wanted to start rewriting a couple of methods in my libraries but where do I actu

2条回答
  •  执笔经年
    2020-12-20 12:13

    Visual Studio 2019: If you are using the full .NET Framework (e.g. 4.7.2):

    1. Go to NuGet packagemanager
    2. Search for System.Memory package by Microsoft and install it.

    Now you will be able to use Span.

    No need to search for pre-release versions anymore.

提交回复
热议问题