I wonder if c# class contains static data will more easy to create instance?
such as
class A: System.Object
{
public int iA;
}
class S_A: System.Object
{
public static int iA;
}
what's the consume difference between typeof(A).InvokeMember(null, BindingFlags.CreateInstance) and typeof(S_A).InvokeMember
if all Data in class is Static, is the InvokeMember for create instance is no consume anymore?
Thanks anyway.
Aucun commentaire:
Enregistrer un commentaire