Answers for "how to make an array of deligates c#"

C#
1

c# clear an array

using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
Posted by: Guest on August-26-2020
0

how to remove an element from an array c#

static void Main(string[] args)
{
  int[] arr = { 1, 3, 4, 9, 2 };
  int numToRemove = 3;
  var numIndex = arr.Where(x=>x ==numToRemove);
  if(numIndex.Any()){
    var idx = Array.IndexOf(arr,numToRemove);
  	var remove = arr.Remove(idx);
  }
}
Posted by: Guest on November-28-2021

Code answers related to "how to make an array of deligates c#"

C# Answers by Framework

Browse Popular Code Answers by Language