Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2017-11-02 18:11:12 +0300
committerStephen Toub <stoub@microsoft.com>2017-11-03 16:48:47 +0300
commit54e889a7c71bf22f9f1ef244a9d040fee64c74d5 (patch)
treedd883db95d845146fb8143a54d1c21ebe94c1697 /src/System.Collections.Immutable
parent2765e11812f0ffb614959dc09cbd7a5f469da479 (diff)
Mark applicable structs as readonly
Diffstat (limited to 'src/System.Collections.Immutable')
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.HashBucket.cs2
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationInput.cs2
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationResult.cs2
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.HashBucket.cs2
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationInput.cs2
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationResult.cs2
-rw-r--r--src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.NodeEnumerable.cs2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.HashBucket.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.HashBucket.cs
index 44376e9515..0d05920bab 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.HashBucket.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.HashBucket.cs
@@ -15,7 +15,7 @@ namespace System.Collections.Immutable
/// <summary>
/// Contains all the key/values in the collection that hash to the same value.
/// </summary>
- internal struct HashBucket : IEnumerable<KeyValuePair<TKey, TValue>>
+ internal readonly struct HashBucket : IEnumerable<KeyValuePair<TKey, TValue>>
{
/// <summary>
/// One of the values in this bucket.
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationInput.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationInput.cs
index 277ef993b0..22c3462aba 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationInput.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationInput.cs
@@ -15,7 +15,7 @@ namespace System.Collections.Immutable
/// Description of the current data structure as input into a
/// mutating or query method.
/// </summary>
- private struct MutationInput
+ private readonly struct MutationInput
{
/// <summary>
/// The root of the data structure for the collection.
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationResult.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationResult.cs
index b3fb207ea0..1872f38ceb 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationResult.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableDictionary_2.MutationResult.cs
@@ -12,7 +12,7 @@ namespace System.Collections.Immutable
/// <summary>
/// Describes the result of a mutation on the immutable data structure.
/// </summary>
- private struct MutationResult
+ private readonly struct MutationResult
{
/// <summary>
/// The root node of the data structure after the mutation.
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.HashBucket.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.HashBucket.cs
index dc0382dbcd..cd232e9533 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.HashBucket.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.HashBucket.cs
@@ -31,7 +31,7 @@ namespace System.Collections.Immutable
/// <summary>
/// Contains all the keys in the collection that hash to the same value.
/// </summary>
- internal struct HashBucket
+ internal readonly struct HashBucket
{
/// <summary>
/// One of the values in this bucket.
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationInput.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationInput.cs
index 5879ff1bb5..1c0ab7a81c 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationInput.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationInput.cs
@@ -15,7 +15,7 @@ namespace System.Collections.Immutable
/// Description of the current data structure as input into a
/// mutating or query method.
/// </summary>
- private struct MutationInput
+ private readonly struct MutationInput
{
/// <summary>
/// The root of the data structure for the collection.
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationResult.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationResult.cs
index 245c2934d2..89e88b72b0 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationResult.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.MutationResult.cs
@@ -28,7 +28,7 @@ namespace System.Collections.Immutable
/// <summary>
/// Describes the result of a mutation on the immutable data structure.
/// </summary>
- private struct MutationResult
+ private readonly struct MutationResult
{
/// <summary>
/// The root node of the data structure after the mutation.
diff --git a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.NodeEnumerable.cs b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.NodeEnumerable.cs
index 8d6badb592..706bd1493e 100644
--- a/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.NodeEnumerable.cs
+++ b/src/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableHashSet_1.NodeEnumerable.cs
@@ -15,7 +15,7 @@ namespace System.Collections.Immutable
/// <summary>
/// Enumerates over a sorted dictionary used for hash buckets.
/// </summary>
- private struct NodeEnumerable : IEnumerable<T>
+ private readonly struct NodeEnumerable : IEnumerable<T>
{
/// <summary>
/// The root of the sorted dictionary to enumerate.