Is there any execution speed difference between the following two lines of code? I cannot tell from looking at the IL:
int x = MainObject.Field1;
int x = MainObject.Public.Fields.Field1;
I know from Delphi (native code), there is no difference.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Accesing by ‘.’ to deeper class structure elements – NO, but method invocation with it – YES.