Skip to content

Commit b0947fe

Browse files
authored
Merge pull request #4169 from dotnet/publish-1770
Merge master into live
2 parents 824edfe + acf3503 commit b0947fe

File tree

9 files changed

+213
-183
lines changed

9 files changed

+213
-183
lines changed

.github/CODEOWNERS

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

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

22-
/xml/System.Buffers**/** @layomia @JeremyKuhne
22+
/xml/System.Buffers**/** @tannergooding @GrabYourPitchforks @pgovind
2323
/xml/System.CodeDom**/** @buyaa-n @krwq
2424
/xml/System.Collections**/** @eiriktsarpalis @layomia
25-
/xml/System.ComponentModel**/** @JeremyKuhne @safern
25+
/xml/System.ComponentModel**/** @safern
2626
/xml/System.ComponentModel.Composition**/** @maryamariyan @ViktorHofer
2727
/xml/System.ComponentModel.DataAnnotations**/** @lajones @ajcvickers
2828
/xml/System.ComponentModel.Design**/** @RussKie @merriemcgaw
@@ -36,31 +36,31 @@
3636
/xml/System.Diagnostics/PerformanceCounter*.xml @Anipik
3737
/xml/System.Diagnostics/Process*.xml @adsitnik @eiriktsarpalis
3838
/xml/System.Diagnostics/TraceSource.xml @Anipik
39-
/xml/System.Diagnostics.Tracing**/** @Anipik
39+
/xml/System.Diagnostics.Tracing**/** @noahfalk @tommcdon @tarekgh @Anipik
4040
/xml/System.DirectoryServices**/** @tquerec @josephisenhour
41-
/xml/System.Drawing**/** @JeremyKuhne @maryamariyan
41+
/xml/System.Drawing**/** @safern @tannergooding
4242
/xml/System.Dynamic**/** @cston @333fred
4343
/xml/System.Globalization**/** @safern @krwq @tarekgh
44-
/xml/System.IO**/** @JeremyKuhne @carlossanlop @jozkee
44+
/xml/System.IO**/** @carlossanlop @jozkee
4545
/xml/System.IO.Compression**/** @carlossanlop @ericstj
4646
/xml/System.IO.Pipelines**/** @davidfowl @halter73 @jkotalik @anurse
47-
/xml/System.Linq**/** @eiriktsarpalis
48-
/xml/System.Linq/Parallel*.xml @tarekgh @kouvel
47+
/xml/System.Linq**/** @eiriktsarpalis @adamsitnik
4948
/xml/System.Linq.Expressions**/** @cston @333fred
49+
/xml/System.Linq/Parallel*.xml @tarekgh @kouvel
5050
/xml/System.Management**/** @Anipik
5151
/xml/System.Net**/** @dotnet/ncl
52-
/xml/System.Numerics**/** @tannergooding @pgovind
52+
/xml/System.Numerics**/** @tannergooding @pgovind
5353
/xml/System.Reflection**/** @steveharter @GrabYourPitchforks
5454
/xml/System.Reflection.Emit**/** @steveharter @GrabYourPitchforks
55-
/xml/System.Reflection.Metadata**/** @tmat @nguerrera
55+
/xml/System.Reflection.Metadata**/** @tmat
5656
/xml/System.Resources**/** @buyaa-n @tarekgh @krwq
5757
/xml/System.Runtime**/** @bartonjs @joperezr
5858
/xml/System.Runtime.Caching**/** @StephenMolloy @HongGit
5959
/xml/System.Runtime.CompilerServices**/** @Anipik @steveharter
6060
/xml/System.Runtime.InteropServices**/** @AaronRobinsonMSFT @jkoritzinsky
61-
/xml/System.Runtime.Intrinsics**/** @tannergooding @CarolEidt @RussKeldorph
61+
/xml/System.Runtime.Intrinsics**/** @tannergooding @CarolEidt @echesakovMSFT
6262
/xml/System.Security**/** @bartonjs @GrabYourPitchforks @krwq
63-
/xml/System.ServiceModel.Syndication**/** @StephenMolloy @HongGit @mconnew
63+
/xml/System.ServiceModel**/** @HongGit @mcconnew StephenMolloy
6464
/xml/System.ServiceProcess**/** @Anipik
6565
/xml/System.Text**/** @tarekgh @GrabYourPitchforks
6666
/xml/System.Text/Encoding*.xml @layomia @krwq @tarekgh

xml/System.Data.SqlClient/SqlCredential.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<format type="text/markdown"><![CDATA[
4141
4242
## Remarks
43-
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).
43+
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).
4444
4545
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:
4646

xml/System.Linq/Enumerable.xml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,9 +2179,9 @@ Dim doubles = From item As Integer In sequence
21792179

21802180
## Examples
21812181
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.
2182-
2183-
[!code-csharp[System.Linq.Enumerable#21](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#21)]
2184-
[!code-vb[System.Linq.Enumerable#21](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#21)]
2182+
2183+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet21":::
2184+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet21":::
21852185

21862186
]]></format>
21872187
</remarks>
@@ -9331,14 +9331,14 @@ Only unique elements are returned.
93319331

93329332
## Examples
93339333
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.
9334-
9335-
[!code-csharp[System.Linq.Enumerable#79](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#79)]
9336-
[!code-vb[System.Linq.Enumerable#79](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#79)]
9334+
9335+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet79":::
9336+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet79":::
93379337

93389338
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.
93399339

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

93439343
]]></format>
93449344
</remarks>
@@ -9405,14 +9405,15 @@ Only unique elements are returned.
94059405

94069406
## Examples
94079407
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.
9408-
9409-
[!code-csharp[System.Linq.Enumerable#81](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#81)]
9410-
[!code-vb[System.Linq.Enumerable#81](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#81)]
9411-
9408+
9409+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet81":::
9410+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet81":::
9411+
94129412
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.
9413-
9413+
94149414
[!code-csharp[System.Linq.Enumerable#82](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#82)]
9415-
[!code-vb[System.Linq.Enumerable#82](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#82)]
9415+
[!code-vb[System.Linq.Enumerable#82](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#82)]
9416+
94169417

94179418
]]></format>
94189419
</remarks>
@@ -9495,18 +9496,18 @@ Only unique elements are returned.
94959496
## Examples
94969497
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.
94979498

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

95019502
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.
95029503

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

95069507
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.
9507-
9508-
[!code-csharp[System.Linq.Enumerable#128](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#128)]
9509-
[!code-vb[System.Linq.Enumerable#128](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#128)]
9508+
9509+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet128":::
9510+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet128":::
95109511

95119512
]]></format>
95129513
</remarks>
@@ -9569,9 +9570,9 @@ Only unique elements are returned.
95699570

95709571
## Examples
95719572
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.
9572-
9573-
[!code-csharp[System.Linq.Enumerable#85](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs#85)]
9574-
[!code-vb[System.Linq.Enumerable#85](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb#85)]
9573+
9574+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet85":::
9575+
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet85":::
95759576

95769577
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.
95779578

0 commit comments

Comments
 (0)