Skip to content

Add XML documentation to generic FragmentManager helper methods#11963

Draft
jonathanpeppers with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-finder-add-xml-documentation
Draft

Add XML documentation to generic FragmentManager helper methods#11963
jonathanpeppers with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-finder-add-xml-documentation

Conversation

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

FindFragmentById<T>, FindFragmentByTag<T>, and GetFragment<T> in FragmentManager.cs are public shipped API with no /// XML docs, producing blank IntelliSense summaries and no learn.microsoft.com content.

Changes

  • src/Mono.Android/Android.App/FragmentManager.cs — added complete <summary>, <typeparam>, <param>, and <returns> doc comments to all three generic helper methods; no code changes.
/// <summary>
/// Finds a <see cref="Fragment"/> that was identified by the given id, either when
/// inflated from XML or as the container id when added in a transaction, and returns
/// it cast to <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The <see cref="Fragment"/> type to cast the result to.</typeparam>
/// <param name="id">The resource id or container id used to identify the fragment.</param>
/// <returns>
/// The matching fragment cast to <typeparamref name="T"/>, or <see langword="null"/>
/// if no matching fragment exists.
/// </returns>
public T? FindFragmentById<
        [DynamicallyAccessedMembers (Constructors)]
        T
> (int id)
    where T : Fragment

Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add XML documentation to FragmentManager helper methods Add XML documentation to generic FragmentManager helper methods Jul 3, 2026
Copilot AI requested a review from jonathanpeppers July 3, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix-finder] Add XML documentation to generic FragmentManager helper methods

3 participants