Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Remove unnecessary GetTypeInfo calls from Microsoft.VisualBasic #16413

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

JonHanna
Copy link
Contributor

Just one left that uses GetDeclaredMethods method.

Contributes to #16305

Also have GetTypeCode extension call into Type.GetTypeCode as that is now available.

Just one left that uses GetDeclaredMethods method.

Contributes to #16305

Also have GetTypeCode extension call into Type.GetTypeCode as that is
now available.
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @JonHanna.

@@ -223,6 +223,7 @@ Namespace Microsoft.VisualBasic.CompilerServices
Case TypeCode.Char : Return GetType(Char)
Case TypeCode.String : Return GetType(String)
Case TypeCode.Object : Return GetType(Object)
Case TypeCode.DBNull : Return GetType(DBNull)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GetTypeCode extension hadn't been updated when DBNull was introduced to deal with the possibility of such values, which was a bug. Going through Type.GetTypeCode means that is now fixed, but this possible result has to be considered here. This seems to be the only place where the new possibility of TypeCode.DBNull has an impact.

@stephentoub stephentoub merged commit bd9e77c into dotnet:master Feb 23, 2017
@JonHanna JonHanna deleted the gettypeinfo_visualbasic branch February 23, 2017 19:37
@karelz karelz modified the milestone: 2.0.0 Mar 1, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…albasic

Remove unnecessary GetTypeInfo calls from Microsoft.VisualBasic

Commit migrated from dotnet/corefx@bd9e77c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants