Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287995: VB.NET: Unexpected cast

$
0
0
Reporter Denis Abramov (sparky2708) Denis Abramov (sparky2708)
Created Jan 25, 2012 7:07:44 PM
Updated Jan 25, 2012 7:07:44 PM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
(see screenshot). I would imagine selecting "Cast to String" would do:

Approval1Signer = CStr(!Approval1Signer)


but it does:

Approval1Signer = CType(!Approval1Signer, String)


I know functionally they are the same but I would prefer that if VB.NET has a syntactic sugar then it should use that instead of CType(...). Any reason it doesn't use the simplified cast using CStr(...) in this case?

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>