Skip to content

Commit cf26f5b

Browse files
committed
This can be ref readonly.
1 parent 1a49a57 commit cf26f5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/IKVM.ByteCode/Decoding/ArrayElementValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static bool TryRead(ref ClassFormatReader reader, out ArrayElementValue v
124124
}
125125

126126
/// <summary>
127-
/// Copies this annotation to the encoder.
127+
/// Copies this array element value to the encoder.
128128
/// </summary>
129129
/// <typeparam name="TConstantView"></typeparam>
130130
/// <typeparam name="TConstantPool"></typeparam>
@@ -135,7 +135,7 @@ public readonly void CopyTo<TConstantView, TConstantPool>(TConstantView constant
135135
where TConstantView : IConstantView
136136
where TConstantPool : IConstantPool
137137
{
138-
foreach (var i in this)
138+
foreach (ref readonly var i in this)
139139
{
140140
switch (i.Kind)
141141
{

0 commit comments

Comments
 (0)