Skip to content

Merge master into live #4169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

# Area owners of the dotnet/runtime repo: https://github.com/dotnet/runtime/blob/master/docs/area-owners.md

/xml/System.Buffers**/** @layomia @JeremyKuhne
/xml/System.Buffers**/** @tannergooding @GrabYourPitchforks @pgovind
/xml/System.CodeDom**/** @buyaa-n @krwq
/xml/System.Collections**/** @eiriktsarpalis @layomia
/xml/System.ComponentModel**/** @JeremyKuhne @safern
/xml/System.ComponentModel**/** @safern
/xml/System.ComponentModel.Composition**/** @maryamariyan @ViktorHofer
/xml/System.ComponentModel.DataAnnotations**/** @lajones @ajcvickers
/xml/System.ComponentModel.Design**/** @RussKie @merriemcgaw
Expand All @@ -36,31 +36,31 @@
/xml/System.Diagnostics/PerformanceCounter*.xml @Anipik
/xml/System.Diagnostics/Process*.xml @adsitnik @eiriktsarpalis
/xml/System.Diagnostics/TraceSource.xml @Anipik
/xml/System.Diagnostics.Tracing**/** @Anipik
/xml/System.Diagnostics.Tracing**/** @noahfalk @tommcdon @tarekgh @Anipik
/xml/System.DirectoryServices**/** @tquerec @josephisenhour
/xml/System.Drawing**/** @JeremyKuhne @maryamariyan
/xml/System.Drawing**/** @safern @tannergooding
/xml/System.Dynamic**/** @cston @333fred
/xml/System.Globalization**/** @safern @krwq @tarekgh
/xml/System.IO**/** @JeremyKuhne @carlossanlop @jozkee
/xml/System.IO**/** @carlossanlop @jozkee
/xml/System.IO.Compression**/** @carlossanlop @ericstj
/xml/System.IO.Pipelines**/** @davidfowl @halter73 @jkotalik @anurse
/xml/System.Linq**/** @eiriktsarpalis
/xml/System.Linq/Parallel*.xml @tarekgh @kouvel
/xml/System.Linq**/** @eiriktsarpalis @adamsitnik
/xml/System.Linq.Expressions**/** @cston @333fred
/xml/System.Linq/Parallel*.xml @tarekgh @kouvel
/xml/System.Management**/** @Anipik
/xml/System.Net**/** @dotnet/ncl
/xml/System.Numerics**/** @tannergooding @pgovind
/xml/System.Numerics**/** @tannergooding @pgovind
/xml/System.Reflection**/** @steveharter @GrabYourPitchforks
/xml/System.Reflection.Emit**/** @steveharter @GrabYourPitchforks
/xml/System.Reflection.Metadata**/** @tmat @nguerrera
/xml/System.Reflection.Metadata**/** @tmat
/xml/System.Resources**/** @buyaa-n @tarekgh @krwq
/xml/System.Runtime**/** @bartonjs @joperezr
/xml/System.Runtime.Caching**/** @StephenMolloy @HongGit
/xml/System.Runtime.CompilerServices**/** @Anipik @steveharter
/xml/System.Runtime.InteropServices**/** @AaronRobinsonMSFT @jkoritzinsky
/xml/System.Runtime.Intrinsics**/** @tannergooding @CarolEidt @RussKeldorph
/xml/System.Runtime.Intrinsics**/** @tannergooding @CarolEidt @echesakovMSFT
/xml/System.Security**/** @bartonjs @GrabYourPitchforks @krwq
/xml/System.ServiceModel.Syndication**/** @StephenMolloy @HongGit @mconnew
/xml/System.ServiceModel**/** @HongGit @mcconnew StephenMolloy
/xml/System.ServiceProcess**/** @Anipik
/xml/System.Text**/** @tarekgh @GrabYourPitchforks
/xml/System.Text/Encoding*.xml @layomia @krwq @tarekgh
Expand Down
2 changes: 1 addition & 1 deletion xml/System.Data.SqlClient/SqlCredential.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<format type="text/markdown"><![CDATA[

## Remarks
Use <xref:System.Data.SqlClient.SqlConnection.Credential%2A> to get or set a connection's <xref:System.Data.SqlClient.SqlCredential> object. Use <xref:System.Data.SqlClient.SqlConnection.ChangePassword%2A> to change the password for a <xref:System.Data.SqlClient.SqlCredential> object. For information on how a <xref:System.Data.SqlClient.SqlCredential> object affects connection pool behavior, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).
Use <xref:System.Data.SqlClient.SqlConnection.Credential%2A> to get or set a connection's <xref:System.Data.SqlClient.SqlCredential> object. Use <xref:System.Data.SqlClient.SqlConnection.ChangePassword%2A> to change the password for a user via an <xref:System.Data.SqlClient.SqlCredential> object. For information on how a <xref:System.Data.SqlClient.SqlCredential> object affects connection pool behavior, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).

An <xref:System.InvalidOperationException> exception will be raised if a non-null <xref:System.Data.SqlClient.SqlCredential> object is used in a connection with any of the following connection string keywords:

Expand Down
49 changes: 25 additions & 24 deletions xml/System.Linq/Enumerable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2179,9 +2179,9 @@ Dim doubles = From item As Integer In sequence

## Examples
The following code example demonstrates how to use <xref:System.Linq.Enumerable.Contains%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2C%60%600%29> to determine whether an array contains a specific element.
[!code-csharp[System.Linq.Enumerable#21](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#21)]
[!code-vb[System.Linq.Enumerable#21](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#21)]

:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet21":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet21":::

]]></format>
</remarks>
Expand Down Expand Up @@ -9331,14 +9331,14 @@ Only unique elements are returned.

## Examples
The following code example demonstrates how to use <xref:System.Linq.Enumerable.Single%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%29> to select the only element of an array.
[!code-csharp[System.Linq.Enumerable#79](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#79)]
[!code-vb[System.Linq.Enumerable#79](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#79)]

:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet79":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet79":::

The following code example demonstrates that <xref:System.Linq.Enumerable.Single%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%29> throws an exception when the sequence does not contain exactly one element.

[!code-csharp[System.Linq.Enumerable#80](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#80)]
[!code-vb[System.Linq.Enumerable#80](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#80)]
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet80":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet80":::

]]></format>
</remarks>
Expand Down Expand Up @@ -9405,14 +9405,15 @@ Only unique elements are returned.

## Examples
The following code example demonstrates how to use <xref:System.Linq.Enumerable.Single%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2CSystem.Func%7B%60%600%2CSystem.Boolean%7D%29> to select the only element of an array that satisfies a condition.
[!code-csharp[System.Linq.Enumerable#81](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#81)]
[!code-vb[System.Linq.Enumerable#81](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#81)]

:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet81":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet81":::

The following code example demonstrates that <xref:System.Linq.Enumerable.Single%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2CSystem.Func%7B%60%600%2CSystem.Boolean%7D%29> throws an exception when the sequence does not contain exactly one element that satisfies the condition.

[!code-csharp[System.Linq.Enumerable#82](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#82)]
[!code-vb[System.Linq.Enumerable#82](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#82)]
[!code-vb[System.Linq.Enumerable#82](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#82)]


]]></format>
</remarks>
Expand Down Expand Up @@ -9495,18 +9496,18 @@ Only unique elements are returned.
## Examples
The following code example demonstrates how to use <xref:System.Linq.Enumerable.SingleOrDefault%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%29> to select the only element of an array.

[!code-csharp[System.Linq.Enumerable#83](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#83)]
[!code-vb[System.Linq.Enumerable#83](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#83)]
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet83":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet83":::

The following code example demonstrates that <xref:System.Linq.Enumerable.SingleOrDefault%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%29> returns a default value when the sequence does not contain exactly one element.

[!code-csharp[System.Linq.Enumerable#84](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#84)]
[!code-vb[System.Linq.Enumerable#84](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#84)]
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet84":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet84":::

Sometimes the value of `default(TSource)` is not the default value that you want to use if the collection contains no elements. Instead of checking the result for the unwanted default value and then changing it if necessary, you can use the <xref:System.Linq.Enumerable.DefaultIfEmpty%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2C%60%600%29> method to specify the default value that you want to use if the collection is empty. Then, call <xref:System.Linq.Enumerable.Single%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%29> to obtain the element. The following code example uses both techniques to obtain a default value of 1 if a collection of page numbers is empty. Because the default value for an integer is 0, which is not usually a valid page number, the default value must be specified as 1 instead. The first result variable is checked for the unwanted default value after the query has finished executing. The second result variable is obtained by using <xref:System.Linq.Enumerable.DefaultIfEmpty%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2C%60%600%29> to specify a default value of 1.
[!code-csharp[System.Linq.Enumerable#128](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#128)]
[!code-vb[System.Linq.Enumerable#128](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#128)]

:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet128":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet128":::

]]></format>
</remarks>
Expand Down Expand Up @@ -9569,9 +9570,9 @@ Only unique elements are returned.

## Examples
The following code example demonstrates how to use <xref:System.Linq.Enumerable.SingleOrDefault%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2CSystem.Func%7B%60%600%2CSystem.Boolean%7D%29> to select the only element of an array that satisfies a condition.
[!code-csharp[System.Linq.Enumerable#85](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#85)]
[!code-vb[System.Linq.Enumerable#85](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#85)]

:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet85":::
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet85":::

The following code example demonstrates that <xref:System.Linq.Enumerable.SingleOrDefault%60%601%28System.Collections.Generic.IEnumerable%7B%60%600%7D%2CSystem.Func%7B%60%600%2CSystem.Boolean%7D%29> returns a default value when the sequence does not contain exactly one element that satisfies the condition.

Expand Down
Loading