KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The following gets a field from a DataTable and converts it to string. Is there a cleaner way to convert dynamic to string? dynamic value = dataTable.Rows[i].Field<dynamic>(columnName); value = (value == null) ? null : value.ToString();
Tags (comma-separated)
Save Edits
Cancel