I have an object array as
object[] arr=new object[]
{
"Kushan", // Index = 0 ( data Type is String)
10, // Index = 1 ( data Type is double)
15, // Index = 2 ( data Type is double)
25, // Index = 3 ( data Type is double)
"yytdhj" // Index = 4 ( data Type is String)
35, // Index = 5 ( data Type is double)
88, // Index = 6 ( data Type is double)
65, // Index = 7 ( data Type is double)
98, // Index = 8 ( data Type is double)
"Address" // Index = 9 ( data Type is String)
};
I wanna take the sum of elements at index 1,2,3,5,6,7,8 Is this possible to do this using linq? if possible how ?
P:S:
Sorry for making you misunderstood, I really wanna take the sum using specific indexs. not looking the data type.