diff options
Diffstat (limited to 'src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs')
-rw-r--r-- | src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs b/src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs index 90ada007dd..c6211dadd3 100644 --- a/src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs +++ b/src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs @@ -205,7 +205,7 @@ namespace System.Collections.Concurrent /// cref="ICollection"/>. This property is not supported. /// </summary> /// <exception cref="NotSupportedException">The SyncRoot property is not supported.</exception> - object ICollection.SyncRoot { get { throw new NotSupportedException(Environment.GetResourceString("ConcurrentCollection_SyncRoot_NotSupported")); } } + object ICollection.SyncRoot { get { throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported); } } /// <summary>Returns an enumerator that iterates through a collection.</summary> /// <returns>An <see cref="IEnumerator"/> that can be used to iterate through the collection.</returns> @@ -443,7 +443,7 @@ namespace System.Collections.Concurrent long count = GetCount(head, headHead, tail, tailTail); if (index > array.Length - count) { - throw new ArgumentException(Environment.GetResourceString("Arg_ArrayPlusOffTooSmall")); + throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); } // Copy the items to the target array @@ -1115,7 +1115,7 @@ namespace System.Collections.Concurrent [StructLayout(LayoutKind.Explicit, Size = 192)] // padding before/between/after fields based on typical cache line size of 64 internal struct PaddedHeadAndTail { - [FieldOffset(64)] public int Head; + [FieldOffset(64)] public int Head; [FieldOffset(128)] public int Tail; } } |