@@ -127,11 +127,11 @@ namespace System
127127 public Exception ();
128128 public Exception (string ? message );
129129 public Exception (string ? message , Exception ? innerException );
130- public sealed Exception ? InnerException { get ; }
130+ public Exception ? InnerException { get ; }
131131 public virtual string Message { get ; }
132132 }
133133
134- public class GC { }
134+ public static class GC { }
135135
136136 public interface IDisposable
137137 {
@@ -181,7 +181,7 @@ namespace System
181181 Exception ? innerException );
182182 }
183183
184- public struct Nullable <T >
184+ public struct Nullable <T > where T : struct
185185 {
186186 public bool HasValue { get ; }
187187 public T Value { get ; }
@@ -198,7 +198,7 @@ namespace System
198198 {
199199 public Object ();
200200 ~Object ();
201- public virtual bool Equals (object obj );
201+ public virtual bool Equals (object ? obj );
202202 public virtual int GetHashCode ();
203203 public Type GetType ();
204204 public virtual string ? ToString ();
@@ -215,7 +215,7 @@ namespace System
215215 public ObsoleteAttribute (string ? message );
216216 public ObsoleteAttribute (string ? message , bool error );
217217 public bool IsError { get ; }
218- public string Message? { get; }
218+ public string ? Message { get ; }
219219 }
220220
221221 public class OutOfMemoryException : Exception
@@ -242,11 +242,13 @@ namespace System
242242 public StackOverflowException (string ? message , Exception ? innerException );
243243 }
244244
245- public sealed class String : IEnumerable <Char >, IEnumerable
245+ public sealed class String : IEnumerable <char >, IEnumerable
246246 {
247247 public int Length { get ; }
248248 public char this [int index ] { get ; }
249249 public static string Format (string format , params object ?[] args );
250+ System.Collections.IEnumerator IEnumerable.GetEnumerator ();
251+ System.Collections.Generic.IEnumerator<char> IEnumerable<char>.GetEnumerator ();
250252 }
251253
252254 public class SystemException : Exception
0 commit comments