In C#, a function can return different data types .

edit : sorry guys , I didn't know this thread was old enough and I didn't dig it out .