Last active
December 25, 2015 21:19
-
-
Save agross/7041260 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IFormatter | |
{ | |
string Format(Model model); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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