Skip to content

Commit edc00ec

Browse files
authored
Make NpgsqlConnectionStringPropertyAttribute internal (#4443)
1 parent 62f8f0e commit edc00ec

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/Npgsql/NpgsqlConnectionStringBuilder.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,8 +1709,6 @@ protected override void GetProperties(Hashtable propertyDescriptors)
17091709
}
17101710

17111711
#endregion
1712-
1713-
internal static readonly string[] EmptyStringArray = new string[0];
17141712
}
17151713

17161714
#region Attributes
@@ -1720,7 +1718,7 @@ protected override void GetProperties(Hashtable propertyDescriptors)
17201718
/// string. Optionally holds a set of synonyms for the property.
17211719
/// </summary>
17221720
[AttributeUsage(AttributeTargets.Property)]
1723-
public class NpgsqlConnectionStringPropertyAttribute : Attribute
1721+
class NpgsqlConnectionStringPropertyAttribute : Attribute
17241722
{
17251723
/// <summary>
17261724
/// Holds a list of synonyms for the property.
@@ -1731,17 +1729,13 @@ public class NpgsqlConnectionStringPropertyAttribute : Attribute
17311729
/// Creates a <see cref="NpgsqlConnectionStringPropertyAttribute"/>.
17321730
/// </summary>
17331731
public NpgsqlConnectionStringPropertyAttribute()
1734-
{
1735-
Synonyms = NpgsqlConnectionStringBuilder.EmptyStringArray;
1736-
}
1732+
=> Synonyms = Array.Empty<string>();
17371733

17381734
/// <summary>
17391735
/// Creates a <see cref="NpgsqlConnectionStringPropertyAttribute"/>.
17401736
/// </summary>
17411737
public NpgsqlConnectionStringPropertyAttribute(params string[] synonyms)
1742-
{
1743-
Synonyms = synonyms;
1744-
}
1738+
=> Synonyms = synonyms;
17451739
}
17461740

17471741
#endregion

src/Npgsql/PublicAPI.Unshipped.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ static Npgsql.NpgsqlLoggingConfiguration.InitializeLogging(Microsoft.Extensions.
1515
*REMOVED*const NpgsqlTypes.NpgsqlTimeSpan.TicksPerMinute = 600000000 -> long
1616
*REMOVED*const NpgsqlTypes.NpgsqlTimeSpan.TicksPerMonth = 25920000000000 -> long
1717
*REMOVED*const NpgsqlTypes.NpgsqlTimeSpan.TicksPerSecond = 10000000 -> long
18+
*REMOVED*Npgsql.NpgsqlConnectionStringPropertyAttribute
19+
*REMOVED*Npgsql.NpgsqlConnectionStringPropertyAttribute.NpgsqlConnectionStringPropertyAttribute() -> void
20+
*REMOVED*Npgsql.NpgsqlConnectionStringPropertyAttribute.NpgsqlConnectionStringPropertyAttribute(params string![]! synonyms) -> void
21+
*REMOVED*Npgsql.NpgsqlConnectionStringPropertyAttribute.Synonyms.get -> string![]!
1822
*REMOVED*Npgsql.Logging.ConsoleLoggingProvider
1923
*REMOVED*Npgsql.Logging.ConsoleLoggingProvider.ConsoleLoggingProvider(Npgsql.Logging.NpgsqlLogLevel minLevel = Npgsql.Logging.NpgsqlLogLevel.Info, bool printLevel = false, bool printConnectorId = false) -> void
2024
*REMOVED*Npgsql.Logging.ConsoleLoggingProvider.CreateLogger(string! name) -> Npgsql.Logging.NpgsqlLogger!

0 commit comments

Comments
 (0)