Skip to content

[docs] Improve XML docs for NSLayoutManager and MLMultiArray - #26337

Open
rolfbjarne wants to merge 4 commits into
mainfrom
dev/rolf/xmldocs-038-batch
Open

[docs] Improve XML docs for NSLayoutManager and MLMultiArray#26337
rolfbjarne wants to merge 4 commits into
mainfrom
dev/rolf/xmldocs-038-batch

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Improve XML documentation for the following types:

  • NSLayoutManager — Fix tag ordering (summary before param), improve method documentation
  • MLMultiArray — Fix tag ordering, normalize indentation in Strides remarks, remove placeholder docs

Changes include:

  • Reorder XML doc tags (summary before param)
  • Normalize indentation (single space after ///)
  • Remove empty/placeholder elements

🤖 Pull request created by Copilot

rolfbjarne and others added 3 commits July 28, 2026 20:21
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fix param-before-summary ordering in MLMultiArray and NSLayoutManager.
Normalize indentation in MLMultiArray Strides remarks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9a37ff16-2fda-4715-8343-f3408ac8c442
Copilot AI review requested due to automatic review settings July 28, 2026 18:26
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner July 28, 2026 18:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves XML documentation quality for existing bindings in UIKit and CoreML by reordering XML doc tags, removing placeholder elements, and normalizing indentation in remarks.

Changes:

  • Reordered XML documentation tags so <summary> appears before <param> and removed placeholder <remarks>/<value> entries.
  • Improved/standardized parameter documentation text for several APIs.
  • Normalized indentation for the MLMultiArray.Strides remarks block.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/UIKit/NSLayoutManager.cs Updates XML docs for GetGlyphs, ShowGlyphs, and GetLineFragmentInsertionPoints (tag ordering + parameter docs).
src/CoreML/MLMultiArray.cs Updates XML docs for constructors/indexers, refines SetObject docs, and reformats Strides remarks.
Comments suppressed due to low confidence (2)

src/CoreML/MLMultiArray.cs:102

  • The sample code in the Strides remarks uses new NSNumber[] { ... } for the shape argument, but the only public constructor in this partial type takes nint[]. This example won't compile as written; update it to use nint[] and match the repo's spacing style.
		/// NSError err;
		/// var ma = new CoreML.MLMultiArray(new NSNumber[] { 3, 5, 7, 9 },CoreML.MLMultiArrayDataType.Int32, out err);
		/// if (err is not null) 

src/UIKit/NSLayoutManager.cs:100

  • The inDisplayOrder parameter description is ungrammatical ("The in display order.") and doesn't explain the boolean's effect.
		/// <param name="inDisplayOrder">The in display order.</param>

Comment thread src/CoreML/MLMultiArray.cs Outdated
Comment thread src/UIKit/NSLayoutManager.cs Outdated
- Add trailing periods to MLMultiArray param descriptions
- Improve NSLayoutManager param docs to describe output buffers

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9a37ff16-2fda-4715-8343-f3408ac8c442
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 8881fd2d24fe86181dc1f594c82bd3977b2a209d [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #8881fd2] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 0 tests failed, 182 tests passed.

Failures

❌ linker tests (macOS)

🔥 Failed catastrophically on VSTS: test results - linker_macos (no summary found).

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 8881fd2d24fe86181dc1f594c82bd3977b2a209d [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants