Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion in VB.NET does not work
Message
De
16/07/2014 03:50:09
 
 
À
15/07/2014 14:16:04
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01603662
Message ID:
01603771
Vues:
42
>>Double whammy :-}
>>
>>(a) The C# code must have been wrong
>>(b) Even if it was correct the converter would fail.
>
>This came from Microsoft:
>
>http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.messageencodingbindingelement(v=vs.110).aspx

Ah. I compiled that (after digging up a matching implementation of CustomTextMessageEncoder here http://msdn.microsoft.com/en-us/library/ms751486(v=vs.110).aspx)

Seems that C# inherits the constraint from the base class - if I add it to the BuildChannelListener method I get an error :
"Constraints for explicit interface implementation method are inherited from the base method, so they cannot be specified directly"

I guess VB.NET doesn't work that way - i.e. they *have* to be specified :-{
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform