Reporter | 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:
but it does:
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?
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?