Skip to content

Commit

Permalink
Update .NET SDK to 7.0.200
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz authored Feb 25, 2023
1 parent 1ef3753 commit aefa90b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions MoreLinq/ToDataTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,7 @@ static MemberInfo[] BuildOrBindSchema(DataTable table, MemberInfo[] members)
foreach (var info in schemas)
{
var member = info.Member;
var column = info.Column;

if (column == null)
throw new ArgumentException($"Column named '{member.Name}' is missing.", nameof(table));
var column = info.Column ?? throw new ArgumentException($"Column named '{member.Name}' is missing.", nameof(table));

if (info.Type != column.DataType)
throw new ArgumentException($"Column named '{member.Name}' has wrong data type. It should be {info.Type} when it is {column.DataType}.", nameof(table));
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.100",
"version": "7.0.200",
"rollForward": "latestFeature"
}
}

0 comments on commit aefa90b

Please sign in to comment.