We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Proposal of UnmanagedType Specialization
[MemoryPackable] [Serializable] public partial class Data<T>where T:unmanaged { [MemoryPackUnmanaged] public T Value { get; protected set; } = default; }
Then serializer use ReadUnmanaged/WriteUnmanaged. Source generator can know whether generic T is unmanaged by ITypeSymbol.IsUnmanagedType.
ReadUnmanaged/WriteUnmanaged
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. For the benefits, there seem to be a lot of difficulties.
Sorry, something went wrong.
No branches or pull requests
Proposal of UnmanagedType Specialization
Then serializer use
ReadUnmanaged/WriteUnmanaged
.Source generator can know whether generic T is unmanaged by ITypeSymbol.IsUnmanagedType.
The text was updated successfully, but these errors were encountered: