Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion from C# to VB.NET
Message
From
17/04/2013 09:01:46
 
 
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:
01571204
Views:
57
>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

I put this instead last night:
                For Each field As System.Reflection.FieldInfo In input.[GetType]().GetFields(System.Reflection.BindingFlags.Public Or _
                 System.Reflection.BindingFlags.NonPublic Or System.Reflection.BindingFlags.Instance Or _
                 System.Reflection.BindingFlags.DeclaredOnly)
But, that method did not succeed as this alone cannot work. I am still looking at a deep copy serialize approach but might consider a recursive clone MemberwiseClone() approach instead, which would get rid of this serialize stuff I need to do a few places and would be three times faster.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform