It might depend on if you are creating a new TreeNode
or retrieving it from the Content Tree.
If you are using SelectSingleNode
or SelectNodes
to populate your node
object than node.ColumnNames
will give you a list of all the columns/fields that come back with that node's class.
foreach (string column in node.ColumnNames)
{
//do something helpful with each one
string value = ValidationHelper.GetString(node.GetValue(column), string.Empty);
}