Skip to content

Commit 402b207

Browse files
committed
Move conditional compilation directive, add parameter name
1 parent 44e9ae5 commit 402b207

File tree

1 file changed

+4
-6
lines changed
  • src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Server

1 file changed

+4
-6
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Server/SqlDataRecord.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@ public virtual Type GetFieldType(int ordinal)
5858
{
5959
SqlMetaData md = GetSqlMetaData(ordinal);
6060

61-
#if NETFRAMEWORK
61+
#if NETFRAMEWORK
6262
if (md.SqlDbType == SqlDbType.Udt)
6363
{
6464
return md.Type;
6565
}
66-
else
67-
#endif
68-
{
69-
return MetaType.GetMetaTypeFromSqlDbType(md.SqlDbType, false).ClassType;
70-
}
66+
#endif
67+
68+
return MetaType.GetMetaTypeFromSqlDbType(md.SqlDbType, isMultiValued: false).ClassType;
7169
}
7270

7371
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient.Server/SqlDataRecord.xml' path='docs/members[@name="SqlDataRecord"]/GetValue/*' />

0 commit comments

Comments
 (0)