Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion from C# to VB.NET
Message
From
17/04/2013 06:01:33
 
 
To
16/04/2013 23:42:53
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571173
Message ID:
01571190
Views:
66
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform