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”
Category Archives: Software Language
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”
C# – Changing the Length of an Array
We continue with array. This time how we change the length of an array. Arrays are immutable = cannot be changed in memory. However .Net Framework providers helper methods to resize an array… creates a new array and copies the old values into it. //Get the highest index: // 0 = dimension we want toContinueContinue reading “C# – Changing the Length of an Array”
C# – Multi Dimensional Arrays
It is same as single dimensional arrays. just requires more indexes (in dimensions) to get to the element. Here is again some more info from microsoft.com Arrays can have more than one dimension. For example, the following declaration creates a two-dimensional array of four rows and two columns. C# int[,] array = new int[4,ContinueContinue reading “C# – Multi Dimensional Arrays”