diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4.md new file mode 100644 index 0000000000..3a664bc594 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4.md @@ -0,0 +1,36 @@ +# API Difference 8.0-preview3 vs 8.0-preview4 + +API listing follows standard diff formatting. +Lines preceded by a '+' are additions and a '-' indicates removal. + +* [Microsoft.AspNetCore.Authentication.BearerToken](8.0-preview4_Microsoft.AspNetCore.Authentication.BearerToken.md) +* [Microsoft.AspNetCore.Builder](8.0-preview4_Microsoft.AspNetCore.Builder.md) +* [Microsoft.AspNetCore.Components](8.0-preview4_Microsoft.AspNetCore.Components.md) +* [Microsoft.AspNetCore.Components.Endpoints](8.0-preview4_Microsoft.AspNetCore.Components.Endpoints.md) +* [Microsoft.AspNetCore.Components.Forms](8.0-preview4_Microsoft.AspNetCore.Components.Forms.md) +* [Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure](8.0-preview4_Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure.md) +* [Microsoft.AspNetCore.Components.Rendering](8.0-preview4_Microsoft.AspNetCore.Components.Rendering.md) +* [Microsoft.AspNetCore.Components.RenderTree](8.0-preview4_Microsoft.AspNetCore.Components.RenderTree.md) +* [Microsoft.AspNetCore.Components.Routing](8.0-preview4_Microsoft.AspNetCore.Components.Routing.md) +* [Microsoft.AspNetCore.Components.Sections](8.0-preview4_Microsoft.AspNetCore.Components.Sections.md) +* [Microsoft.AspNetCore.Components.Web](8.0-preview4_Microsoft.AspNetCore.Components.Web.md) +* [Microsoft.AspNetCore.Components.Web.HtmlRendering](8.0-preview4_Microsoft.AspNetCore.Components.Web.HtmlRendering.md) +* [Microsoft.AspNetCore.Connections.Features](8.0-preview4_Microsoft.AspNetCore.Connections.Features.md) +* [Microsoft.AspNetCore.DataProtection.XmlEncryption](8.0-preview4_Microsoft.AspNetCore.DataProtection.XmlEncryption.md) +* [Microsoft.AspNetCore.Hosting](8.0-preview4_Microsoft.AspNetCore.Hosting.md) +* [Microsoft.AspNetCore.Http](8.0-preview4_Microsoft.AspNetCore.Http.md) +* [Microsoft.AspNetCore.Http.Features](8.0-preview4_Microsoft.AspNetCore.Http.Features.md) +* [Microsoft.AspNetCore.Http.Metadata](8.0-preview4_Microsoft.AspNetCore.Http.Metadata.md) +* [Microsoft.AspNetCore.HttpLogging](8.0-preview4_Microsoft.AspNetCore.HttpLogging.md) +* [Microsoft.AspNetCore.Identity](8.0-preview4_Microsoft.AspNetCore.Identity.md) +* [Microsoft.AspNetCore.Mvc.Infrastructure](8.0-preview4_Microsoft.AspNetCore.Mvc.Infrastructure.md) +* [Microsoft.AspNetCore.Routing](8.0-preview4_Microsoft.AspNetCore.Routing.md) +* [Microsoft.AspNetCore.Routing.Patterns](8.0-preview4_Microsoft.AspNetCore.Routing.Patterns.md) +* [Microsoft.AspNetCore.SignalR](8.0-preview4_Microsoft.AspNetCore.SignalR.md) +* [Microsoft.Extensions.Configuration](8.0-preview4_Microsoft.Extensions.Configuration.md) +* [Microsoft.Extensions.Configuration.Xml](8.0-preview4_Microsoft.Extensions.Configuration.Xml.md) +* [Microsoft.Extensions.DependencyInjection](8.0-preview4_Microsoft.Extensions.DependencyInjection.md) +* [Microsoft.Extensions.Hosting](8.0-preview4_Microsoft.Extensions.Hosting.md) +* [System.Diagnostics.Eventing.Reader](8.0-preview4_System.Diagnostics.Eventing.Reader.md) +* [System.Security.Cryptography.Xml](8.0-preview4_System.Security.Cryptography.Xml.md) + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Authentication.BearerToken.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Authentication.BearerToken.md new file mode 100644 index 0000000000..539c5ab7c9 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Authentication.BearerToken.md @@ -0,0 +1,25 @@ +# Microsoft.AspNetCore.Authentication.BearerToken + +``` diff ++namespace Microsoft.AspNetCore.Authentication.BearerToken { ++ public static class BearerTokenDefaults { ++ public const string AuthenticationScheme = "BearerToken"; ++ } ++ public class BearerTokenEvents { ++ public BearerTokenEvents(); ++ public Func OnMessageReceived { get; set; } ++ public virtual Task MessageReceived(MessageReceivedContext context); ++ } ++ public sealed class BearerTokenOptions : AuthenticationSchemeOptions { ++ public BearerTokenOptions(); ++ public TimeSpan BearerTokenExpiration { get; set; } ++ public ISecureDataFormat? BearerTokenProtector { get; set; } ++ public new BearerTokenEvents Events { get; set; } ++ } ++ public class MessageReceivedContext : ResultContext { ++ public MessageReceivedContext(HttpContext context, AuthenticationScheme scheme, BearerTokenOptions options); ++ public string Token { get; set; } ++ } ++} +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Builder.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Builder.md new file mode 100644 index 0000000000..99e10f6879 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Builder.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Builder + +``` diff + namespace Microsoft.AspNetCore.Builder { ++ public static class HttpLoggingEndpointConventionBuilderExtensions { ++ public static TBuilder WithHttpLogging(this TBuilder builder, HttpLoggingFields loggingFields, int requestBodyLogLimit = -1, int responseBodyLogLimit = -1) where TBuilder : IEndpointConventionBuilder; ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Endpoints.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Endpoints.md new file mode 100644 index 0000000000..5dcbf10b57 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Endpoints.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Components.Endpoints + +``` diff + namespace Microsoft.AspNetCore.Components.Endpoints { + public class RazorComponentResult : IResult { ++ public bool PreventStreamingRendering { get; set; } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Forms.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Forms.md new file mode 100644 index 0000000000..3ad1ecc424 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Forms.md @@ -0,0 +1,36 @@ +# Microsoft.AspNetCore.Components.Forms + +``` diff + namespace Microsoft.AspNetCore.Components.Forms { + public sealed class EditContext { ++ public bool ShouldUseFieldIdentifiers { get; set; } +- [IteratorStateMachineAttribute(typeof(EditContext.d__23))] +- public IEnumerable GetValidationMessages(); ++ [IteratorStateMachineAttribute(typeof(EditContext.d__27))] ++ public IEnumerable GetValidationMessages(); +- [IteratorStateMachineAttribute(typeof(EditContext.d__24))] +- public IEnumerable GetValidationMessages(FieldIdentifier fieldIdentifier); ++ [IteratorStateMachineAttribute(typeof(EditContext.d__28))] ++ public IEnumerable GetValidationMessages(FieldIdentifier fieldIdentifier); + } + public class EditForm : ComponentBase { ++ [CascadingParameterAttribute] ++ public ModelBindingContext BindingContext { get; set; } ++ [ParameterAttribute] ++ public string FormHandlerName { get; set; } + } ++ public abstract class FormDataProvider { ++ protected FormDataProvider(); ++ public abstract IReadOnlyDictionary Entries { get; } ++ public bool IsFormDataAvailable { get; } ++ public abstract string? Name { get; } ++ } ++ public interface IHostEnvironmentFormDataProvider { ++ void SetFormData(string name, IReadOnlyDictionary formData); ++ } + public abstract class InputBase : ComponentBase, IDisposable { ++ protected string NameAttributeValue { get; } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure.md new file mode 100644 index 0000000000..c37786d72e --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure.md @@ -0,0 +1,15 @@ +# Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure + +``` diff ++namespace Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure { ++ public class StaticHtmlRenderer : Renderer { ++ public StaticHtmlRenderer(IServiceProvider serviceProvider, ILoggerFactory loggerFactory); ++ public override Dispatcher Dispatcher { get; } ++ public HtmlRootComponent BeginRenderingComponent(Type componentType, ParameterView initialParameters); ++ protected override void HandleException(Exception exception); ++ protected override Task UpdateDisplayAsync(in RenderBatch renderBatch); ++ protected internal virtual void WriteComponentHtml(int componentId, TextWriter output); ++ } ++} +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.RenderTree.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.RenderTree.md new file mode 100644 index 0000000000..5455f4c6e3 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.RenderTree.md @@ -0,0 +1,15 @@ +# Microsoft.AspNetCore.Components.RenderTree + +``` diff + namespace Microsoft.AspNetCore.Components.RenderTree { + public abstract class Renderer : IAsyncDisposable, IDisposable { ++ protected virtual void AddPendingTask(ComponentState? componentState, Task task); ++ protected virtual ComponentState CreateComponentState(int componentId, IComponent component, ComponentState? parentComponentState); ++ public virtual Task DispatchEventAsync(ulong eventHandlerId, EventFieldInfo? fieldInfo, EventArgs eventArgs, bool quiesce); ++ protected ComponentState GetComponentState(int componentId); ++ protected internal virtual bool ShouldTrackNamedEventHandlers(); ++ protected internal virtual void TrackNamedEventId(ulong eventHandlerId, int componentId, string eventHandlerName); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Rendering.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Rendering.md new file mode 100644 index 0000000000..623bf73ae4 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Rendering.md @@ -0,0 +1,18 @@ +# Microsoft.AspNetCore.Components.Rendering + +``` diff + namespace Microsoft.AspNetCore.Components.Rendering { ++ [DebuggerDisplayAttribute("{GetDebuggerDisplay(),nq}")] ++ public class ComponentState : IDisposable { ++ public ComponentState(Renderer renderer, int componentId, IComponent component, ComponentState? parentComponentState); ++ public IComponent Component { get; } ++ public int ComponentId { get; } ++ public ComponentState? ParentComponentState { get; } ++ public void Dispose(); ++ } + public sealed class RenderTreeBuilder : IDisposable { ++ public void SetEventHandlerName(string eventHandlerName); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Routing.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Routing.md new file mode 100644 index 0000000000..81e050b2cd --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Routing.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Components.Routing + +``` diff + namespace Microsoft.AspNetCore.Components.Routing { ++ public interface IScrollToLocationHash { ++ Task RefreshScrollPositionForHash(string locationAbsolute); ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Sections.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Sections.md new file mode 100644 index 0000000000..1f7a6af5bd --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Sections.md @@ -0,0 +1,11 @@ +# Microsoft.AspNetCore.Components.Sections + +``` diff + namespace Microsoft.AspNetCore.Components.Sections { +- public sealed class SectionOutlet : IComponent, IDisposable, ISectionContentSubscriber ++ [StreamRenderingAttribute(true)] ++ public sealed class SectionOutlet : IComponent, IDisposable, ISectionContentSubscriber { ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Web.HtmlRendering.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Web.HtmlRendering.md new file mode 100644 index 0000000000..971efcf815 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Web.HtmlRendering.md @@ -0,0 +1,13 @@ +# Microsoft.AspNetCore.Components.Web.HtmlRendering + +``` diff ++namespace Microsoft.AspNetCore.Components.Web.HtmlRendering { ++ public readonly struct HtmlRootComponent { ++ public int ComponentId { get; } ++ public Task QuiescenceTask { get; } ++ public string ToHtmlString(); ++ public void WriteHtmlTo(TextWriter output); ++ } ++} +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Web.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Web.md new file mode 100644 index 0000000000..3a0c33f585 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.Web.md @@ -0,0 +1,31 @@ +# Microsoft.AspNetCore.Components.Web + +``` diff + namespace Microsoft.AspNetCore.Components.Web { +- public sealed class HtmlComponent { +- public static HtmlComponent Empty { get; } +- public string ToHtmlString(); +- public Task WaitForQuiescenceAsync(); +- public void WriteHtmlTo(TextWriter output); +- } + public sealed class HtmlRenderer : IAsyncDisposable, IDisposable { +- public HtmlComponent BeginRenderingComponent(Type componentType); ++ public HtmlRootComponent BeginRenderingComponent(Type componentType); +- public HtmlComponent BeginRenderingComponent(Type componentType, ParameterView parameters); ++ public HtmlRootComponent BeginRenderingComponent(Type componentType, ParameterView parameters); +- public HtmlComponent BeginRenderingComponent() where TComponent : IComponent; ++ public HtmlRootComponent BeginRenderingComponent() where TComponent : IComponent; +- public HtmlComponent BeginRenderingComponent(ParameterView parameters) where TComponent : IComponent; ++ public HtmlRootComponent BeginRenderingComponent(ParameterView parameters) where TComponent : IComponent; +- public Task RenderComponentAsync(Type componentType); ++ public Task RenderComponentAsync(Type componentType); +- public Task RenderComponentAsync(Type componentType, ParameterView parameters); ++ public Task RenderComponentAsync(Type componentType, ParameterView parameters); +- public Task RenderComponentAsync() where TComponent : IComponent; ++ public Task RenderComponentAsync() where TComponent : IComponent; +- public Task RenderComponentAsync(ParameterView parameters) where TComponent : IComponent; ++ public Task RenderComponentAsync(ParameterView parameters) where TComponent : IComponent; + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.md new file mode 100644 index 0000000000..aa076097db --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Components.md @@ -0,0 +1,28 @@ +# Microsoft.AspNetCore.Components + +``` diff + namespace Microsoft.AspNetCore.Components { ++ public sealed class CascadingModelBinder : IComponent, IDisposable { ++ public CascadingModelBinder(); ++ [ParameterAttribute] ++ public RenderFragment ChildContent { get; set; } ++ [ParameterAttribute] ++ public bool IsFixed { get; set; } ++ [ParameterAttribute] ++ public string Name { get; set; } ++ void IComponent.Attach(RenderHandle renderHandle); ++ Task IComponent.SetParametersAsync(ParameterView parameters); ++ void IDisposable.Dispose(); ++ } ++ public sealed class ModelBindingContext { ++ public string BindingContextId { get; } ++ public string Name { get; } ++ } ++ [AttributeUsageAttribute(4, AllowMultiple=false)] ++ public class StreamRenderingAttribute : Attribute { ++ public StreamRenderingAttribute(bool enabled); ++ public bool Enabled { get; } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Connections.Features.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Connections.Features.md new file mode 100644 index 0000000000..1bee4d1d48 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Connections.Features.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Connections.Features + +``` diff + namespace Microsoft.AspNetCore.Connections.Features { ++ public interface IConnectionMetricsTagsFeature { ++ ICollection> Tags { get; } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.DataProtection.XmlEncryption.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.DataProtection.XmlEncryption.md new file mode 100644 index 0000000000..96c96fd84f --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.DataProtection.XmlEncryption.md @@ -0,0 +1,12 @@ +# Microsoft.AspNetCore.DataProtection.XmlEncryption + +``` diff + namespace Microsoft.AspNetCore.DataProtection.XmlEncryption { + public sealed class EncryptedXmlDecryptor : IInternalEncryptedXmlDecryptor, IXmlDecryptor { +- public XElement Decrypt(XElement encryptedElement); ++ [UnconditionalSuppressMessageAttribute("AOT", "IL3050:RequiresDynamicCode", Justification="Only XSLTs require dynamic code. The usage of EncryptedXml doesn't use XSLTs.")] ++ public XElement Decrypt(XElement encryptedElement); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Hosting.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Hosting.md new file mode 100644 index 0000000000..2798eda779 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Hosting.md @@ -0,0 +1,11 @@ +# Microsoft.AspNetCore.Hosting + +``` diff + namespace Microsoft.AspNetCore.Hosting { + public static class WebHostBuilderKestrelExtensions { ++ public static IWebHostBuilder UseKestrelCore(this IWebHostBuilder hostBuilder); ++ public static IWebHostBuilder UseKestrelHttpsConfiguration(this IWebHostBuilder hostBuilder); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.Features.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.Features.md new file mode 100644 index 0000000000..3914f95be9 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.Features.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Http.Features + +``` diff + namespace Microsoft.AspNetCore.Http.Features { ++ public interface IHttpMetricsTagsFeature { ++ ICollection> Tags { get; } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.Metadata.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.Metadata.md new file mode 100644 index 0000000000..05f7867d38 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.Metadata.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Http.Metadata + +``` diff + namespace Microsoft.AspNetCore.Http.Metadata { ++ public interface IRouteDiagnosticsMetadata { ++ string Route { get; } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.md new file mode 100644 index 0000000000..699c6b8f92 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Http.md @@ -0,0 +1,18 @@ +# Microsoft.AspNetCore.Http + +``` diff + namespace Microsoft.AspNetCore.Http { + public static class HttpResponseJsonExtensions { +- public static Task WriteAsJsonAsync(this HttpResponse response, object? value, Type type, CancellationToken cancellationToken = default(CancellationToken)); ++ [RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] ++ public static Task WriteAsJsonAsync(this HttpResponse response, object? value, Type type, CancellationToken cancellationToken = default(CancellationToken)); +- public static Task WriteAsJsonAsync(this HttpResponse response, TValue value, CancellationToken cancellationToken = default(CancellationToken)); ++ [RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] ++ public static Task WriteAsJsonAsync(this HttpResponse response, TValue value, CancellationToken cancellationToken = default(CancellationToken)); + } + public sealed class ProblemDetailsContext { ++ public Exception? Exception { get; set; } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.HttpLogging.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.HttpLogging.md new file mode 100644 index 0000000000..bb02b23d52 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.HttpLogging.md @@ -0,0 +1,14 @@ +# Microsoft.AspNetCore.HttpLogging + +``` diff + namespace Microsoft.AspNetCore.HttpLogging { ++ [AttributeUsageAttribute(68, AllowMultiple=false, Inherited=true)] ++ public sealed class HttpLoggingAttribute : Attribute { ++ public HttpLoggingAttribute(HttpLoggingFields loggingFields, int requestBodyLogLimit = -1, int responseBodyLogLimit = -1); ++ public HttpLoggingFields LoggingFields { get; } ++ public int RequestBodyLogLimit { get; } ++ public int ResponseBodyLogLimit { get; } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Identity.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Identity.md new file mode 100644 index 0000000000..4419d91c9d --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Identity.md @@ -0,0 +1,13 @@ +# Microsoft.AspNetCore.Identity + +``` diff + namespace Microsoft.AspNetCore.Identity { ++ public static class IdentityApiEndpointsIdentityBuilderExtensions { ++ public static IdentityBuilder AddApiEndpoints(this IdentityBuilder builder); ++ } + public class IdentityConstants { ++ public static readonly string BearerScheme; + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Mvc.Infrastructure.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Mvc.Infrastructure.md new file mode 100644 index 0000000000..a259b133f7 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Mvc.Infrastructure.md @@ -0,0 +1,12 @@ +# Microsoft.AspNetCore.Mvc.Infrastructure + +``` diff + namespace Microsoft.AspNetCore.Mvc.Infrastructure { + public class AmbiguousActionException : InvalidOperationException { +- protected AmbiguousActionException(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AmbiguousActionException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Routing.Patterns.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Routing.Patterns.md new file mode 100644 index 0000000000..c6024b6aed --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Routing.Patterns.md @@ -0,0 +1,12 @@ +# Microsoft.AspNetCore.Routing.Patterns + +``` diff + namespace Microsoft.AspNetCore.Routing.Patterns { + public sealed class RoutePatternException : Exception { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Routing.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Routing.md new file mode 100644 index 0000000000..f58ed61450 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.Routing.md @@ -0,0 +1,10 @@ +# Microsoft.AspNetCore.Routing + +``` diff + namespace Microsoft.AspNetCore.Routing { ++ public static class IdentityApiEndpointRouteBuilderExtensions { ++ public static IEndpointConventionBuilder MapIdentityApi(this IEndpointRouteBuilder endpoints) where TUser : class, new(); ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.SignalR.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.SignalR.md new file mode 100644 index 0000000000..235a4292e6 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.AspNetCore.SignalR.md @@ -0,0 +1,12 @@ +# Microsoft.AspNetCore.SignalR + +``` diff + namespace Microsoft.AspNetCore.SignalR { + public class HubException : Exception { +- public HubException(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public HubException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Configuration.Xml.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Configuration.Xml.md new file mode 100644 index 0000000000..5eee583754 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Configuration.Xml.md @@ -0,0 +1,29 @@ +# Microsoft.Extensions.Configuration.Xml + +``` diff + namespace Microsoft.Extensions.Configuration.Xml { +- public class XmlConfigurationProvider : FileConfigurationProvider ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public class XmlConfigurationProvider : FileConfigurationProvider +- public class XmlConfigurationSource : FileConfigurationSource ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public class XmlConfigurationSource : FileConfigurationSource + public class XmlDocumentDecryptor { +- public XmlReader CreateDecryptingXmlReader(Stream input, XmlReaderSettings? settings); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public XmlReader CreateDecryptingXmlReader(Stream input, XmlReaderSettings? settings); +- [UnsupportedOSPlatformAttribute("browser")] +- protected virtual XmlReader DecryptDocumentAndCreateXmlReader(XmlDocument document); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ [UnsupportedOSPlatformAttribute("browser")] ++ protected virtual XmlReader DecryptDocumentAndCreateXmlReader(XmlDocument document); + } +- public class XmlStreamConfigurationProvider : StreamConfigurationProvider ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public class XmlStreamConfigurationProvider : StreamConfigurationProvider +- public class XmlStreamConfigurationSource : StreamConfigurationSource ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public class XmlStreamConfigurationSource : StreamConfigurationSource + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Configuration.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Configuration.md new file mode 100644 index 0000000000..3ab7d3c283 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Configuration.md @@ -0,0 +1,27 @@ +# Microsoft.Extensions.Configuration + +``` diff + namespace Microsoft.Extensions.Configuration { + public static class XmlConfigurationExtensions { +- public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange); +- public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, Action? configureSource); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, Action? configureSource); +- public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path); +- public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path, bool optional); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path, bool optional); +- public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange); +- public static IConfigurationBuilder AddXmlStream(this IConfigurationBuilder builder, Stream stream); ++ [RequiresUnreferencedCodeAttribute("Microsoft.Extensions.Configuration.Xml can use EncryptedXml. If you use encrypted XML files, your application might not have the algorithm implementations it needs. To avoid this problem, one option you can use is a DynamicDependency attribute to keep the algorithm implementations in your application.")] ++ public static IConfigurationBuilder AddXmlStream(this IConfigurationBuilder builder, Stream stream); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.DependencyInjection.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.DependencyInjection.md new file mode 100644 index 0000000000..0c85ffcaf7 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.DependencyInjection.md @@ -0,0 +1,95 @@ +# Microsoft.Extensions.DependencyInjection + +``` diff + namespace Microsoft.Extensions.DependencyInjection { + public static class AuthenticationServiceCollectionExtensions { +- public static AuthenticationBuilder AddAuthentication(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static AuthenticationBuilder AddAuthentication(this IServiceCollection services); +- public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action configureOptions); ++ [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action configureOptions); +- public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, string defaultScheme); ++ [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, string defaultScheme); + } ++ public static class BearerTokenExtensions { ++ public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder); ++ public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, Action configure); ++ public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, string authenticationScheme); ++ public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, string authenticationScheme, Action configure); ++ } + public static class ComponentServiceCollectionExtensions { +- public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollection services, Action? configure = null); ++ [RequiresUnreferencedCodeAttribute("Server-side Blazor does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollection services, Action? configure = null); + } ++ public static class IdentityApiEndpointsServiceCollectionExtensions { ++ [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IdentityBuilder AddIdentityApiEndpoints(this IServiceCollection services) where TUser : class, new(); ++ [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IdentityBuilder AddIdentityApiEndpoints(this IServiceCollection services, Action configure) where TUser : class, new(); ++ } + public static class IdentityServiceCollectionExtensions { +- public static IdentityBuilder AddIdentity(this IServiceCollection services) where TUser : class where TRole : class; ++ [RequiresUnreferencedCodeAttribute("Identity middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IdentityBuilder AddIdentity(this IServiceCollection services) where TUser : class where TRole : class; +- public static IdentityBuilder AddIdentity(this IServiceCollection services, Action setupAction) where TUser : class where TRole : class; ++ [RequiresUnreferencedCodeAttribute("Identity middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IdentityBuilder AddIdentity(this IServiceCollection services, Action setupAction) where TUser : class where TRole : class; + } + public static class MvcRazorPagesMvcCoreBuilderExtensions { +- public static IMvcCoreBuilder AddRazorPages(this IMvcCoreBuilder builder); ++ [RequiresUnreferencedCodeAttribute("Razor Pages does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcCoreBuilder AddRazorPages(this IMvcCoreBuilder builder); + } + public static class MvcServiceCollectionExtensions { +- public static IMvcBuilder AddControllers(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("MVC does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddControllers(this IServiceCollection services); +- public static IMvcBuilder AddControllers(this IServiceCollection services, Action? configure); ++ [RequiresUnreferencedCodeAttribute("MVC does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddControllers(this IServiceCollection services, Action? configure); +- public static IMvcBuilder AddControllersWithViews(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("MVC does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddControllersWithViews(this IServiceCollection services); +- public static IMvcBuilder AddControllersWithViews(this IServiceCollection services, Action? configure); ++ [RequiresUnreferencedCodeAttribute("MVC does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddControllersWithViews(this IServiceCollection services, Action? configure); +- public static IMvcBuilder AddMvc(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("MVC does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddMvc(this IServiceCollection services); +- public static IMvcBuilder AddMvc(this IServiceCollection services, Action setupAction); ++ [RequiresUnreferencedCodeAttribute("MVC does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddMvc(this IServiceCollection services, Action setupAction); +- public static IMvcBuilder AddRazorPages(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("Razor Pages does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddRazorPages(this IServiceCollection services); +- public static IMvcBuilder AddRazorPages(this IServiceCollection services, Action? configure); ++ [RequiresUnreferencedCodeAttribute("Razor Pages does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IMvcBuilder AddRazorPages(this IServiceCollection services, Action? configure); + } + public static class RazorComponentsServiceCollectionExtensions { +- public static IRazorComponentsBuilder AddRazorComponents(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("Razor Components does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IRazorComponentsBuilder AddRazorComponents(this IServiceCollection services); + } + public static class SessionServiceCollectionExtensions { +- public static IServiceCollection AddSession(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("Session State middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IServiceCollection AddSession(this IServiceCollection services); +- public static IServiceCollection AddSession(this IServiceCollection services, Action configure); ++ [RequiresUnreferencedCodeAttribute("Session State middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static IServiceCollection AddSession(this IServiceCollection services, Action configure); + } + public static class SignalRDependencyInjectionExtensions { +- public static ISignalRServerBuilder AddSignalR(this IServiceCollection services); ++ [RequiresUnreferencedCodeAttribute("SignalR does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static ISignalRServerBuilder AddSignalR(this IServiceCollection services); +- public static ISignalRServerBuilder AddSignalR(this IServiceCollection services, Action configure); ++ [RequiresUnreferencedCodeAttribute("SignalR does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")] ++ public static ISignalRServerBuilder AddSignalR(this IServiceCollection services, Action configure); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Hosting.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Hosting.md new file mode 100644 index 0000000000..36ed1c8351 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_Microsoft.Extensions.Hosting.md @@ -0,0 +1,11 @@ +# Microsoft.Extensions.Hosting + +``` diff + namespace Microsoft.Extensions.Hosting { + public class HostOptions { ++ public bool ServicesStartConcurrently { get; set; } ++ public bool ServicesStopConcurrently { get; set; } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_System.Diagnostics.Eventing.Reader.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_System.Diagnostics.Eventing.Reader.md new file mode 100644 index 0000000000..e3f09e0950 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_System.Diagnostics.Eventing.Reader.md @@ -0,0 +1,41 @@ +# System.Diagnostics.Eventing.Reader + +``` diff + namespace System.Diagnostics.Eventing.Reader { + public class EventLogException : Exception { +- protected EventLogException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogException(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class EventLogInvalidDataException : EventLogException { +- protected EventLogInvalidDataException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogInvalidDataException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class EventLogNotFoundException : EventLogException { +- protected EventLogNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class EventLogProviderDisabledException : EventLogException { +- protected EventLogProviderDisabledException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogProviderDisabledException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class EventLogReadingException : EventLogException { +- protected EventLogReadingException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogReadingException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_System.Security.Cryptography.Xml.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_System.Security.Cryptography.Xml.md new file mode 100644 index 0000000000..175a5fc063 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.AspNetCore.App/8.0-preview4_System.Security.Cryptography.Xml.md @@ -0,0 +1,86 @@ +# System.Security.Cryptography.Xml + +``` diff + namespace System.Security.Cryptography.Xml { + public sealed class CipherData { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } + public sealed class CipherReference : EncryptedReference { +- public override void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public override void LoadXml(XmlElement value); + } + public sealed class EncryptedData : EncryptedType { +- public override void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public override void LoadXml(XmlElement value); + } + public sealed class EncryptedKey : EncryptedType { +- public override void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public override void LoadXml(XmlElement value); + } + public abstract class EncryptedReference { +- public virtual void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public virtual void LoadXml(XmlElement value); + } + public abstract class EncryptedType { +- public abstract void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public abstract void LoadXml(XmlElement value); + } + public class EncryptedXml { +- public EncryptedXml(); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public EncryptedXml(); +- public EncryptedXml(XmlDocument document); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public EncryptedXml(XmlDocument document); +- public EncryptedXml(XmlDocument document, Evidence? evidence); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public EncryptedXml(XmlDocument document, Evidence? evidence); + } + public class KeyInfo : IEnumerable { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } +- public class KeyInfoEncryptedKey : KeyInfoClause ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class KeyInfoEncryptedKey : KeyInfoClause + public class Reference { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } + public class Signature { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } +- public class SignedInfo : ICollection, IEnumerable ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class SignedInfo : ICollection, IEnumerable + public class SignedXml { +- public SignedXml(); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public SignedXml(); +- public SignedXml(XmlDocument document); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public SignedXml(XmlDocument document); +- public SignedXml(XmlElement elem); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public SignedXml(XmlElement elem); + } +- public class XmlDecryptionTransform : Transform ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class XmlDecryptionTransform : Transform +- public class XmlLicenseTransform : Transform ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class XmlLicenseTransform : Transform + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4.md new file mode 100644 index 0000000000..014b93dcca --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4.md @@ -0,0 +1,66 @@ +# API Difference 8.0-preview3 vs 8.0-preview4 + +API listing follows standard diff formatting. +Lines preceded by a '+' are additions and a '-' indicates removal. + +* [Microsoft.CSharp.RuntimeBinder](8.0-preview4_Microsoft.CSharp.RuntimeBinder.md) +* [Microsoft.VisualBasic.FileIO](8.0-preview4_Microsoft.VisualBasic.FileIO.md) +* [System](8.0-preview4_System.md) +* [System.CodeDom.Compiler](8.0-preview4_System.CodeDom.Compiler.md) +* [System.Collections](8.0-preview4_System.Collections.md) +* [System.Collections.Generic](8.0-preview4_System.Collections.Generic.md) +* [System.Collections.Specialized](8.0-preview4_System.Collections.Specialized.md) +* [System.ComponentModel](8.0-preview4_System.ComponentModel.md) +* [System.ComponentModel.DataAnnotations](8.0-preview4_System.ComponentModel.DataAnnotations.md) +* [System.ComponentModel.Design](8.0-preview4_System.ComponentModel.Design.md) +* [System.Data](8.0-preview4_System.Data.md) +* [System.Data.Common](8.0-preview4_System.Data.Common.md) +* [System.Data.SqlTypes](8.0-preview4_System.Data.SqlTypes.md) +* [System.Diagnostics.Tracing](8.0-preview4_System.Diagnostics.Tracing.md) +* [System.Formats.Asn1](8.0-preview4_System.Formats.Asn1.md) +* [System.Globalization](8.0-preview4_System.Globalization.md) +* [System.IO](8.0-preview4_System.IO.md) +* [System.IO.IsolatedStorage](8.0-preview4_System.IO.IsolatedStorage.md) +* [System.IO.MemoryMappedFiles](8.0-preview4_System.IO.MemoryMappedFiles.md) +* [System.Net](8.0-preview4_System.Net.md) +* [System.Net.Mail](8.0-preview4_System.Net.Mail.md) +* [System.Net.NetworkInformation](8.0-preview4_System.Net.NetworkInformation.md) +* [System.Net.Quic](8.0-preview4_System.Net.Quic.md) +* [System.Net.Sockets](8.0-preview4_System.Net.Sockets.md) +* [System.Net.WebSockets](8.0-preview4_System.Net.WebSockets.md) +* [System.Numerics](8.0-preview4_System.Numerics.md) +* [System.Reflection](8.0-preview4_System.Reflection.md) +* [System.Reflection.Metadata](8.0-preview4_System.Reflection.Metadata.md) +* [System.Resources](8.0-preview4_System.Resources.md) +* [System.Runtime.CompilerServices](8.0-preview4_System.Runtime.CompilerServices.md) +* [System.Runtime.InteropServices](8.0-preview4_System.Runtime.InteropServices.md) +* [System.Runtime.InteropServices.Marshalling](8.0-preview4_System.Runtime.InteropServices.Marshalling.md) +* [System.Runtime.Intrinsics.Arm](8.0-preview4_System.Runtime.Intrinsics.Arm.md) +* [System.Runtime.Intrinsics.Wasm](8.0-preview4_System.Runtime.Intrinsics.Wasm.md) +* [System.Runtime.Intrinsics.X86](8.0-preview4_System.Runtime.Intrinsics.X86.md) +* [System.Runtime.Serialization](8.0-preview4_System.Runtime.Serialization.md) +* [System.Runtime.Serialization.Formatters](8.0-preview4_System.Runtime.Serialization.Formatters.md) +* [System.Runtime.Serialization.Formatters.Binary](8.0-preview4_System.Runtime.Serialization.Formatters.Binary.md) +* [System.Security](8.0-preview4_System.Security.md) +* [System.Security.AccessControl](8.0-preview4_System.Security.AccessControl.md) +* [System.Security.Authentication](8.0-preview4_System.Security.Authentication.md) +* [System.Security.Authentication.ExtendedProtection](8.0-preview4_System.Security.Authentication.ExtendedProtection.md) +* [System.Security.Claims](8.0-preview4_System.Security.Claims.md) +* [System.Security.Cryptography](8.0-preview4_System.Security.Cryptography.md) +* [System.Security.Cryptography.X509Certificates](8.0-preview4_System.Security.Cryptography.X509Certificates.md) +* [System.Security.Principal](8.0-preview4_System.Security.Principal.md) +* [System.Text](8.0-preview4_System.Text.md) +* [System.Text.Json](8.0-preview4_System.Text.Json.md) +* [System.Text.Json.Serialization](8.0-preview4_System.Text.Json.Serialization.md) +* [System.Text.Json.Serialization.Metadata](8.0-preview4_System.Text.Json.Serialization.Metadata.md) +* [System.Text.RegularExpressions](8.0-preview4_System.Text.RegularExpressions.md) +* [System.Text.Unicode](8.0-preview4_System.Text.Unicode.md) +* [System.Threading](8.0-preview4_System.Threading.md) +* [System.Threading.Channels](8.0-preview4_System.Threading.Channels.md) +* [System.Threading.Tasks](8.0-preview4_System.Threading.Tasks.md) +* [System.Transactions](8.0-preview4_System.Transactions.md) +* [System.Xml](8.0-preview4_System.Xml.md) +* [System.Xml.Schema](8.0-preview4_System.Xml.Schema.md) +* [System.Xml.XPath](8.0-preview4_System.Xml.XPath.md) +* [System.Xml.Xsl](8.0-preview4_System.Xml.Xsl.md) + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_Microsoft.CSharp.RuntimeBinder.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_Microsoft.CSharp.RuntimeBinder.md new file mode 100644 index 0000000000..c912bf35fc --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_Microsoft.CSharp.RuntimeBinder.md @@ -0,0 +1,19 @@ +# Microsoft.CSharp.RuntimeBinder + +``` diff + namespace Microsoft.CSharp.RuntimeBinder { + public class RuntimeBinderException : Exception { +- protected RuntimeBinderException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected RuntimeBinderException(SerializationInfo info, StreamingContext context); + } + public class RuntimeBinderInternalCompilerException : Exception { +- protected RuntimeBinderInternalCompilerException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected RuntimeBinderInternalCompilerException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_Microsoft.VisualBasic.FileIO.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_Microsoft.VisualBasic.FileIO.md new file mode 100644 index 0000000000..c6659f2243 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_Microsoft.VisualBasic.FileIO.md @@ -0,0 +1,19 @@ +# Microsoft.VisualBasic.FileIO + +``` diff + namespace Microsoft.VisualBasic.FileIO { + public class MalformedLineException : Exception { +- [EditorBrowsableAttribute(EditorBrowsableState.Advanced)] +- protected MalformedLineException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MalformedLineException(SerializationInfo info, StreamingContext context); +- [EditorBrowsableAttribute(EditorBrowsableState.Advanced)] +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.CodeDom.Compiler.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.CodeDom.Compiler.md new file mode 100644 index 0000000000..2f2efb1543 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.CodeDom.Compiler.md @@ -0,0 +1,10 @@ +# System.CodeDom.Compiler + +``` diff + namespace System.CodeDom.Compiler { + public class IndentedTextWriter : TextWriter { ++ public override Task FlushAsync(CancellationToken cancellationToken); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.Generic.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.Generic.md new file mode 100644 index 0000000000..0d832baefd --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.Generic.md @@ -0,0 +1,49 @@ +# System.Collections.Generic + +``` diff + namespace System.Collections.Generic { + public class Dictionary : ICollection, ICollection>, IDeserializationCallback, IDictionary, IDictionary, IEnumerable, IEnumerable>, IReadOnlyCollection>, IReadOnlyDictionary, ISerializable { +- protected Dictionary(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected Dictionary(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class HashSet : ICollection, IDeserializationCallback, IEnumerable, IEnumerable, IReadOnlyCollection, IReadOnlySet, ISerializable, ISet { +- protected HashSet(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected HashSet(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class KeyNotFoundException : SystemException { +- protected KeyNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected KeyNotFoundException(SerializationInfo info, StreamingContext context); + } + public class LinkedList : ICollection, ICollection, IDeserializationCallback, IEnumerable, IEnumerable, IReadOnlyCollection, ISerializable { +- protected LinkedList(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected LinkedList(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class SortedSet : ICollection, ICollection, IDeserializationCallback, IEnumerable, IEnumerable, IReadOnlyCollection, IReadOnlySet, ISerializable, ISet { +- protected SortedSet(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SortedSet(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.Specialized.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.Specialized.md new file mode 100644 index 0000000000..b29081a0d6 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.Specialized.md @@ -0,0 +1,33 @@ +# System.Collections.Specialized + +``` diff + namespace System.Collections.Specialized { + public abstract class NameObjectCollectionBase : ICollection, IDeserializationCallback, IEnumerable, ISerializable { +- protected NameObjectCollectionBase(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NameObjectCollectionBase(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class NameValueCollection : NameObjectCollectionBase { +- protected NameValueCollection(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NameValueCollection(SerializationInfo info, StreamingContext context); + } + public class OrderedDictionary : ICollection, IDeserializationCallback, IDictionary, IEnumerable, IOrderedDictionary, ISerializable { +- protected OrderedDictionary(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected OrderedDictionary(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.md new file mode 100644 index 0000000000..2683017cfe --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Collections.md @@ -0,0 +1,23 @@ +# System.Collections + +``` diff + namespace System.Collections { + public sealed class Comparer : IComparer, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class Hashtable : ICloneable, ICollection, IDeserializationCallback, IDictionary, IEnumerable, ISerializable { +- protected Hashtable(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected Hashtable(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.DataAnnotations.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.DataAnnotations.md new file mode 100644 index 0000000000..949f14c47a --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.DataAnnotations.md @@ -0,0 +1,45 @@ +# System.ComponentModel.DataAnnotations + +``` diff + namespace System.ComponentModel.DataAnnotations { + public sealed class ValidationContext : IServiceProvider { +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public ValidationContext(object instance); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public ValidationContext(object instance); +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public ValidationContext(object instance, IDictionary? items); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public ValidationContext(object instance, IDictionary? items); +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public ValidationContext(object instance, IServiceProvider? serviceProvider, IDictionary? items); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public ValidationContext(object instance, IServiceProvider? serviceProvider, IDictionary? items); + } + public class ValidationException : Exception { +- protected ValidationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ValidationException(SerializationInfo info, StreamingContext context); + } + public static class Validator { +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public static bool TryValidateObject(object instance, ValidationContext validationContext, ICollection? validationResults); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public static bool TryValidateObject(object instance, ValidationContext validationContext, ICollection? validationResults); +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public static bool TryValidateObject(object instance, ValidationContext validationContext, ICollection? validationResults, bool validateAllProperties); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public static bool TryValidateObject(object instance, ValidationContext validationContext, ICollection? validationResults, bool validateAllProperties); +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public static void ValidateObject(object instance, ValidationContext validationContext); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public static void ValidateObject(object instance, ValidationContext validationContext); +- [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered.")] +- public static void ValidateObject(object instance, ValidationContext validationContext, bool validateAllProperties); ++ [RequiresUnreferencedCodeAttribute("The Type of instance cannot be statically discovered and the Type's properties can be trimmed.")] ++ public static void ValidateObject(object instance, ValidationContext validationContext, bool validateAllProperties); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.Design.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.Design.md new file mode 100644 index 0000000000..9fa5407534 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.Design.md @@ -0,0 +1,13 @@ +# System.ComponentModel.Design + +``` diff + namespace System.ComponentModel.Design { + public class CheckoutException : ExternalException { +- protected CheckoutException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CheckoutException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.md new file mode 100644 index 0000000000..ffd462ad24 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.ComponentModel.md @@ -0,0 +1,50 @@ +# System.ComponentModel + +``` diff + namespace System.ComponentModel { + public class InvalidAsynchronousStateException : ArgumentException { +- protected InvalidAsynchronousStateException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidAsynchronousStateException(SerializationInfo info, StreamingContext context); + } + public class InvalidEnumArgumentException : ArgumentException { +- protected InvalidEnumArgumentException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidEnumArgumentException(SerializationInfo info, StreamingContext context); + } + public class LicenseException : SystemException { +- protected LicenseException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected LicenseException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class WarningException : SystemException { +- protected WarningException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WarningException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } +- public class Win32Exception : ExternalException, ISerializable { ++ public class Win32Exception : ExternalException { +- protected Win32Exception(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected Win32Exception(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.Common.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.Common.md new file mode 100644 index 0000000000..3724134c35 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.Common.md @@ -0,0 +1,13 @@ +# System.Data.Common + +``` diff + namespace System.Data.Common { + public abstract class DbException : ExternalException { +- protected DbException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DbException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.SqlTypes.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.SqlTypes.md new file mode 100644 index 0000000000..d5c063f18b --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.SqlTypes.md @@ -0,0 +1,13 @@ +# System.Data.SqlTypes + +``` diff + namespace System.Data.SqlTypes { + public class SqlTypeException : SystemException { +- protected SqlTypeException(SerializationInfo si, StreamingContext sc); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SqlTypeException(SerializationInfo si, StreamingContext sc); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.md new file mode 100644 index 0000000000..c96e61f37f --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Data.md @@ -0,0 +1,158 @@ +# System.Data + +``` diff + namespace System.Data { + public class ConstraintException : DataException { +- protected ConstraintException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ConstraintException(SerializationInfo info, StreamingContext context); + } + public class DataException : SystemException { +- protected DataException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DataException(SerializationInfo info, StreamingContext context); + } + [DefaultPropertyAttribute("DataSetName")] + [DesignerAttribute("Microsoft.VSDesigner.Data.VS.DataSetDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [ToolboxItemAttribute("Microsoft.VSDesigner.Data.VS.DataSetToolboxItem, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [XmlRootAttribute("DataSet")] + [XmlSchemaProviderAttribute("GetDataSetSchema")] + public class DataSet : MarshalByValueComponent, IListSource, ISerializable, ISupportInitialize, ISupportInitializeNotification, IXmlSerializable { +- [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] +- protected DataSet(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] ++ protected DataSet(SerializationInfo info, StreamingContext context); +- [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] +- protected DataSet(SerializationInfo info, StreamingContext context, bool ConstructSchema); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] ++ protected DataSet(SerializationInfo info, StreamingContext context, bool ConstructSchema); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + [DefaultEventAttribute("RowChanging")] + [DefaultPropertyAttribute("TableName")] + [DesignTimeVisibleAttribute(false)] + [EditorAttribute("Microsoft.VSDesigner.Data.Design.DataTableEditor, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [ToolboxItemAttribute(false)] + [XmlSchemaProviderAttribute("GetDataTableSchema")] + public class DataTable : MarshalByValueComponent, IListSource, ISerializable, ISupportInitialize, ISupportInitializeNotification, IXmlSerializable { +- [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] +- protected DataTable(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] ++ protected DataTable(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class DBConcurrencyException : SystemException { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class DeletedRowInaccessibleException : DataException { +- protected DeletedRowInaccessibleException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DeletedRowInaccessibleException(SerializationInfo info, StreamingContext context); + } + public class DuplicateNameException : DataException { +- protected DuplicateNameException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DuplicateNameException(SerializationInfo info, StreamingContext context); + } + public class EvaluateException : InvalidExpressionException { +- protected EvaluateException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EvaluateException(SerializationInfo info, StreamingContext context); + } + public class InRowChangingEventException : DataException { +- protected InRowChangingEventException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InRowChangingEventException(SerializationInfo info, StreamingContext context); + } + public class InvalidConstraintException : DataException { +- protected InvalidConstraintException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidConstraintException(SerializationInfo info, StreamingContext context); + } + public class InvalidExpressionException : DataException { +- protected InvalidExpressionException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidExpressionException(SerializationInfo info, StreamingContext context); + } + public class MissingPrimaryKeyException : DataException { +- protected MissingPrimaryKeyException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MissingPrimaryKeyException(SerializationInfo info, StreamingContext context); + } + public class NoNullAllowedException : DataException { +- protected NoNullAllowedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NoNullAllowedException(SerializationInfo info, StreamingContext context); + } + public class PropertyCollection : Hashtable, ICloneable { +- protected PropertyCollection(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected PropertyCollection(SerializationInfo info, StreamingContext context); + } + public class ReadOnlyException : DataException { +- protected ReadOnlyException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ReadOnlyException(SerializationInfo info, StreamingContext context); + } + public class RowNotInTableException : DataException { +- protected RowNotInTableException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected RowNotInTableException(SerializationInfo info, StreamingContext context); + } + public class StrongTypingException : DataException { +- protected StrongTypingException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected StrongTypingException(SerializationInfo info, StreamingContext context); + } + public class SyntaxErrorException : InvalidExpressionException { +- protected SyntaxErrorException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SyntaxErrorException(SerializationInfo info, StreamingContext context); + } + public abstract class TypedTableBase : DataTable, IEnumerable, IEnumerable where T : DataRow { +- [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] +- protected TypedTableBase(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ [RequiresUnreferencedCodeAttribute("Members from serialized types may be trimmed if not referenced directly.")] ++ protected TypedTableBase(SerializationInfo info, StreamingContext context); + } + public class VersionNotFoundException : DataException { +- protected VersionNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected VersionNotFoundException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Diagnostics.Tracing.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Diagnostics.Tracing.md new file mode 100644 index 0000000000..7f8cb7df7b --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Diagnostics.Tracing.md @@ -0,0 +1,13 @@ +# System.Diagnostics.Tracing + +``` diff + namespace System.Diagnostics.Tracing { + public class EventSourceException : Exception { +- protected EventSourceException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventSourceException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Formats.Asn1.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Formats.Asn1.md new file mode 100644 index 0000000000..a772aadd58 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Formats.Asn1.md @@ -0,0 +1,13 @@ +# System.Formats.Asn1 + +``` diff + namespace System.Formats.Asn1 { + public class AsnContentException : Exception { +- protected AsnContentException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AsnContentException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Globalization.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Globalization.md new file mode 100644 index 0000000000..1f718e6133 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Globalization.md @@ -0,0 +1,22 @@ +# System.Globalization + +``` diff + namespace System.Globalization { + public class CultureNotFoundException : ArgumentException { +- protected CultureNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CultureNotFoundException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + [FlagsAttribute] + public enum NumberStyles { ++ AllowBinarySpecifier = 1024, ++ BinaryNumber = 1027, + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.IsolatedStorage.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.IsolatedStorage.md new file mode 100644 index 0000000000..8afb69adce --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.IsolatedStorage.md @@ -0,0 +1,13 @@ +# System.IO.IsolatedStorage + +``` diff + namespace System.IO.IsolatedStorage { + public class IsolatedStorageException : Exception { +- protected IsolatedStorageException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected IsolatedStorageException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.MemoryMappedFiles.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.MemoryMappedFiles.md new file mode 100644 index 0000000000..a00ac53257 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.MemoryMappedFiles.md @@ -0,0 +1,10 @@ +# System.IO.MemoryMappedFiles + +``` diff + namespace System.IO.MemoryMappedFiles { + public class MemoryMappedFile : IDisposable { ++ public static MemoryMappedFile CreateFromFile(SafeFileHandle fileHandle, string? mapName, long capacity, MemoryMappedFileAccess access, HandleInheritability inheritability, bool leaveOpen); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.md new file mode 100644 index 0000000000..ff7a522fb7 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.IO.md @@ -0,0 +1,79 @@ +# System.IO + +``` diff + namespace System.IO { + public class DirectoryNotFoundException : IOException { +- protected DirectoryNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DirectoryNotFoundException(SerializationInfo info, StreamingContext context); + } + public class DriveNotFoundException : IOException { +- protected DriveNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DriveNotFoundException(SerializationInfo info, StreamingContext context); + } + public class EndOfStreamException : IOException { +- protected EndOfStreamException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EndOfStreamException(SerializationInfo info, StreamingContext context); + } + public class FileLoadException : IOException { +- protected FileLoadException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected FileLoadException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class FileNotFoundException : IOException { +- protected FileNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected FileNotFoundException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public abstract class FileSystemInfo : MarshalByRefObject, ISerializable { +- protected FileSystemInfo(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected FileSystemInfo(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class InternalBufferOverflowException : SystemException { +- protected InternalBufferOverflowException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InternalBufferOverflowException(SerializationInfo info, StreamingContext context); + } + public class IOException : SystemException { +- protected IOException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected IOException(SerializationInfo info, StreamingContext context); + } + public class PathTooLongException : IOException { +- protected PathTooLongException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected PathTooLongException(SerializationInfo info, StreamingContext context); + } + public class StreamWriter : TextWriter { ++ public override Task FlushAsync(CancellationToken cancellationToken); + } + public abstract class TextWriter : MarshalByRefObject, IAsyncDisposable, IDisposable { ++ public virtual Task FlushAsync(CancellationToken cancellationToken); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Mail.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Mail.md new file mode 100644 index 0000000000..73e4407cf1 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Mail.md @@ -0,0 +1,43 @@ +# System.Net.Mail + +``` diff + namespace System.Net.Mail { +- public class SmtpException : Exception, ISerializable { ++ public class SmtpException : Exception { +- protected SmtpException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SmtpException(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); +- void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } +- public class SmtpFailedRecipientException : SmtpException, ISerializable { ++ public class SmtpFailedRecipientException : SmtpException { +- protected SmtpFailedRecipientException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SmtpFailedRecipientException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); +- void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } +- public class SmtpFailedRecipientsException : SmtpFailedRecipientException, ISerializable { ++ public class SmtpFailedRecipientsException : SmtpFailedRecipientException { +- protected SmtpFailedRecipientsException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SmtpFailedRecipientsException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); +- void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.NetworkInformation.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.NetworkInformation.md new file mode 100644 index 0000000000..37c9f94f83 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.NetworkInformation.md @@ -0,0 +1,19 @@ +# System.Net.NetworkInformation + +``` diff + namespace System.Net.NetworkInformation { + public class NetworkInformationException : Win32Exception { +- protected NetworkInformationException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NetworkInformationException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class PingException : InvalidOperationException { +- protected PingException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected PingException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Quic.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Quic.md new file mode 100644 index 0000000000..0c4bccc5c8 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Quic.md @@ -0,0 +1,13 @@ +# System.Net.Quic + +``` diff + namespace System.Net.Quic { + public sealed class QuicConnection : IAsyncDisposable { ++ public string TargetHostName { get; } + } + public sealed class QuicStream : Stream { ++ public override string ToString(); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Sockets.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Sockets.md new file mode 100644 index 0000000000..e22f6174e7 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.Sockets.md @@ -0,0 +1,13 @@ +# System.Net.Sockets + +``` diff + namespace System.Net.Sockets { + public class SocketException : Win32Exception { +- protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.WebSockets.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.WebSockets.md new file mode 100644 index 0000000000..99ad090102 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.WebSockets.md @@ -0,0 +1,13 @@ +# System.Net.WebSockets + +``` diff + namespace System.Net.WebSockets { + public sealed class WebSocketException : Win32Exception { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.md new file mode 100644 index 0000000000..75dcffa8d9 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Net.md @@ -0,0 +1,131 @@ +# System.Net + +``` diff + namespace System.Net { + public class CookieException : FormatException, ISerializable { +- protected CookieException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CookieException(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class FileWebRequest : WebRequest, ISerializable { +- [ObsoleteAttribute("Serialization has been deprecated for FileWebRequest.")] +- protected FileWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("Serialization has been deprecated for FileWebRequest.")] ++ protected FileWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class FileWebResponse : WebResponse, ISerializable { +- [ObsoleteAttribute("Serialization has been deprecated for FileWebResponse.")] +- protected FileWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("Serialization has been deprecated for FileWebResponse.")] ++ protected FileWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class HttpListenerException : Win32Exception { +- protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class HttpWebRequest : WebRequest, ISerializable { +- [ObsoleteAttribute("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- protected HttpWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected HttpWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class HttpWebResponse : WebResponse, ISerializable { +- [ObsoleteAttribute("Serialization has been deprecated for HttpWebResponse.")] +- protected HttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("Serialization has been deprecated for HttpWebResponse.")] ++ protected HttpWebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext); + } +- public class IPAddress : IFormattable, IParsable, ISpanFormattable, ISpanParsable { ++ public class IPAddress : IFormattable, IParsable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ bool IUtf8SpanFormattable.TryFormat(Span utf8Destination, out int bytesWritten, ReadOnlySpan format, IFormatProvider provider); ++ public bool TryFormat(Span utf8Destination, out int bytesWritten); + } ++ public readonly struct IPNetwork : IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ public IPNetwork(IPAddress baseAddress, int prefixLength); ++ public IPAddress BaseAddress { get; } ++ public int PrefixLength { get; } ++ public bool Contains(IPAddress address); ++ public bool Equals(IPNetwork other); ++ public override bool Equals([NotNullWhenAttribute(true)] object? obj); ++ public override int GetHashCode(); ++ public static bool operator ==(IPNetwork left, IPNetwork right); ++ public static bool operator !=(IPNetwork left, IPNetwork right); ++ public static IPNetwork Parse(ReadOnlySpan s); ++ public static IPNetwork Parse(string s); ++ string IFormattable.ToString(string format, IFormatProvider provider); ++ static IPNetwork IParsable.Parse([NotNullAttribute] string s, IFormatProvider provider); ++ static bool IParsable.TryParse([NotNullWhenAttribute(true)] string s, IFormatProvider provider, out IPNetwork result); ++ bool ISpanFormattable.TryFormat(Span destination, out int charsWritten, ReadOnlySpan format, IFormatProvider provider); ++ static IPNetwork ISpanParsable.Parse(ReadOnlySpan s, IFormatProvider provider); ++ static bool ISpanParsable.TryParse(ReadOnlySpan s, IFormatProvider provider, out IPNetwork result); ++ bool IUtf8SpanFormattable.TryFormat(Span utf8Destination, out int bytesWritten, ReadOnlySpan format, IFormatProvider provider); ++ public override string ToString(); ++ public bool TryFormat(Span utf8Destination, out int bytesWritten); ++ public bool TryFormat(Span destination, out int charsWritten); ++ public static bool TryParse(ReadOnlySpan s, out IPNetwork result); ++ public static bool TryParse(string? s, out IPNetwork result); ++ } + public class ProtocolViolationException : InvalidOperationException, ISerializable { +- protected ProtocolViolationException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ProtocolViolationException(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class WebException : InvalidOperationException, ISerializable { +- protected WebException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WebException(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class WebHeaderCollection : NameValueCollection, IEnumerable, ISerializable { +- protected WebHeaderCollection(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WebHeaderCollection(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class WebProxy : ISerializable, IWebProxy { +- protected WebProxy(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WebProxy(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public abstract class WebRequest : MarshalByRefObject, ISerializable { +- [ObsoleteAttribute("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- protected WebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public abstract class WebResponse : MarshalByRefObject, IDisposable, ISerializable { +- [ObsoleteAttribute("Serialization has been deprecated for WebResponse.")] +- protected WebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("Serialization has been deprecated for WebResponse.")] ++ protected WebResponse(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Numerics.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Numerics.md new file mode 100644 index 0000000000..a9cc61b8e0 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Numerics.md @@ -0,0 +1,13 @@ +# System.Numerics + +``` diff + namespace System.Numerics { +- public readonly struct Complex : IAdditionOperators, IAdditiveIdentity, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMultiplicativeIdentity, IMultiplyOperators, INumberBase, IParsable, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Complex : IAdditionOperators, IAdditiveIdentity, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMultiplicativeIdentity, IMultiplyOperators, INumberBase, IParsable, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); +- public bool TryFormat(Span destination, out int charsWritten, ReadOnlySpan format, IFormatProvider? provider); ++ public bool TryFormat(Span destination, out int charsWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Reflection.Metadata.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Reflection.Metadata.md new file mode 100644 index 0000000000..fe35ac7dd5 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Reflection.Metadata.md @@ -0,0 +1,13 @@ +# System.Reflection.Metadata + +``` diff + namespace System.Reflection.Metadata { + public class ImageFormatLimitationException : Exception { +- protected ImageFormatLimitationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ImageFormatLimitationException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Reflection.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Reflection.md new file mode 100644 index 0000000000..6fc15036f6 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Reflection.md @@ -0,0 +1,80 @@ +# System.Reflection + +``` diff + namespace System.Reflection { + public abstract class Assembly : ICustomAttributeProvider, ISerializable { +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class AssemblyName : ICloneable, IDeserializationCallback, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class CustomAttributeFormatException : FormatException { +- protected CustomAttributeFormatException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CustomAttributeFormatException(SerializationInfo info, StreamingContext context); + } + [FlagsAttribute] + public enum FieldAttributes { +- NotSerialized = 128, ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ NotSerialized = 128, + } + public abstract class FieldInfo : MemberInfo { +- public bool IsNotSerialized { get; } ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public bool IsNotSerialized { get; } + } + public class InvalidFilterCriteriaException : ApplicationException { +- protected InvalidFilterCriteriaException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidFilterCriteriaException(SerializationInfo info, StreamingContext context); + } + public abstract class Module : ICustomAttributeProvider, ISerializable { +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class ParameterInfo : ICustomAttributeProvider, IObjectReference { +- public object GetRealObject(StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public object GetRealObject(StreamingContext context); + } +- public sealed class ReflectionTypeLoadException : SystemException, ISerializable { ++ public sealed class ReflectionTypeLoadException : SystemException { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + [ObsoleteAttribute("Strong name signing is not supported and throws PlatformNotSupportedException.", DiagnosticId="SYSLIB0017", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] + public class StrongNameKeyPair : IDeserializationCallback, ISerializable { +- protected StrongNameKeyPair(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected StrongNameKeyPair(SerializationInfo info, StreamingContext context); + } + public class TargetException : ApplicationException { +- protected TargetException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TargetException(SerializationInfo info, StreamingContext context); + } + [FlagsAttribute] + public enum TypeAttributes { +- Serializable = 8192, ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ Serializable = 8192, + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Resources.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Resources.md new file mode 100644 index 0000000000..bc6393bcb9 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Resources.md @@ -0,0 +1,19 @@ +# System.Resources + +``` diff + namespace System.Resources { + [EditorBrowsableAttribute(EditorBrowsableState.Never)] + public class MissingManifestResourceException : SystemException { +- protected MissingManifestResourceException(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MissingManifestResourceException(SerializationInfo info, StreamingContext context); + } + public class MissingSatelliteAssemblyException : SystemException { +- protected MissingSatelliteAssemblyException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MissingSatelliteAssemblyException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.CompilerServices.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.CompilerServices.md new file mode 100644 index 0000000000..40632c63e8 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.CompilerServices.md @@ -0,0 +1,19 @@ +# System.Runtime.CompilerServices + +``` diff + namespace System.Runtime.CompilerServices { + public sealed class RuntimeWrappedException : Exception { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class SwitchExpressionException : InvalidOperationException { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.InteropServices.Marshalling.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.InteropServices.Marshalling.md new file mode 100644 index 0000000000..4c5063d805 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.InteropServices.Marshalling.md @@ -0,0 +1,118 @@ +# System.Runtime.InteropServices.Marshalling + +``` diff + namespace System.Runtime.InteropServices.Marshalling { ++ [AttributeUsageAttribute(AttributeTargets.Class, Inherited=false)] ++ [CLSCompliantAttribute(false)] ++ public sealed class ComExposedClassAttribute : Attribute, IComExposedDetails where T : IComExposedClass { ++ public ComExposedClassAttribute(); ++ public unsafe ComWrappers.ComInterfaceEntry* GetComInterfaceEntries(out int count); ++ } ++ public sealed class ComObject : IDynamicInterfaceCastable, IUnmanagedVirtualMethodTableProvider { ++ ~ComObject(); ++ public void FinalRelease(); ++ RuntimeTypeHandle IDynamicInterfaceCastable.GetInterfaceImplementation(RuntimeTypeHandle interfaceType); ++ bool IDynamicInterfaceCastable.IsInterfaceImplemented(RuntimeTypeHandle interfaceType, bool throwIfNotImplemented); ++ VirtualMethodTableInfo IUnmanagedVirtualMethodTableProvider.GetVirtualMethodTableInfoForKey(Type type); ++ } ++ [CustomMarshallerAttribute(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsDefaultMarshaller<>))] ++ public static class ExceptionAsDefaultMarshaller where T : struct { ++ public static T ConvertToUnmanaged(Exception e); ++ } ++ [CustomMarshallerAttribute(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsHResultMarshaller<>))] ++ public static class ExceptionAsHResultMarshaller where T : struct { ++ public static T ConvertToUnmanaged(Exception e); ++ } ++ [CustomMarshallerAttribute(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsNaNMarshaller<>))] ++ public static class ExceptionAsNaNMarshaller where T : struct { ++ public static T ConvertToUnmanaged(Exception e); ++ } ++ [CustomMarshallerAttribute(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsVoidMarshaller))] ++ public static class ExceptionAsVoidMarshaller { ++ public static void ConvertToUnmanaged(Exception e); ++ } ++ [AttributeUsageAttribute(AttributeTargets.Class)] ++ public sealed class GeneratedComClassAttribute : Attribute { ++ public GeneratedComClassAttribute(); ++ } ++ [AttributeUsageAttribute(AttributeTargets.Interface)] ++ public class GeneratedComInterfaceAttribute : Attribute { ++ public GeneratedComInterfaceAttribute(); ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IComExposedClass { ++ unsafe static abstract ComWrappers.ComInterfaceEntry* GetComInterfaceEntries(out int count); ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IComExposedDetails { ++ unsafe ComWrappers.ComInterfaceEntry* GetComInterfaceEntries(out int count); ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IIUnknownCacheStrategy { ++ void Clear(IIUnknownStrategy unknownStrategy); ++ unsafe IIUnknownCacheStrategy.TableInfo ConstructTableInfo(RuntimeTypeHandle handle, IIUnknownDerivedDetails interfaceDetails, void* ptr); ++ bool TryGetTableInfo(RuntimeTypeHandle handle, out IIUnknownCacheStrategy.TableInfo info); ++ bool TrySetTableInfo(RuntimeTypeHandle handle, IIUnknownCacheStrategy.TableInfo info); ++ public readonly struct TableInfo { ++ public RuntimeTypeHandle ManagedType { get; set; } ++ public unsafe void** Table { get; set; } ++ public unsafe void* ThisPtr { get; set; } ++ } ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IIUnknownDerivedDetails { ++ Guid Iid { get; } ++ Type Implementation { get; } ++ unsafe void** ManagedVirtualMethodTable { get; } ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IIUnknownInterfaceDetailsStrategy { ++ IComExposedDetails GetComExposedTypeDetails(RuntimeTypeHandle type); ++ IIUnknownDerivedDetails GetIUnknownDerivedDetails(RuntimeTypeHandle type); ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IIUnknownInterfaceType { ++ static abstract Guid Iid { get; } ++ unsafe static abstract void** ManagedVirtualMethodTable { get; } ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IIUnknownStrategy { ++ unsafe void* CreateInstancePointer(void* unknown); ++ unsafe int QueryInterface(void* instancePtr, in Guid iid, out void* ppObj); ++ unsafe int Release(void* instancePtr); ++ } ++ [AttributeUsageAttribute(AttributeTargets.Interface, Inherited=false)] ++ [CLSCompliantAttribute(false)] ++ public class IUnknownDerivedAttribute : Attribute, IIUnknownDerivedDetails where T : IIUnknownInterfaceType { ++ public IUnknownDerivedAttribute(); ++ public Guid Iid { get; } ++ public Type Implementation { get; } ++ public unsafe void** ManagedVirtualMethodTable { get; } ++ } ++ [CLSCompliantAttribute(false)] ++ public interface IUnmanagedVirtualMethodTableProvider { ++ VirtualMethodTableInfo GetVirtualMethodTableInfoForKey(Type type); ++ } ++ [CLSCompliantAttribute(false)] ++ public class StrategyBasedComWrappers : ComWrappers { ++ public StrategyBasedComWrappers(); ++ public static IIUnknownInterfaceDetailsStrategy DefaultIUnknownInterfaceDetailsStrategy { get; } ++ public static IIUnknownStrategy DefaultIUnknownStrategy { get; } ++ protected unsafe sealed override ComWrappers.ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count); ++ protected virtual IIUnknownCacheStrategy CreateCacheStrategy(); ++ protected static IIUnknownCacheStrategy CreateDefaultCacheStrategy(); ++ protected sealed override object CreateObject(IntPtr externalComObject, CreateObjectFlags flags); ++ protected virtual IIUnknownInterfaceDetailsStrategy GetOrCreateInterfaceDetailsStrategy(); ++ protected virtual IIUnknownStrategy GetOrCreateIUnknownStrategy(); ++ protected sealed override void ReleaseObjects(IEnumerable objects); ++ } ++ [CLSCompliantAttribute(false)] ++ public readonly struct VirtualMethodTableInfo { ++ public unsafe VirtualMethodTableInfo(void* thisPointer, void** virtualMethodTable); ++ public unsafe void* ThisPointer { get; } ++ public unsafe void** VirtualMethodTable { get; } ++ public unsafe void Deconstruct(out void* thisPointer, out void** virtualMethodTable); ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.InteropServices.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.InteropServices.md new file mode 100644 index 0000000000..1fd9440959 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.InteropServices.md @@ -0,0 +1,62 @@ +# System.Runtime.InteropServices + +``` diff + namespace System.Runtime.InteropServices { + public static class CollectionsMarshal { ++ public static void SetCount(List list, int count); + } + public class COMException : ExternalException { +- protected COMException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected COMException(SerializationInfo info, StreamingContext context); + } + public class ExternalException : SystemException { +- protected ExternalException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ExternalException(SerializationInfo info, StreamingContext context); + } + public class InvalidComObjectException : SystemException { +- protected InvalidComObjectException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidComObjectException(SerializationInfo info, StreamingContext context); + } + public class InvalidOleVariantTypeException : SystemException { +- protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidOleVariantTypeException(SerializationInfo info, StreamingContext context); + } + public class MarshalDirectiveException : SystemException { +- protected MarshalDirectiveException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MarshalDirectiveException(SerializationInfo info, StreamingContext context); + } +- public readonly struct NFloat : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct NFloat : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class SafeArrayRankMismatchException : SystemException { +- protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SafeArrayRankMismatchException(SerializationInfo info, StreamingContext context); + } + public class SafeArrayTypeMismatchException : SystemException { +- protected SafeArrayTypeMismatchException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SafeArrayTypeMismatchException(SerializationInfo info, StreamingContext context); + } + public class SEHException : ExternalException { +- protected SEHException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SEHException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.Arm.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.Arm.md new file mode 100644 index 0000000000..f575ea4a9e --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.Arm.md @@ -0,0 +1,36 @@ +# System.Runtime.Intrinsics.Arm + +``` diff + namespace System.Runtime.Intrinsics.Arm { + [CLSCompliantAttribute(false)] + public abstract class AdvSimd : ArmBase { ++ public static Vector64 VectorTableLookup((Vector128, Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookup((Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookup((Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookup((Vector128, Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookup((Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookup((Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookupExtension(Vector64 defaultValues, (Vector128, Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookupExtension(Vector64 defaultValues, (Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookupExtension(Vector64 defaultValues, (Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookupExtension(Vector64 defaultValues, (Vector128, Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookupExtension(Vector64 defaultValues, (Vector128, Vector128, Vector128) table, Vector64 byteIndexes); ++ public static Vector64 VectorTableLookupExtension(Vector64 defaultValues, (Vector128, Vector128) table, Vector64 byteIndexes); + public new abstract class Arm64 : ArmBase.Arm64 { ++ public static Vector128 VectorTableLookup((Vector128, Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookup((Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookup((Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookup((Vector128, Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookup((Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookup((Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookupExtension(Vector128 defaultValues, (Vector128, Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookupExtension(Vector128 defaultValues, (Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookupExtension(Vector128 defaultValues, (Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookupExtension(Vector128 defaultValues, (Vector128, Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookupExtension(Vector128 defaultValues, (Vector128, Vector128, Vector128) table, Vector128 byteIndexes); ++ public static Vector128 VectorTableLookupExtension(Vector128 defaultValues, (Vector128, Vector128) table, Vector128 byteIndexes); + } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.Wasm.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.Wasm.md new file mode 100644 index 0000000000..bff1f61f70 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.Wasm.md @@ -0,0 +1,167 @@ +# System.Runtime.Intrinsics.Wasm + +``` diff + namespace System.Runtime.Intrinsics.Wasm { + [CLSCompliantAttribute(false)] + public abstract class PackedSimd { ++ public static Vector128 Abs(Vector128 value); ++ public static Vector128 Abs(Vector128 value); ++ public static Vector128 Abs(Vector128 value); ++ public static Vector128 Abs(Vector128 value); ++ public static Vector128 Abs(Vector128 value); ++ public static Vector128 AddPairwiseWidening(Vector128 value); ++ public static Vector128 AddPairwiseWidening(Vector128 value); ++ public static Vector128 AddPairwiseWidening(Vector128 value); ++ public static Vector128 AddPairwiseWidening(Vector128 value); ++ public static Vector128 AddSaturate(Vector128 left, Vector128 right); ++ public static Vector128 AddSaturate(Vector128 left, Vector128 right); ++ public static Vector128 AddSaturate(Vector128 left, Vector128 right); ++ public static Vector128 AddSaturate(Vector128 left, Vector128 right); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static bool AllTrue(Vector128 value); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static Vector128 AndNot(Vector128 left, Vector128 right); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static bool AnyTrue(Vector128 value); ++ public static Vector128 AverageRounded(Vector128 left, Vector128 right); ++ public static Vector128 AverageRounded(Vector128 left, Vector128 right); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 BitwiseSelect(Vector128 left, Vector128 right, Vector128 select); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyRoundedSaturateQ15(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningLower(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningLower(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningLower(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningLower(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningLower(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningLower(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningUpper(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningUpper(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningUpper(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningUpper(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningUpper(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyWideningUpper(Vector128 left, Vector128 right); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Not(Vector128 value); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 Or(Vector128 left, Vector128 right); ++ public static Vector128 PopCount(Vector128 value); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftLeft(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 ShiftRightLogical(Vector128 value, int count); ++ public static Vector128 SubtractSaturate(Vector128 left, Vector128 right); ++ public static Vector128 SubtractSaturate(Vector128 left, Vector128 right); ++ public static Vector128 SubtractSaturate(Vector128 left, Vector128 right); ++ public static Vector128 SubtractSaturate(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); ++ public static Vector128 Xor(Vector128 left, Vector128 right); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.X86.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.X86.md new file mode 100644 index 0000000000..a79b491bf4 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Intrinsics.X86.md @@ -0,0 +1,586 @@ +# System.Runtime.Intrinsics.X86 + +``` diff + namespace System.Runtime.Intrinsics.X86 { + [CLSCompliantAttribute(false)] + public abstract class Avx512BW : Avx512F { ++ public static Vector512 Abs(Vector512 value); ++ public static Vector512 Abs(Vector512 value); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 AddSaturate(Vector512 left, Vector512 right); ++ public static Vector512 AddSaturate(Vector512 left, Vector512 right); ++ public static Vector512 AddSaturate(Vector512 left, Vector512 right); ++ public static Vector512 AddSaturate(Vector512 left, Vector512 right); ++ public static Vector512 AlignRight(Vector512 left, Vector512 right, [ConstantExpectedAttribute] byte mask); ++ public static Vector512 AlignRight(Vector512 left, Vector512 right, [ConstantExpectedAttribute] byte mask); ++ public static Vector512 Average(Vector512 left, Vector512 right); ++ public static Vector512 Average(Vector512 left, Vector512 right); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector256 ConvertToVector256Byte(Vector512 value); ++ public static Vector256 ConvertToVector256Byte(Vector512 value); ++ public static Vector256 ConvertToVector256ByteWithSaturation(Vector512 value); ++ public static Vector256 ConvertToVector256SByte(Vector512 value); ++ public static Vector256 ConvertToVector256SByte(Vector512 value); ++ public static Vector256 ConvertToVector256SByteWithSaturation(Vector512 value); ++ public static Vector512 ConvertToVector512Int16(Vector256 value); ++ public static Vector512 ConvertToVector512Int16(Vector256 value); ++ public static Vector512 ConvertToVector512UInt16(Vector256 value); ++ public static Vector512 ConvertToVector512UInt16(Vector256 value); ++ public unsafe static new Vector512 LoadVector512(byte* address); ++ public unsafe static new Vector512 LoadVector512(short* address); ++ public unsafe static new Vector512 LoadVector512(sbyte* address); ++ public unsafe static new Vector512 LoadVector512(ushort* address); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyAddAdjacent(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyAddAdjacent(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyHigh(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyHigh(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyHighRoundScale(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyLow(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyLow(Vector512 left, Vector512 right); ++ public static Vector512 PackSignedSaturate(Vector512 left, Vector512 right); ++ public static Vector512 PackSignedSaturate(Vector512 left, Vector512 right); ++ public static Vector512 PackUnsignedSaturate(Vector512 left, Vector512 right); ++ public static Vector512 PackUnsignedSaturate(Vector512 left, Vector512 right); ++ public static Vector512 PermuteVar32x16(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar32x16(Vector512 left, Vector512 control); ++ public static Vector512 ShiftLeftLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftLeftLogical128BitLane(Vector512 value, [ConstantExpectedAttribute] byte numBytes); ++ public static Vector512 ShiftLeftLogical128BitLane(Vector512 value, [ConstantExpectedAttribute] byte numBytes); ++ public static Vector512 ShiftLeftLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftLeftLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightArithmetic(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightArithmetic(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightArithmeticVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightLogical128BitLane(Vector512 value, [ConstantExpectedAttribute] byte numBytes); ++ public static Vector512 ShiftRightLogical128BitLane(Vector512 value, [ConstantExpectedAttribute] byte numBytes); ++ public static Vector512 ShiftRightLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 Shuffle(Vector512 value, Vector512 mask); ++ public static Vector512 Shuffle(Vector512 value, Vector512 mask); ++ public static Vector512 ShuffleHigh(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 ShuffleHigh(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 ShuffleLow(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 ShuffleLow(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public unsafe static new void Store(byte* address, Vector512 source); ++ public unsafe static new void Store(short* address, Vector512 source); ++ public unsafe static new void Store(sbyte* address, Vector512 source); ++ public unsafe static new void Store(ushort* address, Vector512 source); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 SubtractSaturate(Vector512 left, Vector512 right); ++ public static Vector512 SubtractSaturate(Vector512 left, Vector512 right); ++ public static Vector512 SubtractSaturate(Vector512 left, Vector512 right); ++ public static Vector512 SubtractSaturate(Vector512 left, Vector512 right); ++ public static Vector512 SumAbsoluteDifferences(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); + public new abstract class VL : Avx512F.VL { ++ public static Vector128 ConvertToVector128Byte(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector256 value); ++ public static Vector128 ConvertToVector128Byte(Vector256 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128SByte(Vector128 value); ++ public static Vector128 ConvertToVector128SByte(Vector128 value); ++ public static Vector128 ConvertToVector128SByte(Vector256 value); ++ public static Vector128 ConvertToVector128SByte(Vector256 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector256 value); ++ public static Vector256 PermuteVar16x16(Vector256 left, Vector256 control); ++ public static Vector256 PermuteVar16x16(Vector256 left, Vector256 control); ++ public static Vector128 PermuteVar8x16(Vector128 left, Vector128 control); ++ public static Vector128 PermuteVar8x16(Vector128 left, Vector128 control); ++ public static Vector128 ShiftLeftLogicalVariable(Vector128 value, Vector128 count); ++ public static Vector128 ShiftLeftLogicalVariable(Vector128 value, Vector128 count); ++ public static Vector256 ShiftLeftLogicalVariable(Vector256 value, Vector256 count); ++ public static Vector256 ShiftLeftLogicalVariable(Vector256 value, Vector256 count); ++ public static Vector128 ShiftRightArithmeticVariable(Vector128 value, Vector128 count); ++ public static Vector256 ShiftRightArithmeticVariable(Vector256 value, Vector256 count); ++ public static Vector128 ShiftRightLogicalVariable(Vector128 value, Vector128 count); ++ public static Vector128 ShiftRightLogicalVariable(Vector128 value, Vector128 count); ++ public static Vector256 ShiftRightLogicalVariable(Vector256 value, Vector256 count); ++ public static Vector256 ShiftRightLogicalVariable(Vector256 value, Vector256 count); + } + } + [CLSCompliantAttribute(false)] + public abstract class Avx512DQ : Avx512F { ++ public static Vector512 And(Vector512 left, Vector512 right); ++ public static Vector512 And(Vector512 left, Vector512 right); ++ public static Vector512 AndNot(Vector512 left, Vector512 right); ++ public static Vector512 AndNot(Vector512 left, Vector512 right); ++ public static Vector512 BroadcastPairScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastPairScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastPairScalarToVector512(Vector128 value); ++ public unsafe static Vector512 BroadcastVector128ToVector512(double* address); ++ public unsafe static Vector512 BroadcastVector128ToVector512(long* address); ++ public unsafe static Vector512 BroadcastVector128ToVector512(ulong* address); ++ public unsafe static Vector512 BroadcastVector256ToVector512(int* address); ++ public unsafe static Vector512 BroadcastVector256ToVector512(float* address); ++ public unsafe static Vector512 BroadcastVector256ToVector512(uint* address); ++ public static Vector256 ConvertToVector256Single(Vector512 value); ++ public static Vector256 ConvertToVector256Single(Vector512 value); ++ public static Vector512 ConvertToVector512Double(Vector512 value); ++ public static Vector512 ConvertToVector512Double(Vector512 value); ++ public static Vector512 ConvertToVector512Int64(Vector256 value); ++ public static Vector512 ConvertToVector512Int64(Vector512 value); ++ public static Vector512 ConvertToVector512Int64WithTruncation(Vector256 value); ++ public static Vector512 ConvertToVector512Int64WithTruncation(Vector512 value); ++ public static Vector512 ConvertToVector512UInt64(Vector256 value); ++ public static Vector512 ConvertToVector512UInt64(Vector512 value); ++ public static Vector512 ConvertToVector512UInt64WithTruncation(Vector256 value); ++ public static Vector512 ConvertToVector512UInt64WithTruncation(Vector512 value); ++ public static new Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static new Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static new Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static new Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static new Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static new Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static new Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static new Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static new Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static new Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static new Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static new Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 MultiplyLow(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyLow(Vector512 left, Vector512 right); ++ public static Vector512 Or(Vector512 left, Vector512 right); ++ public static Vector512 Or(Vector512 left, Vector512 right); ++ public static Vector512 Xor(Vector512 left, Vector512 right); ++ public static Vector512 Xor(Vector512 left, Vector512 right); + public new abstract class VL : Avx512F.VL { ++ public static Vector128 BroadcastPairScalarToVector128(Vector128 value); ++ public static Vector128 BroadcastPairScalarToVector128(Vector128 value); ++ public static Vector256 BroadcastPairScalarToVector256(Vector128 value); ++ public static Vector256 BroadcastPairScalarToVector256(Vector128 value); ++ public static Vector256 BroadcastPairScalarToVector256(Vector128 value); ++ public static Vector128 ConvertToVector128Double(Vector128 value); ++ public static Vector128 ConvertToVector128Double(Vector128 value); ++ public static Vector128 ConvertToVector128Int64(Vector128 value); ++ public static Vector128 ConvertToVector128Int64(Vector128 value); ++ public static Vector128 ConvertToVector128Int64WithTruncation(Vector128 value); ++ public static Vector128 ConvertToVector128Int64WithTruncation(Vector128 value); ++ public static Vector128 ConvertToVector128Single(Vector128 value); ++ public static Vector128 ConvertToVector128Single(Vector128 value); ++ public static Vector128 ConvertToVector128Single(Vector256 value); ++ public static Vector128 ConvertToVector128Single(Vector256 value); ++ public static Vector128 ConvertToVector128UInt64(Vector128 value); ++ public static Vector128 ConvertToVector128UInt64(Vector128 value); ++ public static Vector128 ConvertToVector128UInt64WithTruncation(Vector128 value); ++ public static Vector128 ConvertToVector128UInt64WithTruncation(Vector128 value); ++ public static Vector256 ConvertToVector256Double(Vector256 value); ++ public static Vector256 ConvertToVector256Double(Vector256 value); ++ public static Vector256 ConvertToVector256Int64(Vector128 value); ++ public static Vector256 ConvertToVector256Int64(Vector256 value); ++ public static Vector256 ConvertToVector256Int64WithTruncation(Vector128 value); ++ public static Vector256 ConvertToVector256Int64WithTruncation(Vector256 value); ++ public static Vector256 ConvertToVector256UInt64(Vector128 value); ++ public static Vector256 ConvertToVector256UInt64(Vector256 value); ++ public static Vector256 ConvertToVector256UInt64WithTruncation(Vector128 value); ++ public static Vector256 ConvertToVector256UInt64WithTruncation(Vector256 value); ++ public static Vector128 MultiplyLow(Vector128 left, Vector128 right); ++ public static Vector128 MultiplyLow(Vector128 left, Vector128 right); ++ public static Vector256 MultiplyLow(Vector256 left, Vector256 right); ++ public static Vector256 MultiplyLow(Vector256 left, Vector256 right); + } + } + [CLSCompliantAttribute(false)] + public abstract class Avx512F : Avx2 { ++ public static Vector512 Abs(Vector512 value); ++ public static Vector512 Abs(Vector512 value); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); ++ public static Vector512 Add(Vector512 left, Vector512 right); +- public static Vector512 And(Vector512 left, Vector512 right); +- public static Vector512 And(Vector512 left, Vector512 right); +- public static Vector512 AndNot(Vector512 left, Vector512 right); +- public static Vector512 AndNot(Vector512 left, Vector512 right); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public static Vector512 BroadcastScalarToVector512(Vector128 value); ++ public unsafe static Vector512 BroadcastVector128ToVector512(int* address); ++ public unsafe static Vector512 BroadcastVector128ToVector512(float* address); ++ public unsafe static Vector512 BroadcastVector128ToVector512(uint* address); ++ public unsafe static Vector512 BroadcastVector256ToVector512(double* address); ++ public unsafe static Vector512 BroadcastVector256ToVector512(long* address); ++ public unsafe static Vector512 BroadcastVector256ToVector512(ulong* address); ++ public static Vector128 ConvertScalarToVector128Double(Vector128 upper, uint value); ++ public static Vector128 ConvertScalarToVector128Single(Vector128 upper, uint value); ++ public static uint ConvertToUInt32(Vector128 value); ++ public static uint ConvertToUInt32(Vector128 value); ++ public static uint ConvertToUInt32WithTruncation(Vector128 value); ++ public static uint ConvertToUInt32WithTruncation(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector512 value); ++ public static Vector128 ConvertToVector128Byte(Vector512 value); ++ public static Vector128 ConvertToVector128Byte(Vector512 value); ++ public static Vector128 ConvertToVector128Byte(Vector512 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector512 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector512 value); ++ public static Vector128 ConvertToVector128Int16(Vector512 value); ++ public static Vector128 ConvertToVector128Int16(Vector512 value); ++ public static Vector128 ConvertToVector128Int16WithSaturation(Vector512 value); ++ public static Vector128 ConvertToVector128SByte(Vector512 value); ++ public static Vector128 ConvertToVector128SByte(Vector512 value); ++ public static Vector128 ConvertToVector128SByte(Vector512 value); ++ public static Vector128 ConvertToVector128SByte(Vector512 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector512 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector512 value); ++ public static Vector128 ConvertToVector128UInt16(Vector512 value); ++ public static Vector128 ConvertToVector128UInt16(Vector512 value); ++ public static Vector128 ConvertToVector128UInt16WithSaturation(Vector512 value); ++ public static Vector256 ConvertToVector256Int16(Vector512 value); ++ public static Vector256 ConvertToVector256Int16(Vector512 value); ++ public static Vector256 ConvertToVector256Int16WithSaturation(Vector512 value); ++ public static Vector256 ConvertToVector256Int32(Vector512 value); ++ public static Vector256 ConvertToVector256Int32(Vector512 value); ++ public static Vector256 ConvertToVector256Int32(Vector512 value); ++ public static Vector256 ConvertToVector256Int32WithSaturation(Vector512 value); ++ public static Vector256 ConvertToVector256Int32WithTruncation(Vector512 value); ++ public static Vector256 ConvertToVector256Single(Vector512 value); ++ public static Vector256 ConvertToVector256UInt16(Vector512 value); ++ public static Vector256 ConvertToVector256UInt16(Vector512 value); ++ public static Vector256 ConvertToVector256UInt16WithSaturation(Vector512 value); ++ public static Vector256 ConvertToVector256UInt32(Vector512 value); ++ public static Vector256 ConvertToVector256UInt32(Vector512 value); ++ public static Vector256 ConvertToVector256UInt32(Vector512 value); ++ public static Vector256 ConvertToVector256UInt32WithSaturation(Vector512 value); ++ public static Vector256 ConvertToVector256UInt32WithTruncation(Vector512 value); ++ public static Vector512 ConvertToVector512Double(Vector256 value); ++ public static Vector512 ConvertToVector512Double(Vector256 value); ++ public static Vector512 ConvertToVector512Double(Vector256 value); ++ public static Vector512 ConvertToVector512Int32(Vector128 value); ++ public static Vector512 ConvertToVector512Int32(Vector128 value); ++ public static Vector512 ConvertToVector512Int32(Vector256 value); ++ public static Vector512 ConvertToVector512Int32(Vector256 value); ++ public static Vector512 ConvertToVector512Int32(Vector512 value); ++ public static Vector512 ConvertToVector512Int32WithTruncation(Vector512 value); ++ public static Vector512 ConvertToVector512Int64(Vector128 value); ++ public static Vector512 ConvertToVector512Int64(Vector128 value); ++ public static Vector512 ConvertToVector512Int64(Vector128 value); ++ public static Vector512 ConvertToVector512Int64(Vector128 value); ++ public static Vector512 ConvertToVector512Int64(Vector256 value); ++ public static Vector512 ConvertToVector512Int64(Vector256 value); ++ public static Vector512 ConvertToVector512Single(Vector512 value); ++ public static Vector512 ConvertToVector512Single(Vector512 value); ++ public static Vector512 ConvertToVector512UInt32(Vector128 value); ++ public static Vector512 ConvertToVector512UInt32(Vector128 value); ++ public static Vector512 ConvertToVector512UInt32(Vector256 value); ++ public static Vector512 ConvertToVector512UInt32(Vector256 value); ++ public static Vector512 ConvertToVector512UInt32(Vector512 value); ++ public static Vector512 ConvertToVector512UInt32WithTruncation(Vector512 value); ++ public static Vector512 ConvertToVector512UInt64(Vector128 value); ++ public static Vector512 ConvertToVector512UInt64(Vector128 value); ++ public static Vector512 ConvertToVector512UInt64(Vector128 value); ++ public static Vector512 ConvertToVector512UInt64(Vector128 value); ++ public static Vector512 ConvertToVector512UInt64(Vector256 value); ++ public static Vector512 ConvertToVector512UInt64(Vector256 value); ++ public static Vector512 Divide(Vector512 left, Vector512 right); ++ public static Vector512 Divide(Vector512 left, Vector512 right); ++ public static Vector512 DuplicateEvenIndexed(Vector512 value); ++ public static Vector512 DuplicateEvenIndexed(Vector512 value); ++ public static Vector512 DuplicateOddIndexed(Vector512 value); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector128 ExtractVector128(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector256 ExtractVector256(Vector512 value, [ConstantExpectedAttribute] byte index); ++ public static Vector512 FusedMultiplyAdd(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplyAdd(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplyAddNegated(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplyAddNegated(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplyAddSubtract(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplyAddSubtract(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplySubtract(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplySubtract(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplySubtractAdd(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplySubtractAdd(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplySubtractNegated(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 FusedMultiplySubtractNegated(Vector512 a, Vector512 b, Vector512 c); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector128(Vector512 value, Vector128 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public static Vector512 InsertVector256(Vector512 value, Vector256 data, [ConstantExpectedAttribute] byte index); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(byte* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(short* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(int* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(long* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(sbyte* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(ushort* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(uint* address); ++ public unsafe static Vector512 LoadAlignedVector512NonTemporal(ulong* address); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Max(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Min(Vector512 left, Vector512 right); ++ public static Vector512 Multiply(Vector512 left, Vector512 right); ++ public static Vector512 Multiply(Vector512 left, Vector512 right); ++ public static Vector512 Multiply(Vector512 left, Vector512 right); ++ public static Vector512 Multiply(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyLow(Vector512 left, Vector512 right); ++ public static Vector512 MultiplyLow(Vector512 left, Vector512 right); +- public static Vector512 Or(Vector512 left, Vector512 right); +- public static Vector512 Or(Vector512 left, Vector512 right); ++ public static Vector512 Permute2x64(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Permute4x32(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Permute4x64(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Permute4x64(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Permute4x64(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 PermuteVar16x32(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar16x32(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar16x32(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar2x64(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar4x32(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar8x64(Vector512 value, Vector512 control); ++ public static Vector512 PermuteVar8x64(Vector512 value, Vector512 control); ++ public static Vector512 PermuteVar8x64(Vector512 value, Vector512 control); ++ public static Vector512 ShiftLeftLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftLeftLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftLeftLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftLeftLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftLeftLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftLeftLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightArithmetic(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightArithmetic(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightArithmetic(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightArithmetic(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightArithmeticVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightArithmeticVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightLogical(Vector512 value, [ConstantExpectedAttribute] byte count); ++ public static Vector512 ShiftRightLogical(Vector512 value, Vector128 count); ++ public static Vector512 ShiftRightLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 ShiftRightLogicalVariable(Vector512 value, Vector512 count); ++ public static Vector512 Shuffle(Vector512 value, Vector512 right, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Shuffle(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Shuffle(Vector512 value, Vector512 right, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Shuffle(Vector512 value, [ConstantExpectedAttribute] byte control); ++ public static Vector512 Sqrt(Vector512 value); ++ public static Vector512 Sqrt(Vector512 value); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 Subtract(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackHigh(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); ++ public static Vector512 UnpackLow(Vector512 left, Vector512 right); +- public static Vector512 Xor(Vector512 left, Vector512 right); +- public static Vector512 Xor(Vector512 left, Vector512 right); + public abstract class VL { ++ public static Vector128 Abs(Vector128 value); ++ public static Vector256 Abs(Vector256 value); ++ public static Vector128 ConvertToVector128Byte(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector128 value); ++ public static Vector128 ConvertToVector128Byte(Vector256 value); ++ public static Vector128 ConvertToVector128Byte(Vector256 value); ++ public static Vector128 ConvertToVector128Byte(Vector256 value); ++ public static Vector128 ConvertToVector128Byte(Vector256 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128ByteWithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128Double(Vector128 value); ++ public static Vector128 ConvertToVector128Int16(Vector128 value); ++ public static Vector128 ConvertToVector128Int16(Vector128 value); ++ public static Vector128 ConvertToVector128Int16(Vector128 value); ++ public static Vector128 ConvertToVector128Int16(Vector128 value); ++ public static Vector128 ConvertToVector128Int16(Vector256 value); ++ public static Vector128 ConvertToVector128Int16(Vector256 value); ++ public static Vector128 ConvertToVector128Int16(Vector256 value); ++ public static Vector128 ConvertToVector128Int16(Vector256 value); ++ public static Vector128 ConvertToVector128Int16WithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128Int16WithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128Int16WithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128Int16WithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128Int32(Vector128 value); ++ public static Vector128 ConvertToVector128Int32(Vector128 value); ++ public static Vector128 ConvertToVector128Int32(Vector256 value); ++ public static Vector128 ConvertToVector128Int32(Vector256 value); ++ public static Vector128 ConvertToVector128Int32WithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128Int32WithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128SByte(Vector128 value); ++ public static Vector128 ConvertToVector128SByte(Vector128 value); ++ public static Vector128 ConvertToVector128SByte(Vector128 value); ++ public static Vector128 ConvertToVector128SByte(Vector128 value); ++ public static Vector128 ConvertToVector128SByte(Vector256 value); ++ public static Vector128 ConvertToVector128SByte(Vector256 value); ++ public static Vector128 ConvertToVector128SByte(Vector256 value); ++ public static Vector128 ConvertToVector128SByte(Vector256 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128SByteWithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128Single(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16(Vector256 value); ++ public static Vector128 ConvertToVector128UInt16(Vector256 value); ++ public static Vector128 ConvertToVector128UInt16(Vector256 value); ++ public static Vector128 ConvertToVector128UInt16(Vector256 value); ++ public static Vector128 ConvertToVector128UInt16WithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16WithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128UInt16WithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128UInt16WithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128UInt32(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32(Vector256 value); ++ public static Vector128 ConvertToVector128UInt32(Vector256 value); ++ public static Vector128 ConvertToVector128UInt32(Vector256 value); ++ public static Vector128 ConvertToVector128UInt32WithSaturation(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32WithSaturation(Vector256 value); ++ public static Vector128 ConvertToVector128UInt32WithTruncation(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32WithTruncation(Vector128 value); ++ public static Vector128 ConvertToVector128UInt32WithTruncation(Vector256 value); ++ public static Vector256 ConvertToVector256Double(Vector128 value); ++ public static Vector256 ConvertToVector256Single(Vector256 value); ++ public static Vector256 ConvertToVector256UInt32(Vector256 value); ++ public static Vector256 ConvertToVector256UInt32WithTruncation(Vector256 value); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector128 Max(Vector128 left, Vector128 right); ++ public static Vector256 Max(Vector256 left, Vector256 right); ++ public static Vector256 Max(Vector256 left, Vector256 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector128 Min(Vector128 left, Vector128 right); ++ public static Vector256 Min(Vector256 left, Vector256 right); ++ public static Vector256 Min(Vector256 left, Vector256 right); ++ public static Vector256 PermuteVar4x64(Vector256 value, Vector256 control); ++ public static Vector256 PermuteVar4x64(Vector256 value, Vector256 control); ++ public static Vector256 PermuteVar4x64(Vector256 value, Vector256 control); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, [ConstantExpectedAttribute] byte count); ++ public static Vector128 ShiftRightArithmetic(Vector128 value, Vector128 count); ++ public static Vector256 ShiftRightArithmetic(Vector256 value, [ConstantExpectedAttribute] byte count); ++ public static Vector256 ShiftRightArithmetic(Vector256 value, Vector128 count); ++ public static Vector128 ShiftRightArithmeticVariable(Vector128 value, Vector128 count); ++ public static Vector256 ShiftRightArithmeticVariable(Vector256 value, Vector256 count); + } + public new abstract class X64 : Avx2.X64 { ++ public static Vector128 ConvertScalarToVector128Double(Vector128 upper, ulong value); ++ public static Vector128 ConvertScalarToVector128Single(Vector128 upper, ulong value); ++ public static ulong ConvertToUInt64(Vector128 value); ++ public static ulong ConvertToUInt64(Vector128 value); ++ public static ulong ConvertToUInt64WithTruncation(Vector128 value); ++ public static ulong ConvertToUInt64WithTruncation(Vector128 value); + } + } ++ [CLSCompliantAttribute(false)] ++ public abstract class Avx512Vbmi : Avx512BW { ++ public static new bool IsSupported { get; } ++ public static Vector512 PermuteVar64x8(Vector512 left, Vector512 control); ++ public static Vector512 PermuteVar64x8(Vector512 left, Vector512 control); ++ public new abstract class VL : Avx512BW.VL { ++ public static new bool IsSupported { get; } ++ public static Vector128 PermuteVar16x8(Vector128 left, Vector128 control); ++ public static Vector128 PermuteVar16x8(Vector128 left, Vector128 control); ++ public static Vector256 PermuteVar32x8(Vector256 left, Vector256 control); ++ public static Vector256 PermuteVar32x8(Vector256 left, Vector256 control); ++ } ++ public new abstract class X64 : Avx512BW.X64 { ++ public static new bool IsSupported { get; } ++ } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.Formatters.Binary.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.Formatters.Binary.md new file mode 100644 index 0000000000..9f15c29fda --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.Formatters.Binary.md @@ -0,0 +1,21 @@ +# System.Runtime.Serialization.Formatters.Binary + +``` diff + namespace System.Runtime.Serialization.Formatters.Binary { +- public sealed class BinaryFormatter : IFormatter { ++ [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public sealed class BinaryFormatter : IFormatter { +- [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] +- public object Deserialize(Stream serializationStream); ++ [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] ++ public object Deserialize(Stream serializationStream); +- [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] +- public void Serialize(Stream serializationStream, object graph); ++ [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] ++ public void Serialize(Stream serializationStream, object graph); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.Formatters.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.Formatters.md new file mode 100644 index 0000000000..8aa23834e1 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.Formatters.md @@ -0,0 +1,19 @@ +# System.Runtime.Serialization.Formatters + +``` diff + namespace System.Runtime.Serialization.Formatters { +- public enum FormatterAssemblyStyle ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public enum FormatterAssemblyStyle +- public enum FormatterTypeStyle ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public enum FormatterTypeStyle +- public interface IFieldInfo ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface IFieldInfo +- public enum TypeFilterLevel ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public enum TypeFilterLevel + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.md new file mode 100644 index 0000000000..dbe093bc28 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Runtime.Serialization.md @@ -0,0 +1,120 @@ +# System.Runtime.Serialization + +``` diff + namespace System.Runtime.Serialization { +- [CLSCompliantAttribute(false)] +- public abstract class Formatter : IFormatter { ++ [CLSCompliantAttribute(false)] ++ [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public abstract class Formatter : IFormatter { +- [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] +- public abstract object Deserialize(Stream serializationStream); ++ [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] ++ public abstract object Deserialize(Stream serializationStream); +- [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] +- public abstract void Serialize(Stream serializationStream, object graph); ++ [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] ++ public abstract void Serialize(Stream serializationStream, object graph); + } +- public class FormatterConverter : IFormatterConverter ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public class FormatterConverter : IFormatterConverter +- public static class FormatterServices ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public static class FormatterServices +- public interface IFormatter { ++ [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface IFormatter { +- [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] +- object Deserialize(Stream serializationStream); ++ [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] ++ object Deserialize(Stream serializationStream); +- [ObsoleteAttribute("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] +- [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] +- void Serialize(Stream serializationStream, object graph); ++ [RequiresUnreferencedCodeAttribute("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")] ++ void Serialize(Stream serializationStream, object graph); + } +- [CLSCompliantAttribute(false)] +- public interface IFormatterConverter ++ [CLSCompliantAttribute(false)] ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface IFormatterConverter + public class InvalidDataContractException : Exception { +- protected InvalidDataContractException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidDataContractException(SerializationInfo info, StreamingContext context); + } +- public interface IObjectReference ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface IObjectReference +- public interface ISafeSerializationData ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface ISafeSerializationData + public interface ISerializable { +- void GetObjectData(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ void GetObjectData(SerializationInfo info, StreamingContext context); + } +- public interface ISerializationSurrogate ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface ISerializationSurrogate +- public interface ISurrogateSelector ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public interface ISurrogateSelector +- public class ObjectIDGenerator ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public class ObjectIDGenerator +- public class ObjectManager ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public class ObjectManager +- public sealed class SafeSerializationEventArgs : EventArgs ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public sealed class SafeSerializationEventArgs : EventArgs + public class SerializationException : SystemException { +- protected SerializationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SerializationException(SerializationInfo info, StreamingContext context); + } + public sealed class SerializationInfo { +- [CLSCompliantAttribute(false)] +- public SerializationInfo(Type type, IFormatterConverter converter); ++ [CLSCompliantAttribute(false)] ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public SerializationInfo(Type type, IFormatterConverter converter); +- [CLSCompliantAttribute(false)] +- public SerializationInfo(Type type, IFormatterConverter converter, bool requireSameTokenInPartialTrust); ++ [CLSCompliantAttribute(false)] ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public SerializationInfo(Type type, IFormatterConverter converter, bool requireSameTokenInPartialTrust); + } +- public sealed class SerializationObjectManager ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public sealed class SerializationObjectManager + public readonly struct StreamingContext { +- public StreamingContext(StreamingContextStates state); ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public StreamingContext(StreamingContextStates state); +- public StreamingContext(StreamingContextStates state, object additional); ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public StreamingContext(StreamingContextStates state, object additional); +- public StreamingContextStates State { get; } ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public StreamingContextStates State { get; } + } +- [FlagsAttribute] +- public enum StreamingContextStates ++ [FlagsAttribute] ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public enum StreamingContextStates +- public class SurrogateSelector : ISurrogateSelector ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public class SurrogateSelector : ISurrogateSelector + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.AccessControl.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.AccessControl.md new file mode 100644 index 0000000000..6d8866a602 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.AccessControl.md @@ -0,0 +1,13 @@ +# System.Security.AccessControl + +``` diff + namespace System.Security.AccessControl { + public sealed class PrivilegeNotHeldException : UnauthorizedAccessException, ISerializable { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Authentication.ExtendedProtection.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Authentication.ExtendedProtection.md new file mode 100644 index 0000000000..49f8bc9a09 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Authentication.ExtendedProtection.md @@ -0,0 +1,13 @@ +# System.Security.Authentication.ExtendedProtection + +``` diff + namespace System.Security.Authentication.ExtendedProtection { + public class ExtendedProtectionPolicy : ISerializable { +- protected ExtendedProtectionPolicy(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ExtendedProtectionPolicy(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Authentication.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Authentication.md new file mode 100644 index 0000000000..aa90ff1488 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Authentication.md @@ -0,0 +1,19 @@ +# System.Security.Authentication + +``` diff + namespace System.Security.Authentication { + public class AuthenticationException : SystemException { +- protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class InvalidCredentialException : AuthenticationException { +- protected InvalidCredentialException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidCredentialException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Claims.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Claims.md new file mode 100644 index 0000000000..13657d80a5 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Claims.md @@ -0,0 +1,23 @@ +# System.Security.Claims + +``` diff + namespace System.Security.Claims { + public class ClaimsIdentity : IIdentity { +- protected ClaimsIdentity(SerializationInfo info); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ClaimsIdentity(SerializationInfo info); +- protected ClaimsIdentity(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ClaimsIdentity(SerializationInfo info, StreamingContext context); + } + public class ClaimsPrincipal : IPrincipal { +- protected ClaimsPrincipal(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ClaimsPrincipal(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Cryptography.X509Certificates.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Cryptography.X509Certificates.md new file mode 100644 index 0000000000..3b83fe36b6 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Cryptography.X509Certificates.md @@ -0,0 +1,19 @@ +# System.Security.Cryptography.X509Certificates + +``` diff + namespace System.Security.Cryptography.X509Certificates { + public class X509Certificate : IDeserializationCallback, IDisposable, ISerializable { +- public X509Certificate(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public X509Certificate(SerializationInfo info, StreamingContext context); + } + public class X509Certificate2 : X509Certificate { +- protected X509Certificate2(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected X509Certificate2(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Cryptography.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Cryptography.md new file mode 100644 index 0000000000..c64c2a5be6 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Cryptography.md @@ -0,0 +1,19 @@ +# System.Security.Cryptography + +``` diff + namespace System.Security.Cryptography { + public class CryptographicException : SystemException { +- protected CryptographicException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CryptographicException(SerializationInfo info, StreamingContext context); + } + public class CryptographicUnexpectedOperationException : CryptographicException { +- protected CryptographicUnexpectedOperationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CryptographicUnexpectedOperationException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Principal.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Principal.md new file mode 100644 index 0000000000..cd31f3585f --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.Principal.md @@ -0,0 +1,19 @@ +# System.Security.Principal + +``` diff + namespace System.Security.Principal { + public sealed class IdentityNotMappedException : SystemException { +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class WindowsIdentity : ClaimsIdentity, IDeserializationCallback, IDisposable, ISerializable { +- public WindowsIdentity(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public WindowsIdentity(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.md new file mode 100644 index 0000000000..ef2d0d9870 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Security.md @@ -0,0 +1,23 @@ +# System.Security + +``` diff + namespace System.Security { + public class SecurityException : SystemException { +- protected SecurityException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SecurityException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class VerificationException : SystemException { +- protected VerificationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected VerificationException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.Serialization.Metadata.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.Serialization.Metadata.md new file mode 100644 index 0000000000..a0ca384deb --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.Serialization.Metadata.md @@ -0,0 +1,13 @@ +# System.Text.Json.Serialization.Metadata + +``` diff + namespace System.Text.Json.Serialization.Metadata { + public abstract class JsonPropertyInfo { ++ public JsonObjectCreationHandling? ObjectCreationHandling { get; set; } + } + public abstract class JsonTypeInfo { ++ public JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get; set; } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.Serialization.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.Serialization.md new file mode 100644 index 0000000000..cad5b45952 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.Serialization.md @@ -0,0 +1,16 @@ +# System.Text.Json.Serialization + +``` diff + namespace System.Text.Json.Serialization { ++ public enum JsonObjectCreationHandling { ++ Populate = 1, ++ Replace = 0, ++ } ++ [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple=false)] ++ public sealed class JsonObjectCreationHandlingAttribute : JsonAttribute { ++ public JsonObjectCreationHandlingAttribute(JsonObjectCreationHandling handling); ++ public JsonObjectCreationHandling Handling { get; } ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.md new file mode 100644 index 0000000000..b678c96230 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Json.md @@ -0,0 +1,31 @@ +# System.Text.Json + +``` diff + namespace System.Text.Json { + public class JsonException : Exception { +- protected JsonException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected JsonException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public static class JsonSerializer { ++ public static bool IsReflectionEnabledByDefault { get; } +- public static IAsyncEnumerable DeserializeAsyncEnumerable(Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken = default(CancellationToken)); +- [RequiresUnreferencedCodeAttribute("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] +- public static IAsyncEnumerable DeserializeAsyncEnumerable(Stream utf8Json, Type returnType, JsonSerializerOptions? options = null, CancellationToken cancellationToken = default(CancellationToken)); + } + public sealed class JsonSerializerOptions { ++ public JsonObjectCreationHandling PreferredObjectCreationHandling { get; set; } +- public void AddContext() where TContext : JsonSerializerContext, new(); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties.", DiagnosticId="SYSLIB0049", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void AddContext() where TContext : JsonSerializerContext, new(); ++ public bool TryGetTypeInfo(Type type, [NotNullWhenAttribute(true)] out JsonTypeInfo typeInfo); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.RegularExpressions.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.RegularExpressions.md new file mode 100644 index 0000000000..b78fb7969a --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.RegularExpressions.md @@ -0,0 +1,55 @@ +# System.Text.RegularExpressions + +``` diff + namespace System.Text.RegularExpressions { + public class Regex : ISerializable { +- protected Regex(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected Regex(SerializationInfo info, StreamingContext context); +- protected void InitializeReferences(); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected void InitializeReferences(); +- protected bool UseOptionC(); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected bool UseOptionC(); +- protected internal bool UseOptionR(); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected bool UseOptionR(); + } + public class RegexMatchTimeoutException : TimeoutException, ISerializable { +- protected RegexMatchTimeoutException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected RegexMatchTimeoutException(SerializationInfo info, StreamingContext context); + } + public sealed class RegexParseException : ArgumentException { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } +- public abstract class RegexRunner { ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ public abstract class RegexRunner { +- protected static bool CharInClass(char ch, string charClass); ++ public static bool CharInClass(char ch, string charClass); +- protected static bool CharInSet(char ch, string @set, string category); ++ [ObsoleteAttribute("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected static bool CharInSet(char ch, string @set, string category); +- protected internal Match? Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick); ++ [ObsoleteAttribute("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected internal Match? Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick); +- protected internal Match? Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout); ++ [ObsoleteAttribute("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected internal Match? Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout); + } +- public abstract class RegexRunnerFactory ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ public abstract class RegexRunnerFactory + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Unicode.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Unicode.md new file mode 100644 index 0000000000..15c26785f3 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.Unicode.md @@ -0,0 +1,29 @@ +# System.Text.Unicode + +``` diff + namespace System.Text.Unicode { + public static class Utf8 { ++ public static bool TryWrite(Span destination, IFormatProvider? provider, [InterpolatedStringHandlerArgumentAttribute(new string[]{ "destination", "provider"})] ref Utf8.TryWriteInterpolatedStringHandler handler, out int bytesWritten); ++ public static bool TryWrite(Span destination, [InterpolatedStringHandlerArgumentAttribute("destination")] ref Utf8.TryWriteInterpolatedStringHandler handler, out int bytesWritten); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [InterpolatedStringHandlerAttribute] ++ public ref struct TryWriteInterpolatedStringHandler { ++ public TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span destination, out bool shouldAppend); ++ public TryWriteInterpolatedStringHandler(int literalLength, int formattedCount, Span destination, IFormatProvider? provider, out bool shouldAppend); ++ public bool AppendFormatted(object? value, int alignment = 0, string? format = null); ++ public bool AppendFormatted([ScopedRefAttribute] ReadOnlySpan utf8Value); ++ public bool AppendFormatted([ScopedRefAttribute] ReadOnlySpan utf8Value, int alignment = 0, string? format = null); ++ public bool AppendFormatted([ScopedRefAttribute] ReadOnlySpan value); ++ public bool AppendFormatted([ScopedRefAttribute] ReadOnlySpan value, int alignment = 0, string? format = null); ++ public bool AppendFormatted(string? value); ++ public bool AppendFormatted(string? value, int alignment = 0, string? format = null); ++ public bool AppendFormatted(T value); ++ public bool AppendFormatted(T value, int alignment); ++ public bool AppendFormatted(T value, int alignment, string? format); ++ public bool AppendFormatted(T value, string? format); ++ public bool AppendLiteral(string value); ++ } + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.md new file mode 100644 index 0000000000..9552ce4701 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Text.md @@ -0,0 +1,33 @@ +# System.Text + +``` diff + namespace System.Text { + public static class Ascii { ++ public static bool Equals(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool Equals(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool Equals(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool Equals(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool EqualsIgnoreCase(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool EqualsIgnoreCase(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool EqualsIgnoreCase(ReadOnlySpan left, ReadOnlySpan right); ++ public static bool EqualsIgnoreCase(ReadOnlySpan left, ReadOnlySpan right); + } + public class ASCIIEncoding : Encoding { ++ public override bool TryGetBytes(ReadOnlySpan chars, Span bytes, out int bytesWritten); ++ public override bool TryGetChars(ReadOnlySpan bytes, Span chars, out int charsWritten); + } + public abstract class Encoding : ICloneable { ++ public virtual bool TryGetBytes(ReadOnlySpan chars, Span bytes, out int bytesWritten); ++ public virtual bool TryGetChars(ReadOnlySpan bytes, Span chars, out int charsWritten); + } +- public readonly struct Rune : IComparable, IComparable, IEquatable, IFormattable, ISpanFormattable { ++ public readonly struct Rune : IComparable, IComparable, IEquatable, IFormattable, ISpanFormattable, IUtf8SpanFormattable { ++ bool IUtf8SpanFormattable.TryFormat(Span utf8Destination, out int bytesWritten, ReadOnlySpan format, IFormatProvider provider); + } + public class UTF8Encoding : Encoding { ++ public override bool TryGetBytes(ReadOnlySpan chars, Span bytes, out int bytesWritten); ++ public override bool TryGetChars(ReadOnlySpan bytes, Span chars, out int charsWritten); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.Channels.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.Channels.md new file mode 100644 index 0000000000..dd7c1bc8fe --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.Channels.md @@ -0,0 +1,13 @@ +# System.Threading.Channels + +``` diff + namespace System.Threading.Channels { + public class ChannelClosedException : InvalidOperationException { +- protected ChannelClosedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ChannelClosedException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.Tasks.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.Tasks.md new file mode 100644 index 0000000000..85e2eaa615 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.Tasks.md @@ -0,0 +1,34 @@ +# System.Threading.Tasks + +``` diff + namespace System.Threading.Tasks { + public static class Parallel { ++ public static Task ForAsync(T fromInclusive, T toExclusive, Func body) where T : IBinaryInteger; ++ public static Task ForAsync(T fromInclusive, T toExclusive, CancellationToken cancellationToken, Func body) where T : IBinaryInteger; ++ public static Task ForAsync(T fromInclusive, T toExclusive, ParallelOptions parallelOptions, Func body) where T : IBinaryInteger; + } + public class Task : IAsyncResult, IDisposable { ++ public static Task Delay(TimeSpan delay, TimeProvider timeProvider); ++ public static Task Delay(TimeSpan delay, TimeProvider timeProvider, CancellationToken cancellationToken); ++ public Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider); ++ public Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken); + } + public class Task : Task { ++ public new Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider); ++ public new Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken); + } + public class TaskCanceledException : OperationCanceledException { +- protected TaskCanceledException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TaskCanceledException(SerializationInfo info, StreamingContext context); + } + public class TaskSchedulerException : Exception { +- protected TaskSchedulerException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TaskSchedulerException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.md new file mode 100644 index 0000000000..d8807e0c0e --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Threading.md @@ -0,0 +1,78 @@ +# System.Threading + +``` diff + namespace System.Threading { + public class AbandonedMutexException : SystemException { +- protected AbandonedMutexException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AbandonedMutexException(SerializationInfo info, StreamingContext context); + } + public class BarrierPostPhaseException : Exception { +- protected BarrierPostPhaseException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected BarrierPostPhaseException(SerializationInfo info, StreamingContext context); + } + public class CancellationTokenSource : IDisposable { ++ public CancellationTokenSource(TimeSpan delay, TimeProvider timeProvider); + } + public sealed class CompressedStack : ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class ExecutionContext : IDisposable, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } ++ public interface ITimer : IAsyncDisposable, IDisposable { ++ bool Change(TimeSpan dueTime, TimeSpan period); ++ } + public class LockRecursionException : Exception { +- protected LockRecursionException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected LockRecursionException(SerializationInfo info, StreamingContext context); + } + public sealed class PeriodicTimer : IDisposable { ++ public PeriodicTimer(TimeSpan period, TimeProvider timeProvider); + } + public class SemaphoreFullException : SystemException { +- protected SemaphoreFullException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SemaphoreFullException(SerializationInfo info, StreamingContext context); + } + public class SynchronizationLockException : SystemException { +- protected SynchronizationLockException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SynchronizationLockException(SerializationInfo info, StreamingContext context); + } + public class ThreadInterruptedException : SystemException { +- protected ThreadInterruptedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ThreadInterruptedException(SerializationInfo info, StreamingContext context); + } + public class ThreadStateException : SystemException { +- protected ThreadStateException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ThreadStateException(SerializationInfo info, StreamingContext context); + } +- public sealed class Timer : MarshalByRefObject, IAsyncDisposable, IDisposable ++ public sealed class Timer : MarshalByRefObject, IAsyncDisposable, IDisposable, ITimer + public class WaitHandleCannotBeOpenedException : ApplicationException { +- protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WaitHandleCannotBeOpenedException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Transactions.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Transactions.md new file mode 100644 index 0000000000..351d69406f --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Transactions.md @@ -0,0 +1,37 @@ +# System.Transactions + +``` diff + namespace System.Transactions { + public class TransactionAbortedException : TransactionException { +- protected TransactionAbortedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TransactionAbortedException(SerializationInfo info, StreamingContext context); + } + public class TransactionException : SystemException { +- protected TransactionException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TransactionException(SerializationInfo info, StreamingContext context); + } + public class TransactionInDoubtException : TransactionException { +- protected TransactionInDoubtException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TransactionInDoubtException(SerializationInfo info, StreamingContext context); + } + public class TransactionManagerCommunicationException : TransactionException { +- protected TransactionManagerCommunicationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TransactionManagerCommunicationException(SerializationInfo info, StreamingContext context); + } + public class TransactionPromotionException : TransactionException { +- protected TransactionPromotionException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TransactionPromotionException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.Schema.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.Schema.md new file mode 100644 index 0000000000..826a90858d --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.Schema.md @@ -0,0 +1,37 @@ +# System.Xml.Schema + +``` diff + namespace System.Xml.Schema { + public class XmlSchemaException : SystemException { +- protected XmlSchemaException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XmlSchemaException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class XmlSchemaInferenceException : XmlSchemaException { +- protected XmlSchemaInferenceException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XmlSchemaInferenceException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class XmlSchemaValidationException : XmlSchemaException { +- protected XmlSchemaValidationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XmlSchemaValidationException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.XPath.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.XPath.md new file mode 100644 index 0000000000..150c0ab27b --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.XPath.md @@ -0,0 +1,17 @@ +# System.Xml.XPath + +``` diff + namespace System.Xml.XPath { + public class XPathException : SystemException { +- protected XPathException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XPathException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.Xsl.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.Xsl.md new file mode 100644 index 0000000000..8ecd4aef69 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.Xsl.md @@ -0,0 +1,27 @@ +# System.Xml.Xsl + +``` diff + namespace System.Xml.Xsl { + public class XsltCompileException : XsltException { +- protected XsltCompileException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XsltCompileException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class XsltException : SystemException { +- protected XsltException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XsltException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.md new file mode 100644 index 0000000000..a7bead049c --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.Xml.md @@ -0,0 +1,17 @@ +# System.Xml + +``` diff + namespace System.Xml { + public class XmlException : SystemException { +- protected XmlException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected XmlException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.md new file mode 100644 index 0000000000..dc1fc13336 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.NETCore.App/8.0-preview4_System.md @@ -0,0 +1,551 @@ +# System + +``` diff + namespace System { + public class AccessViolationException : SystemException { +- protected AccessViolationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AccessViolationException(SerializationInfo info, StreamingContext context); + } + public class AggregateException : Exception { +- protected AggregateException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AggregateException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class AppDomainUnloadedException : SystemException { +- protected AppDomainUnloadedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected AppDomainUnloadedException(SerializationInfo info, StreamingContext context); + } + public class ApplicationException : Exception { +- protected ApplicationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ApplicationException(SerializationInfo info, StreamingContext context); + } + public class ArgumentException : SystemException { +- protected ArgumentException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ArgumentException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class ArgumentNullException : ArgumentException { +- protected ArgumentNullException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ArgumentNullException(SerializationInfo info, StreamingContext context); + } + public class ArgumentOutOfRangeException : ArgumentException { +- protected ArgumentOutOfRangeException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ArgumentOutOfRangeException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ public static void ThrowIfEqual(T value, T other, [CallerArgumentExpressionAttribute("value")] string? paramName = null) where T : IEquatable?; ++ public static void ThrowIfNotEqual(T value, T other, [CallerArgumentExpressionAttribute("value")] string? paramName = null) where T : IEquatable?; + } + public class ArithmeticException : SystemException { +- protected ArithmeticException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ArithmeticException(SerializationInfo info, StreamingContext context); + } + public class ArrayTypeMismatchException : SystemException { +- protected ArrayTypeMismatchException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ArrayTypeMismatchException(SerializationInfo info, StreamingContext context); + } + public class BadImageFormatException : SystemException { +- protected BadImageFormatException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected BadImageFormatException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } +- public readonly struct Byte : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ public readonly struct Byte : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class CannotUnloadAppDomainException : SystemException { +- protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context); + } +- public readonly struct Char : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ public readonly struct Char : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ bool IUtf8SpanFormattable.TryFormat(Span utf8Destination, out int bytesWritten, ReadOnlySpan format, IFormatProvider provider); + } + public class ContextMarshalException : SystemException { +- protected ContextMarshalException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ContextMarshalException(SerializationInfo info, StreamingContext context); + } +- public readonly struct DateOnly : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable { ++ public readonly struct DateOnly : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("DateOnlyFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct DateTime : IComparable, IComparable, IConvertible, IEquatable, IFormattable, IParsable, ISerializable, ISpanFormattable, ISpanParsable { ++ public readonly struct DateTime : IComparable, IComparable, IConvertible, IEquatable, IFormattable, IParsable, ISerializable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("DateTimeFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct DateTimeOffset : IComparable, IComparable, IDeserializationCallback, IEquatable, IFormattable, IParsable, ISerializable, ISpanFormattable, ISpanParsable { ++ public readonly struct DateTimeOffset : IComparable, IComparable, IDeserializationCallback, IEquatable, IFormattable, IParsable, ISerializable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("DateTimeFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? formatProvider = null); + } + public sealed class DBNull : IConvertible, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } +- public readonly struct Decimal : IAdditionOperators, IAdditiveIdentity, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDeserializationCallback, IDivisionOperators, IEqualityOperators, IEquatable, IFloatingPoint, IFloatingPointConstants, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, ISerializable, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Decimal : IAdditionOperators, IAdditiveIdentity, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDeserializationCallback, IDivisionOperators, IEqualityOperators, IEquatable, IFloatingPoint, IFloatingPointConstants, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, ISerializable, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public abstract class Delegate : ICloneable, ISerializable { +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class DivideByZeroException : ArithmeticException { +- protected DivideByZeroException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DivideByZeroException(SerializationInfo info, StreamingContext context); + } + public class DllNotFoundException : TypeLoadException { +- protected DllNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DllNotFoundException(SerializationInfo info, StreamingContext context); + } +- public readonly struct Double : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Double : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class DuplicateWaitObjectException : ArgumentException { +- protected DuplicateWaitObjectException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DuplicateWaitObjectException(SerializationInfo info, StreamingContext context); + } + public class EntryPointNotFoundException : TypeLoadException { +- protected EntryPointNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EntryPointNotFoundException(SerializationInfo info, StreamingContext context); + } + public class Exception : ISerializable { +- protected Exception(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected Exception(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class FieldAccessException : MemberAccessException { +- protected FieldAccessException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected FieldAccessException(SerializationInfo info, StreamingContext context); + } + public class FormatException : SystemException { +- protected FormatException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected FormatException(SerializationInfo info, StreamingContext context); + } +- public readonly struct Guid : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable { ++ public readonly struct Guid : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ bool IUtf8SpanFormattable.TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("GuidFormat")] ReadOnlySpan format, IFormatProvider provider); ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("GuidFormat")] ReadOnlySpan format = default(ReadOnlySpan)); + } +- public readonly struct Half : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Half : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct Int128 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Int128 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct Int16 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Int16 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct Int32 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Int32 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct Int64 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Int64 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- public readonly struct IntPtr : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, ISerializable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct IntPtr : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, ISerializable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class InvalidCastException : SystemException { +- protected InvalidCastException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidCastException(SerializationInfo info, StreamingContext context); + } + public class InvalidOperationException : SystemException { +- protected InvalidOperationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidOperationException(SerializationInfo info, StreamingContext context); + } + public class InvalidTimeZoneException : Exception { +- protected InvalidTimeZoneException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected InvalidTimeZoneException(SerializationInfo info, StreamingContext context); + } ++ public interface IUtf8SpanFormattable { ++ bool TryFormat(Span utf8Destination, out int bytesWritten, ReadOnlySpan format, IFormatProvider? provider); ++ } + public class MemberAccessException : SystemException { +- protected MemberAccessException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MemberAccessException(SerializationInfo info, StreamingContext context); + } + public class MethodAccessException : MemberAccessException { +- protected MethodAccessException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MethodAccessException(SerializationInfo info, StreamingContext context); + } +- public class MissingFieldException : MissingMemberException, ISerializable { ++ public class MissingFieldException : MissingMemberException { +- protected MissingFieldException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MissingFieldException(SerializationInfo info, StreamingContext context); + } +- public class MissingMemberException : MemberAccessException, ISerializable { ++ public class MissingMemberException : MemberAccessException { +- protected MissingMemberException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MissingMemberException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class MissingMethodException : MissingMemberException { +- protected MissingMethodException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected MissingMethodException(SerializationInfo info, StreamingContext context); + } + public abstract class MulticastDelegate : Delegate { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } +- [AttributeUsageAttribute(AttributeTargets.Field, Inherited=false)] +- public sealed class NonSerializedAttribute : Attribute ++ [AttributeUsageAttribute(AttributeTargets.Field, Inherited=false)] ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ public sealed class NonSerializedAttribute : Attribute + public class NotFiniteNumberException : ArithmeticException { +- protected NotFiniteNumberException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NotFiniteNumberException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class NotImplementedException : SystemException { +- protected NotImplementedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NotImplementedException(SerializationInfo info, StreamingContext context); + } + public class NotSupportedException : SystemException { +- protected NotSupportedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NotSupportedException(SerializationInfo info, StreamingContext context); + } + public class NullReferenceException : SystemException { +- protected NullReferenceException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected NullReferenceException(SerializationInfo info, StreamingContext context); + } + public class ObjectDisposedException : InvalidOperationException { +- protected ObjectDisposedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ObjectDisposedException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class OperatingSystem : ICloneable, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class OperationCanceledException : SystemException { +- protected OperationCanceledException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected OperationCanceledException(SerializationInfo info, StreamingContext context); + } + public class OutOfMemoryException : SystemException { +- protected OutOfMemoryException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected OutOfMemoryException(SerializationInfo info, StreamingContext context); + } + public class OverflowException : ArithmeticException { +- protected OverflowException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected OverflowException(SerializationInfo info, StreamingContext context); + } + public class PlatformNotSupportedException : NotSupportedException { +- protected PlatformNotSupportedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected PlatformNotSupportedException(SerializationInfo info, StreamingContext context); + } + public class RankException : SystemException { +- protected RankException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected RankException(SerializationInfo info, StreamingContext context); + } + public struct RuntimeFieldHandle : IEquatable, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public struct RuntimeMethodHandle : IEquatable, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public struct RuntimeTypeHandle : IEquatable, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } +- [CLSCompliantAttribute(false)] +- public readonly struct SByte : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators { ++ [CLSCompliantAttribute(false)] ++ public readonly struct SByte : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Delegate | AttributeTargets.Enum | AttributeTargets.Struct, Inherited=false)] +- public sealed class SerializableAttribute : Attribute ++ [AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Delegate | AttributeTargets.Enum | AttributeTargets.Struct, Inherited=false)] ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ public sealed class SerializableAttribute : Attribute +- public readonly struct Single : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators { ++ public readonly struct Single : IAdditionOperators, IAdditiveIdentity, IBinaryFloatingPointIeee754, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IExponentialFunctions, IFloatingPoint, IFloatingPointConstants, IFloatingPointIeee754, IFormattable, IHyperbolicFunctions, IIncrementOperators, ILogarithmicFunctions, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IPowerFunctions, IRootFunctions, ISignedNumber, ISpanFormattable, ISpanParsable, ISubtractionOperators, ITrigonometricFunctions, IUnaryNegationOperators, IUnaryPlusOperators, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class SystemException : Exception { +- protected SystemException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SystemException(SerializationInfo info, StreamingContext context); + } +- public readonly struct TimeOnly : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable { ++ public readonly struct TimeOnly : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("TimeOnlyFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class TimeoutException : SystemException { +- protected TimeoutException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TimeoutException(SerializationInfo info, StreamingContext context); + } ++ public abstract class TimeProvider { ++ protected TimeProvider(); ++ public virtual TimeZoneInfo LocalTimeZone { get; } ++ public static TimeProvider System { get; } ++ public virtual long TimestampFrequency { get; } ++ public virtual ITimer CreateTimer(TimerCallback callback, object? state, TimeSpan dueTime, TimeSpan period); ++ public TimeSpan GetElapsedTime(long startingTimestamp); ++ public TimeSpan GetElapsedTime(long startingTimestamp, long endingTimestamp); ++ public DateTimeOffset GetLocalNow(); ++ public virtual long GetTimestamp(); ++ public virtual DateTimeOffset GetUtcNow(); ++ } +- public readonly struct TimeSpan : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable { ++ public readonly struct TimeSpan : IComparable, IComparable, IEquatable, IFormattable, IParsable, ISpanFormattable, ISpanParsable, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("TimeSpanFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? formatProvider = null); + } + public class TimeZoneNotFoundException : Exception { +- protected TimeZoneNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TimeZoneNotFoundException(SerializationInfo info, StreamingContext context); + } + public abstract class Type : MemberInfo, IReflect { +- public virtual bool IsSerializable { get; } ++ [ObsoleteAttribute("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual bool IsSerializable { get; } + } + public class TypeAccessException : TypeLoadException { +- protected TypeAccessException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TypeAccessException(SerializationInfo info, StreamingContext context); + } + public sealed class TypeInitializationException : SystemException { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } +- public class TypeLoadException : SystemException, ISerializable { ++ public class TypeLoadException : SystemException { +- protected TypeLoadException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TypeLoadException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class TypeUnloadedException : SystemException { +- protected TypeUnloadedException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected TypeUnloadedException(SerializationInfo info, StreamingContext context); + } +- [CLSCompliantAttribute(false)] +- public readonly struct UInt128 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ [CLSCompliantAttribute(false)] ++ public readonly struct UInt128 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- [CLSCompliantAttribute(false)] +- public readonly struct UInt16 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ [CLSCompliantAttribute(false)] ++ public readonly struct UInt16 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- [CLSCompliantAttribute(false)] +- public readonly struct UInt32 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ [CLSCompliantAttribute(false)] ++ public readonly struct UInt32 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- [CLSCompliantAttribute(false)] +- public readonly struct UInt64 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ [CLSCompliantAttribute(false)] ++ public readonly struct UInt64 : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IConvertible, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } +- [CLSCompliantAttribute(false)] +- public readonly struct UIntPtr : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, ISerializable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber { ++ [CLSCompliantAttribute(false)] ++ public readonly struct UIntPtr : IAdditionOperators, IAdditiveIdentity, IBinaryInteger, IBinaryNumber, IBitwiseOperators, IComparable, IComparable, IComparisonOperators, IDecrementOperators, IDivisionOperators, IEqualityOperators, IEquatable, IFormattable, IIncrementOperators, IMinMaxValue, IModulusOperators, IMultiplicativeIdentity, IMultiplyOperators, INumber, INumberBase, IParsable, ISerializable, IShiftOperators, ISpanFormattable, ISpanParsable, ISubtractionOperators, IUnaryNegationOperators, IUnaryPlusOperators, IUnsignedNumber, IUtf8SpanFormattable { ++ public bool TryFormat(Span utf8Destination, out int bytesWritten, [StringSyntaxAttribute("NumericFormat")] ReadOnlySpan format = default(ReadOnlySpan), IFormatProvider? provider = null); + } + public class UnauthorizedAccessException : SystemException { +- protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context); + } + public class Uri : ISerializable { +- protected Uri(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected Uri(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class UriFormatException : FormatException, ISerializable { +- protected UriFormatException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected UriFormatException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } +- public sealed class Version : ICloneable, IComparable, IComparable, IEquatable, IFormattable, ISpanFormattable { ++ public sealed class Version : ICloneable, IComparable, IComparable, IEquatable, IFormattable, ISpanFormattable, IUtf8SpanFormattable { +- public int CompareTo(object version); ++ public int CompareTo(object? version); +- public int CompareTo(Version value); ++ public int CompareTo(Version? value); +- public override bool Equals([NotNullWhenAttribute(true)] object obj); ++ public override bool Equals([NotNullWhenAttribute(true)] object? obj); +- public bool Equals([NotNullWhenAttribute(true)] Version obj); ++ public bool Equals([NotNullWhenAttribute(true)] Version? obj); +- public static bool operator ==(Version v1, Version v2); ++ public static bool operator ==(Version? v1, Version? v2); +- public static bool operator >(Version v1, Version v2); ++ public static bool operator >(Version? v1, Version? v2); +- public static bool operator >=(Version v1, Version v2); ++ public static bool operator >=(Version? v1, Version? v2); +- public static bool operator !=(Version v1, Version v2); ++ public static bool operator !=(Version? v1, Version? v2); +- public static bool operator <(Version v1, Version v2); ++ public static bool operator <(Version? v1, Version? v2); +- public static bool operator <=(Version v1, Version v2); ++ public static bool operator <=(Version? v1, Version? v2); ++ bool IUtf8SpanFormattable.TryFormat(Span utf8Destination, out int bytesWritten, ReadOnlySpan format, IFormatProvider provider); ++ public bool TryFormat(Span utf8Destination, out int bytesWritten); ++ public bool TryFormat(Span utf8Destination, int fieldCount, out int bytesWritten); +- public static bool TryParse([NotNullWhenAttribute(true)] string input, [NotNullWhenAttribute(true)] out Version result); ++ public static bool TryParse([NotNullWhenAttribute(true)] string? input, [NotNullWhenAttribute(true)] out Version? result); + } + public class WeakReference : ISerializable { +- protected WeakReference(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected WeakReference(SerializationInfo info, StreamingContext context); +- public virtual void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public virtual void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class WeakReference : ISerializable where T : class? { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(EditorBrowsableState.Never)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4.md new file mode 100644 index 0000000000..c1bf74758d --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4.md @@ -0,0 +1,25 @@ +# API Difference 8.0-preview3 vs 8.0-preview4 + +API listing follows standard diff formatting. +Lines preceded by a '+' are additions and a '-' indicates removal. + +* [Microsoft.VisualBasic.ApplicationServices](8.0-preview4_Microsoft.VisualBasic.ApplicationServices.md) +* [System.ComponentModel.Design](8.0-preview4_System.ComponentModel.Design.md) +* [System.ComponentModel.Design.Serialization](8.0-preview4_System.ComponentModel.Design.Serialization.md) +* [System.Configuration](8.0-preview4_System.Configuration.md) +* [System.Configuration.Provider](8.0-preview4_System.Configuration.Provider.md) +* [System.Diagnostics.Eventing.Reader](8.0-preview4_System.Diagnostics.Eventing.Reader.md) +* [System.DirectoryServices](8.0-preview4_System.DirectoryServices.md) +* [System.DirectoryServices.ActiveDirectory](8.0-preview4_System.DirectoryServices.ActiveDirectory.md) +* [System.Drawing](8.0-preview4_System.Drawing.md) +* [System.Drawing.Imaging](8.0-preview4_System.Drawing.Imaging.md) +* [System.Drawing.Interop](8.0-preview4_System.Drawing.Interop.md) +* [System.Drawing.Printing](8.0-preview4_System.Drawing.Printing.md) +* [System.IO](8.0-preview4_System.IO.md) +* [System.Media](8.0-preview4_System.Media.md) +* [System.Security](8.0-preview4_System.Security.md) +* [System.Security.Cryptography.Xml](8.0-preview4_System.Security.Cryptography.Xml.md) +* [System.Security.Policy](8.0-preview4_System.Security.Policy.md) +* [System.Windows.Controls.Ribbon](8.0-preview4_System.Windows.Controls.Ribbon.md) +* [System.Windows.Forms](8.0-preview4_System.Windows.Forms.md) + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_Microsoft.VisualBasic.ApplicationServices.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_Microsoft.VisualBasic.ApplicationServices.md new file mode 100644 index 0000000000..5926426d67 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_Microsoft.VisualBasic.ApplicationServices.md @@ -0,0 +1,23 @@ +# Microsoft.VisualBasic.ApplicationServices + +``` diff + namespace Microsoft.VisualBasic.ApplicationServices { + [EditorBrowsableAttribute(1)] + public class CantStartSingleInstanceException : Exception { +- [EditorBrowsableAttribute(2)] +- protected CantStartSingleInstanceException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(2)] ++ [ObsoleteAttribute("Type or member is obsolete", DiagnosticId="SYSLIB0051")] ++ protected CantStartSingleInstanceException(SerializationInfo info, StreamingContext context); + } + [EditorBrowsableAttribute(1)] + public class NoStartupFormException : Exception { +- [EditorBrowsableAttribute(2)] +- protected NoStartupFormException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(2)] ++ [ObsoleteAttribute("Type or member obsolete.", DiagnosticId="SYSLIB0051")] ++ protected NoStartupFormException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.ComponentModel.Design.Serialization.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.ComponentModel.Design.Serialization.md new file mode 100644 index 0000000000..78499741c4 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.ComponentModel.Design.Serialization.md @@ -0,0 +1,12 @@ +# System.ComponentModel.Design.Serialization + +``` diff + namespace System.ComponentModel.Design.Serialization { + public class CodeDomSerializerException : SystemException { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute(DiagnosticId="SYSLIB0051")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.ComponentModel.Design.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.ComponentModel.Design.md new file mode 100644 index 0000000000..8913056040 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.ComponentModel.Design.md @@ -0,0 +1,12 @@ +# System.ComponentModel.Design + +``` diff + namespace System.ComponentModel.Design { + public sealed class ExceptionCollection : Exception { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute(DiagnosticId="SYSLIB0051")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Configuration.Provider.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Configuration.Provider.md new file mode 100644 index 0000000000..51ae29fb2f --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Configuration.Provider.md @@ -0,0 +1,13 @@ +# System.Configuration.Provider + +``` diff + namespace System.Configuration.Provider { + public class ProviderException : Exception { +- protected ProviderException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ProviderException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Configuration.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Configuration.md new file mode 100644 index 0000000000..79d5fa0ff1 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Configuration.md @@ -0,0 +1,63 @@ +# System.Configuration + +``` diff + namespace System.Configuration { + public class ConfigurationErrorsException : ConfigurationException { +- protected ConfigurationErrorsException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ConfigurationErrorsException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class ConfigurationException : SystemException { +- protected ConfigurationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ConfigurationException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class ConfigurationSectionCollection : NameObjectCollectionBase { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class ConfigurationSectionGroupCollection : NameObjectCollectionBase { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public sealed class PropertyInformationCollection : NameObjectCollectionBase { +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class SettingsPropertyIsReadOnlyException : Exception { +- protected SettingsPropertyIsReadOnlyException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SettingsPropertyIsReadOnlyException(SerializationInfo info, StreamingContext context); + } + public class SettingsPropertyNotFoundException : Exception { +- protected SettingsPropertyNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SettingsPropertyNotFoundException(SerializationInfo info, StreamingContext context); + } + public class SettingsPropertyWrongTypeException : Exception { +- protected SettingsPropertyWrongTypeException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SettingsPropertyWrongTypeException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Diagnostics.Eventing.Reader.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Diagnostics.Eventing.Reader.md new file mode 100644 index 0000000000..e3f09e0950 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Diagnostics.Eventing.Reader.md @@ -0,0 +1,41 @@ +# System.Diagnostics.Eventing.Reader + +``` diff + namespace System.Diagnostics.Eventing.Reader { + public class EventLogException : Exception { +- protected EventLogException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogException(SerializationInfo serializationInfo, StreamingContext streamingContext); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class EventLogInvalidDataException : EventLogException { +- protected EventLogInvalidDataException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogInvalidDataException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class EventLogNotFoundException : EventLogException { +- protected EventLogNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class EventLogProviderDisabledException : EventLogException { +- protected EventLogProviderDisabledException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogProviderDisabledException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class EventLogReadingException : EventLogException { +- protected EventLogReadingException(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected EventLogReadingException(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.DirectoryServices.ActiveDirectory.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.DirectoryServices.ActiveDirectory.md new file mode 100644 index 0000000000..ad697e9409 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.DirectoryServices.ActiveDirectory.md @@ -0,0 +1,63 @@ +# System.DirectoryServices.ActiveDirectory + +``` diff + namespace System.DirectoryServices.ActiveDirectory { + public class ActiveDirectoryObjectExistsException : Exception { +- protected ActiveDirectoryObjectExistsException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ActiveDirectoryObjectExistsException(SerializationInfo info, StreamingContext context); + } + public class ActiveDirectoryObjectNotFoundException : Exception, ISerializable { +- protected ActiveDirectoryObjectNotFoundException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ActiveDirectoryObjectNotFoundException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class ActiveDirectoryOperationException : Exception, ISerializable { +- protected ActiveDirectoryOperationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ActiveDirectoryOperationException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class ActiveDirectoryServerDownException : Exception, ISerializable { +- protected ActiveDirectoryServerDownException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ActiveDirectoryServerDownException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class ForestTrustCollisionException : ActiveDirectoryOperationException, ISerializable { +- protected ForestTrustCollisionException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected ForestTrustCollisionException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + public class SyncFromAllServersOperationException : ActiveDirectoryOperationException, ISerializable { +- protected SyncFromAllServersOperationException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SyncFromAllServersOperationException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.DirectoryServices.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.DirectoryServices.md new file mode 100644 index 0000000000..4e22fa0b8c --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.DirectoryServices.md @@ -0,0 +1,17 @@ +# System.DirectoryServices + +``` diff + namespace System.DirectoryServices { + public class DirectoryServicesCOMException : COMException, ISerializable { +- protected DirectoryServicesCOMException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected DirectoryServicesCOMException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Imaging.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Imaging.md new file mode 100644 index 0000000000..229ba56ad2 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Imaging.md @@ -0,0 +1,12 @@ +# System.Drawing.Imaging + +``` diff + namespace System.Drawing.Imaging { ++ public sealed class CachedBitmap : IDisposable { ++ public CachedBitmap(Bitmap bitmap, Graphics graphics); ++ public void Dispose(); ++ ~CachedBitmap(); ++ } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Interop.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Interop.md new file mode 100644 index 0000000000..352d69c7c9 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Interop.md @@ -0,0 +1,24 @@ +# System.Drawing.Interop + +``` diff ++namespace System.Drawing.Interop { ++ public struct LOGFONT { ++ public byte lfCharSet; ++ public byte lfClipPrecision; ++ public byte lfItalic; ++ public byte lfOutPrecision; ++ public byte lfPitchAndFamily; ++ public byte lfQuality; ++ public byte lfStrikeOut; ++ public byte lfUnderline; ++ public int lfEscapement; ++ public int lfHeight; ++ public int lfOrientation; ++ public int lfWeight; ++ public int lfWidth; ++ [UnscopedRefAttribute] ++ public Span lfFaceName { get; } ++ } ++} +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Printing.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Printing.md new file mode 100644 index 0000000000..d1eae5b539 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.Printing.md @@ -0,0 +1,16 @@ +# System.Drawing.Printing + +``` diff + namespace System.Drawing.Printing { + [TypeForwardedFromAttribute("System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + public class InvalidPrinterException : SystemException { +- protected InvalidPrinterException(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute(DiagnosticId="SYSLIB0051")] ++ protected InvalidPrinterException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [ObsoleteAttribute(DiagnosticId="SYSLIB0051")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.md new file mode 100644 index 0000000000..f7c6b6b0fd --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Drawing.md @@ -0,0 +1,147 @@ +# System.Drawing + +``` diff + namespace System.Drawing { + [EditorAttribute("System.Drawing.Design.FontEditor, System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [TypeConverterAttribute(typeof(FontConverter))] + [TypeForwardedFromAttribute("System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + public sealed class Font : MarshalByRefObject, ICloneable, IDisposable, ISerializable { ++ public static Font FromLogFont(in LOGFONT logFont); ++ public static Font FromLogFont(in LOGFONT logFont, IntPtr hdc); ++ public void ToLogFont(out LOGFONT logFont); ++ public void ToLogFont(out LOGFONT logFont, Graphics graphics); + } + public sealed class Graphics : MarshalByRefObject, IDeviceContext, IDisposable { ++ public void DrawCachedBitmap(CachedBitmap cachedBitmap, int x, int y); ++ public void DrawString(ReadOnlySpan s, Font font, Brush brush, PointF point); ++ public void DrawString(ReadOnlySpan s, Font font, Brush brush, PointF point, StringFormat? format); ++ public void DrawString(ReadOnlySpan s, Font font, Brush brush, RectangleF layoutRectangle); ++ public void DrawString(ReadOnlySpan s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat? format); ++ public void DrawString(ReadOnlySpan s, Font font, Brush brush, float x, float y); ++ public void DrawString(ReadOnlySpan s, Font font, Brush brush, float x, float y, StringFormat? format); ++ public Region[] MeasureCharacterRanges(ReadOnlySpan text, Font font, RectangleF layoutRect, StringFormat? stringFormat); ++ public SizeF MeasureString(ReadOnlySpan text, Font font); ++ public SizeF MeasureString(ReadOnlySpan text, Font font, PointF origin, StringFormat? stringFormat); ++ public SizeF MeasureString(ReadOnlySpan text, Font font, SizeF layoutArea); ++ public SizeF MeasureString(ReadOnlySpan text, Font font, SizeF layoutArea, StringFormat? stringFormat); ++ public SizeF MeasureString(ReadOnlySpan text, Font font, SizeF layoutArea, StringFormat? stringFormat, out int charactersFitted, out int linesFilled); ++ public SizeF MeasureString(ReadOnlySpan text, Font font, int width); ++ public SizeF MeasureString(ReadOnlySpan text, Font font, int width, StringFormat? format); + } + [EditorAttribute("System.Drawing.Design.IconEditor, System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [TypeConverterAttribute(typeof(IconConverter))] + [TypeForwardedFromAttribute("System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + public sealed class Icon : MarshalByRefObject, ICloneable, IDisposable, ISerializable { ++ public static Icon? ExtractIcon(string filePath, int id, bool smallIcon = false); ++ public static Icon? ExtractIcon(string filePath, int id, int size); + } ++ public enum StockIconId { ++ Application = 2, ++ AudioFiles = 71, ++ AutoList = 49, ++ ClusteredDrive = 140, ++ Delete = 84, ++ DesktopPC = 94, ++ DeviceAudioPlayer = 102, ++ DeviceCamera = 100, ++ DeviceCellPhone = 99, ++ DeviceVideoCamera = 101, ++ DocumentNoAssociation = 0, ++ DocumentWithAssociation = 1, ++ Drive35 = 6, ++ Drive525 = 5, ++ DriveBD = 133, ++ DriveCD = 11, ++ DriveDVD = 59, ++ DriveFixed = 8, ++ DriveHDDVD = 132, ++ DriveNet = 9, ++ DriveNetDisabled = 10, ++ DriveRam = 12, ++ DriveRemovable = 7, ++ DriveUnknown = 58, ++ Error = 80, ++ Find = 22, ++ Folder = 3, ++ FolderBack = 75, ++ FolderFront = 76, ++ FolderOpen = 4, ++ Help = 23, ++ ImageFiles = 72, ++ Info = 79, ++ Internet = 104, ++ Key = 81, ++ Link = 29, ++ Lock = 47, ++ MediaAudioDVD = 85, ++ MediaBDR = 138, ++ MediaBDRE = 139, ++ MediaBDROM = 137, ++ MediaBlankCD = 69, ++ MediaBluRay = 90, ++ MediaCDAudio = 40, ++ MediaCDAudioPlus = 65, ++ MediaCDBurn = 68, ++ MediaCDR = 67, ++ MediaCDROM = 70, ++ MediaCDRW = 66, ++ MediaCompactFlash = 98, ++ MediaDVD = 60, ++ MediaDVDPlusR = 92, ++ MediaDVDPlusRW = 93, ++ MediaDVDR = 63, ++ MediaDVDRAM = 61, ++ MediaDVDROM = 64, ++ MediaDVDRW = 62, ++ MediaEnhancedCD = 87, ++ MediaEnhancedDVD = 88, ++ MediaHDDVD = 89, ++ MediaHDDVDR = 135, ++ MediaHDDVDRAM = 136, ++ MediaHDDVDROM = 134, ++ MediaMovieDVD = 86, ++ MediaSmartMedia = 97, ++ MediaSVCD = 56, ++ MediaVCD = 91, ++ MixedFiles = 74, ++ MobilePC = 95, ++ MyNetwork = 17, ++ NetworkConnect = 103, ++ Printer = 16, ++ PrinterFax = 52, ++ PrinterFaxNet = 53, ++ PrinterFile = 54, ++ PrinterNet = 50, ++ Recycler = 31, ++ RecyclerFull = 32, ++ Rename = 83, ++ Server = 15, ++ ServerShare = 51, ++ Settings = 106, ++ Share = 28, ++ Shield = 77, ++ SlowFile = 30, ++ Software = 82, ++ Stack = 55, ++ StuffedFolder = 57, ++ Users = 96, ++ VideoFiles = 73, ++ Warning = 78, ++ World = 13, ++ ZipFile = 105, ++ } ++ [FlagsAttribute] ++ public enum StockIconOptions { ++ Default = 0, ++ LinkOverlay = 32768, ++ Selected = 65536, ++ ShellIconSize = 4, ++ SmallIcon = 1, ++ } + public static class SystemIcons { ++ public static Icon GetStockIcon(StockIconId stockIcon, StockIconOptions options = StockIconOptions.Default); ++ public static Icon GetStockIcon(StockIconId stockIcon, int size); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.IO.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.IO.md new file mode 100644 index 0000000000..570dac1196 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.IO.md @@ -0,0 +1,17 @@ +# System.IO + +``` diff + namespace System.IO { + public class FileFormatException : FormatException { +- protected FileFormatException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected FileFormatException(SerializationInfo info, StreamingContext context); +- public override void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public override void GetObjectData(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Media.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Media.md new file mode 100644 index 0000000000..deedef3c41 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Media.md @@ -0,0 +1,14 @@ +# System.Media + +``` diff + namespace System.Media { + [ToolboxItemAttribute(false)] + public class SoundPlayer : Component, ISerializable { +- protected SoundPlayer(SerializationInfo serializationInfo, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected SoundPlayer(SerializationInfo serializationInfo, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.Cryptography.Xml.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.Cryptography.Xml.md new file mode 100644 index 0000000000..175a5fc063 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.Cryptography.Xml.md @@ -0,0 +1,86 @@ +# System.Security.Cryptography.Xml + +``` diff + namespace System.Security.Cryptography.Xml { + public sealed class CipherData { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } + public sealed class CipherReference : EncryptedReference { +- public override void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public override void LoadXml(XmlElement value); + } + public sealed class EncryptedData : EncryptedType { +- public override void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public override void LoadXml(XmlElement value); + } + public sealed class EncryptedKey : EncryptedType { +- public override void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public override void LoadXml(XmlElement value); + } + public abstract class EncryptedReference { +- public virtual void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public virtual void LoadXml(XmlElement value); + } + public abstract class EncryptedType { +- public abstract void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public abstract void LoadXml(XmlElement value); + } + public class EncryptedXml { +- public EncryptedXml(); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public EncryptedXml(); +- public EncryptedXml(XmlDocument document); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public EncryptedXml(XmlDocument document); +- public EncryptedXml(XmlDocument document, Evidence? evidence); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public EncryptedXml(XmlDocument document, Evidence? evidence); + } + public class KeyInfo : IEnumerable { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } +- public class KeyInfoEncryptedKey : KeyInfoClause ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class KeyInfoEncryptedKey : KeyInfoClause + public class Reference { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } + public class Signature { +- public void LoadXml(XmlElement value); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public void LoadXml(XmlElement value); + } +- public class SignedInfo : ICollection, IEnumerable ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class SignedInfo : ICollection, IEnumerable + public class SignedXml { +- public SignedXml(); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public SignedXml(); +- public SignedXml(XmlDocument document); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public SignedXml(XmlDocument document); +- public SignedXml(XmlElement elem); ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public SignedXml(XmlElement elem); + } +- public class XmlDecryptionTransform : Transform ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class XmlDecryptionTransform : Transform +- public class XmlLicenseTransform : Transform ++ [RequiresUnreferencedCodeAttribute("The algorithm implementations referenced in the XML payload might be removed. Ensure the required algorithm implementations are preserved in your application.")] ++ public class XmlLicenseTransform : Transform + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.Policy.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.Policy.md new file mode 100644 index 0000000000..ff806aab95 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.Policy.md @@ -0,0 +1,19 @@ +# System.Security.Policy + +``` diff + namespace System.Security.Policy { + public sealed class Hash : EvidenceBase, ISerializable { +- public void GetObjectData(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ public void GetObjectData(SerializationInfo info, StreamingContext context); + } + public class PolicyException : SystemException { +- protected PolicyException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected PolicyException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.md new file mode 100644 index 0000000000..b77e05f455 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Security.md @@ -0,0 +1,14 @@ +# System.Security + +``` diff + namespace System.Security { + [ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] + public class HostProtectionException : SystemException { +- protected HostProtectionException(SerializationInfo info, StreamingContext context); ++ [EditorBrowsableAttribute(1)] ++ [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] ++ protected HostProtectionException(SerializationInfo info, StreamingContext context); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Windows.Controls.Ribbon.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Windows.Controls.Ribbon.md new file mode 100644 index 0000000000..990d9c7a9f --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Windows.Controls.Ribbon.md @@ -0,0 +1,11 @@ +# System.Windows.Controls.Ribbon + +``` diff + namespace System.Windows.Controls.Ribbon { + public class RibbonGalleryItem : ContentControl { ++ protected internal virtual void OnSelected(RoutedEventArgs e); ++ protected internal virtual void OnUnselected(RoutedEventArgs e); + } + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Windows.Forms.md b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Windows.Forms.md new file mode 100644 index 0000000000..29ccecfd4c --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/Microsoft.WindowsDesktop.App/8.0-preview4_System.Windows.Forms.md @@ -0,0 +1,9 @@ +# System.Windows.Forms + +``` diff + namespace System.Windows.Forms { +- public class AccessibleObject : StandardOleMarshalObject, IAccessible, Interop.Oleaut32.IEnumVariant, Interop.UiaCore.IAccessibleEx, Interop.UiaCore.IExpandCollapseProvider, Interop.UiaCore.IGridItemProvider, Interop.UiaCore.IGridProvider, Interop.UiaCore.IInvokeProvider, Interop.UiaCore.ILegacyIAccessibleProvider, Interop.UiaCore.IMultipleViewProvider, Interop.UiaCore.IRangeValueProvider, Interop.UiaCore.IRawElementProviderFragment, Interop.UiaCore.IRawElementProviderFragmentRoot, Interop.UiaCore.IRawElementProviderHwndOverride, Interop.UiaCore.IRawElementProviderSimple, Interop.UiaCore.IScrollItemProvider, Interop.UiaCore.ISelectionItemProvider, Interop.UiaCore.ISelectionProvider, Interop.UiaCore.ITableItemProvider, Interop.UiaCore.ITableProvider, Interop.UiaCore.ITextProvider, Interop.UiaCore.ITextProvider2, Interop.UiaCore.IToggleProvider, Interop.UiaCore.IValueProvider, IOleWindow.Interface, IReflect, IServiceProvider.Interface ++ public class AccessibleObject : StandardOleMarshalObject, IAccessible, IEnumVARIANT.Interface, Interop.UiaCore.IAccessibleEx, Interop.UiaCore.IExpandCollapseProvider, Interop.UiaCore.IGridItemProvider, Interop.UiaCore.IGridProvider, Interop.UiaCore.IInvokeProvider, Interop.UiaCore.ILegacyIAccessibleProvider, Interop.UiaCore.IMultipleViewProvider, Interop.UiaCore.IRangeValueProvider, Interop.UiaCore.IRawElementProviderFragment, Interop.UiaCore.IRawElementProviderFragmentRoot, Interop.UiaCore.IRawElementProviderHwndOverride, Interop.UiaCore.IRawElementProviderSimple, Interop.UiaCore.IScrollItemProvider, Interop.UiaCore.ISelectionItemProvider, Interop.UiaCore.ISelectionProvider, Interop.UiaCore.ITableItemProvider, Interop.UiaCore.ITableProvider, Interop.UiaCore.ITextProvider, Interop.UiaCore.ITextProvider2, Interop.UiaCore.IToggleProvider, Interop.UiaCore.IValueProvider, IOleWindow.Interface, IReflect, IServiceProvider.Interface + } +``` + diff --git a/release-notes/8.0/preview/api-diff/preview4/README.md b/release-notes/8.0/preview/api-diff/preview4/README.md new file mode 100644 index 0000000000..017d397e02 --- /dev/null +++ b/release-notes/8.0/preview/api-diff/preview4/README.md @@ -0,0 +1,7 @@ +# .NET 8.0 Preview 4 API Changes + +The following API changes were made in .NET 8.0 Preview 4: + +- [Microsoft.NETCore.App](./Microsoft.NETCore.App/8.0-preview4.md) +- [Microsoft.AspNetCore.App](./Microsoft.AspNetCore.App/8.0-preview4.md) +- [Microsoft.WindowsDesktop.App](./Microsoft.WindowsDesktop.App/8.0-preview4.md) diff --git a/release-notes/RunApiDiff.md b/release-notes/RunApiDiff.md index 75ef1dd658..1d2f03cab9 100644 --- a/release-notes/RunApiDiff.md +++ b/release-notes/RunApiDiff.md @@ -11,10 +11,10 @@ The [`RunApiDiff.ps1`](./RunApiDiff.ps1) script can automatically generate an AP ```powershell .\RunApiDiff.ps1 ` - -PreviousDotNetVersion 7.0 ` + -PreviousDotNetVersion 8.0 ` -PreviousPreviewOrRC preview ` -PreviousPreviewNumberVersion 2 ` - -CurrentDotNetVersion 7.0 ` + -CurrentDotNetVersion 8.0 ` -CurrentPreviewOrRC preview ` -CurrentPreviewNumberVersion 3 ` -CoreRepo D:\core\ ` @@ -24,5 +24,5 @@ The [`RunApiDiff.ps1`](./RunApiDiff.ps1) script can automatically generate an AP Examples of what this script generates: -- PR comparing .NET 6.0 vs .NET 7.0 Preview1: -- PR comparing .NET 7.0 Preview1 vs Preview2: +- PR comparing .NET 8.0 Preview2 vs Preview3: +- PR comparing .NET 7.0 Preview1 vs Preview2: \ No newline at end of file diff --git a/release-notes/RunApiDiff.ps1 b/release-notes/RunApiDiff.ps1 index e8634d3bbf..b4dfede75e 100644 --- a/release-notes/RunApiDiff.ps1 +++ b/release-notes/RunApiDiff.ps1 @@ -14,7 +14,7 @@ # -TmpFolder : The full path to the folder where the assets will be downloaded, extracted and compared. # Example: -# .\RunApiDiff.ps1 -PreviousDotNetVersion 7.0 -PreviousPreviewOrRC preview -PreviousPreviewNumberVersion 2 -CurrentDotNetVersion 7.0 -CurrentPreviewOrRC preview -CurrentPreviewNumberVersion 3 -CoreRepo D:\core -ArcadeRepo D:\arcade -TmpFolder D:\tmp +# .\RunApiDiff.ps1 -PreviousDotNetVersion 8.0 -PreviousPreviewOrRC preview -PreviousPreviewNumberVersion 2 -CurrentDotNetVersion 8.0 -CurrentPreviewOrRC preview -CurrentPreviewNumberVersion 3 -CoreRepo D:\core -ArcadeRepo D:\arcade -TmpFolder D:\tmp Param ( [Parameter(Mandatory=$true)] @@ -323,7 +323,7 @@ Function GetPreviewFolderPath $previewOrRCFolderName = GetPreviewOrRCFolderName $dotNetVersion $previewOrRC $previewNumberVersion Return [IO.Path]::Combine($prefixFolder, "preview", $apiDiffFolderName, $previewOrRCFolderName) } - + Return [IO.Path]::Combine($prefixFolder, "$dotNetVersion.$previewNumberVersion", $apiDiffFolderName) } @@ -611,7 +611,7 @@ VerifyPathOrExit $windowsDesktopAfterDllFolder $asmDiffProjectPath = [IO.Path]::Combine($ArcadeRepo, "src", "Microsoft.DotNet.AsmDiff", "Microsoft.DotNet.AsmDiff.csproj") $asmDiffArtifactsPath = [IO.Path]::Combine($ArcadeRepo ,"artifacts", "bin", "Microsoft.DotNet.AsmDiff") -$asmDiffExe = [IO.Path]::Combine($asmDiffArtifactsPath, "Release", "net7.0", "Microsoft.DotNet.AsmDiff.exe") +$asmDiffExe = [IO.Path]::Combine($asmDiffArtifactsPath, "Release", "net8.0", "Microsoft.DotNet.AsmDiff.exe") ReBuildIfExeNotFound $asmDiffExe $asmDiffProjectPath $asmDiffArtifactsPath ## Recreate api-diff folder in core repo folder