Skip to content

Instantly share code, notes, and snippets.

@kiwipiet
Created November 25, 2021 21:52
Show Gist options
  • Save kiwipiet/aaf0ff8d30ea8ad0c5f6434fb6d7ee92 to your computer and use it in GitHub Desktop.
Save kiwipiet/aaf0ff8d30ea8ad0c5f6434fb6d7ee92 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
public static class ListEx
{
public static void AddContent(this List<string> list, string content)
{
list.Add($"{DateTime.Now:O} - {content}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment