collection to datatable csharp

Code Example - collection to datatable csharp

                
                        row[prop.Name] = prop.GetValue(item) ?? DBNull.Value;