Skip to content

Commit

Permalink
add missing XML comments on public members
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Dec 29, 2023
1 parent ef9a78a commit 98f45ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Maui.DataGrid/SortData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public sealed class SortData(int index, SortingOrder order)
/// <returns>A SortData object.</returns>
public static implicit operator SortData(int index) => FromInt32(index);

/// <summary>
/// Creates a SortData object from an integer index.
/// </summary>
/// <param name="index">The column index.</param>
/// <returns>A SortData object.</returns>
public static SortData FromInt32(int index)
{
var order = index < 0 ? SortingOrder.Descendant : SortingOrder.Ascendant;
Expand Down
9 changes: 9 additions & 0 deletions Maui.DataGrid/SortingOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
/// </summary>
public enum SortingOrder
{
/// <summary>
/// No sorting order.
/// </summary>
None = 0,
/// <summary>
/// Ascending sorting order.
/// </summary>
Ascendant = 1,
/// <summary>
/// Descending sorting order.
/// </summary>
Descendant = 2
}

0 comments on commit 98f45ef

Please sign in to comment.