Open
Description
azure-sdk-for-net/sdk/core/Azure.Core/src/Shared/TypeBinder.cs
Lines 131 to 143 in 07bb13a
This method should have a new()
constraint, as it can only handle primitive types or types with a parameterless constructor. Propagating the resulting new()
constraints s up the call chain (such as to Azure.Monitor.Query.LogsQueryClient.QueryWorkspaceAsync<T>
) would prevent runtime errors that could be caught at compile time instead.