Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion from C# to VB.NET
Message
De
17/04/2013 06:01:33
 
 
À
16/04/2013 23:42:53
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571173
Message ID:
01571190
Vues:
65
>I converted a line from C# to VB.NET and it gave this:
>
>
>For Each field As System.Reflection.FieldInfo In input.[GetType]().GetFields(Consts.AppConsts.FullBindingList)
>
>
>The designer does not like Consts.
>
>It says:
>
>"'Const' is not declared. It may be inaccessible due to its protection level."
>
>This does not seem to be a .NET recognized word. I also could not find any reference to it from the code I copied so to test it.
>
>Anyone would know anything about it?

The line in itself does not make sense out of context. GetFields() take a BindingFlags enum as a parameter. Presumably this has been declared in Consts.AppConsts.FullBindingList elsewhere in code.

See : http://msdn.microsoft.com/en-gb/library/system.reflection.bindingflags.aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform