Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion from C# to VB.NET
Message
De
17/04/2013 09:01:46
 
 
À
17/04/2013 06:01:33
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:
01571204
Vues:
56
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform