top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

what is NullReferenceException and How to avoid it?

+3 votes
305 views
what is NullReferenceException and How to avoid it?
posted Jan 4, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Is aClass a Type instance? If so - just check it for null:

if (aClass != null && alMethSign[z].ToString().Contains(aClass.Namespace))
answer Jan 25, 2017 by Sathish Kumar
Similar Questions
...