Skip to content

Instantly share code, notes, and snippets.

@agross
Last active December 25, 2015 21:19
Show Gist options
  • Save agross/7041260 to your computer and use it in GitHub Desktop.
Save agross/7041260 to your computer and use it in GitHub Desktop.
public interface IFormatter
{
string Format(Model model);
}
public class Model
{
readonly IEnumerable<string> _header;
readonly IEnumerable<IEnumerable<string>> _rows;
public Model(IEnumerable<string> header, IEnumerable<IEnumerable<string>> rows)
{
_header = header;
_rows = rows;
}
public virtual IEnumerable<string> Header
{
get
{
return _header;
}
}
public virtual IEnumerable<IEnumerable<string>> Rows
{
get
{
return _rows;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment