peteroupc / CBOR

A C# implementation of Concise Binary Object Representation (RFC 8949).
The Unlicense
206 stars 29 forks source link

Trimming #69

Closed charlesroddie closed 1 year ago

charlesroddie commented 1 year ago

Add a dotnet7 target and use to use https://github.com/Sergio0694/PolySharp for access to annotations to show trim analysis warnings.

Refactor library into type-safe part and type-unsafe part (involving reflection, Type inputs, object methods).

Separate out From[Type] methods, avoiding calling an unsafe FromObject(object) method by mistake.

Fixes https://github.com/peteroupc/CBOR/issues/57