Skip to content

Commit fa3db42

Browse files
Add clarifications for string key reliable collection sort order
1 parent 66e07c7 commit fa3db42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/service-fabric/service-fabric-reliable-services-reliable-collections-guidelines.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The guidelines are organized as simple recommendations prefixed with the terms *
3535
Only one user thread operation is supported within a transaction. Otherwise, it will cause memory leak and lock issues.
3636
* Consider dispose transaction as soon as possible after commit completes (especially if using ConcurrentQueue).
3737
* Do not perform any blocking code inside a transaction.
38+
* When [string](/dotnet/api/system.string) is used as key for reliable dictionary, the sorting order will be using [default string comparer CurrentCulture](/dotnet/api/system.string.compare#system-string-compare(system-string-system-string)). Please note that the CurrentCulture sorting order is different from [Ordinal string comparer](/dotnet/api/system.stringcomparer.ordinal).
3839

3940
Here are some things to keep in mind:
4041

0 commit comments

Comments
 (0)