FAQ Database Discussion Community


Why does this string extension method not throw an exception?

c#,null,comparison,ienumerable,argumentnullexception
I've got a C# string extension method that should return an IEnumerable<int> of all the indexes of a substring within a string. It works perfectly for its intended purpose and the expected results are returned (as proven by one of my tests, although not the one below), but another unit...

Null Exception Errors

c#,argumentnullexception
This is my code for a binary tree program I am doing for an algorithms class. I keep getting a null exception error thrown, but I have no clue what's causing it. namespace Tree { class CallTree { static void Main(string[] args) { BNode HE = new BNode(0, "House Entrance");...