Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionProcess.Start with current folder? Pin
Joni_7825-Nov-12 21:52
Joni_7825-Nov-12 21:52 
AnswerRe: Process.Start with current folder? Pin
Richard MacCutchan25-Nov-12 22:06
mveRichard MacCutchan25-Nov-12 22:06 
GeneralRe: Process.Start with current folder? Pin
Joni_7825-Nov-12 22:17
Joni_7825-Nov-12 22:17 
GeneralRe: Process.Start with current folder? Pin
Richard MacCutchan25-Nov-12 22:36
mveRichard MacCutchan25-Nov-12 22:36 
GeneralRe: Process.Start with current folder? Pin
Joni_7826-Nov-12 0:30
Joni_7826-Nov-12 0:30 
GeneralRe: Process.Start with current folder? Pin
Richard MacCutchan26-Nov-12 0:48
mveRichard MacCutchan26-Nov-12 0:48 
GeneralRe: Process.Start with current folder? Pin
Joni_7827-Nov-12 23:44
Joni_7827-Nov-12 23:44 
QuestionEfficent method to find index of a value in a array Pin
PozzaVecia25-Nov-12 7:48
PozzaVecia25-Nov-12 7:48 
Need to do the following:
given a array 'a' of double of monotone increasing values and a given value I have to find the index in the array so that V<a[i] &&="" v<="a[i+1]," if="" v="a.Min()," then="" return="" 0,=""> a.Max() or V < a.Min() the return 100.

C#
double[] a = new double[]{1,2,3,4}


I look for a function F so that for example (implementing whaat described above:
F[0.5] =100;
F[1] = 0;
F[2] = 0;
F[2.1] =1;
F[4] =3;
F[4.1] =100;

It can be done with for...loop of course. Is it efficent or it is better using LINQ or Array.FindIndex or...smarter solution? (if it is more efficent LINQ or Array.FindIndex, how to do it?)
AnswerRe: Efficent method to find index of a value in a array Pin
PIEBALDconsult25-Nov-12 8:35
mvePIEBALDconsult25-Nov-12 8:35 
AnswerRe: Efficent method to find index of a value in a array Pin
BobJanova25-Nov-12 22:21
BobJanova25-Nov-12 22:21 
GeneralRe: Efficent method to find index of a value in a array Pin
PozzaVecia27-Nov-12 1:38
PozzaVecia27-Nov-12 1:38 
AnswerRe: Efficent method to find index of a value in a array Pin
Richard Deeming25-Nov-12 23:58
mveRichard Deeming25-Nov-12 23:58 
AnswerRe: Efficent method to find index of a value in a array Pin
V.26-Nov-12 0:01
professionalV.26-Nov-12 0:01 
AnswerRe: Efficent method to find index of a value in a array Pin
Abhinav S26-Nov-12 17:01
Abhinav S26-Nov-12 17:01 
QuestionSending data from PHP to local program C# Pin
Junoli24-Nov-12 9:19
Junoli24-Nov-12 9:19 
AnswerRe: Sending data from PHP to local program C# Pin
Eddy Vluggen24-Nov-12 15:06
professionalEddy Vluggen24-Nov-12 15:06 
GeneralRe: Sending data from PHP to local program C# Pin
Junoli25-Nov-12 1:20
Junoli25-Nov-12 1:20 
GeneralRe: Sending data from PHP to local program C# Pin
Junoli25-Nov-12 1:37
Junoli25-Nov-12 1:37 
GeneralRe: Sending data from PHP to local program C# Pin
Eddy Vluggen25-Nov-12 1:44
professionalEddy Vluggen25-Nov-12 1:44 
GeneralRe: Sending data from PHP to local program C# Pin
Junoli25-Nov-12 1:56
Junoli25-Nov-12 1:56 
GeneralRe: Sending data from PHP to local program C# Pin
Eddy Vluggen25-Nov-12 2:06
professionalEddy Vluggen25-Nov-12 2:06 
GeneralRe: Sending data from PHP to local program C# Pin
Junoli25-Nov-12 2:41
Junoli25-Nov-12 2:41 
GeneralRe: Sending data from PHP to local program C# Pin
Eddy Vluggen25-Nov-12 3:51
professionalEddy Vluggen25-Nov-12 3:51 
GeneralRe: Sending data from PHP to local program C# Pin
Junoli25-Nov-12 7:50
Junoli25-Nov-12 7:50 
GeneralRe: Sending data from PHP to local program C# Pin
Eddy Vluggen25-Nov-12 7:57
professionalEddy Vluggen25-Nov-12 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.