Creating methods with output parameters allows you to return value the normal way AND return a value via method parameter
Author Archives: Deniz Karadal
C# – Passing Named Arguments Into Input Parameters
Passing named arguments into input parameters allow us to send in parameter arguments OUT OF ORDER! We just prefix the input parameter argument with the name of the parameter we are passing in a colon then the value;
C# – Creating Overloaded Methods and Optional Paramaters
By creating overloaded mehods, we are mentioning different METHOD SIGNATURE but same function. METHOD SIGNATURE… the number and type of input parameters can have different return types. Optional parameters provide default values when you define the method. So, if you don’t supply a value, the default will be used. can be called….. or or YouContinueContinue reading “C# – Creating Overloaded Methods and Optional Paramaters”
C# – Looping with while and do… while Iteration Statement
Again a short serie of today’s post. Random random = new Random(); random.Next(lowerbounds, upperbounds); if someExpression already false, this will never execute if some expression is already false, this will run AT LEAST ONCE
C# – Looping with the For Iteration Statement
If you ever in Visual Studio, write down ‘for’ and tip two times ‘tab’ on keyboard, you will be seeing that for Iteration statement would be created for you. i – any variable name 1st part – counter declaration, can be initialized to any number 2nd part – condition, can be any expression that equatesContinueContinue reading “C# – Looping with the For Iteration Statement”