Results 1 to 3 of 3

Thread: How to make functions in C#?

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    How to make functions in C#?

    how to make a function in C#?

    i know that for making vb sub's i do private void <name>..but how do i do functions?

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    replace void with the return type
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    New Member
    Join Date
    Jul 2002
    Posts
    4
    PHP Code:
    int myaddingfunction(int x,int y)
    {
        return (
    x+y);


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width