Trimming warning in JsonSerializationWriter due to call to 'System.Object.GetType()' #475
Labels
priority:p2
Medium. For a p2 bug, generally have a work-around. Bug SLA <=30 days
type: bug
A broken experience
The call to
object.GetType()
in the line below generates a trim warning.kiota-dotnet/src/serialization/json/JsonSerializationWriter.cs
Line 485 in 3768f36
The warning is as seen in this PR - microsoftgraph/msgraph-sdk-dotnet-core#939
The trim warning could be alleviated using
typeof(T)
instead ofobject.GetType()
, however, this would break currently supported serialization of types unknown at compile time(such as when a non parsable object is placed in the AdditionalData bag.)For now, we probably need to
The text was updated successfully, but these errors were encountered: