how to create function in c# ?
-
in VB . a class can have constructor and funstion or sub. so how to create a function return a value in C# class ?
-
in VB . a class can have constructor and funstion or sub. so how to create a function return a value in C# class ?
Hi, both subroutines and functions are called methods in C#; they may or may not return one value or reference, depending on the return type in the declaration. Same as in C, C++, Java, and a lot of other languages (except they often are called functions, with or without a return value). I suggest you buy and study a tutorial on C# so you can reach structured and illustrated knowledge in minimal time. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
you lazy little *&^@! use google[^]
Life goes very fast. Tomorrow, today is already yesterday.
-
in VB . a class can have constructor and funstion or sub. so how to create a function return a value in C# class ?
Seriously, this is a C# 101 class question. Pickup a beginners book on C# and work through it. It'll answer just about all of your basic questions like this.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
in VB . a class can have constructor and funstion or sub. so how to create a function return a value in C# class ?
Epic fail. How can you be asking about events first and only after that want to return values? Obviously something is wrong here. I think you're some gold member who thinks it's funny to ask crazy questions on purpose. And if that's true, well, ok it would be funny I suppose.