Skip to content

Commit dd2e6fd

Browse files
committed
Renamed internal ReadOnlyDictionary
Renamed our internal ReadOnlyDictionary to NpgsqlReadOnlyDictionary, to avoid name conflict with the new .NET 4.5 class
1 parent da2cf0f commit dd2e6fd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Npgsql/Npgsql/NpgsqlConnector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ public void AddParameterStatus(NpgsqlParameterStatus ps)
12211221

12221222
public IDictionary<string, NpgsqlParameterStatus> ServerParameters
12231223
{
1224-
get { return new ReadOnlyDictionary<string, NpgsqlParameterStatus>(_serverParameters); }
1224+
get { return new NpgsqlReadOnlyDictionary<string, NpgsqlParameterStatus>(_serverParameters); }
12251225
}
12261226
}
12271227
}

Npgsql/Npgsql/PGUtil.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,11 @@ internal enum FormatCode :
908908
Binary = 1
909909
}
910910

911-
internal class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
911+
internal class NpgsqlReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
912912
{
913913
private readonly Dictionary<TKey, TValue> _inner;
914914

915-
public ReadOnlyDictionary(Dictionary<TKey, TValue> inner)
915+
public NpgsqlReadOnlyDictionary(Dictionary<TKey, TValue> inner)
916916
{
917917
_inner = inner;
918918
}

0 commit comments

Comments
 (0)