This commit is contained in:
Washi 2021-01-18 21:55:04 +01:00
Родитель 7b2d0fc2ce
Коммит 375da7451f
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -85,7 +85,7 @@ The ``TypeDefOrRefSignature`` class is used to reference types in either the ``T
TypeReference streamTypeRef = new TypeReference(corlibScope, "System.IO", "Stream");
TypeSignature streamTypeSig = new TypeDefOrRefSignature(streamTypeRef);
g
.. warning::
While it is technically possible to reference a basic type such as ``System.Int32`` as a ``TypeDefOrRefSignature``, it renders the .NET module invalid by most implementations of the CLR. Always use the ``CorLibTypeSignature`` to reference basic types within your blob signatures.

Просмотреть файл

@ -50,7 +50,7 @@ Or grab the stream by its type:
.. code-block:: csharp
var stringsStream = metadata.GetStream<StringsStream>;
var stringsStream = metadata.GetStream<StringsStream>();
AsmResolver supports parsing streams using the names in the table below. Any stream with a different name will be converted to a ``CustomMetadataStream``.