I have a method with the following signature:
string GetTableCellValue(DataTable table, string columnName, int rowIndex){}
As you might guess, this method returns the value of the cell located at the specified column of the specified row of the specifies table in string format. It turns out that I need this methods almost in all the webpages. Here's my quetion(s):
- Should I put this method in all the code files or?
- Should I have it as a static method of some class, like Utilities_Class or?
- Should I have it as a public NON-STATIC method of some class , like Utilities_Class?
The last 2 choices seem to be better idea. But I don't know which one to choose eventually.