Does System.String.Split() ever return null? (.NET)
I know I’ve been coding in the belief that it does not, however, upon reading the docs I do not see such a statement. Since there is no such a statement in the docs, so I want to ask in the experience of the community has anyone actually encountered the case that string.Split returns null?
No, it cannot return null. If you look at the source of it, it even guarantees it with code contracts:
All public overloads also make the same guarantee.