- Jun 6, 2020
- 11,517
- 4,383
I am doing this construct a lot of times and use it like:
Code line:
This construct sometimes gives me an error and sometimes not.
If I have a few code lines after else, it will then always mark the first code line after 'else' saying 'Object reference not set to an instance of an object'.
If I delete that line, it will give the error on the next line after else .. and so on .. always the same error.
I am sure the construct is right, but it picks up an error from something else and always shows it on the same line of the construct.
What could be the cause of it?
PK
Code line:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
If I have a few code lines after else, it will then always mark the first code line after 'else' saying 'Object reference not set to an instance of an object'.
If I delete that line, it will give the error on the next line after else .. and so on .. always the same error.
I am sure the construct is right, but it picks up an error from something else and always shows it on the same line of the construct.
What could be the cause of it?
PK
برای دیدن لینک ها باید ثبت نام کنید