Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, in C# you can have different types of return values. The return type of a method can be any valid C# data type such as int, float, double, bool, string, or any other custom data type. You can also have methods that do not return any value, in which case the return type would be void.