private ObjectToString ( object keyword ) : string | ||
keyword | object | |
Результат | string |
private string ObjectToString(object keyword)
{
try
{
return (string)keyword;
}
catch (InvalidCastException)
{
// BUGBUG: the message is not localized.
throw new ArgumentException("not a string", nameof(keyword));
}
}