@@ -19,7 +19,7 @@ private interface IReadableMValue
1919 object Peek ( ) ;
2020 }
2121
22- private struct MValueArrayReader : IReadableMValue
22+ private class MValueArrayReader : IReadableMValue
2323 {
2424 private readonly object [ ] values ;
2525
@@ -53,7 +53,7 @@ public object Peek()
5353 }
5454 }
5555
56- private struct MValueDictionaryReader : IReadableMValue
56+ private class MValueDictionaryReader : IReadableMValue
5757 {
5858 private readonly object [ ] values ;
5959
@@ -102,14 +102,14 @@ public int GetNameSize()
102102 {
103103 return names . Length - nameIndex ;
104104 }
105-
105+
106106 public object Peek ( )
107107 {
108108 return values [ index ] ;
109109 }
110110 }
111111
112- private struct MValueStartReader : IReadableMValue
112+ private class MValueStartReader : IReadableMValue
113113 {
114114 private object obj ;
115115
@@ -136,7 +136,7 @@ public void SkipValue()
136136 obj = null ;
137137 size = 0 ;
138138 }
139-
139+
140140 public object Peek ( )
141141 {
142142 return obj ;
@@ -207,7 +207,7 @@ private void CheckObject()
207207 throw new InvalidDataException ( "Not inside a object or array" ) ;
208208 }
209209 }
210-
210+
211211 private void CheckArray ( )
212212 {
213213 if ( ! insideObject && readableMValue . Peek ( ) . GetType ( ) != typeof ( object [ ] ) )
@@ -352,7 +352,7 @@ public ulong NextULong()
352352
353353 return value ;
354354 }
355-
355+
356356 public Position NextPosition ( )
357357 {
358358 CheckObjectOrArray ( ) ;
@@ -366,7 +366,7 @@ public Position NextPosition()
366366
367367 return value ;
368368 }
369-
369+
370370 public Rgba NextRgba ( )
371371 {
372372 CheckObjectOrArray ( ) ;
0 commit comments