int? GetLength(string s) {
return s == "" ? -1 : s?.Length;
}
// s1, s2 and so on are your parameters
int? lengthSum = GetLength(s1) + GetLength(s2); // and so on
int wholeLength = (s1 + s2).Length; // and so on
if(lengthSum == wholeLength) {
// No parameter is null or empty
}