Skip to content

Commit

Permalink
Added documentation for the to string extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
tacosontitan committed Apr 18, 2024
1 parent 4d942f8 commit 4469246
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Hussy.Net/Display/ToString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

public static partial class Hussy
{
/// <summary>
/// Converts the specified input to its <see cref="string"/> representation.
/// </summary>
/// <param name="input">The input to convert.</param>
/// <typeparam name="T">Specifies the type of the <paramref name="input"/> to convert.</typeparam>
/// <returns>
/// The <see cref="string"/> representation of the specified
/// <paramref name="input"/> instance.
/// </returns>
public static string Ts<T>(this T input) =>
input.ToString();

Check warning on line 15 in src/Hussy.Net/Display/ToString.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 15 in src/Hussy.Net/Display/ToString.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference return.
}

0 comments on commit 4469246

Please sign in to comment.