Address trimming/AOT warnings (#5578) · npgsql/npgsql@1b13821 · GitHub
Skip to content

Commit 1b13821

Browse files
authored
Address trimming/AOT warnings (#5578)
Fix #5577
1 parent d137ac6 commit 1b13821

3 files changed

Lines changed: 17 additions & 13 deletions

File tree

‎src/Npgsql/Internal/ResolverFactories/JsonDynamicTypeInfoResolverFactory.cs‎

Lines changed: 12 additions & 9 deletions

‎src/Npgsql/Internal/ResolverFactories/UnsupportedTypeInfoResolver.cs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ sealed class UnsupportedTypeInfoResolver<TBuilder> : IPgTypeInfoResolver
1717
FullTextSearchTypeInfoResolverFactory.ThrowIfUnsupported<TBuilder>(type, dataTypeName, options);
1818
LTreeTypeInfoResolverFactory.ThrowIfUnsupported<TBuilder>(type, dataTypeName, options);
1919

20-
// The compiler can't see that these method(s) are completely safe, other methods force the attributes on the type(s).
21-
#pragma warning disable IL3050, IL2026
22-
JsonDynamicTypeInfoResolverFactory.ThrowIfUnsupported<TBuilder>(type, dataTypeName, options);
23-
#pragma warning restore IL3050, IL2026
20+
JsonDynamicTypeInfoResolverFactory.Support.ThrowIfUnsupported<TBuilder>(type, dataTypeName);
2421

2522
switch (dataTypeName is null ? null : options.DatabaseInfo.GetPostgresType(dataTypeName.GetValueOrDefault()))
2623
{

‎src/Npgsql/NpgsqlConnectionStringBuilder.cs‎

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)