Skip to content

Commit b7ca1fd

Browse files
authored
Merge branch 'dotnet:main' into main
2 parents ddd2a43 + aa655bd commit b7ca1fd

File tree

2,293 files changed

+123533
-164896
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,293 files changed

+123533
-164896
lines changed

.github/policies/disallow-edits.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ configuration:
1919
excludedFiles:
2020
- xml/Microsoft.Extensions.FileSystemGlobbing/*
2121
- xml/Microsoft.Extensions.FileSystemGlobbing.*/*
22+
- filesMatchPattern:
23+
matchAny: true
24+
pattern: xml/System.CommandLine*/*
2225
- filesMatchPattern:
2326
matchAny: true
2427
pattern: xml/System.Composition/*

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ To contribute, see:
1212

1313
- The [.NET Contributor Guide :ledger:](https://learn.microsoft.com/contribute/dotnet/dotnet-contribute) for instructions on procedures we use.
1414
- Issues labeled [`help wanted` :label:](https://github.com/dotnet/dotnet-api-docs/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+) for ideas.
15+
- The API reference docs for some assemblies are maintained in the assembly's source code outside this repo. For those assemblies, edits to the XML here are auto-generated and ported, so docs for APIs in those assemblies should be updated by editing the source code comments. For more information, see [here](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/adding-api-guidelines.md#documentation).
16+
17+
Namespaces and types whose docs are maintained in the assembly's source code repo set the [`open_to_public_contributors`](https://github.com/dotnet/dotnet-api-docs/blob/0ddbf94c587e7bdbbadc813a8b58fc4160a47b1f/docfx.json#L164) metadata to `false`. (That metadata disables the Edit button on the published docs.)
1518

1619
## :bookmark_tabs: Code of conduct
1720

_zip/missingapi.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ references:
6363
name: ChatMessage
6464
fullname: OpenAI.Chat.ChatMessage
6565
href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
66+
- uid: OpenAI.Chat.ChatResponseFormat
67+
name: ChatResponseFormat
68+
fullname: OpenAI.Chat.ChatResponseFormat
69+
href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
6670
- uid: OpenAI.Chat.ChatTool
6771
name: ChatTool
6872
fullname: OpenAI.Chat.ChatTool
@@ -123,6 +127,10 @@ references:
123127
name: ResponseItem
124128
fullname: OpenAI.Responses.ResponseItem
125129
href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
130+
- uid: OpenAI.Responses.ResponseTextFormat
131+
name: ResponseTextFormat
132+
fullname: OpenAI.Responses.ResponseTextFormat
133+
href: https://github.com/openai/openai-dotnet/blob/main/api/OpenAI.netstandard2.0.cs
126134
- uid: OpenAI.Responses.ResponseTool
127135
name: ResponseTool
128136
fullname: OpenAI.Responses.ResponseTool

docfx.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
"ms.topic": {
148148
"api/Microsoft.Extensions**": "generated-reference",
149149
"api/Microsoft.Extensions.FileSystemGlobbing**": "reference",
150+
"api/System.CommandLine**": "generated-reference",
150151
"api/System.Composition**": "generated-reference",
151152
"api/System.Diagnostics.EventLog.Messages**": "generated-reference",
152153
"api/System.Formats.Asn1**": "generated-reference",
@@ -163,18 +164,20 @@
163164
},
164165
"open_to_public_contributors": {
165166
"api/Microsoft.Extensions**": false,
167+
"api/System.CommandLine**": false,
166168
"api/System.Composition**": false,
167169
"api/System.Diagnostics.EventLog.Messages**": false,
168170
"api/System.Formats.Asn1**": false,
169171
"api/System.Formats.Cbor**": false,
170172
"api/System.Formats.Nrbf**": false,
171-
"api/System.Linq.AsyncEnumerable.yml": false,
172-
"api/System.Linq.IOrderedAsyncEnumerable-1.yml": false,
173173
"api/System.Net.ServerSentEvents**": false,
174174
"api/System.Numerics.Tensors**": false,
175+
"api/System.Runtime.Serialization.Schema**": false,
176+
177+
"api/System.Linq.AsyncEnumerable.yml": false,
178+
"api/System.Linq.IOrderedAsyncEnumerable-1.yml": false,
175179
"api/System.Runtime.Serialization.ISerializationCodeDomSurrogateProvider.yml": false,
176180
"api/System.Runtime.Serialization.ImportOptions.yml": false,
177-
"api/System.Runtime.Serialization.Schema**": false,
178181
"api/System.Runtime.Serialization.XsdDataContractExporter.yml": false
179182
}
180183
},

quest-config.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,5 @@
66
},
77
"ImportTriggerLabel": ":world_map: reQUEST",
88
"ImportedLabel": ":pushpin: seQUESTered",
9-
"ParentNodes": [
10-
{
11-
"Semester": "Bromine",
12-
"ParentNodeId": 410746
13-
},
14-
{
15-
"Label": "user-feedback",
16-
"Semester": "Selenium",
17-
"ParentNodeId": 286039
18-
},
19-
{
20-
"Label": "doc-bug",
21-
"Semester": "Selenium",
22-
"ParentNodeId": 286039
23-
},
24-
{
25-
"Label": "doc-update",
26-
"Semester": "Selenium",
27-
"ParentNodeId": 286038
28-
},
29-
{
30-
"Semester": "Selenium",
31-
"ParentNodeId": 308199
32-
}
33-
],
349
"DefaultParentNode": 410746
3510
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net9.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

snippets/csharp/System.Collections.Generic/ListT/.ctor/source.cs

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,69 @@
22
using System;
33
using System.Collections.Generic;
44

5-
public class Example
5+
public partial class Program
66
{
77
public static void Main()
88
{
9-
List<string> dinosaurs = new List<string>(4);
9+
List<string> animals = new List<string>(4);
1010

11-
Console.WriteLine("\nCapacity: {0}", dinosaurs.Capacity);
11+
Console.WriteLine("\nCapacity: {0}", animals.Capacity);
1212

13-
dinosaurs.Add("Tyrannosaurus");
14-
dinosaurs.Add("Amargasaurus");
15-
dinosaurs.Add("Mamenchisaurus");
16-
dinosaurs.Add("Deinonychus");
13+
animals.Add("Cat");
14+
animals.Add("Dog");
15+
animals.Add("Squirrel");
16+
animals.Add("Wolf");
1717

1818
Console.WriteLine();
19-
foreach(string s in dinosaurs)
19+
foreach (string animal in animals)
2020
{
21-
Console.WriteLine(s);
21+
Console.WriteLine(animal);
2222
}
2323

24-
Console.WriteLine("\nIList<string> roDinosaurs = dinosaurs.AsReadOnly()");
25-
IList<string> roDinosaurs = dinosaurs.AsReadOnly();
24+
Console.WriteLine("\nIList<string> roAnimals = animals.AsReadOnly()");
25+
IList<string> roAnimals = animals.AsReadOnly();
2626

2727
Console.WriteLine("\nElements in the read-only IList:");
28-
foreach(string dinosaur in roDinosaurs)
28+
foreach (string animal in roAnimals)
2929
{
30-
Console.WriteLine(dinosaur);
30+
Console.WriteLine(animal);
3131
}
3232

33-
Console.WriteLine("\ndinosaurs[2] = \"Coelophysis\"");
34-
dinosaurs[2] = "Coelophysis";
33+
Console.WriteLine("\nanimals[2] = \"Lion\"");
34+
animals[2] = "Lion";
3535

3636
Console.WriteLine("\nElements in the read-only IList:");
37-
foreach(string dinosaur in roDinosaurs)
37+
foreach (string animal in roAnimals)
3838
{
39-
Console.WriteLine(dinosaur);
39+
Console.WriteLine(animal);
4040
}
4141
}
4242
}
4343

44-
/* This code example produces the following output:
44+
/*
45+
This code example produces the following output:
4546
46-
Capacity: 4
47+
Capacity: 4
4748
48-
Tyrannosaurus
49-
Amargasaurus
50-
Mamenchisaurus
51-
Deinonychus
49+
Cat
50+
Dog
51+
Squirrel
52+
Wolf
5253
53-
IList<string> roDinosaurs = dinosaurs.AsReadOnly()
54+
IList<string> roAnimals = animals.AsReadOnly()
5455
55-
Elements in the read-only IList:
56-
Tyrannosaurus
57-
Amargasaurus
58-
Mamenchisaurus
59-
Deinonychus
56+
Elements in the read-only IList:
57+
Cat
58+
Dog
59+
Squirrel
60+
Wolf
6061
61-
dinosaurs[2] = "Coelophysis"
62+
animals[2] = "Lion"
6263
63-
Elements in the read-only IList:
64-
Tyrannosaurus
65-
Amargasaurus
66-
Coelophysis
67-
Deinonychus
68-
*/
64+
Elements in the read-only IList:
65+
Cat
66+
Dog
67+
Lion
68+
Wolf
69+
*/
6970
// </Snippet1>

0 commit comments

Comments
 (0)