Zebra0.com
Glossary for C#: functions
Education Resources
Privacy
Contact
Topics
Algorithms
Alice 3
C++
C# Windows
RGB Colors
Computer Basics
Computer Concepts
Faculty resources
HTML5
Java
Systems Analysis and Design
Visual Basic
Glossary for C#: functions
Learn C# (C sharp) in FREE step-by-step lessons.
arguments vs. parameters
Arguments are the actual values passed to a function when it is called. Parameters are given in the function definition.
builtin math functions
: C# has a number of built-in functions and constants that you can use.
Math Functions
ceiling, busses
: Real world problem to solve
Ceiling: How many busses?
function area of circle
: A function receives the radius and returns the area
Circle: Write a function to find area
math drill
: Check your understanding of these functions
Drill on Math Functions Ceiling, Floor, and Round
math function builtin
: C# has a number of built-in functions and constants that you can use.
Math Functions
math function reference
: C# Math Functions
Microsoft Reference
math
: Shows how math functions might be used
Demonstration of Math Functions
parameters vs. arguments
Arguments are the actual values passed to a function when it is called. Parameters are given in the function definition.
parse
: A user does not always type a numeric value in text box, parse to get numeric value
Parse: Convert text to Double
random colors
: A function to return a random color using Color.FromArgb(red, green, blue);
A Function to Generate Random Colors
random numbers
: Code to declare and use a random number
Random Numbers
return
: If a function is not void, it returns a value. If you write your own function, the last statement must return a value.
Return
tostring
: Compares using + and ToString()
ToString function instead of + to concatenate
tryparse
: TryParse to handle numeric error
TryParse: Convert text to Double if Numeric
void function bmi
: A void function does not return a value
BMI: A Void Function to calculate Body Mass Index
Full Glossary