What are the return types in c#?



What are the return types in c#?..

Answer / Atul Sahu

In C#, a function can return one of several data types as a result. The main return types include void (which indicates no value is returned), built-in types like int, double, and bool, user-defined types (structs or classes), interfaces, delegates, and anonymous types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Explain the difference between a struct and a class?

1 Answers  


What is raise event and what is its use?

1 Answers   Wipro,


What?s the difference between System.String and System.StringBuilder classes?

3 Answers  


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

1 Answers  


When is a class declared as a class abstract?

1 Answers   Siebel,


What is ilist c#?

1 Answers  


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

1 Answers  


What will a loop recorder show?

1 Answers  


What does typeof return c#?

1 Answers  


Where CANNOT Destructors be implemented ?

3 Answers  


How to find whether the application is run from inside ide or not?

1 Answers  


Can two catch blocks be executed?

13 Answers  


Categories