Dinesh Santhalingam

Dinesh Santhalingam

  • NA
  • 737
  • 368.1k

How to overcome the Object reference error?

Feb 22 2017 7:40 AM
  1. last = res.LastOrDefault();//get the last string of res array
  2. string[] final = last.Split(new char[] { '(' }).ToArray();  
Am using the above code in my program.But there is a error is populated.
 "object reference not set to an instance of an object " .How to overcome this?
 

Answers (6)