We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d3aa0 commit ca5abe9Copy full SHA for ca5abe9
source/MetadataProcessor.Core/Tables/nanoSignaturesTable.cs
@@ -225,23 +225,10 @@ public void WriteDataType(
225
bool expandEnumType,
226
bool isTypeDefinition)
227
{
228
- if (isTypeDefinition)
+ if (isTypeDefinition &&
229
+ typeDefinition.MetadataType == MetadataType.Object)
230
- if (typeDefinition.MetadataType == MetadataType.Object)
231
- {
232
- writer.WriteByte((byte)nanoCLR_DataType.DATATYPE_CLASS);
233
- return;
234
- }
235
- else
236
237
-
238
239
240
241
- nanoCLR_DataType dataType;
242
- if (PrimitiveTypes.TryGetValue(typeDefinition.FullName, out dataType))
243
244
- writer.WriteByte((byte)dataType);
+ writer.WriteByte((byte)nanoCLR_DataType.DATATYPE_CLASS);
245
return;
246
}
247
0 commit comments