LeetCode: FloodFill C#
I would split the if to 3 variables and give each a name : out of image,  isVisited and isOriginalColor or something similar.

I don't know what sr means, I would use row and col. 

FloodFill return image  but dfs change the original image, It can confuse the user of the class.