string[] arrTopics = {\"Health\", \"Science\", \"Politics\"};
I have an if statement like:
if (arrTopics.Count() != null) <
if (arrTopics.Count() != null)
int can never be equal to null. int? is the nullable version, which can be equal to null.
int
int?
You should check if(arrTopics.Count() != 0) instead.
if(arrTopics.Count() != 0)