You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'Microsoft.Extensions' in the /// comments in the dotnet/runtime or dotnet/extensions repo instead.
25
-
- if:
26
-
- or:
27
-
- activitySenderHasPermission:
28
-
permission: None
29
-
- activitySenderHasPermission:
30
-
permission: Read
31
-
then:
32
-
- closePullRequest
33
-
- if:
34
-
- includesModifiedFile:
35
-
file: xml/System.Composition/*
36
-
then:
37
-
- addReply:
38
-
reply: >-
39
-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Composition' in the /// comments in the dotnet/runtime repo instead.
40
-
- if:
41
-
- or:
42
-
- activitySenderHasPermission:
43
-
permission: None
44
-
- activitySenderHasPermission:
45
-
permission: Read
46
-
then:
47
-
- closePullRequest
48
-
- if:
49
-
- includesModifiedFile:
50
-
file: xml/System.Formats.Cbor/*
51
-
then:
52
-
- addReply:
53
-
reply: >-
54
-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Formats.Cbor' in the /// comments in the dotnet/runtime repo instead.
55
-
- if:
56
-
- or:
57
-
- activitySenderHasPermission:
58
-
permission: None
59
-
- activitySenderHasPermission:
60
-
permission: Read
61
-
then:
62
-
- closePullRequest
63
-
- if:
64
-
- includesModifiedFile:
65
-
file: xml/System.Formats.Nrbf/*
66
-
then:
67
-
- addReply:
68
-
reply: >-
69
-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Formats.Nrbf' in the /// comments in the dotnet/runtime repo instead.
70
-
- if:
71
-
- or:
72
-
- activitySenderHasPermission:
73
-
permission: None
74
-
- activitySenderHasPermission:
75
-
permission: Read
76
-
then:
77
-
- closePullRequest
78
-
- if:
79
-
- includesModifiedFile:
80
-
file: xml/System.Net.ServerSentEvents/*
81
-
then:
82
-
- addReply:
83
-
reply: >-
84
-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Net.ServerSentEvents' in the /// comments in the dotnet/runtime repo instead.
85
-
- if:
86
-
- or:
87
-
- activitySenderHasPermission:
88
-
permission: None
89
-
- activitySenderHasPermission:
90
-
permission: Read
91
-
then:
92
-
- closePullRequest
93
-
- if:
94
-
- includesModifiedFile:
95
-
file: xml/System.Numerics.Tensors/*
96
-
then:
97
-
- addReply:
98
-
reply: >-
99
-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Numerics.Tensors' in the /// comments in the dotnet/runtime repo instead.
100
-
- if:
101
-
- or:
102
-
- activitySenderHasPermission:
103
-
permission: None
104
-
- activitySenderHasPermission:
105
-
permission: Read
106
-
then:
107
-
- closePullRequest
108
-
- if:
109
-
- includesModifiedFile:
110
-
file: xml/System.Speech/*
111
-
then:
112
-
- addReply:
113
-
reply: >-
114
-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Speech' in the /// comments in the dotnet/runtime repo instead.
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'ISerializationCodeDomSurrogateProvider' in the /// comments in the dotnet/runtime repo instead.
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'ImportOptions' in the /// comments in the dotnet/runtime repo instead.
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'XsdDataContractExporter' in the /// comments in the dotnet/runtime repo instead.
160
-
- if:
161
-
- or:
162
-
- activitySenderHasPermission:
163
-
permission: None
164
-
- activitySenderHasPermission:
165
-
permission: Read
166
-
then:
167
-
- closePullRequest
49
+
- addReply:
50
+
reply: >-
51
+
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates in the /// comments in the dotnet/runtime repo (or dotnet/extensions repo) instead.
Copy file name to clipboardExpand all lines: xml/System.IO/Directory.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4055,13 +4055,13 @@ The returned collection is not cached. Each call to the <xref:System.Collections
4055
4055
</ReturnValue>
4056
4056
<Parameters />
4057
4057
<Docs>
4058
-
<summary>Retrieves the names of the logical drives on this computer in the form "<drive letter>:\\".</summary>
4059
-
<returns>The logical drives on this computer.</returns>
4058
+
<summary>Retrieves the names of the logical drives on this computer.</summary>
4059
+
<returns>An array of strings representing the logical drive names.</returns>
4060
4060
<remarks>
4061
4061
<formattype="text/markdown"><.
Copy file name to clipboardExpand all lines: xml/System.Reflection.Emit/AssemblyBuilder.xml
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,18 @@
76
76
</Attributes>
77
77
<Docs>
78
78
<summary>Defines and represents a dynamic assembly.</summary>
79
-
<remarks>For more information about this API, see <seehref="/dotnet/fundamentals/runtime-libraries/system-reflection-emit-assemblybuilder">Supplemental API remarks for AssemblyBuilder</see>.</remarks>
79
+
<remarks>
80
+
<formattype="text/markdown"><.
85
+
86
+
> [!WARNING]
87
+
> `AssemblyBuilder` APIs require a fully trusted environment with trusted input, similar to other technologies such as compilers. There are no restrictions other than basic validation for generated IL that the `AssemblyBuilder` can contain. That includes validation for member name, count, and associated metadata, such as custom attributes.
88
+
]]>
89
+
</format>
90
+
</remarks>
80
91
<example>
81
92
<formattype="text/markdown"><![CDATA[
82
93
The following code example shows how to define and use a dynamic assembly. The example assembly contains one type, `MyDynamicType`, that has a private field, a property that gets and sets the private field, constructors that initialize the private field, and a method that multiplies a user-supplied number by the private field value and returns the result.
Copy file name to clipboardExpand all lines: xml/System.Reflection.Emit/ILGenerator.xml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,15 @@
84
84
85
85
MSIL is used as input to a just-in-time (JIT) compiler.
86
86
87
+
> [!WARNING]
88
+
> There are no restrictions, other than basic validation, for ILGenerator APIs that produce method IL. If untrusted input is used for producing IL:
89
+
>
90
+
> - IL and metadata can contain secrets provided by the consumer.
91
+
> - IL can be invalid, such as not having balanced push versus pop opcodes, or invalid operands for a given opcode.
92
+
> - IL can contain any code that might, for example, deadlock, have infinite stack recursion, or have an infinite loop.
93
+
> - IL can load and execute code on any other reachable assembly.
94
+
>
95
+
> Such code can do whatever it wishes when the method is loaded and executed. To protect against such vulnerabilities, `ILGenerator` requires a fully trusted environment with trusted input.
Copy file name to clipboardExpand all lines: xml/System.Reflection.Emit/PersistedAssemblyBuilder.xml
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,17 @@
25
25
</Attributes>
26
26
<Docs>
27
27
<summary>Provides an AssemblyBuilder implementation that can persist assembly to a disk or stream.</summary>
28
-
<remarks>To be added.</remarks>
28
+
<remarks>
29
+
<formattype="text/markdown"><.
34
+
35
+
> [!WARNING]
36
+
> `PersistedAssemblyBuilder` APIs require a fully trusted environment with trusted input, similar to other technologies such as compilers. There are no restrictions other than basic validation for generated IL that the `AssemblyBuilder` can contain. That includes validation for member name, count, and associated metadata, such as custom attributes.
Copy file name to clipboardExpand all lines: xml/System/Environment.xml
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1421,11 +1421,14 @@ The following example creates environment variables for the <xref:System.Environ
1421
1421
</ReturnValue>
1422
1422
<Parameters />
1423
1423
<Docs>
1424
-
<summary>Returns an array of string containing the names of the logical drives on the current computer.</summary>
1425
-
<returns>An array of strings where each element contains the name of a logical drive. For example, if the computer's hard drive is the first logical drive, the first element returned is "C:\\".</returns>
1424
+
<summary>Retrieves the names of the logical drives on this computer.</summary>
1425
+
<returns>An array of strings representing the logical drive names.</returns>
1426
1426
<remarks>
1427
1427
<formattype="text/markdown"><![CDATA[
1428
1428
1429
+
## Remarks
1430
+
On Windows, `GetLogicalDrives` returns the names of all accessible drives on a particular machine, including any optical drives or removable media devices, in the form "\<drive letter\>:\\" (for example, "C:\\"). On Unix, it returns the paths of all filesystem mount points mounted on a particular machine (for example, "/home/user", "/media/usb").
1431
+
1429
1432
## Examples
1430
1433
The following example shows how to display the logical drives of the current computer using the <xref:System.Environment.GetLogicalDrives%2A> method.
0 commit comments