public static TryParse ( string str, |
||
str | string | The string containing the function in textual form. |
culture | The culture information specifying how
/// numbers written in the |
|
function | The resulting function, if it could be parsed. | |
Результат | bool |
public static bool TryParse(string str, CultureInfo culture, out QuadraticObjectiveFunction function)
{
// TODO: implement this method without the try-catch block.
try
{
function = new QuadraticObjectiveFunction(str, culture);
}
catch (FormatException)
{
function = null;
return false;
}
return true;
}
}
QuadraticObjectiveFunction::TryParse ( string str, |