Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CType() in VB.NET
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
CType() in VB.NET
Divers
Thread ID:
01013227
Message ID:
01013227
Vues:
66
Is the following VB.NET code:
Dim MyNumber As Long
Dim MyNewType As Single
MyNumber = 1000
MyNewType = CType(MyNumber,Single)   ' MyNewType is set to 1000.0.
the same as te following C# code?
Int64 myNumber;
Single myNewType;
myNumber = 1000;
myNewType = (Single)myNumber;
The reason I am asking is because I am trying to find the equivalent of VB.NET's CType() in C#

Thanks,
Einar
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform