Answers for "c# find index of object in ist"

C#
3

how to find index of element in string with c#

string string1 = "A man i hurry just jumped on a tail of a dog and dog has bit him damagingly";
Console.WriteLine(string1.IndexOf("man"));
//output
2
Posted by: Guest on October-31-2021
16

c# find index element array

int[] arr = { 3, 6, 4, 1, 6, 8 };

// returns 1
Array.IndexOf(arr, 6);
Posted by: Guest on March-04-2020

Code answers related to "c# find index of object in ist"

C# Answers by Framework

Browse Popular Code Answers by Language