Skip to content

Commit 7ab9bc9

Browse files
authored
Merge pull request #115221 from zhenxuanjameszhang/patch-4
Add clarifications for string key reliable collection sort order
2 parents 5c4dc84 + c82f7bf commit 7ab9bc9

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 the key for a reliable dictionary, the sorting order uses [default string comparer CurrentCulture](/dotnet/api/system.string.compare#system-string-compare(system-string-system-string)). 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)