Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
Updated comments
  • Loading branch information
jamsoft committed Apr 22, 2024
1 parent 35e790d commit 4359a90
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

namespace JamSoft.AvaloniaUI.Dialogs.Helpers;

/// <summary>
/// A class containing extension methods for <see cref="FilePickerFileType"/> to allow for easier merging of file types.
/// </summary>
public static class CommonFiltersExtensionMethods
{
/// <summary>
/// Merges the specified file type with the other file types.
/// </summary>
/// <param name="fileType"></param>
/// <param name="others"></param>
/// <param name="name"></param>
/// <returns></returns>
public static FilePickerFileType MergeWith(this FilePickerFileType fileType, FilePickerFileType[] others, string? name)
{
if (!string.IsNullOrWhiteSpace(name))
Expand All @@ -29,6 +39,13 @@ public static FilePickerFileType MergeWith(this FilePickerFileType fileType, Fil
return fileType;
}

/// <summary>
/// merges the specified file type with the other file type.
/// </summary>
/// <param name="fileType"></param>
/// <param name="other"></param>
/// <param name="name"></param>
/// <returns></returns>
public static FilePickerFileType MergeWith(this FilePickerFileType fileType, FilePickerFileType? other, string? name = null)
{
if (other == null)
Expand Down

0 comments on commit 4359a90

Please sign in to comment.