Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PackageAssemblyToCsv handling of non-Int Enums #76

Open
joelverhagen opened this issue Jul 23, 2022 · 0 comments
Open

Fix PackageAssemblyToCsv handling of non-Int Enums #76

joelverhagen opened this issue Jul 23, 2022 · 0 comments

Comments

@joelverhagen
Copy link
Member

See dotnet/runtime#57531 (comment) for details.

The code in question is here:

private class TypelessDecoder : ICustomAttributeTypeProvider<object>
{
private int _arrayCount;
public int ArrayCount => _arrayCount;
public object GetPrimitiveType(PrimitiveTypeCode typeCode) => null;
public object GetSystemType() => null;
public object GetSZArrayType(object elementType)
{
Interlocked.Increment(ref _arrayCount);
return null;
}
public object GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind) => null;
public object GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind) => null;
public object GetTypeFromSerializedName(string name) => null;
public PrimitiveTypeCode GetUnderlyingEnumType(object type) => PrimitiveTypeCode.Int32;
public bool IsSystemType(object type) => false;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant