From 2a006869b8f117bfc60a678b5ddf54966fa8905b Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Fri, 2 Jul 2021 10:56:23 -0400 Subject: [PATCH 1/2] Clarify description of object initializers The statement "without calling the constructor" could be easily misinterpreted as claiming that no constructor is executed. That is incorrect. --- docs/csharp/fundamentals/object-oriented/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/fundamentals/object-oriented/index.md b/docs/csharp/fundamentals/object-oriented/index.md index ece85b0b6b87c..bd4cf7e2dc0e6 100644 --- a/docs/csharp/fundamentals/object-oriented/index.md +++ b/docs/csharp/fundamentals/object-oriented/index.md @@ -76,7 +76,7 @@ You can define part of a class, struct, or method in one code file and another p ## Object Initializers -You can instantiate and initialize class or struct objects, and collections of objects, without explicitly calling their constructor with an ending `()` after the type. +You can instantiate and initialize class or struct objects, and collections of objects, by assigning values to its properties. ## Anonymous Types From fbec64df2ce89357216d3aa1619715b8912dac13 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Fri, 2 Jul 2021 11:00:23 -0400 Subject: [PATCH 2/2] Remove missing anchors Fixes build warnings found in #24968 --- docs/core/additional-tools/self-signed-certificates-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/additional-tools/self-signed-certificates-guide.md b/docs/core/additional-tools/self-signed-certificates-guide.md index ea7392e48b8ed..4a28842d38573 100644 --- a/docs/core/additional-tools/self-signed-certificates-guide.md +++ b/docs/core/additional-tools/self-signed-certificates-guide.md @@ -41,7 +41,7 @@ Navigate to the repository locally and open up the workspace in an editor. > [!NOTE] > If you're looking to use dotnet publish parameters to *trim* the deployment, you should make sure that the appropriate dependencies are included for supporting SSL certificates. -Update the [dotnet-docker\samples\aspnetapp\aspnetapp.csproj](https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/aspnetapp/aspnetapp.csproj) to ensure that the appropriate assemblies are included in the container. For reference, check how to update the .csproj file to [support ssl certificates](../deploying/trim-self-contained.md#support-for-ssl-certificates) when using trimming for self-contained deployments. +Update the [dotnet-docker\samples\aspnetapp\aspnetapp.csproj](https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/aspnetapp/aspnetapp.csproj) to ensure that the appropriate assemblies are included in the container. For reference, check how to update the .csproj file to [support ssl certificates](../deploying/trim-self-contained.md) when using trimming for self-contained deployments. Make sure the `aspnetapp.csproj` includes the appropriate target framework: @@ -143,7 +143,7 @@ Make sure the `aspnetapp.csproj` includes the appropriate target framework: > [!NOTE] > If you want to use `dotnet publish` parameters to *trim* the deployment, make sure that the appropriate dependencies are included for supporting SSL certificates. -Update the [dotnet-docker\samples\aspnetapp\aspnetapp.csproj](https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/aspnetapp/aspnetapp.csproj) to ensure that the appropriate assemblies are included in the container. For reference, check how to update the .csproj file to [support ssl certificates](../deploying/trim-self-contained.md#support-for-ssl-certificates) when using trimming for self-contained deployments. +Update the [dotnet-docker\samples\aspnetapp\aspnetapp.csproj](https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/aspnetapp/aspnetapp.csproj) to ensure that the appropriate assemblies are included in the container. For reference, check how to update the .csproj file to [support ssl certificates](../deploying/trim-self-contained.md) when using trimming for self-contained deployments. Make sure you're pointing to the sample app.