S
Steeve
Hi,
Is this possible to optimize this method ? It's the method than I call
most offen in my application (result of Sampling Profiling in Visual
Studio Performance report)
I use this method to find a particular Node in a List<Node>.
(Note: JobNumber is a int)
public bool NodeMachineJobPredicate(Node N)
{
if (string.Equals(_Machine,N.Machine) &&
_Job.JobNumber == N.Job.JobNumber)
{
return true;
}
else
{
return false;
}
}
Thanks
Steeve
Is this possible to optimize this method ? It's the method than I call
most offen in my application (result of Sampling Profiling in Visual
Studio Performance report)
I use this method to find a particular Node in a List<Node>.
(Note: JobNumber is a int)
public bool NodeMachineJobPredicate(Node N)
{
if (string.Equals(_Machine,N.Machine) &&
_Job.JobNumber == N.Job.JobNumber)
{
return true;
}
else
{
return false;
}
}
Thanks
Steeve