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
description: Specialized agent for working with XML docs in C# source code.
4
+
---
5
+
6
+
## Role
7
+
8
+
You are a specialized agent for writing XML docs in C# source code. Your job is to validate and improve existing XML docs, and also write XML docs.
9
+
10
+
## When to Invoke
11
+
12
+
- When asked to from the Copilot CLI.
13
+
14
+
## Workflow
15
+
16
+
Step 1: Gather required information
17
+
18
+
Before invoking this skill, make sure to know exactly which C# API whose XML docs to work on.
19
+
20
+
Step 2: Write XML docs
21
+
22
+
* Add XML docs for public or protected members and types that don't have any docs.
23
+
* Remove any XML docs that are exactly "To be added."
24
+
* If there's an XML doc that is added with an include attribute, replace the include attribute with the contents from the included file instead. Also remove the inlined content from the included file, and if there's nothing left in the included file, remove that file completely.
25
+
* Verify existing XML comments for language, grammar, consistency and correctness.
26
+
* Create 'see cref' attributes whenever suitable.
27
+
* Remove unnecessary whitespace between the triple-slash and the xml comment; but keep/fix correct indentation.
28
+
* Correct indentation: each nesting level adds exactly 2 spaces of indentation.
29
+
* Reorder any top-level XML elements to have the following order: summary, value, param, return, exception, remarks.
Copy file name to clipboardExpand all lines: builds/Versions-MacCatalyst.plist.in
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -149,8 +149,6 @@
149
149
<key>Optimizations</key>
150
150
<dict>
151
151
<!-- The key is the value to be passed to mtouch. The string is a very short description. Any IDE UI should also point to the documentation for the optimizations. -->
Copy file name to clipboardExpand all lines: builds/Versions-iOS.plist.in
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -173,8 +173,6 @@
173
173
<key>Optimizations</key>
174
174
<dict>
175
175
<!-- The key is the value to be passed to mtouch. The string is a very short description. Any IDE UI should also point to the documentation for the optimizations. -->
Copy file name to clipboardExpand all lines: builds/Versions-macOS.plist.in
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,6 @@
94
94
<key>Optimizations</key>
95
95
<dict>
96
96
<!-- The key is the value to be passed to mmp. The string is a very short description. Any IDE UI should also point to the documentation for the optimizations. -->
Copy file name to clipboardExpand all lines: builds/Versions-tvOS.plist.in
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -123,8 +123,6 @@
123
123
<key>Optimizations</key>
124
124
<dict>
125
125
<!-- The key is the value to be passed to mtouch. The string is a very short description. Any IDE UI should also point to the documentation for the optimizations. -->
Copy file name to clipboardExpand all lines: src/CoreVideo/CVPixelBufferAttributes.cs
+4-18Lines changed: 4 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -259,12 +259,7 @@ public int? PlaneAlignment {
259
259
}
260
260
}
261
261
262
-
// TODO: kCVPixelBufferIOSurfacePropertiesKey
263
-
#if !MONOMAC
264
-
// The presence of the IOSurfacePropertiesKey mandates the allocation via IOSurfaceProperty
265
-
/// <summary>If this key is set, this instructs CoreVideo to allocate the video buffers using the IOSurface. This is required for some uses of pixel buffers.</summary>
266
-
/// <value>To be added.</value>
267
-
/// <remarks>To be added.</remarks>
262
+
/// <summary>If this key is set, this instructs CoreVideo to allocate the video buffers using the <see cref="IOSurface.IOSurface" />. This is required for some uses of pixel buffers.</summary>
268
263
publicbool?AllocateWithIOSurface{
269
264
set{
270
265
if(value.HasValue&&value.Value)
@@ -277,11 +272,9 @@ public bool? AllocateWithIOSurface {
277
272
}
278
273
}
279
274
280
-
#if !__MACCATALYST__
275
+
#if !__MACCATALYST__&&!__MACOS__
281
276
/// <summary>Indicates whether the pixel buffer is compatible with OpenGL for Embedded Systems contexts.</summary>
282
-
/// <value>
283
-
/// </value>
284
-
/// <remarks>The property uses constant kCVPixelBufferOpenGLESCompatibilityKey value to access the underlying dictionary.</remarks>
277
+
/// <remarks>The property uses the <c>kCVPixelBufferOpenGLESCompatibilityKey</c> constant to access the underlying dictionary.</remarks>
285
278
[SupportedOSPlatform("ios")]
286
279
[UnsupportedOSPlatform("maccatalyst")]
287
280
[UnsupportedOSPlatform("macos")]
@@ -297,12 +290,6 @@ public bool? OpenGLESCompatibility {
297
290
#endif
298
291
299
292
/// <summary>Indicates whether the pixel buffer is compatible with Metal.</summary>
/// <summary>Initialize a <see cref="UIActionSheet" /> with a title.</summary>
50
89
/// <param name="title">A title to be displayed in the title area of the action sheet.</param>
51
-
/// <summary>Initialize an <see cref="UIKit.UIActionSheet" /> with a title.</summary>
52
-
/// <remarks>Pass <see langword="null" /> to <paramref name="title" /> if there is no text to display in the title area.</remarks>
53
-
publicUIActionSheet(stringtitle)
54
-
:this(title,null,null,null,(string)null){}
90
+
/// <remarks>Pass <see langword="null" /> to <paramref name="title" /> if there is no text to display in the title area.</remarks>
91
+
publicUIActionSheet(string?title)
92
+
:this(title,null,null,null,(string?)null){}
55
93
94
+
/// <summary>Adds a button with the specified text.</summary>
56
95
/// <param name="name">Text for the button.</param>
57
-
/// <summary>Adds a button with the specified text.</summary>
58
-
/// <remarks>This method exists to allow the class to be initialized with C# 3.0 object initializers. This is equivalent to calling AddButton (name).</remarks>
96
+
/// <remarks>This method exists to allow the class to be initialized with C# 3.0 object initializers. This is equivalent to calling <see cref="AddButton" />.</remarks>
59
97
publicvoidAdd(stringname)
60
98
{
61
99
AddButton(name);
62
100
}
63
101
64
102
/// <summary>Obtains an enumerator that returns the button titles.</summary>
0 commit comments