Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public override bool CanConvertTo(ITypeDescriptorContext context, Type sourceTyp
// Overrides the ConvertFrom method of TypeConverter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
if (value is string)
if (value is string s)
{
return SqlConnectionEncryptOption.Parse(value.ToString());
return SqlConnectionEncryptOption.Parse(s);
}
throw ADP.ConvertFailed(value.GetType(), typeof(SqlConnectionEncryptOption), null);
}
Expand Down
Loading