When I create a method it appears in red and I get that error from the image. please someone help me?
What tries to tell you the compilation error is that the class Response
is less accessible than the method CheckConnection
.
Since your method is public
the class Response
must also be public
. It's probably like internal
.
You can read more about this here: link