Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this code?
Message
De
12/01/2014 03:58:30
 
 
À
11/01/2014 12:57:23
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01591727
Message ID:
01591743
Vues:
78
This message has been marked as the solution to the initial question of the thread.
>In the validate generic method I create a list of T rows that get passed into the validate column functionality. The validate columns then passes this generic collection to a couple of tryConvert routines depending on data type.
>
>The problem is that I can send the rows collection to the TryConvertValue method just fine and it runs perfectly. I send the same collection with the same parameters into TryValidateStringLength, and I get the following compile time error:
>
>"Argument type 'System.Collections.Generic.IEnumerable(T)' is not assignable to parameter type 'System.Collections.Generic.IEnumerable(T)'
>
>This editor strips generic symbols from the code, so I'm attaching png's of the methods..

You missed the 'T' when defining the TryValidateStringLength method (The red T in the first parameter should have been a clue :-})
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform