diff --git a/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/PerformanceCounterLib.cs b/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/PerformanceCounterLib.cs index a5e340f3e1b59f..7b253a1da6d0d9 100644 --- a/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/PerformanceCounterLib.cs +++ b/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/PerformanceCounterLib.cs @@ -85,7 +85,7 @@ internal byte[] GetPerformanceData(string item) } } - return _performanceMonitor.GetData(item); + return _performanceMonitor.GetData(item)!; } private Dictionary GetStringTable(bool isHelp) @@ -113,9 +113,9 @@ private Dictionary GetStringTable(bool isHelp) try { if (!isHelp) - names = (string[])libraryKey.GetValue("Counter " + _perfLcid); + names = (string[]?)libraryKey.GetValue("Counter " + _perfLcid); else - names = (string[])libraryKey.GetValue("Explain " + _perfLcid); + names = (string[]?)libraryKey.GetValue("Explain " + _perfLcid); if ((names == null) || (names.Length == 0)) { @@ -225,7 +225,7 @@ private void Init() // we wait may not be sufficient if the Win32 code keeps running into this deadlock again // and again. A condition very rare but possible in theory. We would get back to the user // in this case with InvalidOperationException after the wait time expires. - internal byte[] GetData(string item) + internal byte[]? GetData(string item) { #if FEATURE_REGISTRY int waitRetries = 17; //2^16*10ms == approximately 10mins @@ -237,7 +237,7 @@ internal byte[] GetData(string item) { try { - data = (byte[])_perfDataKey.GetValue(item); + data = (byte[]?)_perfDataKey.GetValue(item); return data; } catch (IOException e) diff --git a/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessStartInfo.Win32.cs b/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessStartInfo.Win32.cs index 98fce7c8c4c5d5..8b94d4315b3bc8 100644 --- a/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessStartInfo.Win32.cs +++ b/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessStartInfo.Win32.cs @@ -18,7 +18,7 @@ public string[] Verbs if (string.IsNullOrEmpty(extension)) return Array.Empty(); - using (RegistryKey key = Registry.ClassesRoot.OpenSubKey(extension)) + using (RegistryKey? key = Registry.ClassesRoot.OpenSubKey(extension)) { if (key == null) return Array.Empty(); @@ -27,7 +27,7 @@ public string[] Verbs if (string.IsNullOrEmpty(value)) return Array.Empty(); - using (RegistryKey subKey = Registry.ClassesRoot.OpenSubKey(value + "\\shell")) + using (RegistryKey? subKey = Registry.ClassesRoot.OpenSubKey(value + "\\shell")) { if (subKey == null) return Array.Empty(); diff --git a/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx b/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx index 346e3a8615046a..d3e1a963ee6be1 100644 --- a/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx +++ b/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx @@ -3679,4 +3679,52 @@ Length of items must be same as length of keys. + + Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream. + + + Found invalid data while decoding. + + + Resource type in the ResourceScope enum is going from a more restrictive resource type to a more general one. From: "{0}" To: "{1}" + + + The type parameter cannot be null when scoping the resource's visibility to Private or Assembly. + + + Unknown value for the ResourceScope: {0} Too many resource type bits may be set. + + + Unknown value for the ResourceScope: {0} Too many resource visibility bits may be set. + + + The parameter '{0}' cannot be an empty string. + + + ApplicationId cannot have an empty string for the name. + + + FrameworkName is invalid. + + + FrameworkName version component is invalid. + + + FrameworkName version component is missing. + + + FrameworkName cannot have less than two components or more than three components. + + + Non-exhaustive switch expression failed to match its input. + + + Attempted to marshal an object across a context boundary. + + + Attempted to access an unloaded AppDomain. + + + Unmatched value was {0}. + diff --git a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems index e07b33ca65638b..97e7702f023816 100644 --- a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems +++ b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems @@ -19,15 +19,17 @@ + - + + - + @@ -48,6 +50,11 @@ + + + + + @@ -55,13 +62,6 @@ - - - - - - - @@ -112,15 +112,19 @@ - + + + + + @@ -144,15 +148,15 @@ + + - - - + @@ -173,8 +177,9 @@ - + + @@ -187,8 +192,8 @@ - + @@ -199,27 +204,27 @@ - + - + + - @@ -228,6 +233,7 @@ + @@ -235,14 +241,14 @@ - - - + + + @@ -272,10 +278,10 @@ - + @@ -302,23 +308,31 @@ + + + + + + + + @@ -329,6 +343,8 @@ + + @@ -338,19 +354,18 @@ - - - - - + + + + + - @@ -363,11 +378,13 @@ + + - + @@ -388,7 +405,6 @@ - @@ -406,8 +422,8 @@ - + @@ -428,6 +444,7 @@ + @@ -449,13 +466,13 @@ - - + + - + @@ -503,6 +520,7 @@ + @@ -532,13 +550,14 @@ - + + @@ -571,6 +590,7 @@ + @@ -582,8 +602,9 @@ - + + @@ -591,7 +612,6 @@ - @@ -603,6 +623,7 @@ + @@ -613,10 +634,29 @@ + + + + + + + + + + + + + + + + + + + @@ -634,23 +674,6 @@ - - - - - - - - - - - - - - - - - @@ -666,20 +689,20 @@ - + + - - + @@ -703,19 +726,22 @@ - - - + + + + + + @@ -734,10 +760,14 @@ + + + + + + - - - + @@ -746,8 +776,13 @@ - + + + + + + @@ -769,19 +804,20 @@ - + - + + - + @@ -789,16 +825,16 @@ - + - + @@ -815,14 +851,6 @@ - - - - - - - - @@ -833,7 +861,14 @@ - + + + + + + + + @@ -867,15 +902,13 @@ - - - - + + @@ -889,10 +922,11 @@ - - + + + @@ -903,14 +937,17 @@ + + + - + @@ -1441,6 +1478,7 @@ + @@ -1689,6 +1727,7 @@ + diff --git a/src/libraries/System.Private.CoreLib/src/System/Action.cs b/src/libraries/System.Private.CoreLib/src/System/Action.cs index 1c4771a1b64ff7..b89d3f5d24d979 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Action.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Action.cs @@ -15,16 +15,14 @@ namespace System public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6); public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7); public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8); - - public delegate TResult Func(); - public delegate TResult Func(T arg); - public delegate TResult Func(T1 arg1, T2 arg2); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15); + public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15, T16 arg16); public delegate int Comparison([AllowNull] T x, [AllowNull] T y); diff --git a/src/libraries/System.Runtime.Extensions/src/System/AppDomainUnloadedException.cs b/src/libraries/System.Private.CoreLib/src/System/AppDomainUnloadedException.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/AppDomainUnloadedException.cs rename to src/libraries/System.Private.CoreLib/src/System/AppDomainUnloadedException.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/ApplicationId.cs b/src/libraries/System.Private.CoreLib/src/System/ApplicationId.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/ApplicationId.cs rename to src/libraries/System.Private.CoreLib/src/System/ApplicationId.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/CodeDom/Compiler/IndentedTextWriter.cs b/src/libraries/System.Private.CoreLib/src/System/CodeDom/Compiler/IndentedTextWriter.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/CodeDom/Compiler/IndentedTextWriter.cs rename to src/libraries/System.Private.CoreLib/src/System/CodeDom/Compiler/IndentedTextWriter.cs diff --git a/src/libraries/System.Runtime/src/System/Collections/Generic/ISet.cs b/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ISet.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/Collections/Generic/ISet.cs rename to src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ISet.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Context.cs b/src/libraries/System.Private.CoreLib/src/System/Context.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Context.cs rename to src/libraries/System.Private.CoreLib/src/System/Context.cs diff --git a/src/libraries/System.Runtime/src/System/Function.cs b/src/libraries/System.Private.CoreLib/src/System/Function.cs similarity index 69% rename from src/libraries/System.Runtime/src/System/Function.cs rename to src/libraries/System.Private.CoreLib/src/System/Function.cs index 43f647ee92300d..ebf562a7f151a8 100644 --- a/src/libraries/System.Runtime/src/System/Function.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Function.cs @@ -4,19 +4,21 @@ namespace System { + public delegate TResult Func(); + public delegate TResult Func(T arg); + public delegate TResult Func(T1 arg1, T2 arg2); + public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3); + public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4); + public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5); + public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6); + public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7); + public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8); public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15); - public delegate TResult Func(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15, T16 arg16); } diff --git a/src/libraries/System.Runtime.Extensions/src/System/IO/BufferedStream.cs b/src/libraries/System.Private.CoreLib/src/System/IO/BufferedStream.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/IO/BufferedStream.cs rename to src/libraries/System.Private.CoreLib/src/System/IO/BufferedStream.cs diff --git a/src/libraries/System.Runtime/src/System/IO/FileAttributes.cs b/src/libraries/System.Private.CoreLib/src/System/IO/FileAttributes.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/IO/FileAttributes.cs rename to src/libraries/System.Private.CoreLib/src/System/IO/FileAttributes.cs diff --git a/src/libraries/System.Runtime/src/System/IO/HandleInheritability.cs b/src/libraries/System.Private.CoreLib/src/System/IO/HandleInheritability.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/IO/HandleInheritability.cs rename to src/libraries/System.Private.CoreLib/src/System/IO/HandleInheritability.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/IO/InvalidDataException.cs b/src/libraries/System.Private.CoreLib/src/System/IO/InvalidDataException.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/IO/InvalidDataException.cs rename to src/libraries/System.Private.CoreLib/src/System/IO/InvalidDataException.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/IO/StringReader.cs b/src/libraries/System.Private.CoreLib/src/System/IO/StringReader.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/IO/StringReader.cs rename to src/libraries/System.Private.CoreLib/src/System/IO/StringReader.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/IO/StringWriter.cs b/src/libraries/System.Private.CoreLib/src/System/IO/StringWriter.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/IO/StringWriter.cs rename to src/libraries/System.Private.CoreLib/src/System/IO/StringWriter.cs diff --git a/src/libraries/System.Runtime/src/System/LazyOfTTMetadata.cs b/src/libraries/System.Private.CoreLib/src/System/LazyOfTTMetadata.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/LazyOfTTMetadata.cs rename to src/libraries/System.Private.CoreLib/src/System/LazyOfTTMetadata.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/LoaderOptimization.cs b/src/libraries/System.Private.CoreLib/src/System/LoaderOptimization.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/LoaderOptimization.cs rename to src/libraries/System.Private.CoreLib/src/System/LoaderOptimization.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/LoaderOptimizationAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/LoaderOptimizationAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/LoaderOptimizationAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/LoaderOptimizationAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Net/WebUtility.cs b/src/libraries/System.Private.CoreLib/src/System/Net/WebUtility.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Net/WebUtility.cs rename to src/libraries/System.Private.CoreLib/src/System/Net/WebUtility.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Reflection/AssemblyNameProxy.cs b/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameProxy.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Reflection/AssemblyNameProxy.cs rename to src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyNameProxy.cs diff --git a/src/libraries/System.Runtime/src/System/Reflection/RuntimeReflectionExtensions.cs b/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeReflectionExtensions.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/Reflection/RuntimeReflectionExtensions.cs rename to src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeReflectionExtensions.cs diff --git a/src/libraries/System.Runtime/src/System/Runtime/CompilerServices/EnumeratorCancellationAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/EnumeratorCancellationAttribute.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/Runtime/CompilerServices/EnumeratorCancellationAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/EnumeratorCancellationAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/CompilerServices/SwitchExpressionException.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/SwitchExpressionException.cs similarity index 94% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/CompilerServices/SwitchExpressionException.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/SwitchExpressionException.cs index 6017ddba931cfb..293ac527fb037f 100644 --- a/src/libraries/System.Runtime.Extensions/src/System/Runtime/CompilerServices/SwitchExpressionException.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/SwitchExpressionException.cs @@ -12,6 +12,7 @@ namespace System.Runtime.CompilerServices /// The exception optionally contains an object representing the unmatched value. /// [Serializable] + [TypeForwardedFrom("System.Runtime.Extensions, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] public sealed class SwitchExpressionException : InvalidOperationException { public SwitchExpressionException() diff --git a/src/libraries/System.Runtime/src/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/ConstrainedExecution/PrePrepareMethodAttribute.cs diff --git a/src/libraries/System.Runtime/src/System/Runtime/NgenServicingAttributes.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/NgenServicingAttributes.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/Runtime/NgenServicingAttributes.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/NgenServicingAttributes.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/ProfileOptimization.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/ProfileOptimization.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/ProfileOptimization.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/ProfileOptimization.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ComponentGuaranteesAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ComponentGuaranteesAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ComponentGuaranteesAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ComponentGuaranteesAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ComponentGuaranteesOptions.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ComponentGuaranteesOptions.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ComponentGuaranteesOptions.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ComponentGuaranteesOptions.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/FrameworkName.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/FrameworkName.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/FrameworkName.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/FrameworkName.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ResourceConsumptionAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ResourceConsumptionAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ResourceConsumptionAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ResourceConsumptionAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ResourceExposureAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ResourceExposureAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ResourceExposureAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ResourceExposureAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ResourceScope.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ResourceScope.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/ResourceScope.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/ResourceScope.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/VersioningHelper.Unix.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.Unix.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/VersioningHelper.Unix.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.Unix.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/VersioningHelper.Windows.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.Windows.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/VersioningHelper.Windows.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.Windows.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/VersioningHelper.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Runtime/Versioning/VersioningHelper.cs rename to src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/VersioningHelper.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/CodeAccessSecurityAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Security/Permissions/CodeAccessSecurityAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/CodeAccessSecurityAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Security/Permissions/CodeAccessSecurityAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityAction.cs b/src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityAction.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityAction.cs rename to src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityAction.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityPermissionAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityPermissionAttribute.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityPermissionAttribute.cs rename to src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityPermissionAttribute.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityPermissionFlag.cs b/src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityPermissionFlag.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/Security/Permissions/SecurityPermissionFlag.cs rename to src/libraries/System.Private.CoreLib/src/System/Security/Permissions/SecurityPermissionFlag.cs diff --git a/src/libraries/System.Runtime.Extensions/src/System/StringNormalizationExtensions.cs b/src/libraries/System.Private.CoreLib/src/System/StringNormalizationExtensions.cs similarity index 100% rename from src/libraries/System.Runtime.Extensions/src/System/StringNormalizationExtensions.cs rename to src/libraries/System.Private.CoreLib/src/System/StringNormalizationExtensions.cs diff --git a/src/libraries/System.Runtime/src/System/Threading/WaitHandleExtensions.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/WaitHandleExtensions.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/Threading/WaitHandleExtensions.cs rename to src/libraries/System.Private.CoreLib/src/System/Threading/WaitHandleExtensions.cs diff --git a/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.Forwards.cs b/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.Forwards.cs index 79269a9d6e8b7b..ef02879f9f00d7 100644 --- a/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.Forwards.cs +++ b/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.Forwards.cs @@ -5,4 +5,76 @@ // Changes to this file must follow the https://aka.ms/api-review process. // ------------------------------------------------------------------------------ +#pragma warning disable 0618 + +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AppDomain))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AppDomainSetup))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AppDomainUnloadedException))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ApplicationId))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AssemblyLoadEventArgs))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.AssemblyLoadEventHandler))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Base64FormattingOptions))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.BitConverter))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CannotUnloadAppDomainException))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ContextBoundObject))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ContextMarshalException))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ContextStaticAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Convert))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Environment))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.EnvironmentVariableTarget))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LoaderOptimization))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.LoaderOptimizationAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Math))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MathF))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.OperatingSystem))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.PlatformID))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Progress<>))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Random))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ResolveEventHandler))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparer))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringNormalizationExtensions))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UriBuilder))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.Compiler.IndentedTextWriter))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ArrayList))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Hashtable))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.IHashCodeProvider))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Stopwatch))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.GlobalizationExtensions))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.BinaryReader))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.BinaryWriter))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.BufferedStream))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.EndOfStreamException))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.InvalidDataException))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.MemoryStream))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Path))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StreamReader))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StreamWriter))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StringReader))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.StringWriter))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextReader))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))] [assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.MidpointRounding))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebUtility))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.BitOperations))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyNameProxy))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.ProfileOptimization))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.SwitchExpressionException))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ComponentGuaranteesAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ComponentGuaranteesOptions))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.FrameworkName))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ResourceConsumptionAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ResourceExposureAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.ResourceScope))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Versioning.VersioningHelper))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.IPermission))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.ISecurityEncodable))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.IStackWalk))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.PermissionSet))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityElement))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.CodeAccessSecurityAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.PermissionState))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityAction))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityPermissionAttribute))] +[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Permissions.SecurityPermissionFlag))] diff --git a/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs b/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs deleted file mode 100644 index 61a11a6f194b55..00000000000000 --- a/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.cs +++ /dev/null @@ -1,2006 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace System -{ - public sealed partial class AppDomain : System.MarshalByRefObject - { - internal AppDomain() { } - public string? BaseDirectory { get { throw null; } } - public static System.AppDomain CurrentDomain { get { throw null; } } - public string? DynamicDirectory { get { throw null; } } - public string FriendlyName { get { throw null; } } - public int Id { get { throw null; } } - public bool IsFullyTrusted { get { throw null; } } - public bool IsHomogenous { get { throw null; } } - public static bool MonitoringIsEnabled { get { throw null; } set { } } - public long MonitoringSurvivedMemorySize { get { throw null; } } - public static long MonitoringSurvivedProcessMemorySize { get { throw null; } } - public long MonitoringTotalAllocatedMemorySize { get { throw null; } } - public System.TimeSpan MonitoringTotalProcessorTime { get { throw null; } } - public System.Security.PermissionSet PermissionSet { get { throw null; } } - public string? RelativeSearchPath { get { throw null; } } - public System.AppDomainSetup SetupInformation { get { throw null; } } - public bool ShadowCopyFiles { get { throw null; } } - public event System.AssemblyLoadEventHandler? AssemblyLoad { add { } remove { } } - public event System.ResolveEventHandler? AssemblyResolve { add { } remove { } } - public event System.EventHandler? DomainUnload { add { } remove { } } - public event System.EventHandler? FirstChanceException { add { } remove { } } - public event System.EventHandler? ProcessExit { add { } remove { } } - public event System.ResolveEventHandler? ReflectionOnlyAssemblyResolve { add { } remove { } } - public event System.ResolveEventHandler? ResourceResolve { add { } remove { } } - public event System.ResolveEventHandler? TypeResolve { add { } remove { } } - public event System.UnhandledExceptionEventHandler? UnhandledException { add { } remove { } } - [System.ObsoleteAttribute("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void AppendPrivatePath(string? path) { } - public string ApplyPolicy(string assemblyName) { throw null; } - [System.ObsoleteAttribute("AppDomain.ClearPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void ClearPrivatePath() { } - [System.ObsoleteAttribute("AppDomain.ClearShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void ClearShadowCopyPath() { } - public static System.AppDomain CreateDomain(string friendlyName) { throw null; } - public System.Runtime.Remoting.ObjectHandle? CreateInstance(string assemblyName, string typeName) { throw null; } - public System.Runtime.Remoting.ObjectHandle? CreateInstance(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } - public System.Runtime.Remoting.ObjectHandle? CreateInstance(string assemblyName, string typeName, object?[]? activationAttributes) { throw null; } - public object? CreateInstanceAndUnwrap(string assemblyName, string typeName) { throw null; } - public object? CreateInstanceAndUnwrap(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } - public object? CreateInstanceAndUnwrap(string assemblyName, string typeName, object?[]? activationAttributes) { throw null; } - public System.Runtime.Remoting.ObjectHandle? CreateInstanceFrom(string assemblyFile, string typeName) { throw null; } - public System.Runtime.Remoting.ObjectHandle? CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } - public System.Runtime.Remoting.ObjectHandle? CreateInstanceFrom(string assemblyFile, string typeName, object?[]? activationAttributes) { throw null; } - public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName) { throw null; } - public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } - public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName, object?[]? activationAttributes) { throw null; } - public int ExecuteAssembly(string assemblyFile) { throw null; } - public int ExecuteAssembly(string assemblyFile, string?[]? args) { throw null; } - public int ExecuteAssembly(string assemblyFile, string?[]? args, byte[]? hashValue, System.Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm) { throw null; } - public int ExecuteAssemblyByName(System.Reflection.AssemblyName assemblyName, params string?[]? args) { throw null; } - public int ExecuteAssemblyByName(string assemblyName) { throw null; } - public int ExecuteAssemblyByName(string assemblyName, params string?[]? args) { throw null; } - public System.Reflection.Assembly[] GetAssemblies() { throw null; } - [System.ObsoleteAttribute("AppDomain.GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threads). To get a stable identifier for a managed thread, use the ManagedThreadId property on Thread. https://go.microsoft.com/fwlink/?linkid=14202", false)] - public static int GetCurrentThreadId() { throw null; } - public object? GetData(string name) { throw null; } - public bool? IsCompatibilitySwitchSet(string value) { throw null; } - public bool IsDefaultAppDomain() { throw null; } - public bool IsFinalizingForUnload() { throw null; } - public System.Reflection.Assembly Load(byte[] rawAssembly) { throw null; } - public System.Reflection.Assembly Load(byte[] rawAssembly, byte[]? rawSymbolStore) { throw null; } - public System.Reflection.Assembly Load(System.Reflection.AssemblyName assemblyRef) { throw null; } - public System.Reflection.Assembly Load(string assemblyString) { throw null; } - public System.Reflection.Assembly[] ReflectionOnlyGetAssemblies() { throw null; } - [System.ObsoleteAttribute("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void SetCachePath(string? path) { } - public void SetData(string name, object? data) { } - [System.ObsoleteAttribute("AppDomain.SetDynamicBase has been deprecated. Please investigate the use of AppDomainSetup.DynamicBase instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void SetDynamicBase(string? path) { } - public void SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy policy) { } - [System.ObsoleteAttribute("AppDomain.SetShadowCopyFiles has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyFiles instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void SetShadowCopyFiles() { } - [System.ObsoleteAttribute("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")] - public void SetShadowCopyPath(string? path) { } - public void SetThreadPrincipal(System.Security.Principal.IPrincipal principal) { } - public override string ToString() { throw null; } - public static void Unload(System.AppDomain domain) { } - } - public sealed partial class AppDomainSetup - { - internal AppDomainSetup() { } - public string? ApplicationBase { get { throw null; } } - public string? TargetFrameworkName { get { throw null; } } - } - public partial class AppDomainUnloadedException : System.SystemException - { - public AppDomainUnloadedException() { } - protected AppDomainUnloadedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public AppDomainUnloadedException(string? message) { } - public AppDomainUnloadedException(string? message, System.Exception? innerException) { } - } - public sealed partial class ApplicationId - { - public ApplicationId(byte[] publicKeyToken, string name, System.Version version, string? processorArchitecture, string? culture) { } - public string? Culture { get { throw null; } } - public string Name { get { throw null; } } - public string? ProcessorArchitecture { get { throw null; } } - public byte[] PublicKeyToken { get { throw null; } } - public System.Version Version { get { throw null; } } - public System.ApplicationId Copy() { throw null; } - public override bool Equals(object? o) { throw null; } - public override int GetHashCode() { throw null; } - public override string ToString() { throw null; } - } - public partial class AssemblyLoadEventArgs : System.EventArgs - { - public AssemblyLoadEventArgs(System.Reflection.Assembly loadedAssembly) { } - public System.Reflection.Assembly LoadedAssembly { get { throw null; } } - } - public delegate void AssemblyLoadEventHandler(object? sender, System.AssemblyLoadEventArgs args); - [System.FlagsAttribute] - public enum Base64FormattingOptions - { - None = 0, - InsertLineBreaks = 1, - } - public static partial class BitConverter - { - public static readonly bool IsLittleEndian; - public static long DoubleToInt64Bits(double value) { throw null; } - public static byte[] GetBytes(bool value) { throw null; } - public static byte[] GetBytes(char value) { throw null; } - public static byte[] GetBytes(double value) { throw null; } - public static byte[] GetBytes(short value) { throw null; } - public static byte[] GetBytes(int value) { throw null; } - public static byte[] GetBytes(long value) { throw null; } - public static byte[] GetBytes(float value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte[] GetBytes(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte[] GetBytes(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte[] GetBytes(ulong value) { throw null; } - public static float Int32BitsToSingle(int value) { throw null; } - public static double Int64BitsToDouble(long value) { throw null; } - public static int SingleToInt32Bits(float value) { throw null; } - public static bool ToBoolean(byte[] value, int startIndex) { throw null; } - public static bool ToBoolean(System.ReadOnlySpan value) { throw null; } - public static char ToChar(byte[] value, int startIndex) { throw null; } - public static char ToChar(System.ReadOnlySpan value) { throw null; } - public static double ToDouble(byte[] value, int startIndex) { throw null; } - public static double ToDouble(System.ReadOnlySpan value) { throw null; } - public static short ToInt16(byte[] value, int startIndex) { throw null; } - public static short ToInt16(System.ReadOnlySpan value) { throw null; } - public static int ToInt32(byte[] value, int startIndex) { throw null; } - public static int ToInt32(System.ReadOnlySpan value) { throw null; } - public static long ToInt64(byte[] value, int startIndex) { throw null; } - public static long ToInt64(System.ReadOnlySpan value) { throw null; } - public static float ToSingle(byte[] value, int startIndex) { throw null; } - public static float ToSingle(System.ReadOnlySpan value) { throw null; } - public static string ToString(byte[] value) { throw null; } - public static string ToString(byte[] value, int startIndex) { throw null; } - public static string ToString(byte[] value, int startIndex, int length) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(byte[] value, int startIndex) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(System.ReadOnlySpan value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(byte[] value, int startIndex) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(System.ReadOnlySpan value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(byte[] value, int startIndex) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(System.ReadOnlySpan value) { throw null; } - public static bool TryWriteBytes(System.Span destination, bool value) { throw null; } - public static bool TryWriteBytes(System.Span destination, char value) { throw null; } - public static bool TryWriteBytes(System.Span destination, double value) { throw null; } - public static bool TryWriteBytes(System.Span destination, short value) { throw null; } - public static bool TryWriteBytes(System.Span destination, int value) { throw null; } - public static bool TryWriteBytes(System.Span destination, long value) { throw null; } - public static bool TryWriteBytes(System.Span destination, float value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool TryWriteBytes(System.Span destination, ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool TryWriteBytes(System.Span destination, uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool TryWriteBytes(System.Span destination, ulong value) { throw null; } - } - public partial class CannotUnloadAppDomainException : System.SystemException - { - public CannotUnloadAppDomainException() { } - protected CannotUnloadAppDomainException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public CannotUnloadAppDomainException(string? message) { } - public CannotUnloadAppDomainException(string? message, System.Exception? innerException) { } - } - public abstract partial class ContextBoundObject : System.MarshalByRefObject - { - protected ContextBoundObject() { } - } - public partial class ContextMarshalException : System.SystemException - { - public ContextMarshalException() { } - protected ContextMarshalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public ContextMarshalException(string? message) { } - public ContextMarshalException(string? message, System.Exception? inner) { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] - public partial class ContextStaticAttribute : System.Attribute - { - public ContextStaticAttribute() { } - } - public static partial class Convert - { - public static readonly object DBNull; - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static object? ChangeType(object? value, System.Type conversionType) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static object? ChangeType(object? value, System.Type conversionType, System.IFormatProvider? provider) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static object? ChangeType(object? value, System.TypeCode typeCode) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static object? ChangeType(object? value, System.TypeCode typeCode, System.IFormatProvider? provider) { throw null; } - public static byte[] FromBase64CharArray(char[] inArray, int offset, int length) { throw null; } - public static byte[] FromBase64String(string s) { throw null; } - public static System.TypeCode GetTypeCode(object? value) { throw null; } - public static bool IsDBNull([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? value) { throw null; } - public static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut) { throw null; } - public static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut, System.Base64FormattingOptions options) { throw null; } - public static string ToBase64String(byte[] inArray) { throw null; } - public static string ToBase64String(byte[] inArray, System.Base64FormattingOptions options) { throw null; } - public static string ToBase64String(byte[] inArray, int offset, int length) { throw null; } - public static string ToBase64String(byte[] inArray, int offset, int length, System.Base64FormattingOptions options) { throw null; } - public static string ToBase64String(System.ReadOnlySpan bytes, System.Base64FormattingOptions options = System.Base64FormattingOptions.None) { throw null; } - public static bool ToBoolean(bool value) { throw null; } - public static bool ToBoolean(byte value) { throw null; } - public static bool ToBoolean(char value) { throw null; } - public static bool ToBoolean(System.DateTime value) { throw null; } - public static bool ToBoolean(decimal value) { throw null; } - public static bool ToBoolean(double value) { throw null; } - public static bool ToBoolean(short value) { throw null; } - public static bool ToBoolean(int value) { throw null; } - public static bool ToBoolean(long value) { throw null; } - public static bool ToBoolean(object? value) { throw null; } - public static bool ToBoolean(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool ToBoolean(sbyte value) { throw null; } - public static bool ToBoolean(float value) { throw null; } - public static bool ToBoolean(string? value) { throw null; } - public static bool ToBoolean(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool ToBoolean(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool ToBoolean(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static bool ToBoolean(ulong value) { throw null; } - public static byte ToByte(bool value) { throw null; } - public static byte ToByte(byte value) { throw null; } - public static byte ToByte(char value) { throw null; } - public static byte ToByte(System.DateTime value) { throw null; } - public static byte ToByte(decimal value) { throw null; } - public static byte ToByte(double value) { throw null; } - public static byte ToByte(short value) { throw null; } - public static byte ToByte(int value) { throw null; } - public static byte ToByte(long value) { throw null; } - public static byte ToByte(object? value) { throw null; } - public static byte ToByte(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte ToByte(sbyte value) { throw null; } - public static byte ToByte(float value) { throw null; } - public static byte ToByte(string? value) { throw null; } - public static byte ToByte(string? value, System.IFormatProvider? provider) { throw null; } - public static byte ToByte(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte ToByte(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte ToByte(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static byte ToByte(ulong value) { throw null; } - public static char ToChar(bool value) { throw null; } - public static char ToChar(byte value) { throw null; } - public static char ToChar(char value) { throw null; } - public static char ToChar(System.DateTime value) { throw null; } - public static char ToChar(decimal value) { throw null; } - public static char ToChar(double value) { throw null; } - public static char ToChar(short value) { throw null; } - public static char ToChar(int value) { throw null; } - public static char ToChar(long value) { throw null; } - public static char ToChar(object? value) { throw null; } - public static char ToChar(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static char ToChar(sbyte value) { throw null; } - public static char ToChar(float value) { throw null; } - public static char ToChar(string value) { throw null; } - public static char ToChar(string value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static char ToChar(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static char ToChar(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static char ToChar(ulong value) { throw null; } - public static System.DateTime ToDateTime(bool value) { throw null; } - public static System.DateTime ToDateTime(byte value) { throw null; } - public static System.DateTime ToDateTime(char value) { throw null; } - public static System.DateTime ToDateTime(System.DateTime value) { throw null; } - public static System.DateTime ToDateTime(decimal value) { throw null; } - public static System.DateTime ToDateTime(double value) { throw null; } - public static System.DateTime ToDateTime(short value) { throw null; } - public static System.DateTime ToDateTime(int value) { throw null; } - public static System.DateTime ToDateTime(long value) { throw null; } - public static System.DateTime ToDateTime(object? value) { throw null; } - public static System.DateTime ToDateTime(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static System.DateTime ToDateTime(sbyte value) { throw null; } - public static System.DateTime ToDateTime(float value) { throw null; } - public static System.DateTime ToDateTime(string? value) { throw null; } - public static System.DateTime ToDateTime(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static System.DateTime ToDateTime(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static System.DateTime ToDateTime(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static System.DateTime ToDateTime(ulong value) { throw null; } - public static decimal ToDecimal(bool value) { throw null; } - public static decimal ToDecimal(byte value) { throw null; } - public static decimal ToDecimal(char value) { throw null; } - public static decimal ToDecimal(System.DateTime value) { throw null; } - public static decimal ToDecimal(decimal value) { throw null; } - public static decimal ToDecimal(double value) { throw null; } - public static decimal ToDecimal(short value) { throw null; } - public static decimal ToDecimal(int value) { throw null; } - public static decimal ToDecimal(long value) { throw null; } - public static decimal ToDecimal(object? value) { throw null; } - public static decimal ToDecimal(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static decimal ToDecimal(sbyte value) { throw null; } - public static decimal ToDecimal(float value) { throw null; } - public static decimal ToDecimal(string? value) { throw null; } - public static decimal ToDecimal(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static decimal ToDecimal(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static decimal ToDecimal(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static decimal ToDecimal(ulong value) { throw null; } - public static double ToDouble(bool value) { throw null; } - public static double ToDouble(byte value) { throw null; } - public static double ToDouble(char value) { throw null; } - public static double ToDouble(System.DateTime value) { throw null; } - public static double ToDouble(decimal value) { throw null; } - public static double ToDouble(double value) { throw null; } - public static double ToDouble(short value) { throw null; } - public static double ToDouble(int value) { throw null; } - public static double ToDouble(long value) { throw null; } - public static double ToDouble(object? value) { throw null; } - public static double ToDouble(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static double ToDouble(sbyte value) { throw null; } - public static double ToDouble(float value) { throw null; } - public static double ToDouble(string? value) { throw null; } - public static double ToDouble(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static double ToDouble(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static double ToDouble(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static double ToDouble(ulong value) { throw null; } - public static short ToInt16(bool value) { throw null; } - public static short ToInt16(byte value) { throw null; } - public static short ToInt16(char value) { throw null; } - public static short ToInt16(System.DateTime value) { throw null; } - public static short ToInt16(decimal value) { throw null; } - public static short ToInt16(double value) { throw null; } - public static short ToInt16(short value) { throw null; } - public static short ToInt16(int value) { throw null; } - public static short ToInt16(long value) { throw null; } - public static short ToInt16(object? value) { throw null; } - public static short ToInt16(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static short ToInt16(sbyte value) { throw null; } - public static short ToInt16(float value) { throw null; } - public static short ToInt16(string? value) { throw null; } - public static short ToInt16(string? value, System.IFormatProvider? provider) { throw null; } - public static short ToInt16(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static short ToInt16(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static short ToInt16(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static short ToInt16(ulong value) { throw null; } - public static int ToInt32(bool value) { throw null; } - public static int ToInt32(byte value) { throw null; } - public static int ToInt32(char value) { throw null; } - public static int ToInt32(System.DateTime value) { throw null; } - public static int ToInt32(decimal value) { throw null; } - public static int ToInt32(double value) { throw null; } - public static int ToInt32(short value) { throw null; } - public static int ToInt32(int value) { throw null; } - public static int ToInt32(long value) { throw null; } - public static int ToInt32(object? value) { throw null; } - public static int ToInt32(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int ToInt32(sbyte value) { throw null; } - public static int ToInt32(float value) { throw null; } - public static int ToInt32(string? value) { throw null; } - public static int ToInt32(string? value, System.IFormatProvider? provider) { throw null; } - public static int ToInt32(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int ToInt32(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int ToInt32(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int ToInt32(ulong value) { throw null; } - public static long ToInt64(bool value) { throw null; } - public static long ToInt64(byte value) { throw null; } - public static long ToInt64(char value) { throw null; } - public static long ToInt64(System.DateTime value) { throw null; } - public static long ToInt64(decimal value) { throw null; } - public static long ToInt64(double value) { throw null; } - public static long ToInt64(short value) { throw null; } - public static long ToInt64(int value) { throw null; } - public static long ToInt64(long value) { throw null; } - public static long ToInt64(object? value) { throw null; } - public static long ToInt64(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static long ToInt64(sbyte value) { throw null; } - public static long ToInt64(float value) { throw null; } - public static long ToInt64(string? value) { throw null; } - public static long ToInt64(string? value, System.IFormatProvider? provider) { throw null; } - public static long ToInt64(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static long ToInt64(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static long ToInt64(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static long ToInt64(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(bool value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(byte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(char value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(System.DateTime value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(decimal value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(double value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(short value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(int value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(object? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(sbyte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(float value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(string? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(string value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte ToSByte(ulong value) { throw null; } - public static float ToSingle(bool value) { throw null; } - public static float ToSingle(byte value) { throw null; } - public static float ToSingle(char value) { throw null; } - public static float ToSingle(System.DateTime value) { throw null; } - public static float ToSingle(decimal value) { throw null; } - public static float ToSingle(double value) { throw null; } - public static float ToSingle(short value) { throw null; } - public static float ToSingle(int value) { throw null; } - public static float ToSingle(long value) { throw null; } - public static float ToSingle(object? value) { throw null; } - public static float ToSingle(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static float ToSingle(sbyte value) { throw null; } - public static float ToSingle(float value) { throw null; } - public static float ToSingle(string? value) { throw null; } - public static float ToSingle(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static float ToSingle(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static float ToSingle(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static float ToSingle(ulong value) { throw null; } - public static string ToString(bool value) { throw null; } - public static string ToString(bool value, System.IFormatProvider? provider) { throw null; } - public static string ToString(byte value) { throw null; } - public static string ToString(byte value, System.IFormatProvider? provider) { throw null; } - public static string ToString(byte value, int toBase) { throw null; } - public static string ToString(char value) { throw null; } - public static string ToString(char value, System.IFormatProvider? provider) { throw null; } - public static string ToString(System.DateTime value) { throw null; } - public static string ToString(System.DateTime value, System.IFormatProvider? provider) { throw null; } - public static string ToString(decimal value) { throw null; } - public static string ToString(decimal value, System.IFormatProvider? provider) { throw null; } - public static string ToString(double value) { throw null; } - public static string ToString(double value, System.IFormatProvider? provider) { throw null; } - public static string ToString(short value) { throw null; } - public static string ToString(short value, System.IFormatProvider? provider) { throw null; } - public static string ToString(short value, int toBase) { throw null; } - public static string ToString(int value) { throw null; } - public static string ToString(int value, System.IFormatProvider? provider) { throw null; } - public static string ToString(int value, int toBase) { throw null; } - public static string ToString(long value) { throw null; } - public static string ToString(long value, System.IFormatProvider? provider) { throw null; } - public static string ToString(long value, int toBase) { throw null; } - public static string? ToString(object? value) { throw null; } - public static string? ToString(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(sbyte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(sbyte value, System.IFormatProvider? provider) { throw null; } - public static string ToString(float value) { throw null; } - public static string ToString(float value, System.IFormatProvider? provider) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static string? ToString(string? value) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static string? ToString(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(ushort value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(uint value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static string ToString(ulong value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(bool value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(byte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(char value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(System.DateTime value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(decimal value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(double value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(short value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(int value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(object? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(sbyte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(float value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(string? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort ToUInt16(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(bool value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(byte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(char value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(System.DateTime value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(decimal value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(double value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(short value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(int value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(object? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(sbyte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(float value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(string? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint ToUInt32(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(bool value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(byte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(char value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(System.DateTime value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(decimal value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(double value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(short value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(int value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(object? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(object? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(sbyte value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(float value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(string? value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(string? value, System.IFormatProvider? provider) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(string? value, int fromBase) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(ushort value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong ToUInt64(ulong value) { throw null; } - public static bool TryFromBase64Chars(System.ReadOnlySpan chars, System.Span bytes, out int bytesWritten) { throw null; } - public static bool TryFromBase64String(string s, System.Span bytes, out int bytesWritten) { throw null; } - public static bool TryToBase64Chars(System.ReadOnlySpan bytes, System.Span chars, out int charsWritten, System.Base64FormattingOptions options = System.Base64FormattingOptions.None) { throw null; } - } - public static partial class Environment - { - public static string CommandLine { get { throw null; } } - public static string CurrentDirectory { get { throw null; } set { } } - public static int CurrentManagedThreadId { get { throw null; } } - public static int ExitCode { get { throw null; } set { } } - public static bool HasShutdownStarted { get { throw null; } } - public static bool Is64BitOperatingSystem { get { throw null; } } - public static bool Is64BitProcess { get { throw null; } } - public static string MachineName { get { throw null; } } - public static string NewLine { get { throw null; } } - public static System.OperatingSystem OSVersion { get { throw null; } } - public static int ProcessorCount { get { throw null; } } - public static string StackTrace { get { throw null; } } - public static string SystemDirectory { get { throw null; } } - public static int SystemPageSize { get { throw null; } } - public static int TickCount { get { throw null; } } - public static long TickCount64 { get { throw null; } } - public static string UserDomainName { get { throw null; } } - public static bool UserInteractive { get { throw null; } } - public static string UserName { get { throw null; } } - public static System.Version Version { get { throw null; } } - public static long WorkingSet { get { throw null; } } - [System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] - public static void Exit(int exitCode) => throw null; - public static string ExpandEnvironmentVariables(string name) { throw null; } - [System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] - public static void FailFast(string? message) => throw null; - [System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] - public static void FailFast(string? message, System.Exception? exception) => throw null; - public static string[] GetCommandLineArgs() { throw null; } - public static string? GetEnvironmentVariable(string variable) { throw null; } - public static string? GetEnvironmentVariable(string variable, System.EnvironmentVariableTarget target) { throw null; } - public static System.Collections.IDictionary GetEnvironmentVariables() { throw null; } - public static System.Collections.IDictionary GetEnvironmentVariables(System.EnvironmentVariableTarget target) { throw null; } - public static string GetFolderPath(System.Environment.SpecialFolder folder) { throw null; } - public static string GetFolderPath(System.Environment.SpecialFolder folder, System.Environment.SpecialFolderOption option) { throw null; } - public static string[] GetLogicalDrives() { throw null; } - public static void SetEnvironmentVariable(string variable, string? value) { } - public static void SetEnvironmentVariable(string variable, string? value, System.EnvironmentVariableTarget target) { } - public enum SpecialFolder - { - Desktop = 0, - Programs = 2, - MyDocuments = 5, - Personal = 5, - Favorites = 6, - Startup = 7, - Recent = 8, - SendTo = 9, - StartMenu = 11, - MyMusic = 13, - MyVideos = 14, - DesktopDirectory = 16, - MyComputer = 17, - NetworkShortcuts = 19, - Fonts = 20, - Templates = 21, - CommonStartMenu = 22, - CommonPrograms = 23, - CommonStartup = 24, - CommonDesktopDirectory = 25, - ApplicationData = 26, - PrinterShortcuts = 27, - LocalApplicationData = 28, - InternetCache = 32, - Cookies = 33, - History = 34, - CommonApplicationData = 35, - Windows = 36, - System = 37, - ProgramFiles = 38, - MyPictures = 39, - UserProfile = 40, - SystemX86 = 41, - ProgramFilesX86 = 42, - CommonProgramFiles = 43, - CommonProgramFilesX86 = 44, - CommonTemplates = 45, - CommonDocuments = 46, - CommonAdminTools = 47, - AdminTools = 48, - CommonMusic = 53, - CommonPictures = 54, - CommonVideos = 55, - Resources = 56, - LocalizedResources = 57, - CommonOemLinks = 58, - CDBurning = 59, - } - public enum SpecialFolderOption - { - None = 0, - DoNotVerify = 16384, - Create = 32768, - } - } - public enum EnvironmentVariableTarget - { - Process = 0, - User = 1, - Machine = 2, - } - public enum LoaderOptimization - { - NotSpecified = 0, - SingleDomain = 1, - MultiDomain = 2, - [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202")] - DomainMask = 3, - MultiDomainHost = 3, - [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202")] - DisallowBindings = 4, - } - [System.AttributeUsageAttribute(System.AttributeTargets.Method)] - public sealed partial class LoaderOptimizationAttribute : System.Attribute - { - public LoaderOptimizationAttribute(byte value) { } - public LoaderOptimizationAttribute(System.LoaderOptimization value) { } - public System.LoaderOptimization Value { get { throw null; } } - } - public static partial class Math - { - public const double E = 2.718281828459045; - public const double PI = 3.141592653589793; - public static decimal Abs(decimal value) { throw null; } - public static double Abs(double value) { throw null; } - public static short Abs(short value) { throw null; } - public static int Abs(int value) { throw null; } - public static long Abs(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte Abs(sbyte value) { throw null; } - public static float Abs(float value) { throw null; } - public static double Acos(double d) { throw null; } - public static double Acosh(double d) { throw null; } - public static double Asin(double d) { throw null; } - public static double Asinh(double d) { throw null; } - public static double Atan(double d) { throw null; } - public static double Atan2(double y, double x) { throw null; } - public static double Atanh(double d) { throw null; } - public static long BigMul(int a, int b) { throw null; } - public static double BitDecrement(double x) { throw null; } - public static double BitIncrement(double x) { throw null; } - public static double Cbrt(double d) { throw null; } - public static decimal Ceiling(decimal d) { throw null; } - public static double Ceiling(double a) { throw null; } - public static byte Clamp(byte value, byte min, byte max) { throw null; } - public static decimal Clamp(decimal value, decimal min, decimal max) { throw null; } - public static double Clamp(double value, double min, double max) { throw null; } - public static short Clamp(short value, short min, short max) { throw null; } - public static int Clamp(int value, int min, int max) { throw null; } - public static long Clamp(long value, long min, long max) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte Clamp(sbyte value, sbyte min, sbyte max) { throw null; } - public static float Clamp(float value, float min, float max) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort Clamp(ushort value, ushort min, ushort max) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint Clamp(uint value, uint min, uint max) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong Clamp(ulong value, ulong min, ulong max) { throw null; } - public static double CopySign(double x, double y) { throw null; } - public static double Cos(double d) { throw null; } - public static double Cosh(double value) { throw null; } - public static int DivRem(int a, int b, out int result) { throw null; } - public static long DivRem(long a, long b, out long result) { throw null; } - public static double Exp(double d) { throw null; } - public static decimal Floor(decimal d) { throw null; } - public static double Floor(double d) { throw null; } - public static double FusedMultiplyAdd(double x, double y, double z) { throw null; } - public static double IEEERemainder(double x, double y) { throw null; } - public static int ILogB(double x) { throw null; } - public static double Log(double d) { throw null; } - public static double Log(double a, double newBase) { throw null; } - public static double Log10(double d) { throw null; } - public static double Log2(double x) { throw null; } - public static byte Max(byte val1, byte val2) { throw null; } - public static decimal Max(decimal val1, decimal val2) { throw null; } - public static double Max(double val1, double val2) { throw null; } - public static short Max(short val1, short val2) { throw null; } - public static int Max(int val1, int val2) { throw null; } - public static long Max(long val1, long val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte Max(sbyte val1, sbyte val2) { throw null; } - public static float Max(float val1, float val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort Max(ushort val1, ushort val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint Max(uint val1, uint val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong Max(ulong val1, ulong val2) { throw null; } - public static double MaxMagnitude(double x, double y) { throw null; } - public static byte Min(byte val1, byte val2) { throw null; } - public static decimal Min(decimal val1, decimal val2) { throw null; } - public static double Min(double val1, double val2) { throw null; } - public static short Min(short val1, short val2) { throw null; } - public static int Min(int val1, int val2) { throw null; } - public static long Min(long val1, long val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static sbyte Min(sbyte val1, sbyte val2) { throw null; } - public static float Min(float val1, float val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ushort Min(ushort val1, ushort val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint Min(uint val1, uint val2) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong Min(ulong val1, ulong val2) { throw null; } - public static double MinMagnitude(double x, double y) { throw null; } - public static double Pow(double x, double y) { throw null; } - public static decimal Round(decimal d) { throw null; } - public static decimal Round(decimal d, int decimals) { throw null; } - public static decimal Round(decimal d, int decimals, System.MidpointRounding mode) { throw null; } - public static decimal Round(decimal d, System.MidpointRounding mode) { throw null; } - public static double Round(double a) { throw null; } - public static double Round(double value, int digits) { throw null; } - public static double Round(double value, int digits, System.MidpointRounding mode) { throw null; } - public static double Round(double value, System.MidpointRounding mode) { throw null; } - public static double ScaleB(double x, int n) { throw null; } - public static int Sign(decimal value) { throw null; } - public static int Sign(double value) { throw null; } - public static int Sign(short value) { throw null; } - public static int Sign(int value) { throw null; } - public static int Sign(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int Sign(sbyte value) { throw null; } - public static int Sign(float value) { throw null; } - public static double Sin(double a) { throw null; } - public static double Sinh(double value) { throw null; } - public static double Sqrt(double d) { throw null; } - public static double Tan(double a) { throw null; } - public static double Tanh(double value) { throw null; } - public static decimal Truncate(decimal d) { throw null; } - public static double Truncate(double d) { throw null; } - } - public static partial class MathF - { - public const float E = 2.7182817f; - public const float PI = 3.1415927f; - public static float Abs(float x) { throw null; } - public static float Acos(float x) { throw null; } - public static float Acosh(float x) { throw null; } - public static float Asin(float x) { throw null; } - public static float Asinh(float x) { throw null; } - public static float Atan(float x) { throw null; } - public static float Atan2(float y, float x) { throw null; } - public static float Atanh(float x) { throw null; } - public static float BitDecrement(float x) { throw null; } - public static float BitIncrement(float x) { throw null; } - public static float Cbrt(float x) { throw null; } - public static float Ceiling(float x) { throw null; } - public static float CopySign(float x, float y) { throw null; } - public static float Cos(float x) { throw null; } - public static float Cosh(float x) { throw null; } - public static float Exp(float x) { throw null; } - public static float Floor(float x) { throw null; } - public static float FusedMultiplyAdd(float x, float y, float z) { throw null; } - public static float IEEERemainder(float x, float y) { throw null; } - public static int ILogB(float x) { throw null; } - public static float Log(float x) { throw null; } - public static float Log(float x, float y) { throw null; } - public static float Log10(float x) { throw null; } - public static float Log2(float x) { throw null; } - public static float Max(float x, float y) { throw null; } - public static float MaxMagnitude(float x, float y) { throw null; } - public static float Min(float x, float y) { throw null; } - public static float MinMagnitude(float x, float y) { throw null; } - public static float Pow(float x, float y) { throw null; } - public static float Round(float x) { throw null; } - public static float Round(float x, int digits) { throw null; } - public static float Round(float x, int digits, System.MidpointRounding mode) { throw null; } - public static float Round(float x, System.MidpointRounding mode) { throw null; } - public static float ScaleB(float x, int n) { throw null; } - public static int Sign(float x) { throw null; } - public static float Sin(float x) { throw null; } - public static float Sinh(float x) { throw null; } - public static float Sqrt(float x) { throw null; } - public static float Tan(float x) { throw null; } - public static float Tanh(float x) { throw null; } - public static float Truncate(float x) { throw null; } - } - public sealed partial class OperatingSystem : System.ICloneable, System.Runtime.Serialization.ISerializable - { - public OperatingSystem(System.PlatformID platform, System.Version version) { } - public System.PlatformID Platform { get { throw null; } } - public string ServicePack { get { throw null; } } - public System.Version Version { get { throw null; } } - public string VersionString { get { throw null; } } - public object Clone() { throw null; } - public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public override string ToString() { throw null; } - } - public enum PlatformID - { - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Win32S = 0, - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Win32Windows = 1, - Win32NT = 2, - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - WinCE = 3, - Unix = 4, - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - Xbox = 5, - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - MacOSX = 6, - } - public partial class Progress : System.IProgress - { - public Progress() { } - public Progress(System.Action handler) { } - public event System.EventHandler? ProgressChanged { add { } remove { } } - protected virtual void OnReport(T value) { } - void System.IProgress.Report(T value) { } - } - public partial class Random - { - public Random() { } - public Random(int Seed) { } - public virtual int Next() { throw null; } - public virtual int Next(int maxValue) { throw null; } - public virtual int Next(int minValue, int maxValue) { throw null; } - public virtual void NextBytes(byte[] buffer) { } - public virtual void NextBytes(System.Span buffer) { } - public virtual double NextDouble() { throw null; } - protected virtual double Sample() { throw null; } - } - public delegate System.Reflection.Assembly? ResolveEventHandler(object? sender, System.ResolveEventArgs args); - public abstract partial class StringComparer : System.Collections.Generic.IComparer, System.Collections.Generic.IEqualityComparer, System.Collections.IComparer, System.Collections.IEqualityComparer - { - protected StringComparer() { } - public static System.StringComparer CurrentCulture { get { throw null; } } - public static System.StringComparer CurrentCultureIgnoreCase { get { throw null; } } - public static System.StringComparer InvariantCulture { get { throw null; } } - public static System.StringComparer InvariantCultureIgnoreCase { get { throw null; } } - public static System.StringComparer Ordinal { get { throw null; } } - public static System.StringComparer OrdinalIgnoreCase { get { throw null; } } - public int Compare(object? x, object? y) { throw null; } - public abstract int Compare(string? x, string? y); - public static System.StringComparer Create(System.Globalization.CultureInfo culture, bool ignoreCase) { throw null; } - public static System.StringComparer Create(System.Globalization.CultureInfo culture, System.Globalization.CompareOptions options) { throw null; } - public new bool Equals(object? x, object? y) { throw null; } - public abstract bool Equals(string? x, string? y); - public static System.StringComparer FromComparison(System.StringComparison comparisonType) { throw null; } - public int GetHashCode(object obj) { throw null; } -#pragma warning disable CS8614 // Remove warning disable when nullable attributes are respected - public abstract int GetHashCode(string obj); -#pragma warning restore CS8614 - } - public static partial class StringNormalizationExtensions - { - public static bool IsNormalized(this string value) { throw null; } - public static bool IsNormalized(this string value, System.Text.NormalizationForm normalizationForm) { throw null; } - public static string Normalize(this string value) { throw null; } - public static string Normalize(this string value, System.Text.NormalizationForm normalizationForm) { throw null; } - } - public partial class UriBuilder - { - public UriBuilder() { } - public UriBuilder(string uri) { } - public UriBuilder(string? schemeName, string? hostName) { } - public UriBuilder(string? scheme, string? host, int portNumber) { } - public UriBuilder(string? scheme, string? host, int port, string? pathValue) { } - public UriBuilder(string? scheme, string? host, int port, string? path, string? extraValue) { } - public UriBuilder(System.Uri uri) { } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string Fragment { get { throw null; } set { } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string Host { get { throw null; } set { } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string Password { get { throw null; } set { } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string Path { get { throw null; } set { } } - public int Port { get { throw null; } set { } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string Query { get { throw null; } set { } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string Scheme { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public string UserName { get { throw null; } set { } } - public override bool Equals(object? rparam) { throw null; } - public override int GetHashCode() { throw null; } - public override string ToString() { throw null; } - } -} -namespace System.CodeDom.Compiler -{ - public partial class IndentedTextWriter : System.IO.TextWriter - { - public const string DefaultTabString = " "; - public IndentedTextWriter(System.IO.TextWriter writer) { } - public IndentedTextWriter(System.IO.TextWriter writer, string tabString) { } - public override System.Text.Encoding Encoding { get { throw null; } } - public int Indent { get { throw null; } set { } } - public System.IO.TextWriter InnerWriter { get { throw null; } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public override string NewLine { get { throw null; } set { } } - public override void Close() { } - public override void Flush() { } - protected virtual void OutputTabs() { } - public override void Write(bool value) { } - public override void Write(char value) { } - public override void Write(char[]? buffer) { } - public override void Write(char[] buffer, int index, int count) { } - public override void Write(double value) { } - public override void Write(int value) { } - public override void Write(long value) { } - public override void Write(object? value) { } - public override void Write(float value) { } - public override void Write(string? s) { } - public override void Write(string format, object? arg0) { } - public override void Write(string format, object? arg0, object? arg1) { } - public override void Write(string format, params object?[] arg) { } - public override void WriteLine() { } - public override void WriteLine(bool value) { } - public override void WriteLine(char value) { } - public override void WriteLine(char[]? buffer) { } - public override void WriteLine(char[] buffer, int index, int count) { } - public override void WriteLine(double value) { } - public override void WriteLine(int value) { } - public override void WriteLine(long value) { } - public override void WriteLine(object? value) { } - public override void WriteLine(float value) { } - public override void WriteLine(string? s) { } - public override void WriteLine(string format, object? arg0) { } - public override void WriteLine(string format, object? arg0, object? arg1) { } - public override void WriteLine(string format, params object?[] arg) { } - [System.CLSCompliantAttribute(false)] - public override void WriteLine(uint value) { } - public void WriteLineNoTabs(string? s) { } - } -} -namespace System.Collections -{ - public partial class ArrayList : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ICloneable - { - public ArrayList() { } - public ArrayList(System.Collections.ICollection c) { } - public ArrayList(int capacity) { } - public virtual int Capacity { get { throw null; } set { } } - public virtual int Count { get { throw null; } } - public virtual bool IsFixedSize { get { throw null; } } - public virtual bool IsReadOnly { get { throw null; } } - public virtual bool IsSynchronized { get { throw null; } } - public virtual object? this[int index] { get { throw null; } set { } } - public virtual object SyncRoot { get { throw null; } } - public static System.Collections.ArrayList Adapter(System.Collections.IList list) { throw null; } - public virtual int Add(object? value) { throw null; } - public virtual void AddRange(System.Collections.ICollection c) { } - public virtual int BinarySearch(int index, int count, object? value, System.Collections.IComparer? comparer) { throw null; } - public virtual int BinarySearch(object? value) { throw null; } - public virtual int BinarySearch(object? value, System.Collections.IComparer? comparer) { throw null; } - public virtual void Clear() { } - public virtual object Clone() { throw null; } - public virtual bool Contains(object? item) { throw null; } - public virtual void CopyTo(System.Array array) { } - public virtual void CopyTo(System.Array array, int arrayIndex) { } - public virtual void CopyTo(int index, System.Array array, int arrayIndex, int count) { } - public static System.Collections.ArrayList FixedSize(System.Collections.ArrayList list) { throw null; } - public static System.Collections.IList FixedSize(System.Collections.IList list) { throw null; } - public virtual System.Collections.IEnumerator GetEnumerator() { throw null; } - public virtual System.Collections.IEnumerator GetEnumerator(int index, int count) { throw null; } - public virtual System.Collections.ArrayList GetRange(int index, int count) { throw null; } - public virtual int IndexOf(object? value) { throw null; } - public virtual int IndexOf(object? value, int startIndex) { throw null; } - public virtual int IndexOf(object? value, int startIndex, int count) { throw null; } - public virtual void Insert(int index, object? value) { } - public virtual void InsertRange(int index, System.Collections.ICollection c) { } - public virtual int LastIndexOf(object? value) { throw null; } - public virtual int LastIndexOf(object? value, int startIndex) { throw null; } - public virtual int LastIndexOf(object? value, int startIndex, int count) { throw null; } - public static System.Collections.ArrayList ReadOnly(System.Collections.ArrayList list) { throw null; } - public static System.Collections.IList ReadOnly(System.Collections.IList list) { throw null; } - public virtual void Remove(object? obj) { } - public virtual void RemoveAt(int index) { } - public virtual void RemoveRange(int index, int count) { } - public static System.Collections.ArrayList Repeat(object? value, int count) { throw null; } - public virtual void Reverse() { } - public virtual void Reverse(int index, int count) { } - public virtual void SetRange(int index, System.Collections.ICollection c) { } - public virtual void Sort() { } - public virtual void Sort(System.Collections.IComparer? comparer) { } - public virtual void Sort(int index, int count, System.Collections.IComparer? comparer) { } - public static System.Collections.ArrayList Synchronized(System.Collections.ArrayList list) { throw null; } - public static System.Collections.IList Synchronized(System.Collections.IList list) { throw null; } - public virtual object?[] ToArray() { throw null; } - public virtual System.Array ToArray(System.Type type) { throw null; } - public virtual void TrimToSize() { } - } - public sealed partial class Comparer : System.Collections.IComparer, System.Runtime.Serialization.ISerializable - { - public static readonly System.Collections.Comparer Default; - public static readonly System.Collections.Comparer DefaultInvariant; - public Comparer(System.Globalization.CultureInfo culture) { } - public int Compare(object? a, object? b) { throw null; } - public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } - public partial class Hashtable : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable, System.ICloneable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable - { - public Hashtable() { } - public Hashtable(System.Collections.IDictionary d) { } - public Hashtable(System.Collections.IDictionary d, System.Collections.IEqualityComparer? equalityComparer) { } - [System.ObsoleteAttribute("Please use Hashtable(IDictionary, IEqualityComparer) instead.")] - public Hashtable(System.Collections.IDictionary d, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } - public Hashtable(System.Collections.IDictionary d, float loadFactor) { } - public Hashtable(System.Collections.IDictionary d, float loadFactor, System.Collections.IEqualityComparer? equalityComparer) { } - [System.ObsoleteAttribute("Please use Hashtable(IDictionary, float, IEqualityComparer) instead.")] - public Hashtable(System.Collections.IDictionary d, float loadFactor, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } - public Hashtable(System.Collections.IEqualityComparer? equalityComparer) { } - [System.ObsoleteAttribute("Please use Hashtable(IEqualityComparer) instead.")] - public Hashtable(System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } - public Hashtable(int capacity) { } - public Hashtable(int capacity, System.Collections.IEqualityComparer? equalityComparer) { } - [System.ObsoleteAttribute("Please use Hashtable(int, IEqualityComparer) instead.")] - public Hashtable(int capacity, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } - public Hashtable(int capacity, float loadFactor) { } - public Hashtable(int capacity, float loadFactor, System.Collections.IEqualityComparer? equalityComparer) { } - [System.ObsoleteAttribute("Please use Hashtable(int, float, IEqualityComparer) instead.")] - public Hashtable(int capacity, float loadFactor, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } - protected Hashtable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - [System.ObsoleteAttribute("Please use KeyComparer properties.")] - protected System.Collections.IComparer? comparer { get { throw null; } set { } } - public virtual int Count { get { throw null; } } - protected System.Collections.IEqualityComparer? EqualityComparer { get { throw null; } } - [System.ObsoleteAttribute("Please use EqualityComparer property.")] - protected System.Collections.IHashCodeProvider? hcp { get { throw null; } set { } } - public virtual bool IsFixedSize { get { throw null; } } - public virtual bool IsReadOnly { get { throw null; } } - public virtual bool IsSynchronized { get { throw null; } } - public virtual object? this[object key] { get { throw null; } set { } } - public virtual System.Collections.ICollection Keys { get { throw null; } } - public virtual object SyncRoot { get { throw null; } } - public virtual System.Collections.ICollection Values { get { throw null; } } - public virtual void Add(object key, object? value) { } - public virtual void Clear() { } - public virtual object Clone() { throw null; } - public virtual bool Contains(object key) { throw null; } - public virtual bool ContainsKey(object key) { throw null; } - public virtual bool ContainsValue(object? value) { throw null; } - public virtual void CopyTo(System.Array array, int arrayIndex) { } - public virtual System.Collections.IDictionaryEnumerator GetEnumerator() { throw null; } - protected virtual int GetHash(object key) { throw null; } - public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - protected virtual bool KeyEquals(object? item, object key) { throw null; } - public virtual void OnDeserialization(object? sender) { } - public virtual void Remove(object key) { } - public static System.Collections.Hashtable Synchronized(System.Collections.Hashtable table) { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - [System.ObsoleteAttribute("Please use IEqualityComparer instead.")] - public partial interface IHashCodeProvider - { - int GetHashCode(object obj); - } -} -namespace System.Diagnostics -{ - public partial class Stopwatch - { - public static readonly long Frequency; - public static readonly bool IsHighResolution; - public Stopwatch() { } - public System.TimeSpan Elapsed { get { throw null; } } - public long ElapsedMilliseconds { get { throw null; } } - public long ElapsedTicks { get { throw null; } } - public bool IsRunning { get { throw null; } } - public static long GetTimestamp() { throw null; } - public void Reset() { } - public void Restart() { } - public void Start() { } - public static System.Diagnostics.Stopwatch StartNew() { throw null; } - public void Stop() { } - } -} -namespace System.Globalization -{ - public static partial class GlobalizationExtensions - { - public static System.StringComparer GetStringComparer(this System.Globalization.CompareInfo compareInfo, System.Globalization.CompareOptions options) { throw null; } - } -} -namespace System.IO -{ - public partial class BinaryReader : System.IDisposable - { - public BinaryReader(System.IO.Stream input) { } - public BinaryReader(System.IO.Stream input, System.Text.Encoding encoding) { } - public BinaryReader(System.IO.Stream input, System.Text.Encoding encoding, bool leaveOpen) { } - public virtual System.IO.Stream BaseStream { get { throw null; } } - public virtual void Close() { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - protected virtual void FillBuffer(int numBytes) { } - public virtual int PeekChar() { throw null; } - public virtual int Read() { throw null; } - public virtual int Read(byte[] buffer, int index, int count) { throw null; } - public virtual int Read(char[] buffer, int index, int count) { throw null; } - public virtual int Read(System.Span buffer) { throw null; } - public virtual int Read(System.Span buffer) { throw null; } - protected internal int Read7BitEncodedInt() { throw null; } - public virtual bool ReadBoolean() { throw null; } - public virtual byte ReadByte() { throw null; } - public virtual byte[] ReadBytes(int count) { throw null; } - public virtual char ReadChar() { throw null; } - public virtual char[] ReadChars(int count) { throw null; } - public virtual decimal ReadDecimal() { throw null; } - public virtual double ReadDouble() { throw null; } - public virtual short ReadInt16() { throw null; } - public virtual int ReadInt32() { throw null; } - public virtual long ReadInt64() { throw null; } - [System.CLSCompliantAttribute(false)] - public virtual sbyte ReadSByte() { throw null; } - public virtual float ReadSingle() { throw null; } - public virtual string ReadString() { throw null; } - [System.CLSCompliantAttribute(false)] - public virtual ushort ReadUInt16() { throw null; } - [System.CLSCompliantAttribute(false)] - public virtual uint ReadUInt32() { throw null; } - [System.CLSCompliantAttribute(false)] - public virtual ulong ReadUInt64() { throw null; } - } - public partial class BinaryWriter : System.IAsyncDisposable, System.IDisposable - { - public static readonly System.IO.BinaryWriter Null; - protected System.IO.Stream OutStream; - protected BinaryWriter() { } - public BinaryWriter(System.IO.Stream output) { } - public BinaryWriter(System.IO.Stream output, System.Text.Encoding encoding) { } - public BinaryWriter(System.IO.Stream output, System.Text.Encoding encoding, bool leaveOpen) { } - public virtual System.IO.Stream BaseStream { get { throw null; } } - public virtual void Close() { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - public virtual System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } - public virtual void Flush() { } - public virtual long Seek(int offset, System.IO.SeekOrigin origin) { throw null; } - public virtual void Write(bool value) { } - public virtual void Write(byte value) { } - public virtual void Write(byte[] buffer) { } - public virtual void Write(byte[] buffer, int index, int count) { } - public virtual void Write(char ch) { } - public virtual void Write(char[] chars) { } - public virtual void Write(char[] chars, int index, int count) { } - public virtual void Write(decimal value) { } - public virtual void Write(double value) { } - public virtual void Write(short value) { } - public virtual void Write(int value) { } - public virtual void Write(long value) { } - public virtual void Write(System.ReadOnlySpan buffer) { } - public virtual void Write(System.ReadOnlySpan chars) { } - [System.CLSCompliantAttribute(false)] - public virtual void Write(sbyte value) { } - public virtual void Write(float value) { } - public virtual void Write(string value) { } - [System.CLSCompliantAttribute(false)] - public virtual void Write(ushort value) { } - [System.CLSCompliantAttribute(false)] - public virtual void Write(uint value) { } - [System.CLSCompliantAttribute(false)] - public virtual void Write(ulong value) { } - protected void Write7BitEncodedInt(int value) { } - } - public sealed partial class BufferedStream : System.IO.Stream - { - public BufferedStream(System.IO.Stream stream) { } - public BufferedStream(System.IO.Stream stream, int bufferSize) { } - public int BufferSize { get { throw null; } } - public override bool CanRead { get { throw null; } } - public override bool CanSeek { get { throw null; } } - public override bool CanWrite { get { throw null; } } - public override long Length { get { throw null; } } - public override long Position { get { throw null; } set { } } - public System.IO.Stream UnderlyingStream { get { throw null; } } - public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } - public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } - public override void CopyTo(System.IO.Stream destination, int bufferSize) { } - public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } - protected override void Dispose(bool disposing) { } - public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } - public override int EndRead(System.IAsyncResult asyncResult) { throw null; } - public override void EndWrite(System.IAsyncResult asyncResult) { } - public override void Flush() { } - public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - public override int Read(byte[] array, int offset, int count) { throw null; } - public override int Read(System.Span destination) { throw null; } - public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override int ReadByte() { throw null; } - public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } - public override void SetLength(long value) { } - public override void Write(byte[] array, int offset, int count) { } - public override void Write(System.ReadOnlySpan buffer) { } - public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override void WriteByte(byte value) { } - } - public partial class EndOfStreamException : System.IO.IOException - { - public EndOfStreamException() { } - protected EndOfStreamException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public EndOfStreamException(string? message) { } - public EndOfStreamException(string? message, System.Exception? innerException) { } - } - public sealed partial class InvalidDataException : System.SystemException - { - public InvalidDataException() { } - public InvalidDataException(string? message) { } - public InvalidDataException(string? message, System.Exception? innerException) { } - } - public partial class MemoryStream : System.IO.Stream - { - public MemoryStream() { } - public MemoryStream(byte[] buffer) { } - public MemoryStream(byte[] buffer, bool writable) { } - public MemoryStream(byte[] buffer, int index, int count) { } - public MemoryStream(byte[] buffer, int index, int count, bool writable) { } - public MemoryStream(byte[] buffer, int index, int count, bool writable, bool publiclyVisible) { } - public MemoryStream(int capacity) { } - public override bool CanRead { get { throw null; } } - public override bool CanSeek { get { throw null; } } - public override bool CanWrite { get { throw null; } } - public virtual int Capacity { get { throw null; } set { } } - public override long Length { get { throw null; } } - public override long Position { get { throw null; } set { } } - public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } - public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } - public override void CopyTo(System.IO.Stream destination, int bufferSize) { } - public override void CopyTo(System.Buffers.ReadOnlySpanAction callback, object? state, int bufferSize) { } - public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.Task CopyToAsync(Func, object?, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> callback, object? state, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } - protected override void Dispose(bool disposing) { } - public override int EndRead(System.IAsyncResult asyncResult) { throw null; } - public override void EndWrite(System.IAsyncResult asyncResult) { } - public override void Flush() { } - public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } - public virtual byte[] GetBuffer() { throw null; } - public override int Read(byte[] buffer, int offset, int count) { throw null; } - public override int Read(System.Span destination) { throw null; } - public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override int ReadByte() { throw null; } - public override long Seek(long offset, System.IO.SeekOrigin loc) { throw null; } - public override void SetLength(long value) { } - public virtual byte[] ToArray() { throw null; } - public virtual bool TryGetBuffer(out System.ArraySegment buffer) { throw null; } - public override void Write(byte[] buffer, int offset, int count) { } - public override void Write(System.ReadOnlySpan source) { } - public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override void WriteByte(byte value) { } - public virtual void WriteTo(System.IO.Stream stream) { } - } - public static partial class Path - { - public static readonly char AltDirectorySeparatorChar; - public static readonly char DirectorySeparatorChar; - [System.ObsoleteAttribute("Please use GetInvalidPathChars or GetInvalidFileNameChars instead.")] - public static readonly char[] InvalidPathChars; - public static readonly char PathSeparator; - public static readonly char VolumeSeparatorChar; - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] - public static string? ChangeExtension(string? path, string? extension) { throw null; } - public static string Combine(string path1, string path2) { throw null; } - public static string Combine(string path1, string path2, string path3) { throw null; } - public static string Combine(string path1, string path2, string path3, string path4) { throw null; } - public static string Combine(params string[] paths) { throw null; } - public static bool EndsInDirectorySeparator(System.ReadOnlySpan path) { throw null; } - public static bool EndsInDirectorySeparator(string path) { throw null; } - public static System.ReadOnlySpan GetDirectoryName(System.ReadOnlySpan path) { throw null; } - public static string? GetDirectoryName(string? path) { throw null; } - public static System.ReadOnlySpan GetExtension(System.ReadOnlySpan path) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] - public static string? GetExtension(string? path) { throw null; } - public static System.ReadOnlySpan GetFileName(System.ReadOnlySpan path) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] - public static string? GetFileName(string? path) { throw null; } - public static System.ReadOnlySpan GetFileNameWithoutExtension(System.ReadOnlySpan path) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] - public static string? GetFileNameWithoutExtension(string? path) { throw null; } - public static string GetFullPath(string path) { throw null; } - public static string GetFullPath(string path, string basePath) { throw null; } - public static char[] GetInvalidFileNameChars() { throw null; } - public static char[] GetInvalidPathChars() { throw null; } - public static System.ReadOnlySpan GetPathRoot(System.ReadOnlySpan path) { throw null; } - public static string? GetPathRoot(string? path) { throw null; } - public static string GetRandomFileName() { throw null; } - public static string GetRelativePath(string relativeTo, string path) { throw null; } - public static string GetTempFileName() { throw null; } - public static string GetTempPath() { throw null; } - public static bool HasExtension(System.ReadOnlySpan path) { throw null; } - public static bool HasExtension(string? path) { throw null; } - public static bool IsPathFullyQualified(System.ReadOnlySpan path) { throw null; } - public static bool IsPathFullyQualified(string path) { throw null; } - public static bool IsPathRooted(System.ReadOnlySpan path) { throw null; } - public static bool IsPathRooted([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] string? path) { throw null; } - public static string Join(System.ReadOnlySpan path1, System.ReadOnlySpan path2) { throw null; } - public static string Join(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.ReadOnlySpan path3) { throw null; } - public static string Join(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.ReadOnlySpan path3, System.ReadOnlySpan path4) { throw null; } - public static string Join(string? path1, string? path2) { throw null; } - public static string Join(string? path1, string? path2, string? path3) { throw null; } - public static string Join(string? path1, string? path2, string? path3, string? path4) { throw null; } - public static string Join(params string?[] paths) { throw null; } - public static System.ReadOnlySpan TrimEndingDirectorySeparator(System.ReadOnlySpan path) { throw null; } - public static string TrimEndingDirectorySeparator(string path) { throw null; } - public static bool TryJoin(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.ReadOnlySpan path3, System.Span destination, out int charsWritten) { throw null; } - public static bool TryJoin(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.Span destination, out int charsWritten) { throw null; } - } - public partial class StreamReader : System.IO.TextReader - { - public static readonly new System.IO.StreamReader Null; - public StreamReader(System.IO.Stream stream) { } - public StreamReader(System.IO.Stream stream, bool detectEncodingFromByteOrderMarks) { } - public StreamReader(System.IO.Stream stream, System.Text.Encoding encoding) { } - public StreamReader(System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } - public StreamReader(System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } - public StreamReader(System.IO.Stream stream, System.Text.Encoding? encoding = null, bool detectEncodingFromByteOrderMarks = true, int bufferSize = -1, bool leaveOpen = false) { } - public StreamReader(string path) { } - public StreamReader(string path, bool detectEncodingFromByteOrderMarks) { } - public StreamReader(string path, System.Text.Encoding encoding) { } - public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } - public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } - public virtual System.IO.Stream BaseStream { get { throw null; } } - public virtual System.Text.Encoding CurrentEncoding { get { throw null; } } - public bool EndOfStream { get { throw null; } } - public override void Close() { } - public void DiscardBufferedData() { } - protected override void Dispose(bool disposing) { } - public override int Peek() { throw null; } - public override int Read() { throw null; } - public override int Read(char[] buffer, int index, int count) { throw null; } - public override int Read(System.Span buffer) { throw null; } - public override System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override int ReadBlock(char[] buffer, int index, int count) { throw null; } - public override int ReadBlock(System.Span buffer) { throw null; } - public override System.Threading.Tasks.Task ReadBlockAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.ValueTask ReadBlockAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override string? ReadLine() { throw null; } - public override System.Threading.Tasks.Task ReadLineAsync() { throw null; } - public override string ReadToEnd() { throw null; } - public override System.Threading.Tasks.Task ReadToEndAsync() { throw null; } - } - public partial class StreamWriter : System.IO.TextWriter - { - public static readonly new System.IO.StreamWriter Null; - public StreamWriter(System.IO.Stream stream) { } - public StreamWriter(System.IO.Stream stream, System.Text.Encoding encoding) { } - public StreamWriter(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) { } - public StreamWriter(System.IO.Stream stream, System.Text.Encoding? encoding = null, int bufferSize = -1, bool leaveOpen = false) { } - public StreamWriter(string path) { } - public StreamWriter(string path, bool append) { } - public StreamWriter(string path, bool append, System.Text.Encoding encoding) { } - public StreamWriter(string path, bool append, System.Text.Encoding encoding, int bufferSize) { } - public virtual bool AutoFlush { get { throw null; } set { } } - public virtual System.IO.Stream BaseStream { get { throw null; } } - public override System.Text.Encoding Encoding { get { throw null; } } - public override void Close() { } - protected override void Dispose(bool disposing) { } - public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } - public override void Flush() { } - public override System.Threading.Tasks.Task FlushAsync() { throw null; } - public override void Write(char value) { } - public override void Write(char[]? buffer) { } - public override void Write(char[] buffer, int index, int count) { } - public override void Write(System.ReadOnlySpan buffer) { } - public override void Write(string? value) { } - public override void Write(string format, object? arg0) { } - public override void Write(string format, object? arg0, object? arg1) { } - public override void Write(string format, object? arg0, object? arg1, object? arg2) { } - public override void Write(string format, params object?[] arg) { } - public override System.Threading.Tasks.Task WriteAsync(char value) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(string? value) { throw null; } - public override void WriteLine(System.ReadOnlySpan buffer) { } - public override void WriteLine(string? value) { } - public override void WriteLine(string format, object? arg0) { } - public override void WriteLine(string format, object? arg0, object? arg1) { } - public override void WriteLine(string format, object? arg0, object? arg1, object? arg2) { } - public override void WriteLine(string format, params object?[] arg) { } - public override System.Threading.Tasks.Task WriteLineAsync() { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(string? value) { throw null; } - } - public partial class StringReader : System.IO.TextReader - { - public StringReader(string s) { } - public override void Close() { } - protected override void Dispose(bool disposing) { } - public override int Peek() { throw null; } - public override int Read() { throw null; } - public override int Read(char[] buffer, int index, int count) { throw null; } - public override int Read(System.Span buffer) { throw null; } - public override System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override int ReadBlock(System.Span buffer) { throw null; } - public override System.Threading.Tasks.Task ReadBlockAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.ValueTask ReadBlockAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override string? ReadLine() { throw null; } - public override System.Threading.Tasks.Task ReadLineAsync() { throw null; } - public override string ReadToEnd() { throw null; } - public override System.Threading.Tasks.Task ReadToEndAsync() { throw null; } - } - public partial class StringWriter : System.IO.TextWriter - { - public StringWriter() { } - public StringWriter(System.IFormatProvider? formatProvider) { } - public StringWriter(System.Text.StringBuilder sb) { } - public StringWriter(System.Text.StringBuilder sb, System.IFormatProvider? formatProvider) { } - public override System.Text.Encoding Encoding { get { throw null; } } - public override void Close() { } - protected override void Dispose(bool disposing) { } - public override System.Threading.Tasks.Task FlushAsync() { throw null; } - public virtual System.Text.StringBuilder GetStringBuilder() { throw null; } - public override string ToString() { throw null; } - public override void Write(char value) { } - public override void Write(char[] buffer, int index, int count) { } - public override void Write(System.ReadOnlySpan buffer) { } - public override void Write(string? value) { } - public override void Write(System.Text.StringBuilder? value) { } - public override System.Threading.Tasks.Task WriteAsync(char value) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(string? value) { throw null; } - public override System.Threading.Tasks.Task WriteAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override void WriteLine(System.ReadOnlySpan buffer) { } - public override void WriteLine(System.Text.StringBuilder? value) { } - public override System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(string? value) { throw null; } - public override System.Threading.Tasks.Task WriteLineAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public abstract partial class TextReader : System.MarshalByRefObject, System.IDisposable - { - public static readonly System.IO.TextReader Null; - protected TextReader() { } - public virtual void Close() { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - public virtual int Peek() { throw null; } - public virtual int Read() { throw null; } - public virtual int Read(char[] buffer, int index, int count) { throw null; } - public virtual int Read(System.Span buffer) { throw null; } - public virtual System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) { throw null; } - public virtual System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual int ReadBlock(char[] buffer, int index, int count) { throw null; } - public virtual int ReadBlock(System.Span buffer) { throw null; } - public virtual System.Threading.Tasks.Task ReadBlockAsync(char[] buffer, int index, int count) { throw null; } - public virtual System.Threading.Tasks.ValueTask ReadBlockAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual string? ReadLine() { throw null; } - public virtual System.Threading.Tasks.Task ReadLineAsync() { throw null; } - public virtual string ReadToEnd() { throw null; } - public virtual System.Threading.Tasks.Task ReadToEndAsync() { throw null; } - public static System.IO.TextReader Synchronized(System.IO.TextReader reader) { throw null; } - } - public abstract partial class TextWriter : System.MarshalByRefObject, System.IAsyncDisposable, System.IDisposable - { - protected char[] CoreNewLine; - public static readonly System.IO.TextWriter Null; - protected TextWriter() { } - protected TextWriter(System.IFormatProvider? formatProvider) { } - public abstract System.Text.Encoding Encoding { get; } - public virtual System.IFormatProvider FormatProvider { get { throw null; } } - [System.Diagnostics.CodeAnalysis.AllowNullAttribute] - public virtual string NewLine { get { throw null; } set { } } - public virtual void Close() { } - public void Dispose() { } - protected virtual void Dispose(bool disposing) { } - public virtual System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } - public virtual void Flush() { } - public virtual System.Threading.Tasks.Task FlushAsync() { throw null; } - public static System.IO.TextWriter Synchronized(System.IO.TextWriter writer) { throw null; } - public virtual void Write(bool value) { } - public virtual void Write(char value) { } - public virtual void Write(char[]? buffer) { } - public virtual void Write(char[] buffer, int index, int count) { } - public virtual void Write(decimal value) { } - public virtual void Write(double value) { } - public virtual void Write(int value) { } - public virtual void Write(long value) { } - public virtual void Write(object? value) { } - public virtual void Write(System.ReadOnlySpan buffer) { } - public virtual void Write(float value) { } - public virtual void Write(string? value) { } - public virtual void Write(string format, object? arg0) { } - public virtual void Write(string format, object? arg0, object? arg1) { } - public virtual void Write(string format, object? arg0, object? arg1, object? arg2) { } - public virtual void Write(string format, params object?[] arg) { } - public virtual void Write(System.Text.StringBuilder? value) { } - [System.CLSCompliantAttribute(false)] - public virtual void Write(uint value) { } - [System.CLSCompliantAttribute(false)] - public virtual void Write(ulong value) { } - public virtual System.Threading.Tasks.Task WriteAsync(char value) { throw null; } - public System.Threading.Tasks.Task WriteAsync(char[]? buffer) { throw null; } - public virtual System.Threading.Tasks.Task WriteAsync(char[] buffer, int index, int count) { throw null; } - public virtual System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task WriteAsync(string? value) { throw null; } - public virtual System.Threading.Tasks.Task WriteAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual void WriteLine() { } - public virtual void WriteLine(bool value) { } - public virtual void WriteLine(char value) { } - public virtual void WriteLine(char[]? buffer) { } - public virtual void WriteLine(char[] buffer, int index, int count) { } - public virtual void WriteLine(decimal value) { } - public virtual void WriteLine(double value) { } - public virtual void WriteLine(int value) { } - public virtual void WriteLine(long value) { } - public virtual void WriteLine(object? value) { } - public virtual void WriteLine(System.ReadOnlySpan buffer) { } - public virtual void WriteLine(float value) { } - public virtual void WriteLine(string? value) { } - public virtual void WriteLine(string format, object? arg0) { } - public virtual void WriteLine(string format, object? arg0, object? arg1) { } - public virtual void WriteLine(string format, object? arg0, object? arg1, object? arg2) { } - public virtual void WriteLine(string format, params object?[] arg) { } - public virtual void WriteLine(System.Text.StringBuilder? value) { } - [System.CLSCompliantAttribute(false)] - public virtual void WriteLine(uint value) { } - [System.CLSCompliantAttribute(false)] - public virtual void WriteLine(ulong value) { } - public virtual System.Threading.Tasks.Task WriteLineAsync() { throw null; } - public virtual System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; } - public System.Threading.Tasks.Task WriteLineAsync(char[]? buffer) { throw null; } - public virtual System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; } - public virtual System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task WriteLineAsync(string? value) { throw null; } - public virtual System.Threading.Tasks.Task WriteLineAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace System.Net -{ - public static partial class WebUtility - { - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static string? HtmlDecode(string? value) { throw null; } - public static void HtmlDecode(string? value, System.IO.TextWriter output) { } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static string? HtmlEncode(string? value) { throw null; } - public static void HtmlEncode(string? value, System.IO.TextWriter output) { } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("encodedValue")] - public static string? UrlDecode(string? encodedValue) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("encodedValue")] - public static byte[]? UrlDecodeToBytes(byte[]? encodedValue, int offset, int count) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static string? UrlEncode(string? value) { throw null; } - [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] - public static byte[]? UrlEncodeToBytes(byte[]? value, int offset, int count) { throw null; } - } -} -namespace System.Numerics -{ - public static partial class BitOperations - { - [System.CLSCompliantAttribute(false)] - public static int LeadingZeroCount(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int LeadingZeroCount(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int Log2(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int Log2(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int PopCount(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int PopCount(ulong value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint RotateLeft(uint value, int offset) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong RotateLeft(ulong value, int offset) { throw null; } - [System.CLSCompliantAttribute(false)] - public static uint RotateRight(uint value, int offset) { throw null; } - [System.CLSCompliantAttribute(false)] - public static ulong RotateRight(ulong value, int offset) { throw null; } - public static int TrailingZeroCount(int value) { throw null; } - public static int TrailingZeroCount(long value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int TrailingZeroCount(uint value) { throw null; } - [System.CLSCompliantAttribute(false)] - public static int TrailingZeroCount(ulong value) { throw null; } - } -} -namespace System.Reflection -{ - public partial class AssemblyNameProxy : System.MarshalByRefObject - { - public AssemblyNameProxy() { } - public System.Reflection.AssemblyName GetAssemblyName(string assemblyFile) { throw null; } - } -} -namespace System.Runtime -{ - public static partial class ProfileOptimization - { - public static void SetProfileRoot(string directoryPath) { } - public static void StartProfile(string profile) { } - } -} -namespace System.Runtime.CompilerServices -{ - public sealed partial class SwitchExpressionException : System.InvalidOperationException - { - public SwitchExpressionException() { } - public SwitchExpressionException(System.Exception? innerException) { } - public SwitchExpressionException(object? unmatchedValue) { } - public SwitchExpressionException(string? message) { } - public SwitchExpressionException(string? message, System.Exception? innerException) { } - public override string Message { get { throw null; } } - public object? UnmatchedValue { get { throw null; } } - public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - } -} -namespace System.Runtime.Versioning -{ - [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] - public sealed partial class ComponentGuaranteesAttribute : System.Attribute - { - public ComponentGuaranteesAttribute(System.Runtime.Versioning.ComponentGuaranteesOptions guarantees) { } - public System.Runtime.Versioning.ComponentGuaranteesOptions Guarantees { get { throw null; } } - } - [System.FlagsAttribute] - public enum ComponentGuaranteesOptions - { - None = 0, - Exchange = 1, - Stable = 2, - SideBySide = 4, - } - public sealed partial class FrameworkName : System.IEquatable - { - public FrameworkName(string frameworkName) { } - public FrameworkName(string identifier, System.Version version) { } - public FrameworkName(string identifier, System.Version version, string? profile) { } - public string FullName { get { throw null; } } - public string Identifier { get { throw null; } } - public string Profile { get { throw null; } } - public System.Version Version { get { throw null; } } - public override bool Equals(object? obj) { throw null; } - public bool Equals(System.Runtime.Versioning.FrameworkName? other) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(System.Runtime.Versioning.FrameworkName? left, System.Runtime.Versioning.FrameworkName? right) { throw null; } - public static bool operator !=(System.Runtime.Versioning.FrameworkName? left, System.Runtime.Versioning.FrameworkName? right) { throw null; } - public override string ToString() { throw null; } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)] - [System.Diagnostics.ConditionalAttribute("RESOURCE_ANNOTATION_WORK")] - public sealed partial class ResourceConsumptionAttribute : System.Attribute - { - public ResourceConsumptionAttribute(System.Runtime.Versioning.ResourceScope resourceScope) { } - public ResourceConsumptionAttribute(System.Runtime.Versioning.ResourceScope resourceScope, System.Runtime.Versioning.ResourceScope consumptionScope) { } - public System.Runtime.Versioning.ResourceScope ConsumptionScope { get { throw null; } } - public System.Runtime.Versioning.ResourceScope ResourceScope { get { throw null; } } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)] - [System.Diagnostics.ConditionalAttribute("RESOURCE_ANNOTATION_WORK")] - public sealed partial class ResourceExposureAttribute : System.Attribute - { - public ResourceExposureAttribute(System.Runtime.Versioning.ResourceScope exposureLevel) { } - public System.Runtime.Versioning.ResourceScope ResourceExposureLevel { get { throw null; } } - } - [System.FlagsAttribute] - public enum ResourceScope - { - None = 0, - Machine = 1, - Process = 2, - AppDomain = 4, - Library = 8, - Private = 16, - Assembly = 32, - } - public static partial class VersioningHelper - { - public static string MakeVersionSafeName(string? name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to) { throw null; } - public static string MakeVersionSafeName(string? name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to, System.Type? type) { throw null; } - } -} -namespace System.Security -{ - public partial interface IPermission : System.Security.ISecurityEncodable - { - System.Security.IPermission Copy(); - void Demand(); - System.Security.IPermission? Intersect(System.Security.IPermission? target); - bool IsSubsetOf(System.Security.IPermission? target); - System.Security.IPermission? Union(System.Security.IPermission? target); - } - public partial interface ISecurityEncodable - { - void FromXml(System.Security.SecurityElement e); - System.Security.SecurityElement? ToXml(); - } - public partial interface IStackWalk - { - void Assert(); - void Demand(); - void Deny(); - void PermitOnly(); - } - public partial class PermissionSet : System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.IDeserializationCallback, System.Security.ISecurityEncodable, System.Security.IStackWalk - { - public PermissionSet(System.Security.Permissions.PermissionState state) { } - public PermissionSet(System.Security.PermissionSet? permSet) { } - public virtual int Count { get { throw null; } } - public virtual bool IsReadOnly { get { throw null; } } - public virtual bool IsSynchronized { get { throw null; } } - public virtual object SyncRoot { get { throw null; } } - public System.Security.IPermission? AddPermission(System.Security.IPermission? perm) { throw null; } - protected virtual System.Security.IPermission? AddPermissionImpl(System.Security.IPermission? perm) { throw null; } - public void Assert() { } - public bool ContainsNonCodeAccessPermissions() { throw null; } - [System.ObsoleteAttribute] - public static byte[] ConvertPermissionSet(string inFormat, byte[] inData, string outFormat) { throw null; } - public virtual System.Security.PermissionSet Copy() { throw null; } - public virtual void CopyTo(System.Array array, int index) { } - public void Demand() { } - [System.ObsoleteAttribute] - public void Deny() { } - public override bool Equals(object? o) { throw null; } - public virtual void FromXml(System.Security.SecurityElement et) { } - public System.Collections.IEnumerator GetEnumerator() { throw null; } - protected virtual System.Collections.IEnumerator GetEnumeratorImpl() { throw null; } - public override int GetHashCode() { throw null; } - public System.Security.IPermission? GetPermission(System.Type? permClass) { throw null; } - protected virtual System.Security.IPermission? GetPermissionImpl(System.Type? permClass) { throw null; } - public System.Security.PermissionSet? Intersect(System.Security.PermissionSet? other) { throw null; } - public bool IsEmpty() { throw null; } - public bool IsSubsetOf(System.Security.PermissionSet? target) { throw null; } - public bool IsUnrestricted() { throw null; } - public void PermitOnly() { } - public System.Security.IPermission? RemovePermission(System.Type? permClass) { throw null; } - protected virtual System.Security.IPermission? RemovePermissionImpl(System.Type? permClass) { throw null; } - public static void RevertAssert() { } - public System.Security.IPermission? SetPermission(System.Security.IPermission? perm) { throw null; } - protected virtual System.Security.IPermission? SetPermissionImpl(System.Security.IPermission? perm) { throw null; } - void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object? sender) { } - public override string ToString() { throw null; } - public virtual System.Security.SecurityElement? ToXml() { throw null; } - public System.Security.PermissionSet? Union(System.Security.PermissionSet? other) { throw null; } - } - public sealed partial class SecurityElement - { - public SecurityElement(string tag) { } - public SecurityElement(string tag, string? text) { } - public System.Collections.Hashtable? Attributes { get { throw null; } set { } } - public System.Collections.ArrayList? Children { get { throw null; } set { } } - public string Tag { get { throw null; } set { } } - public string? Text { get { throw null; } set { } } - public void AddAttribute(string name, string value) { } - public void AddChild(System.Security.SecurityElement child) { } - public string? Attribute(string name) { throw null; } - public System.Security.SecurityElement Copy() { throw null; } - public bool Equal(System.Security.SecurityElement? other) { throw null; } - public static string? Escape(string? str) { throw null; } - public static System.Security.SecurityElement? FromString(string xml) { throw null; } - public static bool IsValidAttributeName(string? name) { throw null; } - public static bool IsValidAttributeValue(string? value) { throw null; } - public static bool IsValidTag(string? tag) { throw null; } - public static bool IsValidText(string? text) { throw null; } - public System.Security.SecurityElement? SearchForChildByTag(string tag) { throw null; } - public string? SearchForTextOfTag(string tag) { throw null; } - public override string ToString() { throw null; } - } -} -namespace System.Security.Permissions -{ - [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] - public abstract partial class CodeAccessSecurityAttribute : System.Security.Permissions.SecurityAttribute - { - protected CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { } - } - public enum PermissionState - { - None = 0, - Unrestricted = 1, - } - public enum SecurityAction - { - Demand = 2, - Assert = 3, - [System.ObsoleteAttribute("Deny is obsolete and will be removed in a future release of the .NET Framework. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] - Deny = 4, - PermitOnly = 5, - LinkDemand = 6, - InheritanceDemand = 7, - [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] - RequestMinimum = 8, - [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] - RequestOptional = 9, - [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] - RequestRefuse = 10, - } - [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] - public abstract partial class SecurityAttribute : System.Attribute - { - protected SecurityAttribute(System.Security.Permissions.SecurityAction action) { } - public System.Security.Permissions.SecurityAction Action { get { throw null; } set { } } - public bool Unrestricted { get { throw null; } set { } } - public abstract System.Security.IPermission? CreatePermission(); - } - [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] - public sealed partial class SecurityPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute - { - public SecurityPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { } - public bool Assertion { get { throw null; } set { } } - public bool BindingRedirects { get { throw null; } set { } } - public bool ControlAppDomain { get { throw null; } set { } } - public bool ControlDomainPolicy { get { throw null; } set { } } - public bool ControlEvidence { get { throw null; } set { } } - public bool ControlPolicy { get { throw null; } set { } } - public bool ControlPrincipal { get { throw null; } set { } } - public bool ControlThread { get { throw null; } set { } } - public bool Execution { get { throw null; } set { } } - public System.Security.Permissions.SecurityPermissionFlag Flags { get { throw null; } set { } } - public bool Infrastructure { get { throw null; } set { } } - public bool RemotingConfiguration { get { throw null; } set { } } - public bool SerializationFormatter { get { throw null; } set { } } - public bool SkipVerification { get { throw null; } set { } } - public bool UnmanagedCode { get { throw null; } set { } } - public override System.Security.IPermission? CreatePermission() { throw null; } - } - [System.FlagsAttribute] - public enum SecurityPermissionFlag - { - NoFlags = 0, - Assertion = 1, - UnmanagedCode = 2, - SkipVerification = 4, - Execution = 8, - ControlThread = 16, - ControlEvidence = 32, - ControlPolicy = 64, - SerializationFormatter = 128, - ControlDomainPolicy = 256, - ControlPrincipal = 512, - ControlAppDomain = 1024, - RemotingConfiguration = 2048, - Infrastructure = 4096, - BindingRedirects = 8192, - AllFlags = 16383, - } -} diff --git a/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj b/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj index d96ae2699e1562..0d51f6bcc7668a 100644 --- a/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj +++ b/src/libraries/System.Runtime.Extensions/ref/System.Runtime.Extensions.csproj @@ -1,14 +1,11 @@ $(NetCoreAppCurrent) - enable - - \ No newline at end of file diff --git a/src/libraries/System.Runtime.Extensions/src/MatchingRefApiCompatBaseline.txt b/src/libraries/System.Runtime.Extensions/src/MatchingRefApiCompatBaseline.txt index dcebed0d1f7d0c..2f728f8c529f6d 100644 --- a/src/libraries/System.Runtime.Extensions/src/MatchingRefApiCompatBaseline.txt +++ b/src/libraries/System.Runtime.Extensions/src/MatchingRefApiCompatBaseline.txt @@ -1,4 +1,3 @@ Compat issues with assembly System.Runtime.Extensions: -MembersMustExist : Member 'System.AppDomain.GetThreadPrincipal()' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.Environment.FailFast(System.String, System.Exception, System.String)' does not exist in the reference but it does exist in the implementation. -Total Issues: 5 +Total Issues: 1 diff --git a/src/libraries/System.Runtime.Extensions/src/Resources/Strings.resx b/src/libraries/System.Runtime.Extensions/src/Resources/Strings.resx deleted file mode 100644 index 48bc862d84c968..00000000000000 --- a/src/libraries/System.Runtime.Extensions/src/Resources/Strings.resx +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ApplicationId cannot have an empty string for the name. - - - FrameworkName version component is missing. - - - FrameworkName is invalid. - - - FrameworkName version component is invalid. - - - FrameworkName cannot have less than two components or more than three components. - - - The parameter '{0}' cannot be an empty string. - - - Non-negative number required. - - - Specified file length was too large for the file system. - - - '{0}' must be greater than zero. - - - The specified file name or path is too long, or a component of the specified path is too long. - - - Unable to find the specified file. - - - Access to the path is denied. - - - Access to the path '{0}' is denied. - - - The process cannot access the file because it is being used by another process. - - - Could not find file '{0}'. - - - Could not find a part of the path. - - - Could not find a part of the path '{0}'. - - - Cannot create '{0}' because a file or directory with the same name already exists. - - - The process cannot access the file '{0}' because it is being used by another process. - - - The file '{0}' already exists. - - - The home directory of the current user could not be determined. - - - Unknown value for the ResourceScope: {0} Too many resource type bits may be set. - - - Unknown value for the ResourceScope: {0} Too many resource visibility bits may be set. - - - The type parameter cannot be null when scoping the resource's visibility to Private or Assembly. - - - Resource type in the ResourceScope enum is going from a more restrictive resource type to a more general one. From: "{0}" To: "{1}" - - - Attempted to access an unloaded AppDomain. - - - Non-exhaustive switch expression failed to match its input. - - - Attempted to marshal an object across a context boundary. - - - Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. - - - Found invalid data while decoding. - - - Buffer cannot be null. - - - Cannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream. - - - Stream does not support seeking. - - - Stream does not support reading. - - - Stream does not support writing. - - - Cannot access a closed stream. - - - Positive number required. - - - Cannot write to a closed TextWriter. - - - Cannot read from a closed TextReader. - - - Unmatched value was {0}. - - - The path '{0}' is too long, or a component of the specified path is too long. - - - String cannot be of zero length. - - diff --git a/src/libraries/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj b/src/libraries/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj index 111eae03677c51..32a400e140df13 100644 --- a/src/libraries/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj +++ b/src/libraries/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj @@ -2,181 +2,9 @@ System.Runtime.Extensions Library - true true - true $(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix - enable - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Common\System\IO\StreamHelpers.CopyValidation.cs - - - Common\System\Threading\Tasks\TaskToApm.cs - - - Common\System\HResults.cs - - - CoreLib\System\Text\ValueStringBuilder.cs - - - Common\Interop\Windows\Interop.BOOL.cs - - - Common\System\HexConverter.cs - - - - - - - Common\System\IO\Win32Marshal.cs - - - Common\Interop\Windows\Interop.Libraries.cs - - - Common\Interop\Windows\Interop.Errors.cs - - - Common\Interop\Windows\Interop.BOOLEAN.cs - - - Common\Interop\Windows\Kernel32\Interop.GetCurrentProcessId.cs - - - Common\Interop\Windows\kernel32\Interop.FormatMessage.cs - - - Common\Interop\Windows\Kernel32\Interop.GetCurrentDirectory.cs - - - Common\Interop\Windows\Interop.GetLogicalDrives.cs - - - Common\Interop\Windows\Kernel32\Interop.GetSystemDirectoryW.cs - - - Common\Interop\Windows\Kernel32\Interop.QueryPerformanceCounter.cs - - - Common\Interop\Windows\Kernel32\Interop.QueryPerformanceFrequency.cs - - - Common\Interop\Windows\Kernel32\Interop.SetCurrentDirectory.cs - - - CoreLib\System\IO\PathHelper.Windows.cs - - - CoreLib\System\IO\PathInternal.cs - - - CoreLib\System\IO\PathInternal.Windows.cs - - - Common\Interop\Windows\Kernel32\Interop.GetLongPathNameW.cs - - - Common\Interop\Windows\Kernel32\Interop.GetFullPathNameW.cs - - - - - - - Common\Interop\OSX\Interop.Libraries.cs - - - Common\Interop\Unix\Interop.Libraries.cs - - - Common\Interop\Unix\Interop.Errors.cs - - - Common\Interop\Unix\Interop.IOErrors.cs - - - Common\Interop\Unix\System.Native\Interop.GetPid.cs - - - Common\Interop\Unix\System.Native\Interop.ChDir.cs - - - Common\Interop\Unix\System.Native\Interop.Close.cs - - - Common\Interop\Unix\System.Native\Interop.GetCwd.cs - - - Common\Interop\Unix\System.Native\Interop.GetEUid.cs - - - Common\Interop\Unix\System.Native\Interop.GetHostName.cs - - - Common\Interop\Unix\System.Native\Interop.GetTimestamp.cs - - - Common\Interop\Unix\System.Native\Interop.GetPwUid.cs - - - Common\Interop\Unix\System.Native\Interop.GetUnixName.cs - - - Common\Interop\Unix\System.Native\Interop.GetUnixRelease.cs - - - Common\Interop\Unix\System.Native\Interop.MksTemps.cs - - - Common\Interop\Unix\System.Native\Interop.MountPoints.cs - - - Common\Interop\Unix\System.Native\Interop.PathConf.cs - - - Common\Interop\Unix\System.Native\Interop.SysConf.cs - - - Common\System\IO\DriveInfoInternal.Unix.cs - - - Common\System\IO\PersistedFiles.Unix.cs - - - Common\System\IO\PersistedFiles.Unix.cs - - @@ -184,4 +12,4 @@ - \ No newline at end of file + diff --git a/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs b/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs index 3cbede68a688d6..0b85d43a418f10 100644 --- a/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs +++ b/src/libraries/System.Runtime.Loader/tests/AssemblyLoadContextTest.cs @@ -112,7 +112,7 @@ public static void LoadFromAssemblyName_AssemblyNotFound() [ActiveIssue("https://github.com/dotnet/runtime/issues/32439", TestRuntimes.Mono)] public static void LoadFromAssemblyName_ValidTrustedPlatformAssembly() { - var asmName = typeof(ISet<>).Assembly.GetName(); + var asmName = typeof(System.Linq.Enumerable).Assembly.GetName(); asmName.CodeBase = null; var loadContext = new CustomTPALoadContext(); @@ -142,7 +142,7 @@ public static void GetLoadContextTest_ValidUserAssembly() [Fact] public static void GetLoadContextTest_ValidTrustedPlatformAssembly() { - var asm = typeof(ISet<>).GetTypeInfo().Assembly; + var asm = typeof(System.Linq.Enumerable).GetTypeInfo().Assembly; var context = AssemblyLoadContext.GetLoadContext(asm); Assert.NotNull(context); diff --git a/src/libraries/System.Runtime.WindowsRuntime/src/System.Runtime.WindowsRuntime.csproj b/src/libraries/System.Runtime.WindowsRuntime/src/System.Runtime.WindowsRuntime.csproj index 81b806281d9e10..60f7f32e4794b7 100644 --- a/src/libraries/System.Runtime.WindowsRuntime/src/System.Runtime.WindowsRuntime.csproj +++ b/src/libraries/System.Runtime.WindowsRuntime/src/System.Runtime.WindowsRuntime.csproj @@ -8,7 +8,7 @@ 4.0.0.0 4.0.11.0 $(DefineConstants);FEATURE_APPX - $(NetCoreAppCurrent)-Windows_NT;netstandard1.0;netstandard1.2;netstandard2.0;netcoreapp3.0-Windows_NT + $(NetCoreAppCurrent)-Windows_NT;netstandard1.0;netstandard1.2;netstandard2.0 true @@ -21,14 +21,6 @@ - - - - - - - - diff --git a/src/libraries/System.Runtime.WindowsRuntime/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeBufferExtensions.cs b/src/libraries/System.Runtime.WindowsRuntime/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeBufferExtensions.cs index 276b60ef90fe65..9e757f539e01f7 100644 --- a/src/libraries/System.Runtime.WindowsRuntime/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeBufferExtensions.cs +++ b/src/libraries/System.Runtime.WindowsRuntime/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeBufferExtensions.cs @@ -369,6 +369,8 @@ public static IBuffer GetWindowsRuntimeBuffer(this MemoryStream underlyingStream /// length end, or zero if positionInStream is beyond stream length end, but not more than length. /// /// A memory stream to share the data memory with the buffer being created. + /// The position of the shared memory region. + /// The maximum size of the shared memory region. /// A new IBuffer backed by the same memory as this specified stream. [CLSCompliant(false)] public static IBuffer GetWindowsRuntimeBuffer(this MemoryStream underlyingStream, int positionInStream, int length) diff --git a/src/libraries/System.Runtime/ref/System.Runtime.Manual.cs b/src/libraries/System.Runtime/ref/System.Runtime.Manual.cs deleted file mode 100644 index ad1fbb5418c229..00000000000000 --- a/src/libraries/System.Runtime/ref/System.Runtime.Manual.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace System -{ - public partial struct Double - { - public const double MaxValue = 1.7976931348623157E+308; - public const double MinValue = -1.7976931348623157E+308; - - // Note Epsilon should be a double whose hex representation is 0x1 - // on little endian machines. - public const double Epsilon = 4.9406564584124654E-324; - public const double NaN = 0.0 / 0.0; - public const double NegativeInfinity = -1.0 / 0.0; - public const double PositiveInfinity = 1.0 / 0.0; - } - public partial struct Single - { - public const float Epsilon = 1.4E-45f; - public const float MaxValue = 3.40282346638528859E+38f; - public const float MinValue = -3.40282346638528859E+38f; - public const float NaN = 0.0f / 0.0f; - public const float NegativeInfinity = -1.0f / 0.0f; - public const float PositiveInfinity = 1.0f / 0.0f; - } - public ref partial struct TypedReference - { - // We need to add this into the manual ref assembly to preserve it because the - // implementation doesn't have any reference field, hence GenApi will not emit it. - private object _dummy; - // Placing the value type field in the manual ref as well to avoid the error CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'TypedReference'. - private int _dummyPrimitive; - } -} diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index 4666aeda32be95..5f0472cf098409 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -107,6 +107,99 @@ public static partial class AppContext public static void SetSwitch(string switchName, bool isEnabled) { } public static bool TryGetSwitch(string switchName, out bool isEnabled) { throw null; } } + public sealed partial class AppDomain : System.MarshalByRefObject + { + internal AppDomain() { } + public string? BaseDirectory { get { throw null; } } + public static System.AppDomain CurrentDomain { get { throw null; } } + public string? DynamicDirectory { get { throw null; } } + public string FriendlyName { get { throw null; } } + public int Id { get { throw null; } } + public bool IsFullyTrusted { get { throw null; } } + public bool IsHomogenous { get { throw null; } } + public static bool MonitoringIsEnabled { get { throw null; } set { } } + public long MonitoringSurvivedMemorySize { get { throw null; } } + public static long MonitoringSurvivedProcessMemorySize { get { throw null; } } + public long MonitoringTotalAllocatedMemorySize { get { throw null; } } + public System.TimeSpan MonitoringTotalProcessorTime { get { throw null; } } + public System.Security.PermissionSet PermissionSet { get { throw null; } } + public string? RelativeSearchPath { get { throw null; } } + public System.AppDomainSetup SetupInformation { get { throw null; } } + public bool ShadowCopyFiles { get { throw null; } } + public event System.AssemblyLoadEventHandler? AssemblyLoad { add { } remove { } } + public event System.ResolveEventHandler? AssemblyResolve { add { } remove { } } + public event System.EventHandler? DomainUnload { add { } remove { } } + public event System.EventHandler? FirstChanceException { add { } remove { } } + public event System.EventHandler? ProcessExit { add { } remove { } } + public event System.ResolveEventHandler? ReflectionOnlyAssemblyResolve { add { } remove { } } + public event System.ResolveEventHandler? ResourceResolve { add { } remove { } } + public event System.ResolveEventHandler? TypeResolve { add { } remove { } } + public event System.UnhandledExceptionEventHandler? UnhandledException { add { } remove { } } + [System.ObsoleteAttribute("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void AppendPrivatePath(string? path) { } + public string ApplyPolicy(string assemblyName) { throw null; } + [System.ObsoleteAttribute("AppDomain.ClearPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void ClearPrivatePath() { } + [System.ObsoleteAttribute("AppDomain.ClearShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void ClearShadowCopyPath() { } + public static System.AppDomain CreateDomain(string friendlyName) { throw null; } + public System.Runtime.Remoting.ObjectHandle? CreateInstance(string assemblyName, string typeName) { throw null; } + public System.Runtime.Remoting.ObjectHandle? CreateInstance(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } + public System.Runtime.Remoting.ObjectHandle? CreateInstance(string assemblyName, string typeName, object?[]? activationAttributes) { throw null; } + public object? CreateInstanceAndUnwrap(string assemblyName, string typeName) { throw null; } + public object? CreateInstanceAndUnwrap(string assemblyName, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } + public object? CreateInstanceAndUnwrap(string assemblyName, string typeName, object?[]? activationAttributes) { throw null; } + public System.Runtime.Remoting.ObjectHandle? CreateInstanceFrom(string assemblyFile, string typeName) { throw null; } + public System.Runtime.Remoting.ObjectHandle? CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } + public System.Runtime.Remoting.ObjectHandle? CreateInstanceFrom(string assemblyFile, string typeName, object?[]? activationAttributes) { throw null; } + public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName) { throw null; } + public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName, bool ignoreCase, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, object?[]? args, System.Globalization.CultureInfo? culture, object?[]? activationAttributes) { throw null; } + public object? CreateInstanceFromAndUnwrap(string assemblyFile, string typeName, object?[]? activationAttributes) { throw null; } + public int ExecuteAssembly(string assemblyFile) { throw null; } + public int ExecuteAssembly(string assemblyFile, string?[]? args) { throw null; } + public int ExecuteAssembly(string assemblyFile, string?[]? args, byte[]? hashValue, System.Configuration.Assemblies.AssemblyHashAlgorithm hashAlgorithm) { throw null; } + public int ExecuteAssemblyByName(System.Reflection.AssemblyName assemblyName, params string?[]? args) { throw null; } + public int ExecuteAssemblyByName(string assemblyName) { throw null; } + public int ExecuteAssemblyByName(string assemblyName, params string?[]? args) { throw null; } + public System.Reflection.Assembly[] GetAssemblies() { throw null; } + [System.ObsoleteAttribute("AppDomain.GetCurrentThreadId has been deprecated because it does not provide a stable Id when managed threads are running on fibers (aka lightweight threads). To get a stable identifier for a managed thread, use the ManagedThreadId property on Thread. https://go.microsoft.com/fwlink/?linkid=14202", false)] + public static int GetCurrentThreadId() { throw null; } + public object? GetData(string name) { throw null; } + public bool? IsCompatibilitySwitchSet(string value) { throw null; } + public bool IsDefaultAppDomain() { throw null; } + public bool IsFinalizingForUnload() { throw null; } + public System.Reflection.Assembly Load(byte[] rawAssembly) { throw null; } + public System.Reflection.Assembly Load(byte[] rawAssembly, byte[]? rawSymbolStore) { throw null; } + public System.Reflection.Assembly Load(System.Reflection.AssemblyName assemblyRef) { throw null; } + public System.Reflection.Assembly Load(string assemblyString) { throw null; } + public System.Reflection.Assembly[] ReflectionOnlyGetAssemblies() { throw null; } + [System.ObsoleteAttribute("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void SetCachePath(string? path) { } + public void SetData(string name, object? data) { } + [System.ObsoleteAttribute("AppDomain.SetDynamicBase has been deprecated. Please investigate the use of AppDomainSetup.DynamicBase instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void SetDynamicBase(string? path) { } + public void SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy policy) { } + [System.ObsoleteAttribute("AppDomain.SetShadowCopyFiles has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyFiles instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void SetShadowCopyFiles() { } + [System.ObsoleteAttribute("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")] + public void SetShadowCopyPath(string? path) { } + public void SetThreadPrincipal(System.Security.Principal.IPrincipal principal) { } + public override string ToString() { throw null; } + public static void Unload(System.AppDomain domain) { } + } + public sealed partial class AppDomainSetup + { + internal AppDomainSetup() { } + public string? ApplicationBase { get { throw null; } } + public string? TargetFrameworkName { get { throw null; } } + } + public partial class AppDomainUnloadedException : System.SystemException + { + public AppDomainUnloadedException() { } + protected AppDomainUnloadedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public AppDomainUnloadedException(string? message) { } + public AppDomainUnloadedException(string? message, System.Exception? innerException) { } + } public partial class ApplicationException : System.Exception { public ApplicationException() { } @@ -114,6 +207,19 @@ protected ApplicationException(System.Runtime.Serialization.SerializationInfo in public ApplicationException(string? message) { } public ApplicationException(string? message, System.Exception? innerException) { } } + public sealed partial class ApplicationId + { + public ApplicationId(byte[] publicKeyToken, string name, System.Version version, string? processorArchitecture, string? culture) { } + public string? Culture { get { throw null; } } + public string Name { get { throw null; } } + public string? ProcessorArchitecture { get { throw null; } } + public byte[] PublicKeyToken { get { throw null; } } + public System.Version Version { get { throw null; } } + public System.ApplicationId Copy() { throw null; } + public override bool Equals(object? o) { throw null; } + public override int GetHashCode() { throw null; } + public override string ToString() { throw null; } + } public ref partial struct ArgIterator { private int _dummyPrimitive; @@ -346,6 +452,12 @@ protected ArrayTypeMismatchException(System.Runtime.Serialization.SerializationI public ArrayTypeMismatchException(string? message) { } public ArrayTypeMismatchException(string? message, System.Exception? innerException) { } } + public partial class AssemblyLoadEventArgs : System.EventArgs + { + public AssemblyLoadEventArgs(System.Reflection.Assembly loadedAssembly) { } + public System.Reflection.Assembly LoadedAssembly { get { throw null; } } + } + public delegate void AssemblyLoadEventHandler(object? sender, System.AssemblyLoadEventArgs args); public delegate void AsyncCallback(System.IAsyncResult ar); [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=true, AllowMultiple=false)] public abstract partial class Attribute @@ -431,6 +543,75 @@ public BadImageFormatException(string? message, string? fileName, System.Excepti public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public override string ToString() { throw null; } } + [System.FlagsAttribute] + public enum Base64FormattingOptions + { + None = 0, + InsertLineBreaks = 1, + } + public static partial class BitConverter + { + public static readonly bool IsLittleEndian; + public static long DoubleToInt64Bits(double value) { throw null; } + public static byte[] GetBytes(bool value) { throw null; } + public static byte[] GetBytes(char value) { throw null; } + public static byte[] GetBytes(double value) { throw null; } + public static byte[] GetBytes(short value) { throw null; } + public static byte[] GetBytes(int value) { throw null; } + public static byte[] GetBytes(long value) { throw null; } + public static byte[] GetBytes(float value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte[] GetBytes(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte[] GetBytes(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte[] GetBytes(ulong value) { throw null; } + public static float Int32BitsToSingle(int value) { throw null; } + public static double Int64BitsToDouble(long value) { throw null; } + public static int SingleToInt32Bits(float value) { throw null; } + public static bool ToBoolean(byte[] value, int startIndex) { throw null; } + public static bool ToBoolean(System.ReadOnlySpan value) { throw null; } + public static char ToChar(byte[] value, int startIndex) { throw null; } + public static char ToChar(System.ReadOnlySpan value) { throw null; } + public static double ToDouble(byte[] value, int startIndex) { throw null; } + public static double ToDouble(System.ReadOnlySpan value) { throw null; } + public static short ToInt16(byte[] value, int startIndex) { throw null; } + public static short ToInt16(System.ReadOnlySpan value) { throw null; } + public static int ToInt32(byte[] value, int startIndex) { throw null; } + public static int ToInt32(System.ReadOnlySpan value) { throw null; } + public static long ToInt64(byte[] value, int startIndex) { throw null; } + public static long ToInt64(System.ReadOnlySpan value) { throw null; } + public static float ToSingle(byte[] value, int startIndex) { throw null; } + public static float ToSingle(System.ReadOnlySpan value) { throw null; } + public static string ToString(byte[] value) { throw null; } + public static string ToString(byte[] value, int startIndex) { throw null; } + public static string ToString(byte[] value, int startIndex, int length) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(byte[] value, int startIndex) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(System.ReadOnlySpan value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(byte[] value, int startIndex) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(System.ReadOnlySpan value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(byte[] value, int startIndex) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(System.ReadOnlySpan value) { throw null; } + public static bool TryWriteBytes(System.Span destination, bool value) { throw null; } + public static bool TryWriteBytes(System.Span destination, char value) { throw null; } + public static bool TryWriteBytes(System.Span destination, double value) { throw null; } + public static bool TryWriteBytes(System.Span destination, short value) { throw null; } + public static bool TryWriteBytes(System.Span destination, int value) { throw null; } + public static bool TryWriteBytes(System.Span destination, long value) { throw null; } + public static bool TryWriteBytes(System.Span destination, float value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool TryWriteBytes(System.Span destination, ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool TryWriteBytes(System.Span destination, uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool TryWriteBytes(System.Span destination, ulong value) { throw null; } + } public readonly partial struct Boolean : System.IComparable, System.IComparable, System.IConvertible, System.IEquatable { private readonly bool _dummyPrimitive; @@ -471,9 +652,9 @@ public static void BlockCopy(System.Array src, int srcOffset, System.Array dst, public static int ByteLength(System.Array array) { throw null; } public static byte GetByte(System.Array array, int index) { throw null; } [System.CLSCompliantAttribute(false)] - public static unsafe void MemoryCopy(void* source, void* destination, long destinationSizeInBytes, long sourceBytesToCopy) { } + public unsafe static void MemoryCopy(void* source, void* destination, long destinationSizeInBytes, long sourceBytesToCopy) { } [System.CLSCompliantAttribute(false)] - public static unsafe void MemoryCopy(void* source, void* destination, ulong destinationSizeInBytes, ulong sourceBytesToCopy) { } + public unsafe static void MemoryCopy(void* source, void* destination, ulong destinationSizeInBytes, ulong sourceBytesToCopy) { } public static void SetByte(System.Array array, int index, byte value) { } } public readonly partial struct Byte : System.IComparable, System.IComparable, System.IConvertible, System.IEquatable, System.IFormattable @@ -517,6 +698,13 @@ public static void SetByte(System.Array array, int index, byte value) { } public static bool TryParse(string? s, out System.Byte result) { throw null; } public static bool TryParse(string? s, System.Globalization.NumberStyles style, System.IFormatProvider? provider, out System.Byte result) { throw null; } } + public partial class CannotUnloadAppDomainException : System.SystemException + { + public CannotUnloadAppDomainException() { } + protected CannotUnloadAppDomainException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public CannotUnloadAppDomainException(string? message) { } + public CannotUnloadAppDomainException(string? message, System.Exception? innerException) { } + } public readonly partial struct Char : System.IComparable, System.IComparable, System.IConvertible, System.IEquatable { private readonly char _dummyPrimitive; @@ -609,6 +797,470 @@ public CLSCompliantAttribute(bool isCompliant) { } public bool IsCompliant { get { throw null; } } } public delegate int Comparison([System.Diagnostics.CodeAnalysis.AllowNullAttribute] T x, [System.Diagnostics.CodeAnalysis.AllowNullAttribute] T y); + public abstract partial class ContextBoundObject : System.MarshalByRefObject + { + protected ContextBoundObject() { } + } + public partial class ContextMarshalException : System.SystemException + { + public ContextMarshalException() { } + protected ContextMarshalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public ContextMarshalException(string? message) { } + public ContextMarshalException(string? message, System.Exception? inner) { } + } + [System.AttributeUsageAttribute(System.AttributeTargets.Field, Inherited=false)] + public partial class ContextStaticAttribute : System.Attribute + { + public ContextStaticAttribute() { } + } + public static partial class Convert + { + public static readonly object DBNull; + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static object? ChangeType(object? value, System.Type conversionType) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static object? ChangeType(object? value, System.Type conversionType, System.IFormatProvider? provider) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static object? ChangeType(object? value, System.TypeCode typeCode) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static object? ChangeType(object? value, System.TypeCode typeCode, System.IFormatProvider? provider) { throw null; } + public static byte[] FromBase64CharArray(char[] inArray, int offset, int length) { throw null; } + public static byte[] FromBase64String(string s) { throw null; } + public static System.TypeCode GetTypeCode(object? value) { throw null; } + public static bool IsDBNull([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? value) { throw null; } + public static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut) { throw null; } + public static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut, System.Base64FormattingOptions options) { throw null; } + public static string ToBase64String(byte[] inArray) { throw null; } + public static string ToBase64String(byte[] inArray, System.Base64FormattingOptions options) { throw null; } + public static string ToBase64String(byte[] inArray, int offset, int length) { throw null; } + public static string ToBase64String(byte[] inArray, int offset, int length, System.Base64FormattingOptions options) { throw null; } + public static string ToBase64String(System.ReadOnlySpan bytes, System.Base64FormattingOptions options = System.Base64FormattingOptions.None) { throw null; } + public static bool ToBoolean(bool value) { throw null; } + public static bool ToBoolean(byte value) { throw null; } + public static bool ToBoolean(char value) { throw null; } + public static bool ToBoolean(System.DateTime value) { throw null; } + public static bool ToBoolean(decimal value) { throw null; } + public static bool ToBoolean(double value) { throw null; } + public static bool ToBoolean(short value) { throw null; } + public static bool ToBoolean(int value) { throw null; } + public static bool ToBoolean(long value) { throw null; } + public static bool ToBoolean(object? value) { throw null; } + public static bool ToBoolean(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool ToBoolean(sbyte value) { throw null; } + public static bool ToBoolean(float value) { throw null; } + public static bool ToBoolean(string? value) { throw null; } + public static bool ToBoolean(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool ToBoolean(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool ToBoolean(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static bool ToBoolean(ulong value) { throw null; } + public static byte ToByte(bool value) { throw null; } + public static byte ToByte(byte value) { throw null; } + public static byte ToByte(char value) { throw null; } + public static byte ToByte(System.DateTime value) { throw null; } + public static byte ToByte(decimal value) { throw null; } + public static byte ToByte(double value) { throw null; } + public static byte ToByte(short value) { throw null; } + public static byte ToByte(int value) { throw null; } + public static byte ToByte(long value) { throw null; } + public static byte ToByte(object? value) { throw null; } + public static byte ToByte(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte ToByte(sbyte value) { throw null; } + public static byte ToByte(float value) { throw null; } + public static byte ToByte(string? value) { throw null; } + public static byte ToByte(string? value, System.IFormatProvider? provider) { throw null; } + public static byte ToByte(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte ToByte(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte ToByte(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static byte ToByte(ulong value) { throw null; } + public static char ToChar(bool value) { throw null; } + public static char ToChar(byte value) { throw null; } + public static char ToChar(char value) { throw null; } + public static char ToChar(System.DateTime value) { throw null; } + public static char ToChar(decimal value) { throw null; } + public static char ToChar(double value) { throw null; } + public static char ToChar(short value) { throw null; } + public static char ToChar(int value) { throw null; } + public static char ToChar(long value) { throw null; } + public static char ToChar(object? value) { throw null; } + public static char ToChar(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static char ToChar(sbyte value) { throw null; } + public static char ToChar(float value) { throw null; } + public static char ToChar(string value) { throw null; } + public static char ToChar(string value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static char ToChar(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static char ToChar(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static char ToChar(ulong value) { throw null; } + public static System.DateTime ToDateTime(bool value) { throw null; } + public static System.DateTime ToDateTime(byte value) { throw null; } + public static System.DateTime ToDateTime(char value) { throw null; } + public static System.DateTime ToDateTime(System.DateTime value) { throw null; } + public static System.DateTime ToDateTime(decimal value) { throw null; } + public static System.DateTime ToDateTime(double value) { throw null; } + public static System.DateTime ToDateTime(short value) { throw null; } + public static System.DateTime ToDateTime(int value) { throw null; } + public static System.DateTime ToDateTime(long value) { throw null; } + public static System.DateTime ToDateTime(object? value) { throw null; } + public static System.DateTime ToDateTime(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static System.DateTime ToDateTime(sbyte value) { throw null; } + public static System.DateTime ToDateTime(float value) { throw null; } + public static System.DateTime ToDateTime(string? value) { throw null; } + public static System.DateTime ToDateTime(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static System.DateTime ToDateTime(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static System.DateTime ToDateTime(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static System.DateTime ToDateTime(ulong value) { throw null; } + public static decimal ToDecimal(bool value) { throw null; } + public static decimal ToDecimal(byte value) { throw null; } + public static decimal ToDecimal(char value) { throw null; } + public static decimal ToDecimal(System.DateTime value) { throw null; } + public static decimal ToDecimal(decimal value) { throw null; } + public static decimal ToDecimal(double value) { throw null; } + public static decimal ToDecimal(short value) { throw null; } + public static decimal ToDecimal(int value) { throw null; } + public static decimal ToDecimal(long value) { throw null; } + public static decimal ToDecimal(object? value) { throw null; } + public static decimal ToDecimal(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static decimal ToDecimal(sbyte value) { throw null; } + public static decimal ToDecimal(float value) { throw null; } + public static decimal ToDecimal(string? value) { throw null; } + public static decimal ToDecimal(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static decimal ToDecimal(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static decimal ToDecimal(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static decimal ToDecimal(ulong value) { throw null; } + public static double ToDouble(bool value) { throw null; } + public static double ToDouble(byte value) { throw null; } + public static double ToDouble(char value) { throw null; } + public static double ToDouble(System.DateTime value) { throw null; } + public static double ToDouble(decimal value) { throw null; } + public static double ToDouble(double value) { throw null; } + public static double ToDouble(short value) { throw null; } + public static double ToDouble(int value) { throw null; } + public static double ToDouble(long value) { throw null; } + public static double ToDouble(object? value) { throw null; } + public static double ToDouble(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static double ToDouble(sbyte value) { throw null; } + public static double ToDouble(float value) { throw null; } + public static double ToDouble(string? value) { throw null; } + public static double ToDouble(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static double ToDouble(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static double ToDouble(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static double ToDouble(ulong value) { throw null; } + public static short ToInt16(bool value) { throw null; } + public static short ToInt16(byte value) { throw null; } + public static short ToInt16(char value) { throw null; } + public static short ToInt16(System.DateTime value) { throw null; } + public static short ToInt16(decimal value) { throw null; } + public static short ToInt16(double value) { throw null; } + public static short ToInt16(short value) { throw null; } + public static short ToInt16(int value) { throw null; } + public static short ToInt16(long value) { throw null; } + public static short ToInt16(object? value) { throw null; } + public static short ToInt16(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static short ToInt16(sbyte value) { throw null; } + public static short ToInt16(float value) { throw null; } + public static short ToInt16(string? value) { throw null; } + public static short ToInt16(string? value, System.IFormatProvider? provider) { throw null; } + public static short ToInt16(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static short ToInt16(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static short ToInt16(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static short ToInt16(ulong value) { throw null; } + public static int ToInt32(bool value) { throw null; } + public static int ToInt32(byte value) { throw null; } + public static int ToInt32(char value) { throw null; } + public static int ToInt32(System.DateTime value) { throw null; } + public static int ToInt32(decimal value) { throw null; } + public static int ToInt32(double value) { throw null; } + public static int ToInt32(short value) { throw null; } + public static int ToInt32(int value) { throw null; } + public static int ToInt32(long value) { throw null; } + public static int ToInt32(object? value) { throw null; } + public static int ToInt32(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int ToInt32(sbyte value) { throw null; } + public static int ToInt32(float value) { throw null; } + public static int ToInt32(string? value) { throw null; } + public static int ToInt32(string? value, System.IFormatProvider? provider) { throw null; } + public static int ToInt32(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int ToInt32(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int ToInt32(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int ToInt32(ulong value) { throw null; } + public static long ToInt64(bool value) { throw null; } + public static long ToInt64(byte value) { throw null; } + public static long ToInt64(char value) { throw null; } + public static long ToInt64(System.DateTime value) { throw null; } + public static long ToInt64(decimal value) { throw null; } + public static long ToInt64(double value) { throw null; } + public static long ToInt64(short value) { throw null; } + public static long ToInt64(int value) { throw null; } + public static long ToInt64(long value) { throw null; } + public static long ToInt64(object? value) { throw null; } + public static long ToInt64(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static long ToInt64(sbyte value) { throw null; } + public static long ToInt64(float value) { throw null; } + public static long ToInt64(string? value) { throw null; } + public static long ToInt64(string? value, System.IFormatProvider? provider) { throw null; } + public static long ToInt64(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static long ToInt64(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static long ToInt64(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static long ToInt64(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(bool value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(byte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(char value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(System.DateTime value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(decimal value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(double value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(short value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(int value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(object? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(sbyte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(float value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(string? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(string value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte ToSByte(ulong value) { throw null; } + public static float ToSingle(bool value) { throw null; } + public static float ToSingle(byte value) { throw null; } + public static float ToSingle(char value) { throw null; } + public static float ToSingle(System.DateTime value) { throw null; } + public static float ToSingle(decimal value) { throw null; } + public static float ToSingle(double value) { throw null; } + public static float ToSingle(short value) { throw null; } + public static float ToSingle(int value) { throw null; } + public static float ToSingle(long value) { throw null; } + public static float ToSingle(object? value) { throw null; } + public static float ToSingle(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static float ToSingle(sbyte value) { throw null; } + public static float ToSingle(float value) { throw null; } + public static float ToSingle(string? value) { throw null; } + public static float ToSingle(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static float ToSingle(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static float ToSingle(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static float ToSingle(ulong value) { throw null; } + public static string ToString(bool value) { throw null; } + public static string ToString(bool value, System.IFormatProvider? provider) { throw null; } + public static string ToString(byte value) { throw null; } + public static string ToString(byte value, System.IFormatProvider? provider) { throw null; } + public static string ToString(byte value, int toBase) { throw null; } + public static string ToString(char value) { throw null; } + public static string ToString(char value, System.IFormatProvider? provider) { throw null; } + public static string ToString(System.DateTime value) { throw null; } + public static string ToString(System.DateTime value, System.IFormatProvider? provider) { throw null; } + public static string ToString(decimal value) { throw null; } + public static string ToString(decimal value, System.IFormatProvider? provider) { throw null; } + public static string ToString(double value) { throw null; } + public static string ToString(double value, System.IFormatProvider? provider) { throw null; } + public static string ToString(short value) { throw null; } + public static string ToString(short value, System.IFormatProvider? provider) { throw null; } + public static string ToString(short value, int toBase) { throw null; } + public static string ToString(int value) { throw null; } + public static string ToString(int value, System.IFormatProvider? provider) { throw null; } + public static string ToString(int value, int toBase) { throw null; } + public static string ToString(long value) { throw null; } + public static string ToString(long value, System.IFormatProvider? provider) { throw null; } + public static string ToString(long value, int toBase) { throw null; } + public static string? ToString(object? value) { throw null; } + public static string? ToString(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(sbyte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(sbyte value, System.IFormatProvider? provider) { throw null; } + public static string ToString(float value) { throw null; } + public static string ToString(float value, System.IFormatProvider? provider) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static string? ToString(string? value) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static string? ToString(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(ushort value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(uint value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static string ToString(ulong value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(bool value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(byte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(char value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(System.DateTime value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(decimal value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(double value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(short value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(int value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(object? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(sbyte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(float value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(string? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort ToUInt16(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(bool value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(byte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(char value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(System.DateTime value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(decimal value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(double value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(short value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(int value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(object? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(sbyte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(float value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(string? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint ToUInt32(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(bool value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(byte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(char value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(System.DateTime value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(decimal value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(double value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(short value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(int value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(object? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(object? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(sbyte value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(float value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(string? value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(string? value, System.IFormatProvider? provider) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(string? value, int fromBase) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(ushort value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong ToUInt64(ulong value) { throw null; } + public static bool TryFromBase64Chars(System.ReadOnlySpan chars, System.Span bytes, out int bytesWritten) { throw null; } + public static bool TryFromBase64String(string s, System.Span bytes, out int bytesWritten) { throw null; } + public static bool TryToBase64Chars(System.ReadOnlySpan bytes, System.Span chars, out int charsWritten, System.Base64FormattingOptions options = System.Base64FormattingOptions.None) { throw null; } + } public delegate TOutput Converter(TInput input); public readonly partial struct DateTime : System.IComparable, System.IComparable, System.IConvertible, System.IEquatable, System.IFormattable, System.Runtime.Serialization.ISerializable { @@ -1051,6 +1703,12 @@ public DivideByZeroException(string? message, System.Exception? innerException) public readonly partial struct Double : System.IComparable, System.IComparable, System.IConvertible, System.IEquatable, System.IFormattable { private readonly double _dummyPrimitive; + public const double Epsilon = 5E-324; + public const double MaxValue = 1.7976931348623157E+308; + public const double MinValue = -1.7976931348623157E+308; + public const double NaN = 0.0 / 0.0; + public const double NegativeInfinity = -1.0 / 0.0; + public const double PositiveInfinity = 1.0 / 0.0; public int CompareTo(System.Double value) { throw null; } public int CompareTo(object? value) { throw null; } public bool Equals(System.Double obj) { throw null; } @@ -1173,6 +1831,109 @@ protected Enum() { } public static bool TryParse(string? value, bool ignoreCase, out TEnum result) where TEnum : struct { throw null; } public static bool TryParse(string? value, out TEnum result) where TEnum : struct { throw null; } } + public static partial class Environment + { + public static string CommandLine { get { throw null; } } + public static string CurrentDirectory { get { throw null; } set { } } + public static int CurrentManagedThreadId { get { throw null; } } + public static int ExitCode { get { throw null; } set { } } + public static bool HasShutdownStarted { get { throw null; } } + public static bool Is64BitOperatingSystem { get { throw null; } } + public static bool Is64BitProcess { get { throw null; } } + public static string MachineName { get { throw null; } } + public static string NewLine { get { throw null; } } + public static System.OperatingSystem OSVersion { get { throw null; } } + public static int ProcessorCount { get { throw null; } } + public static string StackTrace { get { throw null; } } + public static string SystemDirectory { get { throw null; } } + public static int SystemPageSize { get { throw null; } } + public static int TickCount { get { throw null; } } + public static long TickCount64 { get { throw null; } } + public static string UserDomainName { get { throw null; } } + public static bool UserInteractive { get { throw null; } } + public static string UserName { get { throw null; } } + public static System.Version Version { get { throw null; } } + public static long WorkingSet { get { throw null; } } + [System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] + public static void Exit(int exitCode) { } + public static string ExpandEnvironmentVariables(string name) { throw null; } + [System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] + public static void FailFast(string? message) { } + [System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute] + public static void FailFast(string? message, System.Exception? exception) { } + public static string[] GetCommandLineArgs() { throw null; } + public static string? GetEnvironmentVariable(string variable) { throw null; } + public static string? GetEnvironmentVariable(string variable, System.EnvironmentVariableTarget target) { throw null; } + public static System.Collections.IDictionary GetEnvironmentVariables() { throw null; } + public static System.Collections.IDictionary GetEnvironmentVariables(System.EnvironmentVariableTarget target) { throw null; } + public static string GetFolderPath(System.Environment.SpecialFolder folder) { throw null; } + public static string GetFolderPath(System.Environment.SpecialFolder folder, System.Environment.SpecialFolderOption option) { throw null; } + public static string[] GetLogicalDrives() { throw null; } + public static void SetEnvironmentVariable(string variable, string? value) { } + public static void SetEnvironmentVariable(string variable, string? value, System.EnvironmentVariableTarget target) { } + public enum SpecialFolder + { + Desktop = 0, + Programs = 2, + MyDocuments = 5, + Personal = 5, + Favorites = 6, + Startup = 7, + Recent = 8, + SendTo = 9, + StartMenu = 11, + MyMusic = 13, + MyVideos = 14, + DesktopDirectory = 16, + MyComputer = 17, + NetworkShortcuts = 19, + Fonts = 20, + Templates = 21, + CommonStartMenu = 22, + CommonPrograms = 23, + CommonStartup = 24, + CommonDesktopDirectory = 25, + ApplicationData = 26, + PrinterShortcuts = 27, + LocalApplicationData = 28, + InternetCache = 32, + Cookies = 33, + History = 34, + CommonApplicationData = 35, + Windows = 36, + System = 37, + ProgramFiles = 38, + MyPictures = 39, + UserProfile = 40, + SystemX86 = 41, + ProgramFilesX86 = 42, + CommonProgramFiles = 43, + CommonProgramFilesX86 = 44, + CommonTemplates = 45, + CommonDocuments = 46, + CommonAdminTools = 47, + AdminTools = 48, + CommonMusic = 53, + CommonPictures = 54, + CommonVideos = 55, + Resources = 56, + LocalizedResources = 57, + CommonOemLinks = 58, + CDBurning = 59, + } + public enum SpecialFolderOption + { + None = 0, + DoNotVerify = 16384, + Create = 32768, + } + } + public enum EnvironmentVariableTarget + { + Process = 0, + User = 1, + Machine = 2, + } public partial class EventArgs { public static readonly System.EventArgs Empty; @@ -1644,9 +2405,9 @@ public InsufficientMemoryException(string? message, System.Exception? innerExcep public static explicit operator int (System.IntPtr value) { throw null; } public static explicit operator long (System.IntPtr value) { throw null; } [System.CLSCompliantAttribute(false)] - public static unsafe explicit operator void* (System.IntPtr value) { throw null; } + public unsafe static explicit operator void* (System.IntPtr value) { throw null; } [System.CLSCompliantAttribute(false)] - public static unsafe explicit operator System.IntPtr (void* value) { throw null; } + public unsafe static explicit operator System.IntPtr (void* value) { throw null; } public static bool operator !=(System.IntPtr value1, System.IntPtr value2) { throw null; } public static System.IntPtr operator -(System.IntPtr pointer, int offset) { throw null; } public static System.IntPtr Subtract(System.IntPtr pointer, int offset) { throw null; } @@ -1728,6 +2489,24 @@ public partial class LdapStyleUriParser : System.UriParser { public LdapStyleUriParser() { } } + public enum LoaderOptimization + { + NotSpecified = 0, + SingleDomain = 1, + MultiDomain = 2, + [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202")] + DomainMask = 3, + MultiDomainHost = 3, + [System.ObsoleteAttribute("This method has been deprecated. Please use Assembly.Load() instead. https://go.microsoft.com/fwlink/?linkid=14202")] + DisallowBindings = 4, + } + [System.AttributeUsageAttribute(System.AttributeTargets.Method)] + public sealed partial class LoaderOptimizationAttribute : System.Attribute + { + public LoaderOptimizationAttribute(byte value) { } + public LoaderOptimizationAttribute(System.LoaderOptimization value) { } + public System.LoaderOptimization Value { get { throw null; } } + } public abstract partial class MarshalByRefObject { protected MarshalByRefObject() { } @@ -1735,6 +2514,165 @@ protected MarshalByRefObject() { } public virtual object InitializeLifetimeService() { throw null; } protected System.MarshalByRefObject MemberwiseClone(bool cloneIdentity) { throw null; } } + public static partial class Math + { + public const double E = 2.718281828459045; + public const double PI = 3.141592653589793; + public static decimal Abs(decimal value) { throw null; } + public static double Abs(double value) { throw null; } + public static short Abs(short value) { throw null; } + public static int Abs(int value) { throw null; } + public static long Abs(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte Abs(sbyte value) { throw null; } + public static float Abs(float value) { throw null; } + public static double Acos(double d) { throw null; } + public static double Acosh(double d) { throw null; } + public static double Asin(double d) { throw null; } + public static double Asinh(double d) { throw null; } + public static double Atan(double d) { throw null; } + public static double Atan2(double y, double x) { throw null; } + public static double Atanh(double d) { throw null; } + public static long BigMul(int a, int b) { throw null; } + public static double BitDecrement(double x) { throw null; } + public static double BitIncrement(double x) { throw null; } + public static double Cbrt(double d) { throw null; } + public static decimal Ceiling(decimal d) { throw null; } + public static double Ceiling(double a) { throw null; } + public static byte Clamp(byte value, byte min, byte max) { throw null; } + public static decimal Clamp(decimal value, decimal min, decimal max) { throw null; } + public static double Clamp(double value, double min, double max) { throw null; } + public static short Clamp(short value, short min, short max) { throw null; } + public static int Clamp(int value, int min, int max) { throw null; } + public static long Clamp(long value, long min, long max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte Clamp(sbyte value, sbyte min, sbyte max) { throw null; } + public static float Clamp(float value, float min, float max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort Clamp(ushort value, ushort min, ushort max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint Clamp(uint value, uint min, uint max) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong Clamp(ulong value, ulong min, ulong max) { throw null; } + public static double CopySign(double x, double y) { throw null; } + public static double Cos(double d) { throw null; } + public static double Cosh(double value) { throw null; } + public static int DivRem(int a, int b, out int result) { throw null; } + public static long DivRem(long a, long b, out long result) { throw null; } + public static double Exp(double d) { throw null; } + public static decimal Floor(decimal d) { throw null; } + public static double Floor(double d) { throw null; } + public static double FusedMultiplyAdd(double x, double y, double z) { throw null; } + public static double IEEERemainder(double x, double y) { throw null; } + public static int ILogB(double x) { throw null; } + public static double Log(double d) { throw null; } + public static double Log(double a, double newBase) { throw null; } + public static double Log10(double d) { throw null; } + public static double Log2(double x) { throw null; } + public static byte Max(byte val1, byte val2) { throw null; } + public static decimal Max(decimal val1, decimal val2) { throw null; } + public static double Max(double val1, double val2) { throw null; } + public static short Max(short val1, short val2) { throw null; } + public static int Max(int val1, int val2) { throw null; } + public static long Max(long val1, long val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte Max(sbyte val1, sbyte val2) { throw null; } + public static float Max(float val1, float val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort Max(ushort val1, ushort val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint Max(uint val1, uint val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong Max(ulong val1, ulong val2) { throw null; } + public static double MaxMagnitude(double x, double y) { throw null; } + public static byte Min(byte val1, byte val2) { throw null; } + public static decimal Min(decimal val1, decimal val2) { throw null; } + public static double Min(double val1, double val2) { throw null; } + public static short Min(short val1, short val2) { throw null; } + public static int Min(int val1, int val2) { throw null; } + public static long Min(long val1, long val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static sbyte Min(sbyte val1, sbyte val2) { throw null; } + public static float Min(float val1, float val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ushort Min(ushort val1, ushort val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint Min(uint val1, uint val2) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong Min(ulong val1, ulong val2) { throw null; } + public static double MinMagnitude(double x, double y) { throw null; } + public static double Pow(double x, double y) { throw null; } + public static decimal Round(decimal d) { throw null; } + public static decimal Round(decimal d, int decimals) { throw null; } + public static decimal Round(decimal d, int decimals, System.MidpointRounding mode) { throw null; } + public static decimal Round(decimal d, System.MidpointRounding mode) { throw null; } + public static double Round(double a) { throw null; } + public static double Round(double value, int digits) { throw null; } + public static double Round(double value, int digits, System.MidpointRounding mode) { throw null; } + public static double Round(double value, System.MidpointRounding mode) { throw null; } + public static double ScaleB(double x, int n) { throw null; } + public static int Sign(decimal value) { throw null; } + public static int Sign(double value) { throw null; } + public static int Sign(short value) { throw null; } + public static int Sign(int value) { throw null; } + public static int Sign(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int Sign(sbyte value) { throw null; } + public static int Sign(float value) { throw null; } + public static double Sin(double a) { throw null; } + public static double Sinh(double value) { throw null; } + public static double Sqrt(double d) { throw null; } + public static double Tan(double a) { throw null; } + public static double Tanh(double value) { throw null; } + public static decimal Truncate(decimal d) { throw null; } + public static double Truncate(double d) { throw null; } + } + public static partial class MathF + { + public const float E = 2.7182817f; + public const float PI = 3.1415927f; + public static float Abs(float x) { throw null; } + public static float Acos(float x) { throw null; } + public static float Acosh(float x) { throw null; } + public static float Asin(float x) { throw null; } + public static float Asinh(float x) { throw null; } + public static float Atan(float x) { throw null; } + public static float Atan2(float y, float x) { throw null; } + public static float Atanh(float x) { throw null; } + public static float BitDecrement(float x) { throw null; } + public static float BitIncrement(float x) { throw null; } + public static float Cbrt(float x) { throw null; } + public static float Ceiling(float x) { throw null; } + public static float CopySign(float x, float y) { throw null; } + public static float Cos(float x) { throw null; } + public static float Cosh(float x) { throw null; } + public static float Exp(float x) { throw null; } + public static float Floor(float x) { throw null; } + public static float FusedMultiplyAdd(float x, float y, float z) { throw null; } + public static float IEEERemainder(float x, float y) { throw null; } + public static int ILogB(float x) { throw null; } + public static float Log(float x) { throw null; } + public static float Log(float x, float y) { throw null; } + public static float Log10(float x) { throw null; } + public static float Log2(float x) { throw null; } + public static float Max(float x, float y) { throw null; } + public static float MaxMagnitude(float x, float y) { throw null; } + public static float Min(float x, float y) { throw null; } + public static float MinMagnitude(float x, float y) { throw null; } + public static float Pow(float x, float y) { throw null; } + public static float Round(float x) { throw null; } + public static float Round(float x, int digits) { throw null; } + public static float Round(float x, int digits, System.MidpointRounding mode) { throw null; } + public static float Round(float x, System.MidpointRounding mode) { throw null; } + public static float ScaleB(float x, int n) { throw null; } + public static int Sign(float x) { throw null; } + public static float Sin(float x) { throw null; } + public static float Sinh(float x) { throw null; } + public static float Sqrt(float x) { throw null; } + public static float Tan(float x) { throw null; } + public static float Tanh(float x) { throw null; } + public static float Truncate(float x) { throw null; } + } public partial class MemberAccessException : System.SystemException { public MemberAccessException() { } @@ -1962,6 +2900,17 @@ public ObsoleteAttribute(string? message, bool error) { } public bool IsError { get { throw null; } } public string? Message { get { throw null; } } } + public sealed partial class OperatingSystem : System.ICloneable, System.Runtime.Serialization.ISerializable + { + public OperatingSystem(System.PlatformID platform, System.Version version) { } + public System.PlatformID Platform { get { throw null; } } + public string ServicePack { get { throw null; } } + public System.Version Version { get { throw null; } } + public string VersionString { get { throw null; } } + public object Clone() { throw null; } + public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public override string ToString() { throw null; } + } public partial class OperationCanceledException : System.SystemException { public OperationCanceledException() { } @@ -1992,6 +2941,16 @@ public sealed partial class ParamArrayAttribute : System.Attribute { public ParamArrayAttribute() { } } + public enum PlatformID + { + Win32S = 0, + Win32Windows = 1, + Win32NT = 2, + WinCE = 3, + Unix = 4, + Xbox = 5, + MacOSX = 6, + } public partial class PlatformNotSupportedException : System.NotSupportedException { public PlatformNotSupportedException() { } @@ -2000,6 +2959,26 @@ public PlatformNotSupportedException(string? message) { } public PlatformNotSupportedException(string? message, System.Exception? inner) { } } public delegate bool Predicate(T obj); + public partial class Progress : System.IProgress + { + public Progress() { } + public Progress(System.Action handler) { } + public event System.EventHandler? ProgressChanged { add { } remove { } } + protected virtual void OnReport(T value) { } + void System.IProgress.Report(T value) { } + } + public partial class Random + { + public Random() { } + public Random(int Seed) { } + public virtual int Next() { throw null; } + public virtual int Next(int maxValue) { throw null; } + public virtual int Next(int minValue, int maxValue) { throw null; } + public virtual void NextBytes(byte[] buffer) { } + public virtual void NextBytes(System.Span buffer) { } + public virtual double NextDouble() { throw null; } + protected virtual double Sample() { throw null; } + } public readonly partial struct Range : System.IEquatable { private readonly int _dummyPrimitive; @@ -2093,6 +3072,7 @@ public ResolveEventArgs(string name, System.Reflection.Assembly? requestingAssem public string Name { get { throw null; } } public System.Reflection.Assembly? RequestingAssembly { get { throw null; } } } + public delegate System.Reflection.Assembly? ResolveEventHandler(object? sender, System.ResolveEventArgs args); public ref partial struct RuntimeArgumentHandle { private int _dummyPrimitive; @@ -2196,6 +3176,12 @@ public SerializableAttribute() { } public readonly partial struct Single : System.IComparable, System.IComparable, System.IConvertible, System.IEquatable, System.IFormattable { private readonly float _dummyPrimitive; + public const float Epsilon = 1E-45f; + public const float MaxValue = 3.4028235E+38f; + public const float MinValue = -3.4028235E+38f; + public const float NaN = 0.0f / 0.0f; + public const float NegativeInfinity = -1.0f / 0.0f; + public const float PositiveInfinity = 1.0f / 0.0f; public int CompareTo(object? value) { throw null; } public int CompareTo(System.Single value) { throw null; } public override bool Equals(object? obj) { throw null; } @@ -2491,6 +3477,27 @@ public void CopyTo(int sourceIndex, char[] destination, int destinationIndex, in public System.String TrimStart(char trimChar) { throw null; } public System.String TrimStart(params char[]? trimChars) { throw null; } } + public abstract partial class StringComparer : System.Collections.Generic.IComparer, System.Collections.Generic.IEqualityComparer, System.Collections.IComparer, System.Collections.IEqualityComparer + { + protected StringComparer() { } + public static System.StringComparer CurrentCulture { get { throw null; } } + public static System.StringComparer CurrentCultureIgnoreCase { get { throw null; } } + public static System.StringComparer InvariantCulture { get { throw null; } } + public static System.StringComparer InvariantCultureIgnoreCase { get { throw null; } } + public static System.StringComparer Ordinal { get { throw null; } } + public static System.StringComparer OrdinalIgnoreCase { get { throw null; } } + public int Compare(object? x, object? y) { throw null; } + public abstract int Compare(string? x, string? y); + public static System.StringComparer Create(System.Globalization.CultureInfo culture, bool ignoreCase) { throw null; } + public static System.StringComparer Create(System.Globalization.CultureInfo culture, System.Globalization.CompareOptions options) { throw null; } + public new bool Equals(object? x, object? y) { throw null; } + public abstract bool Equals(string? x, string? y); + public static System.StringComparer FromComparison(System.StringComparison comparisonType) { throw null; } + public int GetHashCode(object obj) { throw null; } +#pragma warning disable CS8614 // Remove warning disable when nullable attributes are respected + public abstract int GetHashCode(string obj); +#pragma warning restore CS8614 + } public enum StringComparison { CurrentCulture = 0, @@ -2500,6 +3507,13 @@ public enum StringComparison Ordinal = 4, OrdinalIgnoreCase = 5, } + public static partial class StringNormalizationExtensions + { + public static bool IsNormalized(this string value) { throw null; } + public static bool IsNormalized(this string value, System.Text.NormalizationForm normalizationForm) { throw null; } + public static string Normalize(this string value) { throw null; } + public static string Normalize(this string value, System.Text.NormalizationForm normalizationForm) { throw null; } + } [System.FlagsAttribute] public enum StringSplitOptions { @@ -2625,7 +3639,7 @@ protected TimeZone() { } public virtual System.DateTime ToLocalTime(System.DateTime time) { throw null; } public virtual System.DateTime ToUniversalTime(System.DateTime time) { throw null; } } - public sealed partial class TimeZoneInfo : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable, System.IEquatable + public sealed partial class TimeZoneInfo : System.IEquatable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable { internal TimeZoneInfo() { } public System.TimeSpan BaseUtcOffset { get { throw null; } } @@ -2670,7 +3684,7 @@ void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(obj void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } public string ToSerializedString() { throw null; } public override string ToString() { throw null; } - public sealed partial class AdjustmentRule : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable, System.IEquatable + public sealed partial class AdjustmentRule : System.IEquatable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable { internal AdjustmentRule() { } public System.DateTime DateEnd { get { throw null; } } @@ -3118,13 +4132,13 @@ protected Type() { } public object? InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder? binder, object? target, object?[]? args, System.Globalization.CultureInfo? culture) { throw null; } public abstract object? InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder? binder, object? target, object?[]? args, System.Reflection.ParameterModifier[]? modifiers, System.Globalization.CultureInfo? culture, string[]? namedParameters); protected abstract bool IsArrayImpl(); - public virtual bool IsAssignableFrom([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? c) { throw null; } + public virtual bool IsAssignableFrom([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Type? c) { throw null; } protected abstract bool IsByRefImpl(); protected abstract bool IsCOMObjectImpl(); protected virtual bool IsContextfulImpl() { throw null; } public virtual bool IsEnumDefined(object value) { throw null; } - public virtual bool IsEquivalentTo([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? other) { throw null; } - public virtual bool IsInstanceOfType([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? o) { throw null; } + public virtual bool IsEquivalentTo([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Type? other) { throw null; } + public virtual bool IsInstanceOfType([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw null; } protected virtual bool IsMarshalByRefImpl() { throw null; } protected abstract bool IsPointerImpl(); protected abstract bool IsPrimitiveImpl(); @@ -3173,6 +4187,8 @@ public enum TypeCode [System.CLSCompliantAttribute(false)] public ref partial struct TypedReference { + private object _dummy; + private int _dummyPrimitive; public override bool Equals(object? o) { throw null; } public override int GetHashCode() { throw null; } public static System.Type GetTargetType(System.TypedReference value) { throw null; } @@ -3376,8 +4392,8 @@ public TypeUnloadedException(string? message, System.Exception? innerException) public static explicit operator System.UIntPtr (ulong value) { throw null; } public static explicit operator uint (System.UIntPtr value) { throw null; } public static explicit operator ulong (System.UIntPtr value) { throw null; } - public static unsafe explicit operator void* (System.UIntPtr value) { throw null; } - public static unsafe explicit operator System.UIntPtr (void* value) { throw null; } + public unsafe static explicit operator void* (System.UIntPtr value) { throw null; } + public unsafe static explicit operator System.UIntPtr (void* value) { throw null; } public static bool operator !=(System.UIntPtr value1, System.UIntPtr value2) { throw null; } public static System.UIntPtr operator -(System.UIntPtr pointer, int offset) { throw null; } public static System.UIntPtr Subtract(System.UIntPtr pointer, int offset) { throw null; } @@ -3494,6 +4510,35 @@ void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Ser protected virtual string Unescape(string path) { throw null; } public static string UnescapeDataString(string stringToUnescape) { throw null; } } + public partial class UriBuilder + { + public UriBuilder() { } + public UriBuilder(string uri) { } + public UriBuilder(string? schemeName, string? hostName) { } + public UriBuilder(string? scheme, string? host, int portNumber) { } + public UriBuilder(string? scheme, string? host, int port, string? pathValue) { } + public UriBuilder(string? scheme, string? host, int port, string? path, string? extraValue) { } + public UriBuilder(System.Uri uri) { } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string Fragment { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string Host { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string Password { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string Path { get { throw null; } set { } } + public int Port { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string Query { get { throw null; } set { } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string Scheme { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public string UserName { get { throw null; } set { } } + public override bool Equals(object? rparam) { throw null; } + public override int GetHashCode() { throw null; } + public override string ToString() { throw null; } + } [System.FlagsAttribute] public enum UriComponents { @@ -3860,8 +4905,125 @@ public enum OperationStatus public delegate void ReadOnlySpanAction(System.ReadOnlySpan span, TArg arg); public delegate void SpanAction(System.Span span, TArg arg); } +namespace System.CodeDom.Compiler +{ + [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=false, AllowMultiple=false)] + public sealed partial class GeneratedCodeAttribute : System.Attribute + { + public GeneratedCodeAttribute(string? tool, string? version) { } + public string? Tool { get { throw null; } } + public string? Version { get { throw null; } } + } + public partial class IndentedTextWriter : System.IO.TextWriter + { + public const string DefaultTabString = " "; + public IndentedTextWriter(System.IO.TextWriter writer) { } + public IndentedTextWriter(System.IO.TextWriter writer, string tabString) { } + public override System.Text.Encoding Encoding { get { throw null; } } + public int Indent { get { throw null; } set { } } + public System.IO.TextWriter InnerWriter { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public override string NewLine { get { throw null; } set { } } + public override void Close() { } + public override void Flush() { } + protected virtual void OutputTabs() { } + public override void Write(bool value) { } + public override void Write(char value) { } + public override void Write(char[]? buffer) { } + public override void Write(char[] buffer, int index, int count) { } + public override void Write(double value) { } + public override void Write(int value) { } + public override void Write(long value) { } + public override void Write(object? value) { } + public override void Write(float value) { } + public override void Write(string? s) { } + public override void Write(string format, object? arg0) { } + public override void Write(string format, object? arg0, object? arg1) { } + public override void Write(string format, params object?[] arg) { } + public override void WriteLine() { } + public override void WriteLine(bool value) { } + public override void WriteLine(char value) { } + public override void WriteLine(char[]? buffer) { } + public override void WriteLine(char[] buffer, int index, int count) { } + public override void WriteLine(double value) { } + public override void WriteLine(int value) { } + public override void WriteLine(long value) { } + public override void WriteLine(object? value) { } + public override void WriteLine(float value) { } + public override void WriteLine(string? s) { } + public override void WriteLine(string format, object? arg0) { } + public override void WriteLine(string format, object? arg0, object? arg1) { } + public override void WriteLine(string format, params object?[] arg) { } + [System.CLSCompliantAttribute(false)] + public override void WriteLine(uint value) { } + public void WriteLineNoTabs(string? s) { } + } +} namespace System.Collections { + public partial class ArrayList : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ICloneable + { + public ArrayList() { } + public ArrayList(System.Collections.ICollection c) { } + public ArrayList(int capacity) { } + public virtual int Capacity { get { throw null; } set { } } + public virtual int Count { get { throw null; } } + public virtual bool IsFixedSize { get { throw null; } } + public virtual bool IsReadOnly { get { throw null; } } + public virtual bool IsSynchronized { get { throw null; } } + public virtual object? this[int index] { get { throw null; } set { } } + public virtual object SyncRoot { get { throw null; } } + public static System.Collections.ArrayList Adapter(System.Collections.IList list) { throw null; } + public virtual int Add(object? value) { throw null; } + public virtual void AddRange(System.Collections.ICollection c) { } + public virtual int BinarySearch(int index, int count, object? value, System.Collections.IComparer? comparer) { throw null; } + public virtual int BinarySearch(object? value) { throw null; } + public virtual int BinarySearch(object? value, System.Collections.IComparer? comparer) { throw null; } + public virtual void Clear() { } + public virtual object Clone() { throw null; } + public virtual bool Contains(object? item) { throw null; } + public virtual void CopyTo(System.Array array) { } + public virtual void CopyTo(System.Array array, int arrayIndex) { } + public virtual void CopyTo(int index, System.Array array, int arrayIndex, int count) { } + public static System.Collections.ArrayList FixedSize(System.Collections.ArrayList list) { throw null; } + public static System.Collections.IList FixedSize(System.Collections.IList list) { throw null; } + public virtual System.Collections.IEnumerator GetEnumerator() { throw null; } + public virtual System.Collections.IEnumerator GetEnumerator(int index, int count) { throw null; } + public virtual System.Collections.ArrayList GetRange(int index, int count) { throw null; } + public virtual int IndexOf(object? value) { throw null; } + public virtual int IndexOf(object? value, int startIndex) { throw null; } + public virtual int IndexOf(object? value, int startIndex, int count) { throw null; } + public virtual void Insert(int index, object? value) { } + public virtual void InsertRange(int index, System.Collections.ICollection c) { } + public virtual int LastIndexOf(object? value) { throw null; } + public virtual int LastIndexOf(object? value, int startIndex) { throw null; } + public virtual int LastIndexOf(object? value, int startIndex, int count) { throw null; } + public static System.Collections.ArrayList ReadOnly(System.Collections.ArrayList list) { throw null; } + public static System.Collections.IList ReadOnly(System.Collections.IList list) { throw null; } + public virtual void Remove(object? obj) { } + public virtual void RemoveAt(int index) { } + public virtual void RemoveRange(int index, int count) { } + public static System.Collections.ArrayList Repeat(object? value, int count) { throw null; } + public virtual void Reverse() { } + public virtual void Reverse(int index, int count) { } + public virtual void SetRange(int index, System.Collections.ICollection c) { } + public virtual void Sort() { } + public virtual void Sort(System.Collections.IComparer? comparer) { } + public virtual void Sort(int index, int count, System.Collections.IComparer? comparer) { } + public static System.Collections.ArrayList Synchronized(System.Collections.ArrayList list) { throw null; } + public static System.Collections.IList Synchronized(System.Collections.IList list) { throw null; } + public virtual object?[] ToArray() { throw null; } + public virtual System.Array ToArray(System.Type type) { throw null; } + public virtual void TrimToSize() { } + } + public sealed partial class Comparer : System.Collections.IComparer, System.Runtime.Serialization.ISerializable + { + public static readonly System.Collections.Comparer Default; + public static readonly System.Collections.Comparer DefaultInvariant; + public Comparer(System.Globalization.CultureInfo culture) { } + public int Compare(object? a, object? b) { throw null; } + public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } public partial struct DictionaryEntry { private object _dummy; @@ -3872,6 +5034,58 @@ public partial struct DictionaryEntry [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public void Deconstruct(out object key, out object? value) { throw null; } } + public partial class Hashtable : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable, System.ICloneable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable + { + public Hashtable() { } + public Hashtable(System.Collections.IDictionary d) { } + public Hashtable(System.Collections.IDictionary d, System.Collections.IEqualityComparer? equalityComparer) { } + [System.ObsoleteAttribute("Please use Hashtable(IDictionary, IEqualityComparer) instead.")] + public Hashtable(System.Collections.IDictionary d, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } + public Hashtable(System.Collections.IDictionary d, float loadFactor) { } + public Hashtable(System.Collections.IDictionary d, float loadFactor, System.Collections.IEqualityComparer? equalityComparer) { } + [System.ObsoleteAttribute("Please use Hashtable(IDictionary, float, IEqualityComparer) instead.")] + public Hashtable(System.Collections.IDictionary d, float loadFactor, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } + public Hashtable(System.Collections.IEqualityComparer? equalityComparer) { } + [System.ObsoleteAttribute("Please use Hashtable(IEqualityComparer) instead.")] + public Hashtable(System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } + public Hashtable(int capacity) { } + public Hashtable(int capacity, System.Collections.IEqualityComparer? equalityComparer) { } + [System.ObsoleteAttribute("Please use Hashtable(int, IEqualityComparer) instead.")] + public Hashtable(int capacity, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } + public Hashtable(int capacity, float loadFactor) { } + public Hashtable(int capacity, float loadFactor, System.Collections.IEqualityComparer? equalityComparer) { } + [System.ObsoleteAttribute("Please use Hashtable(int, float, IEqualityComparer) instead.")] + public Hashtable(int capacity, float loadFactor, System.Collections.IHashCodeProvider? hcp, System.Collections.IComparer? comparer) { } + protected Hashtable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + [System.ObsoleteAttribute("Please use KeyComparer properties.")] + protected System.Collections.IComparer? comparer { get { throw null; } set { } } + public virtual int Count { get { throw null; } } + protected System.Collections.IEqualityComparer? EqualityComparer { get { throw null; } } + [System.ObsoleteAttribute("Please use EqualityComparer property.")] + protected System.Collections.IHashCodeProvider? hcp { get { throw null; } set { } } + public virtual bool IsFixedSize { get { throw null; } } + public virtual bool IsReadOnly { get { throw null; } } + public virtual bool IsSynchronized { get { throw null; } } + public virtual object? this[object key] { get { throw null; } set { } } + public virtual System.Collections.ICollection Keys { get { throw null; } } + public virtual object SyncRoot { get { throw null; } } + public virtual System.Collections.ICollection Values { get { throw null; } } + public virtual void Add(object key, object? value) { } + public virtual void Clear() { } + public virtual object Clone() { throw null; } + public virtual bool Contains(object key) { throw null; } + public virtual bool ContainsKey(object key) { throw null; } + public virtual bool ContainsValue(object? value) { throw null; } + public virtual void CopyTo(System.Array array, int arrayIndex) { } + public virtual System.Collections.IDictionaryEnumerator GetEnumerator() { throw null; } + protected virtual int GetHash(object key) { throw null; } + public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + protected virtual bool KeyEquals(object? item, object key) { throw null; } + public virtual void OnDeserialization(object? sender) { } + public virtual void Remove(object key) { } + public static System.Collections.Hashtable Synchronized(System.Collections.Hashtable table) { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } public partial interface ICollection : System.Collections.IEnumerable { int Count { get; } @@ -3917,6 +5131,11 @@ public partial interface IEqualityComparer bool Equals(object? x, object? y); int GetHashCode(object obj); } + [System.ObsoleteAttribute("Please use IEqualityComparer instead.")] + public partial interface IHashCodeProvider + { + int GetHashCode(object obj); + } public partial interface IList : System.Collections.ICollection, System.Collections.IEnumerable { bool IsFixedSize { get; } @@ -4118,16 +5337,6 @@ void System.Collections.IList.Remove(object value) { } void System.Collections.IList.RemoveAt(int index) { } } } -namespace System.CodeDom.Compiler -{ - [System.AttributeUsageAttribute(System.AttributeTargets.All, Inherited=false, AllowMultiple=false)] - public sealed partial class GeneratedCodeAttribute : System.Attribute - { - public GeneratedCodeAttribute(string? tool, string? version) { } - public string? Tool { get { throw null; } } - public string? Version { get { throw null; } } - } -} namespace System.ComponentModel { [System.AttributeUsageAttribute(System.AttributeTargets.All)] @@ -4265,6 +5474,24 @@ public static void WriteLineIf(bool condition, string? message) { } [System.Diagnostics.ConditionalAttribute("DEBUG")] public static void WriteLineIf(bool condition, string? message, string? category) { } } + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Module, AllowMultiple=false)] + public sealed partial class DebuggableAttribute : System.Attribute + { + public DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled) { } + public DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes modes) { } + public System.Diagnostics.DebuggableAttribute.DebuggingModes DebuggingFlags { get { throw null; } } + public bool IsJITOptimizerDisabled { get { throw null; } } + public bool IsJITTrackingEnabled { get { throw null; } } + [System.FlagsAttribute] + public enum DebuggingModes + { + None = 0, + Default = 1, + IgnoreSymbolStoreSequencePoints = 2, + EnableEditAndContinue = 4, + DisableOptimizations = 256, + } + } public static partial class Debugger { public static readonly string? DefaultCategory; @@ -4341,23 +5568,21 @@ public DebuggerVisualizerAttribute(System.Type visualizer, System.Type visualize public string? VisualizerObjectSourceTypeName { get { throw null; } } public string VisualizerTypeName { get { throw null; } } } - [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Module, AllowMultiple=false)] - public sealed partial class DebuggableAttribute : System.Attribute + public partial class Stopwatch { - public DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled) { } - public DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes modes) { } - public System.Diagnostics.DebuggableAttribute.DebuggingModes DebuggingFlags { get { throw null; } } - public bool IsJITOptimizerDisabled { get { throw null; } } - public bool IsJITTrackingEnabled { get { throw null; } } - [System.FlagsAttribute] - public enum DebuggingModes - { - None = 0, - Default = 1, - IgnoreSymbolStoreSequencePoints = 2, - EnableEditAndContinue = 4, - DisableOptimizations = 256, - } + public static readonly long Frequency; + public static readonly bool IsHighResolution; + public Stopwatch() { } + public System.TimeSpan Elapsed { get { throw null; } } + public long ElapsedMilliseconds { get { throw null; } } + public long ElapsedTicks { get { throw null; } } + public bool IsRunning { get { throw null; } } + public static long GetTimestamp() { throw null; } + public void Reset() { } + public void Restart() { } + public void Start() { } + public static System.Diagnostics.Stopwatch StartNew() { throw null; } + public void Stop() { } } } namespace System.Diagnostics.CodeAnalysis @@ -4762,6 +5987,10 @@ internal EastAsianLunisolarCalendar() { } public override System.DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) { throw null; } public override int ToFourDigitYear(int year) { throw null; } } + public static partial class GlobalizationExtensions + { + public static System.StringComparer GetStringComparer(this System.Globalization.CompareInfo compareInfo, System.Globalization.CompareOptions options) { throw null; } + } public partial class GregorianCalendar : System.Globalization.Calendar { public const int ADEra = 1; @@ -5293,6 +6522,119 @@ public enum UnicodeCategory } namespace System.IO { + public partial class BinaryReader : System.IDisposable + { + public BinaryReader(System.IO.Stream input) { } + public BinaryReader(System.IO.Stream input, System.Text.Encoding encoding) { } + public BinaryReader(System.IO.Stream input, System.Text.Encoding encoding, bool leaveOpen) { } + public virtual System.IO.Stream BaseStream { get { throw null; } } + public virtual void Close() { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + protected virtual void FillBuffer(int numBytes) { } + public virtual int PeekChar() { throw null; } + public virtual int Read() { throw null; } + public virtual int Read(byte[] buffer, int index, int count) { throw null; } + public virtual int Read(char[] buffer, int index, int count) { throw null; } + public virtual int Read(System.Span buffer) { throw null; } + public virtual int Read(System.Span buffer) { throw null; } + protected internal int Read7BitEncodedInt() { throw null; } + public virtual bool ReadBoolean() { throw null; } + public virtual byte ReadByte() { throw null; } + public virtual byte[] ReadBytes(int count) { throw null; } + public virtual char ReadChar() { throw null; } + public virtual char[] ReadChars(int count) { throw null; } + public virtual decimal ReadDecimal() { throw null; } + public virtual double ReadDouble() { throw null; } + public virtual short ReadInt16() { throw null; } + public virtual int ReadInt32() { throw null; } + public virtual long ReadInt64() { throw null; } + [System.CLSCompliantAttribute(false)] + public virtual sbyte ReadSByte() { throw null; } + public virtual float ReadSingle() { throw null; } + public virtual string ReadString() { throw null; } + [System.CLSCompliantAttribute(false)] + public virtual ushort ReadUInt16() { throw null; } + [System.CLSCompliantAttribute(false)] + public virtual uint ReadUInt32() { throw null; } + [System.CLSCompliantAttribute(false)] + public virtual ulong ReadUInt64() { throw null; } + } + public partial class BinaryWriter : System.IAsyncDisposable, System.IDisposable + { + public static readonly System.IO.BinaryWriter Null; + protected System.IO.Stream OutStream; + protected BinaryWriter() { } + public BinaryWriter(System.IO.Stream output) { } + public BinaryWriter(System.IO.Stream output, System.Text.Encoding encoding) { } + public BinaryWriter(System.IO.Stream output, System.Text.Encoding encoding, bool leaveOpen) { } + public virtual System.IO.Stream BaseStream { get { throw null; } } + public virtual void Close() { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + public virtual System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + public virtual void Flush() { } + public virtual long Seek(int offset, System.IO.SeekOrigin origin) { throw null; } + public virtual void Write(bool value) { } + public virtual void Write(byte value) { } + public virtual void Write(byte[] buffer) { } + public virtual void Write(byte[] buffer, int index, int count) { } + public virtual void Write(char ch) { } + public virtual void Write(char[] chars) { } + public virtual void Write(char[] chars, int index, int count) { } + public virtual void Write(decimal value) { } + public virtual void Write(double value) { } + public virtual void Write(short value) { } + public virtual void Write(int value) { } + public virtual void Write(long value) { } + public virtual void Write(System.ReadOnlySpan buffer) { } + public virtual void Write(System.ReadOnlySpan chars) { } + [System.CLSCompliantAttribute(false)] + public virtual void Write(sbyte value) { } + public virtual void Write(float value) { } + public virtual void Write(string value) { } + [System.CLSCompliantAttribute(false)] + public virtual void Write(ushort value) { } + [System.CLSCompliantAttribute(false)] + public virtual void Write(uint value) { } + [System.CLSCompliantAttribute(false)] + public virtual void Write(ulong value) { } + protected void Write7BitEncodedInt(int value) { } + } + public sealed partial class BufferedStream : System.IO.Stream + { + public BufferedStream(System.IO.Stream stream) { } + public BufferedStream(System.IO.Stream stream, int bufferSize) { } + public int BufferSize { get { throw null; } } + public override bool CanRead { get { throw null; } } + public override bool CanSeek { get { throw null; } } + public override bool CanWrite { get { throw null; } } + public override long Length { get { throw null; } } + public override long Position { get { throw null; } set { } } + public System.IO.Stream UnderlyingStream { get { throw null; } } + public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } + public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } + public override void CopyTo(System.IO.Stream destination, int bufferSize) { } + public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } + protected override void Dispose(bool disposing) { } + public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + public override int EndRead(System.IAsyncResult asyncResult) { throw null; } + public override void EndWrite(System.IAsyncResult asyncResult) { } + public override void Flush() { } + public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public override int Read(byte[] array, int offset, int count) { throw null; } + public override int Read(System.Span destination) { throw null; } + public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override int ReadByte() { throw null; } + public override long Seek(long offset, System.IO.SeekOrigin origin) { throw null; } + public override void SetLength(long value) { } + public override void Write(byte[] array, int offset, int count) { } + public override void Write(System.ReadOnlySpan buffer) { } + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override void WriteByte(byte value) { } + } public partial class DirectoryNotFoundException : System.IO.IOException { public DirectoryNotFoundException() { } @@ -5300,6 +6642,13 @@ protected DirectoryNotFoundException(System.Runtime.Serialization.SerializationI public DirectoryNotFoundException(string? message) { } public DirectoryNotFoundException(string? message, System.Exception? innerException) { } } + public partial class EndOfStreamException : System.IO.IOException + { + public EndOfStreamException() { } + protected EndOfStreamException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public EndOfStreamException(string? message) { } + public EndOfStreamException(string? message, System.Exception? innerException) { } + } [System.FlagsAttribute] public enum FileAccess { @@ -5445,6 +6794,12 @@ public enum HandleInheritability None = 0, Inheritable = 1, } + public sealed partial class InvalidDataException : System.SystemException + { + public InvalidDataException() { } + public InvalidDataException(string? message) { } + public InvalidDataException(string? message, System.Exception? innerException) { } + } public partial class IOException : System.SystemException { public IOException() { } @@ -5453,6 +6808,104 @@ public IOException(string? message) { } public IOException(string? message, System.Exception? innerException) { } public IOException(string? message, int hresult) { } } + public partial class MemoryStream : System.IO.Stream + { + public MemoryStream() { } + public MemoryStream(byte[] buffer) { } + public MemoryStream(byte[] buffer, bool writable) { } + public MemoryStream(byte[] buffer, int index, int count) { } + public MemoryStream(byte[] buffer, int index, int count, bool writable) { } + public MemoryStream(byte[] buffer, int index, int count, bool writable, bool publiclyVisible) { } + public MemoryStream(int capacity) { } + public override bool CanRead { get { throw null; } } + public override bool CanSeek { get { throw null; } } + public override bool CanWrite { get { throw null; } } + public virtual int Capacity { get { throw null; } set { } } + public override long Length { get { throw null; } } + public override long Position { get { throw null; } set { } } + public override System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } + public override System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } + public override void CopyTo(System.Buffers.ReadOnlySpanAction callback, object? state, int bufferSize) { } + public override void CopyTo(System.IO.Stream destination, int bufferSize) { } + public override System.Threading.Tasks.Task CopyToAsync(System.Func, object?, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> callback, object? state, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } + protected override void Dispose(bool disposing) { } + public override int EndRead(System.IAsyncResult asyncResult) { throw null; } + public override void EndWrite(System.IAsyncResult asyncResult) { } + public override void Flush() { } + public override System.Threading.Tasks.Task FlushAsync(System.Threading.CancellationToken cancellationToken) { throw null; } + public virtual byte[] GetBuffer() { throw null; } + public override int Read(byte[] buffer, int offset, int count) { throw null; } + public override int Read(System.Span destination) { throw null; } + public override System.Threading.Tasks.Task ReadAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory destination, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override int ReadByte() { throw null; } + public override long Seek(long offset, System.IO.SeekOrigin loc) { throw null; } + public override void SetLength(long value) { } + public virtual byte[] ToArray() { throw null; } + public virtual bool TryGetBuffer(out System.ArraySegment buffer) { throw null; } + public override void Write(byte[] buffer, int offset, int count) { } + public override void Write(System.ReadOnlySpan source) { } + public override System.Threading.Tasks.Task WriteAsync(byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override void WriteByte(byte value) { } + public virtual void WriteTo(System.IO.Stream stream) { } + } + public static partial class Path + { + public static readonly char AltDirectorySeparatorChar; + public static readonly char DirectorySeparatorChar; + [System.ObsoleteAttribute("Please use GetInvalidPathChars or GetInvalidFileNameChars instead.")] + public static readonly char[] InvalidPathChars; + public static readonly char PathSeparator; + public static readonly char VolumeSeparatorChar; + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] + public static string? ChangeExtension(string? path, string? extension) { throw null; } + public static string Combine(string path1, string path2) { throw null; } + public static string Combine(string path1, string path2, string path3) { throw null; } + public static string Combine(string path1, string path2, string path3, string path4) { throw null; } + public static string Combine(params string[] paths) { throw null; } + public static bool EndsInDirectorySeparator(System.ReadOnlySpan path) { throw null; } + public static bool EndsInDirectorySeparator(string path) { throw null; } + public static System.ReadOnlySpan GetDirectoryName(System.ReadOnlySpan path) { throw null; } + public static string? GetDirectoryName(string? path) { throw null; } + public static System.ReadOnlySpan GetExtension(System.ReadOnlySpan path) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] + public static string? GetExtension(string? path) { throw null; } + public static System.ReadOnlySpan GetFileName(System.ReadOnlySpan path) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] + public static string? GetFileName(string? path) { throw null; } + public static System.ReadOnlySpan GetFileNameWithoutExtension(System.ReadOnlySpan path) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("path")] + public static string? GetFileNameWithoutExtension(string? path) { throw null; } + public static string GetFullPath(string path) { throw null; } + public static string GetFullPath(string path, string basePath) { throw null; } + public static char[] GetInvalidFileNameChars() { throw null; } + public static char[] GetInvalidPathChars() { throw null; } + public static System.ReadOnlySpan GetPathRoot(System.ReadOnlySpan path) { throw null; } + public static string? GetPathRoot(string? path) { throw null; } + public static string GetRandomFileName() { throw null; } + public static string GetRelativePath(string relativeTo, string path) { throw null; } + public static string GetTempFileName() { throw null; } + public static string GetTempPath() { throw null; } + public static bool HasExtension(System.ReadOnlySpan path) { throw null; } + public static bool HasExtension(string? path) { throw null; } + public static bool IsPathFullyQualified(System.ReadOnlySpan path) { throw null; } + public static bool IsPathFullyQualified(string path) { throw null; } + public static bool IsPathRooted(System.ReadOnlySpan path) { throw null; } + public static bool IsPathRooted([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? path) { throw null; } + public static string Join(System.ReadOnlySpan path1, System.ReadOnlySpan path2) { throw null; } + public static string Join(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.ReadOnlySpan path3) { throw null; } + public static string Join(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.ReadOnlySpan path3, System.ReadOnlySpan path4) { throw null; } + public static string Join(string? path1, string? path2) { throw null; } + public static string Join(string? path1, string? path2, string? path3) { throw null; } + public static string Join(string? path1, string? path2, string? path3, string? path4) { throw null; } + public static string Join(params string?[] paths) { throw null; } + public static System.ReadOnlySpan TrimEndingDirectorySeparator(System.ReadOnlySpan path) { throw null; } + public static string TrimEndingDirectorySeparator(string path) { throw null; } + public static bool TryJoin(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.ReadOnlySpan path3, System.Span destination, out int charsWritten) { throw null; } + public static bool TryJoin(System.ReadOnlySpan path1, System.ReadOnlySpan path2, System.Span destination, out int charsWritten) { throw null; } + } public partial class PathTooLongException : System.IO.IOException { public PathTooLongException() { } @@ -5481,9 +6934,9 @@ protected Stream() { } public virtual System.IAsyncResult BeginRead(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } public virtual System.IAsyncResult BeginWrite(byte[] buffer, int offset, int count, System.AsyncCallback? callback, object? state) { throw null; } public virtual void Close() { } + public virtual void CopyTo(System.Buffers.ReadOnlySpanAction callback, object? state, int bufferSize) { } public void CopyTo(System.IO.Stream destination) { } public virtual void CopyTo(System.IO.Stream destination, int bufferSize) { } - public virtual void CopyTo(System.Buffers.ReadOnlySpanAction callback, object? state, int bufferSize) { } public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination) { throw null; } public System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize) { throw null; } public virtual System.Threading.Tasks.Task CopyToAsync(System.IO.Stream destination, int bufferSize, System.Threading.CancellationToken cancellationToken) { throw null; } @@ -5517,6 +6970,231 @@ public virtual void Write(System.ReadOnlySpan buffer) { } public virtual System.Threading.Tasks.ValueTask WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual void WriteByte(byte value) { } } + public partial class StreamReader : System.IO.TextReader + { + public static readonly new System.IO.StreamReader Null; + public StreamReader(System.IO.Stream stream) { } + public StreamReader(System.IO.Stream stream, bool detectEncodingFromByteOrderMarks) { } + public StreamReader(System.IO.Stream stream, System.Text.Encoding encoding) { } + public StreamReader(System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } + public StreamReader(System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } + public StreamReader(System.IO.Stream stream, System.Text.Encoding? encoding = null, bool detectEncodingFromByteOrderMarks = true, int bufferSize = -1, bool leaveOpen = false) { } + public StreamReader(string path) { } + public StreamReader(string path, bool detectEncodingFromByteOrderMarks) { } + public StreamReader(string path, System.Text.Encoding encoding) { } + public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks) { } + public StreamReader(string path, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize) { } + public virtual System.IO.Stream BaseStream { get { throw null; } } + public virtual System.Text.Encoding CurrentEncoding { get { throw null; } } + public bool EndOfStream { get { throw null; } } + public override void Close() { } + public void DiscardBufferedData() { } + protected override void Dispose(bool disposing) { } + public override int Peek() { throw null; } + public override int Read() { throw null; } + public override int Read(char[] buffer, int index, int count) { throw null; } + public override int Read(System.Span buffer) { throw null; } + public override System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override int ReadBlock(char[] buffer, int index, int count) { throw null; } + public override int ReadBlock(System.Span buffer) { throw null; } + public override System.Threading.Tasks.Task ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask ReadBlockAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override string? ReadLine() { throw null; } + public override System.Threading.Tasks.Task ReadLineAsync() { throw null; } + public override string ReadToEnd() { throw null; } + public override System.Threading.Tasks.Task ReadToEndAsync() { throw null; } + } + public partial class StreamWriter : System.IO.TextWriter + { + public static readonly new System.IO.StreamWriter Null; + public StreamWriter(System.IO.Stream stream) { } + public StreamWriter(System.IO.Stream stream, System.Text.Encoding encoding) { } + public StreamWriter(System.IO.Stream stream, System.Text.Encoding encoding, int bufferSize) { } + public StreamWriter(System.IO.Stream stream, System.Text.Encoding? encoding = null, int bufferSize = -1, bool leaveOpen = false) { } + public StreamWriter(string path) { } + public StreamWriter(string path, bool append) { } + public StreamWriter(string path, bool append, System.Text.Encoding encoding) { } + public StreamWriter(string path, bool append, System.Text.Encoding encoding, int bufferSize) { } + public virtual bool AutoFlush { get { throw null; } set { } } + public virtual System.IO.Stream BaseStream { get { throw null; } } + public override System.Text.Encoding Encoding { get { throw null; } } + public override void Close() { } + protected override void Dispose(bool disposing) { } + public override System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + public override void Flush() { } + public override System.Threading.Tasks.Task FlushAsync() { throw null; } + public override void Write(char value) { } + public override void Write(char[]? buffer) { } + public override void Write(char[] buffer, int index, int count) { } + public override void Write(System.ReadOnlySpan buffer) { } + public override void Write(string? value) { } + public override void Write(string format, object? arg0) { } + public override void Write(string format, object? arg0, object? arg1) { } + public override void Write(string format, object? arg0, object? arg1, object? arg2) { } + public override void Write(string format, params object?[] arg) { } + public override System.Threading.Tasks.Task WriteAsync(char value) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(string? value) { throw null; } + public override void WriteLine(System.ReadOnlySpan buffer) { } + public override void WriteLine(string? value) { } + public override void WriteLine(string format, object? arg0) { } + public override void WriteLine(string format, object? arg0, object? arg1) { } + public override void WriteLine(string format, object? arg0, object? arg1, object? arg2) { } + public override void WriteLine(string format, params object?[] arg) { } + public override System.Threading.Tasks.Task WriteLineAsync() { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(string? value) { throw null; } + } + public partial class StringReader : System.IO.TextReader + { + public StringReader(string s) { } + public override void Close() { } + protected override void Dispose(bool disposing) { } + public override int Peek() { throw null; } + public override int Read() { throw null; } + public override int Read(char[] buffer, int index, int count) { throw null; } + public override int Read(System.Span buffer) { throw null; } + public override System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override int ReadBlock(System.Span buffer) { throw null; } + public override System.Threading.Tasks.Task ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.ValueTask ReadBlockAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override string? ReadLine() { throw null; } + public override System.Threading.Tasks.Task ReadLineAsync() { throw null; } + public override string ReadToEnd() { throw null; } + public override System.Threading.Tasks.Task ReadToEndAsync() { throw null; } + } + public partial class StringWriter : System.IO.TextWriter + { + public StringWriter() { } + public StringWriter(System.IFormatProvider? formatProvider) { } + public StringWriter(System.Text.StringBuilder sb) { } + public StringWriter(System.Text.StringBuilder sb, System.IFormatProvider? formatProvider) { } + public override System.Text.Encoding Encoding { get { throw null; } } + public override void Close() { } + protected override void Dispose(bool disposing) { } + public override System.Threading.Tasks.Task FlushAsync() { throw null; } + public virtual System.Text.StringBuilder GetStringBuilder() { throw null; } + public override string ToString() { throw null; } + public override void Write(char value) { } + public override void Write(char[] buffer, int index, int count) { } + public override void Write(System.ReadOnlySpan buffer) { } + public override void Write(string? value) { } + public override void Write(System.Text.StringBuilder? value) { } + public override System.Threading.Tasks.Task WriteAsync(char value) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(string? value) { throw null; } + public override System.Threading.Tasks.Task WriteAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override void WriteLine(System.ReadOnlySpan buffer) { } + public override void WriteLine(System.Text.StringBuilder? value) { } + public override System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(string? value) { throw null; } + public override System.Threading.Tasks.Task WriteLineAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public abstract partial class TextReader : System.MarshalByRefObject, System.IDisposable + { + public static readonly System.IO.TextReader Null; + protected TextReader() { } + public virtual void Close() { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + public virtual int Peek() { throw null; } + public virtual int Read() { throw null; } + public virtual int Read(char[] buffer, int index, int count) { throw null; } + public virtual int Read(System.Span buffer) { throw null; } + public virtual System.Threading.Tasks.Task ReadAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.ValueTask ReadAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual int ReadBlock(char[] buffer, int index, int count) { throw null; } + public virtual int ReadBlock(System.Span buffer) { throw null; } + public virtual System.Threading.Tasks.Task ReadBlockAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.ValueTask ReadBlockAsync(System.Memory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual string? ReadLine() { throw null; } + public virtual System.Threading.Tasks.Task ReadLineAsync() { throw null; } + public virtual string ReadToEnd() { throw null; } + public virtual System.Threading.Tasks.Task ReadToEndAsync() { throw null; } + public static System.IO.TextReader Synchronized(System.IO.TextReader reader) { throw null; } + } + public abstract partial class TextWriter : System.MarshalByRefObject, System.IAsyncDisposable, System.IDisposable + { + protected char[] CoreNewLine; + public static readonly System.IO.TextWriter Null; + protected TextWriter() { } + protected TextWriter(System.IFormatProvider? formatProvider) { } + public abstract System.Text.Encoding Encoding { get; } + public virtual System.IFormatProvider FormatProvider { get { throw null; } } + [System.Diagnostics.CodeAnalysis.AllowNullAttribute] + public virtual string NewLine { get { throw null; } set { } } + public virtual void Close() { } + public void Dispose() { } + protected virtual void Dispose(bool disposing) { } + public virtual System.Threading.Tasks.ValueTask DisposeAsync() { throw null; } + public virtual void Flush() { } + public virtual System.Threading.Tasks.Task FlushAsync() { throw null; } + public static System.IO.TextWriter Synchronized(System.IO.TextWriter writer) { throw null; } + public virtual void Write(bool value) { } + public virtual void Write(char value) { } + public virtual void Write(char[]? buffer) { } + public virtual void Write(char[] buffer, int index, int count) { } + public virtual void Write(decimal value) { } + public virtual void Write(double value) { } + public virtual void Write(int value) { } + public virtual void Write(long value) { } + public virtual void Write(object? value) { } + public virtual void Write(System.ReadOnlySpan buffer) { } + public virtual void Write(float value) { } + public virtual void Write(string? value) { } + public virtual void Write(string format, object? arg0) { } + public virtual void Write(string format, object? arg0, object? arg1) { } + public virtual void Write(string format, object? arg0, object? arg1, object? arg2) { } + public virtual void Write(string format, params object?[] arg) { } + public virtual void Write(System.Text.StringBuilder? value) { } + [System.CLSCompliantAttribute(false)] + public virtual void Write(uint value) { } + [System.CLSCompliantAttribute(false)] + public virtual void Write(ulong value) { } + public virtual System.Threading.Tasks.Task WriteAsync(char value) { throw null; } + public System.Threading.Tasks.Task WriteAsync(char[]? buffer) { throw null; } + public virtual System.Threading.Tasks.Task WriteAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.Task WriteAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task WriteAsync(string? value) { throw null; } + public virtual System.Threading.Tasks.Task WriteAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual void WriteLine() { } + public virtual void WriteLine(bool value) { } + public virtual void WriteLine(char value) { } + public virtual void WriteLine(char[]? buffer) { } + public virtual void WriteLine(char[] buffer, int index, int count) { } + public virtual void WriteLine(decimal value) { } + public virtual void WriteLine(double value) { } + public virtual void WriteLine(int value) { } + public virtual void WriteLine(long value) { } + public virtual void WriteLine(object? value) { } + public virtual void WriteLine(System.ReadOnlySpan buffer) { } + public virtual void WriteLine(float value) { } + public virtual void WriteLine(string? value) { } + public virtual void WriteLine(string format, object? arg0) { } + public virtual void WriteLine(string format, object? arg0, object? arg1) { } + public virtual void WriteLine(string format, object? arg0, object? arg1, object? arg2) { } + public virtual void WriteLine(string format, params object?[] arg) { } + public virtual void WriteLine(System.Text.StringBuilder? value) { } + [System.CLSCompliantAttribute(false)] + public virtual void WriteLine(uint value) { } + [System.CLSCompliantAttribute(false)] + public virtual void WriteLine(ulong value) { } + public virtual System.Threading.Tasks.Task WriteLineAsync() { throw null; } + public virtual System.Threading.Tasks.Task WriteLineAsync(char value) { throw null; } + public System.Threading.Tasks.Task WriteLineAsync(char[]? buffer) { throw null; } + public virtual System.Threading.Tasks.Task WriteLineAsync(char[] buffer, int index, int count) { throw null; } + public virtual System.Threading.Tasks.Task WriteLineAsync(System.ReadOnlyMemory buffer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task WriteLineAsync(string? value) { throw null; } + public virtual System.Threading.Tasks.Task WriteLineAsync(System.Text.StringBuilder? value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class UnmanagedMemoryStream : System.IO.Stream { protected UnmanagedMemoryStream() { } @@ -5555,6 +7233,58 @@ public override void Write(System.ReadOnlySpan source) { } public override void WriteByte(byte value) { } } } +namespace System.Net +{ + public static partial class WebUtility + { + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static string? HtmlDecode(string? value) { throw null; } + public static void HtmlDecode(string? value, System.IO.TextWriter output) { } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static string? HtmlEncode(string? value) { throw null; } + public static void HtmlEncode(string? value, System.IO.TextWriter output) { } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("encodedValue")] + public static string? UrlDecode(string? encodedValue) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("encodedValue")] + public static byte[]? UrlDecodeToBytes(byte[]? encodedValue, int offset, int count) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static string? UrlEncode(string? value) { throw null; } + [return: System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute("value")] + public static byte[]? UrlEncodeToBytes(byte[]? value, int offset, int count) { throw null; } + } +} +namespace System.Numerics +{ + public static partial class BitOperations + { + [System.CLSCompliantAttribute(false)] + public static int LeadingZeroCount(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int LeadingZeroCount(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int Log2(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int Log2(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int PopCount(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int PopCount(ulong value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint RotateLeft(uint value, int offset) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong RotateLeft(ulong value, int offset) { throw null; } + [System.CLSCompliantAttribute(false)] + public static uint RotateRight(uint value, int offset) { throw null; } + [System.CLSCompliantAttribute(false)] + public static ulong RotateRight(ulong value, int offset) { throw null; } + public static int TrailingZeroCount(int value) { throw null; } + public static int TrailingZeroCount(long value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int TrailingZeroCount(uint value) { throw null; } + [System.CLSCompliantAttribute(false)] + public static int TrailingZeroCount(ulong value) { throw null; } + } +} namespace System.Reflection { public sealed partial class AmbiguousMatchException : System.SystemException @@ -5780,6 +7510,11 @@ public enum AssemblyNameFlags EnableJITcompileOptimizer = 16384, EnableJITcompileTracking = 32768, } + public partial class AssemblyNameProxy : System.MarshalByRefObject + { + public AssemblyNameProxy() { } + public System.Reflection.AssemblyName GetAssemblyName(string assemblyFile) { throw null; } + } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, Inherited=false)] public sealed partial class AssemblyProductAttribute : System.Attribute { @@ -6444,9 +8179,9 @@ public readonly partial struct ParameterModifier public sealed partial class Pointer : System.Runtime.Serialization.ISerializable { internal Pointer() { } - public static unsafe object Box(void* ptr, System.Type type) { throw null; } + public unsafe static object Box(void* ptr, System.Type type) { throw null; } void System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } - public static unsafe void* Unbox(object ptr) { throw null; } + public unsafe static void* Unbox(object ptr) { throw null; } } [System.FlagsAttribute] public enum PortableExecutableKinds @@ -6669,7 +8404,7 @@ public TypeDelegator(System.Type delegatingType) { } protected override bool HasElementTypeImpl() { throw null; } public override object? InvokeMember(string name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder? binder, object? target, object?[]? args, System.Reflection.ParameterModifier[]? modifiers, System.Globalization.CultureInfo? culture, string[]? namedParameters) { throw null; } protected override bool IsArrayImpl() { throw null; } - public override bool IsAssignableFrom([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Reflection.TypeInfo? typeInfo) { throw null; } + public override bool IsAssignableFrom([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Reflection.TypeInfo? typeInfo) { throw null; } protected override bool IsByRefImpl() { throw null; } protected override bool IsCOMObjectImpl() { throw null; } public override bool IsDefined(System.Type attributeType, bool inherit) { throw null; } @@ -6697,7 +8432,7 @@ protected TypeInfo() { } public virtual System.Collections.Generic.IEnumerable GetDeclaredMethods(string name) { throw null; } public virtual System.Reflection.TypeInfo? GetDeclaredNestedType(string name) { throw null; } public virtual System.Reflection.PropertyInfo? GetDeclaredProperty(string name) { throw null; } - public virtual bool IsAssignableFrom([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Reflection.TypeInfo? typeInfo) { throw null; } + public virtual bool IsAssignableFrom([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Reflection.TypeInfo? typeInfo) { throw null; } System.Reflection.TypeInfo System.Reflection.IReflectableType.GetTypeInfo() { throw null; } } } @@ -6843,6 +8578,11 @@ public MemoryFailPoint(int sizeInMegabytes) { } public void Dispose() { } ~MemoryFailPoint() { } } + public static partial class ProfileOptimization + { + public static void SetProfileRoot(string directoryPath) { } + public static void StartProfile(string profile) { } + } [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)] public sealed partial class TargetedPatchingOptOutAttribute : System.Attribute { @@ -6879,6 +8619,11 @@ public sealed partial class AsyncMethodBuilderAttribute : System.Attribute public AsyncMethodBuilderAttribute(System.Type builderType) { } public System.Type BuilderType { get { throw null; } } } + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] + public sealed partial class AsyncStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute + { + public AsyncStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } + } public partial struct AsyncTaskMethodBuilder { private object _dummy; @@ -6905,11 +8650,6 @@ public void SetResult(TResult result) { } public void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) { } public void Start(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } } - [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] - public sealed partial class AsyncStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute - { - public AsyncStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } - } public partial struct AsyncValueTaskMethodBuilder { private object _dummy; @@ -7302,7 +9042,7 @@ public RuntimeWrappedException(object thrownObject) { } public object WrappedException { get { throw null; } } public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } } - [System.AttributeUsageAttribute(System.AttributeTargets.Module | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Event, Inherited = false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)] public sealed partial class SkipLocalsInitAttribute : System.Attribute { public SkipLocalsInitAttribute() { } @@ -7336,6 +9076,17 @@ public sealed partial class SuppressIldasmAttribute : System.Attribute { public SuppressIldasmAttribute() { } } + public sealed partial class SwitchExpressionException : System.InvalidOperationException + { + public SwitchExpressionException() { } + public SwitchExpressionException(System.Exception? innerException) { } + public SwitchExpressionException(object? unmatchedValue) { } + public SwitchExpressionException(string? message) { } + public SwitchExpressionException(string? message, System.Exception? innerException) { } + public override string Message { get { throw null; } } + public object? UnmatchedValue { get { throw null; } } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } public readonly partial struct TaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion, System.Runtime.CompilerServices.INotifyCompletion { private readonly object _dummy; @@ -7601,7 +9352,7 @@ public StructLayoutAttribute(short layoutKind) { } public StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind layoutKind) { } public System.Runtime.InteropServices.LayoutKind Value { get { throw null; } } } - [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited = false)] + [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false)] public sealed partial class SuppressGCTransitionAttribute : System.Attribute { public SuppressGCTransitionAttribute() { } @@ -7794,6 +9545,63 @@ public enum StreamingContextStates } namespace System.Runtime.Versioning { + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] + public sealed partial class ComponentGuaranteesAttribute : System.Attribute + { + public ComponentGuaranteesAttribute(System.Runtime.Versioning.ComponentGuaranteesOptions guarantees) { } + public System.Runtime.Versioning.ComponentGuaranteesOptions Guarantees { get { throw null; } } + } + [System.FlagsAttribute] + public enum ComponentGuaranteesOptions + { + None = 0, + Exchange = 1, + Stable = 2, + SideBySide = 4, + } + public sealed partial class FrameworkName : System.IEquatable + { + public FrameworkName(string frameworkName) { } + public FrameworkName(string identifier, System.Version version) { } + public FrameworkName(string identifier, System.Version version, string? profile) { } + public string FullName { get { throw null; } } + public string Identifier { get { throw null; } } + public string Profile { get { throw null; } } + public System.Version Version { get { throw null; } } + public override bool Equals(object? obj) { throw null; } + public bool Equals(System.Runtime.Versioning.FrameworkName? other) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(System.Runtime.Versioning.FrameworkName? left, System.Runtime.Versioning.FrameworkName? right) { throw null; } + public static bool operator !=(System.Runtime.Versioning.FrameworkName? left, System.Runtime.Versioning.FrameworkName? right) { throw null; } + public override string ToString() { throw null; } + } + [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)] + [System.Diagnostics.ConditionalAttribute("RESOURCE_ANNOTATION_WORK")] + public sealed partial class ResourceConsumptionAttribute : System.Attribute + { + public ResourceConsumptionAttribute(System.Runtime.Versioning.ResourceScope resourceScope) { } + public ResourceConsumptionAttribute(System.Runtime.Versioning.ResourceScope resourceScope, System.Runtime.Versioning.ResourceScope consumptionScope) { } + public System.Runtime.Versioning.ResourceScope ConsumptionScope { get { throw null; } } + public System.Runtime.Versioning.ResourceScope ResourceScope { get { throw null; } } + } + [System.AttributeUsageAttribute(System.AttributeTargets.Constructor | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, Inherited=false)] + [System.Diagnostics.ConditionalAttribute("RESOURCE_ANNOTATION_WORK")] + public sealed partial class ResourceExposureAttribute : System.Attribute + { + public ResourceExposureAttribute(System.Runtime.Versioning.ResourceScope exposureLevel) { } + public System.Runtime.Versioning.ResourceScope ResourceExposureLevel { get { throw null; } } + } + [System.FlagsAttribute] + public enum ResourceScope + { + None = 0, + Machine = 1, + Process = 2, + AppDomain = 4, + Library = 8, + Private = 16, + Assembly = 32, + } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)] public sealed partial class TargetFrameworkAttribute : System.Attribute { @@ -7801,6 +9609,11 @@ public TargetFrameworkAttribute(string frameworkName) { } public string? FrameworkDisplayName { get { throw null; } set { } } public string FrameworkName { get { throw null; } } } + public static partial class VersioningHelper + { + public static string MakeVersionSafeName(string? name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to) { throw null; } + public static string MakeVersionSafeName(string? name, System.Runtime.Versioning.ResourceScope from, System.Runtime.Versioning.ResourceScope to, System.Type? type) { throw null; } + } } namespace System.Security { @@ -7810,11 +9623,72 @@ public sealed partial class AllowPartiallyTrustedCallersAttribute : System.Attri public AllowPartiallyTrustedCallersAttribute() { } public System.Security.PartialTrustVisibilityLevel PartialTrustVisibilityLevel { get { throw null; } set { } } } + public partial interface IPermission : System.Security.ISecurityEncodable + { + System.Security.IPermission Copy(); + void Demand(); + System.Security.IPermission? Intersect(System.Security.IPermission? target); + bool IsSubsetOf(System.Security.IPermission? target); + System.Security.IPermission? Union(System.Security.IPermission? target); + } + public partial interface ISecurityEncodable + { + void FromXml(System.Security.SecurityElement e); + System.Security.SecurityElement? ToXml(); + } + public partial interface IStackWalk + { + void Assert(); + void Demand(); + void Deny(); + void PermitOnly(); + } public enum PartialTrustVisibilityLevel { VisibleToAllHosts = 0, NotVisibleByDefault = 1, } + public partial class PermissionSet : System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.IDeserializationCallback, System.Security.ISecurityEncodable, System.Security.IStackWalk + { + public PermissionSet(System.Security.Permissions.PermissionState state) { } + public PermissionSet(System.Security.PermissionSet? permSet) { } + public virtual int Count { get { throw null; } } + public virtual bool IsReadOnly { get { throw null; } } + public virtual bool IsSynchronized { get { throw null; } } + public virtual object SyncRoot { get { throw null; } } + public System.Security.IPermission? AddPermission(System.Security.IPermission? perm) { throw null; } + protected virtual System.Security.IPermission? AddPermissionImpl(System.Security.IPermission? perm) { throw null; } + public void Assert() { } + public bool ContainsNonCodeAccessPermissions() { throw null; } + [System.ObsoleteAttribute] + public static byte[] ConvertPermissionSet(string inFormat, byte[] inData, string outFormat) { throw null; } + public virtual System.Security.PermissionSet Copy() { throw null; } + public virtual void CopyTo(System.Array array, int index) { } + public void Demand() { } + [System.ObsoleteAttribute] + public void Deny() { } + public override bool Equals(object? o) { throw null; } + public virtual void FromXml(System.Security.SecurityElement et) { } + public System.Collections.IEnumerator GetEnumerator() { throw null; } + protected virtual System.Collections.IEnumerator GetEnumeratorImpl() { throw null; } + public override int GetHashCode() { throw null; } + public System.Security.IPermission? GetPermission(System.Type? permClass) { throw null; } + protected virtual System.Security.IPermission? GetPermissionImpl(System.Type? permClass) { throw null; } + public System.Security.PermissionSet? Intersect(System.Security.PermissionSet? other) { throw null; } + public bool IsEmpty() { throw null; } + public bool IsSubsetOf(System.Security.PermissionSet? target) { throw null; } + public bool IsUnrestricted() { throw null; } + public void PermitOnly() { } + public System.Security.IPermission? RemovePermission(System.Type? permClass) { throw null; } + protected virtual System.Security.IPermission? RemovePermissionImpl(System.Type? permClass) { throw null; } + public static void RevertAssert() { } + public System.Security.IPermission? SetPermission(System.Security.IPermission? perm) { throw null; } + protected virtual System.Security.IPermission? SetPermissionImpl(System.Security.IPermission? perm) { throw null; } + void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object? sender) { } + public override string ToString() { throw null; } + public virtual System.Security.SecurityElement? ToXml() { throw null; } + public System.Security.PermissionSet? Union(System.Security.PermissionSet? other) { throw null; } + } [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)] public sealed partial class SecurityCriticalAttribute : System.Attribute { @@ -7829,6 +9703,29 @@ public enum SecurityCriticalScope Explicit = 0, Everything = 1, } + public sealed partial class SecurityElement + { + public SecurityElement(string tag) { } + public SecurityElement(string tag, string? text) { } + public System.Collections.Hashtable? Attributes { get { throw null; } set { } } + public System.Collections.ArrayList? Children { get { throw null; } set { } } + public string Tag { get { throw null; } set { } } + public string? Text { get { throw null; } set { } } + public void AddAttribute(string name, string value) { } + public void AddChild(System.Security.SecurityElement child) { } + public string? Attribute(string name) { throw null; } + public System.Security.SecurityElement Copy() { throw null; } + public bool Equal(System.Security.SecurityElement? other) { throw null; } + public static string? Escape(string? str) { throw null; } + public static System.Security.SecurityElement? FromString(string xml) { throw null; } + public static bool IsValidAttributeName(string? name) { throw null; } + public static bool IsValidAttributeValue(string? value) { throw null; } + public static bool IsValidTag(string? tag) { throw null; } + public static bool IsValidText(string? text) { throw null; } + public System.Security.SecurityElement? SearchForChildByTag(string tag) { throw null; } + public string? SearchForTextOfTag(string tag) { throw null; } + public override string ToString() { throw null; } + } public partial class SecurityException : System.SystemException { public SecurityException() { } @@ -7909,6 +9806,112 @@ public CryptographicException(string? message, System.Exception? inner) { } public CryptographicException(string format, string? insert) { } } } +namespace System.Security.Permissions +{ + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] + public abstract partial class CodeAccessSecurityAttribute : System.Security.Permissions.SecurityAttribute + { + protected CodeAccessSecurityAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { } + } + public enum PermissionState + { + None = 0, + Unrestricted = 1, + } + public enum SecurityAction + { + Demand = 2, + Assert = 3, + [System.ObsoleteAttribute("Deny is obsolete and will be removed in a future release of the .NET Framework. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] + Deny = 4, + PermitOnly = 5, + LinkDemand = 6, + InheritanceDemand = 7, + [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] + RequestMinimum = 8, + [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] + RequestOptional = 9, + [System.ObsoleteAttribute("Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See https://go.microsoft.com/fwlink/?LinkID=155570 for more information.")] + RequestRefuse = 10, + } + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] + public abstract partial class SecurityAttribute : System.Attribute + { + protected SecurityAttribute(System.Security.Permissions.SecurityAction action) { } + public System.Security.Permissions.SecurityAction Action { get { throw null; } set { } } + public bool Unrestricted { get { throw null; } set { } } + public abstract System.Security.IPermission? CreatePermission(); + } + [System.AttributeUsageAttribute(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)] + public sealed partial class SecurityPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute + { + public SecurityPermissionAttribute(System.Security.Permissions.SecurityAction action) : base (default(System.Security.Permissions.SecurityAction)) { } + public bool Assertion { get { throw null; } set { } } + public bool BindingRedirects { get { throw null; } set { } } + public bool ControlAppDomain { get { throw null; } set { } } + public bool ControlDomainPolicy { get { throw null; } set { } } + public bool ControlEvidence { get { throw null; } set { } } + public bool ControlPolicy { get { throw null; } set { } } + public bool ControlPrincipal { get { throw null; } set { } } + public bool ControlThread { get { throw null; } set { } } + public bool Execution { get { throw null; } set { } } + public System.Security.Permissions.SecurityPermissionFlag Flags { get { throw null; } set { } } + public bool Infrastructure { get { throw null; } set { } } + public bool RemotingConfiguration { get { throw null; } set { } } + public bool SerializationFormatter { get { throw null; } set { } } + public bool SkipVerification { get { throw null; } set { } } + public bool UnmanagedCode { get { throw null; } set { } } + public override System.Security.IPermission? CreatePermission() { throw null; } + } + [System.FlagsAttribute] + public enum SecurityPermissionFlag + { + NoFlags = 0, + Assertion = 1, + UnmanagedCode = 2, + SkipVerification = 4, + Execution = 8, + ControlThread = 16, + ControlEvidence = 32, + ControlPolicy = 64, + SerializationFormatter = 128, + ControlDomainPolicy = 256, + ControlPrincipal = 512, + ControlAppDomain = 1024, + RemotingConfiguration = 2048, + Infrastructure = 4096, + BindingRedirects = 8192, + AllFlags = 16383, + } +} +namespace System.Security.Principal +{ + public partial interface IIdentity + { + string? AuthenticationType { get; } + bool IsAuthenticated { get; } + string? Name { get; } + } + public partial interface IPrincipal + { + System.Security.Principal.IIdentity? Identity { get; } + bool IsInRole(string role); + } + public enum PrincipalPolicy + { + UnauthenticatedPrincipal = 0, + NoPrincipal = 1, + WindowsPrincipal = 2, + } + public enum TokenImpersonationLevel + { + None = 0, + Anonymous = 1, + Identification = 2, + Impersonation = 3, + Delegation = 4, + } +} namespace System.Text { public abstract partial class Decoder diff --git a/src/libraries/System.Runtime/ref/System.Runtime.csproj b/src/libraries/System.Runtime/ref/System.Runtime.csproj index 9b6063aa3dbfe5..05b8fde19e5472 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.csproj +++ b/src/libraries/System.Runtime/ref/System.Runtime.csproj @@ -10,6 +10,5 @@ - \ No newline at end of file diff --git a/src/libraries/System.Runtime/src/MatchingRefApiCompatBaseline.txt b/src/libraries/System.Runtime/src/MatchingRefApiCompatBaseline.txt index 2ec089b51ecf9c..987b2004e14f80 100644 --- a/src/libraries/System.Runtime/src/MatchingRefApiCompatBaseline.txt +++ b/src/libraries/System.Runtime/src/MatchingRefApiCompatBaseline.txt @@ -6,6 +6,7 @@ MembersMustExist : Member 'System.AppContext.remove_FirstChanceException(System. MembersMustExist : Member 'System.AppContext.remove_ProcessExit(System.EventHandler)' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.AppContext.remove_UnhandledException(System.UnhandledExceptionEventHandler)' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.AppContext.SetData(System.String, System.Object)' does not exist in the reference but it does exist in the implementation. +MembersMustExist : Member 'System.Environment.FailFast(System.String, System.Exception, System.String)' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.WeakReference..ctor()' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.Diagnostics.Debug.SetProvider(System.Diagnostics.DebugProvider)' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.Reflection.Module.GetModuleHandleImpl()' does not exist in the reference but it does exist in the implementation. @@ -16,4 +17,4 @@ MembersMustExist : Member 'System.Runtime.Serialization.SerializationInfo.StartD MembersMustExist : Member 'System.Runtime.Serialization.SerializationInfo.ThrowIfDeserializationInProgress()' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.Runtime.Serialization.SerializationInfo.ThrowIfDeserializationInProgress(System.String, System.Int32)' does not exist in the reference but it does exist in the implementation. MembersMustExist : Member 'System.Runtime.Serialization.SerializationInfo.UpdateValue(System.String, System.Object, System.Type)' does not exist in the reference but it does exist in the implementation. -Total Issues: 17 +Total Issues: 18 diff --git a/src/libraries/System.Runtime/src/System/System.Runtime.Typeforwards.cs b/src/libraries/System.Runtime/src/System.Runtime.Typeforwards.cs similarity index 100% rename from src/libraries/System.Runtime/src/System/System.Runtime.Typeforwards.cs rename to src/libraries/System.Runtime/src/System.Runtime.Typeforwards.cs diff --git a/src/libraries/System.Runtime/src/System.Runtime.csproj b/src/libraries/System.Runtime/src/System.Runtime.csproj index a842af4865f0ac..cd2e1e337406af 100644 --- a/src/libraries/System.Runtime/src/System.Runtime.csproj +++ b/src/libraries/System.Runtime/src/System.Runtime.csproj @@ -3,25 +3,13 @@ System.Runtime true $(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix - enable - - - - - - - - - - - - + @@ -29,4 +17,4 @@ - \ No newline at end of file + diff --git a/src/libraries/System.Runtime/src/System/Action.cs b/src/libraries/System.Runtime/src/System/Action.cs deleted file mode 100644 index 84f60a01402e41..00000000000000 --- a/src/libraries/System.Runtime/src/System/Action.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -namespace System -{ - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15); - - public delegate void Action(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15, T16 arg16); -} diff --git a/src/libraries/System.Security.Principal/ref/System.Security.Principal.Forwards.cs b/src/libraries/System.Security.Principal/ref/System.Security.Principal.Forwards.cs new file mode 100644 index 00000000000000..86f5e2d1e893a0 --- /dev/null +++ b/src/libraries/System.Security.Principal/ref/System.Security.Principal.Forwards.cs @@ -0,0 +1,11 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ + +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.IIdentity))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.IPrincipal))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.PrincipalPolicy))] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Principal.TokenImpersonationLevel))] diff --git a/src/libraries/System.Security.Principal/ref/System.Security.Principal.cs b/src/libraries/System.Security.Principal/ref/System.Security.Principal.cs deleted file mode 100644 index a03aabc1ddee12..00000000000000 --- a/src/libraries/System.Security.Principal/ref/System.Security.Principal.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace System.Security.Principal -{ - public partial interface IIdentity - { - string? AuthenticationType { get; } - bool IsAuthenticated { get; } - string? Name { get; } - } - public partial interface IPrincipal - { - System.Security.Principal.IIdentity? Identity { get; } - bool IsInRole(string role); - } - public enum PrincipalPolicy - { - UnauthenticatedPrincipal = 0, - NoPrincipal = 1, - WindowsPrincipal = 2, - } - public enum TokenImpersonationLevel - { - None = 0, - Anonymous = 1, - Identification = 2, - Impersonation = 3, - Delegation = 4, - } -} diff --git a/src/libraries/System.Security.Principal/ref/System.Security.Principal.csproj b/src/libraries/System.Security.Principal/ref/System.Security.Principal.csproj index c184cece21f152..144a72da87e257 100644 --- a/src/libraries/System.Security.Principal/ref/System.Security.Principal.csproj +++ b/src/libraries/System.Security.Principal/ref/System.Security.Principal.csproj @@ -1,10 +1,9 @@ $(NetCoreAppCurrent) - enable - +