mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-26 12:03:06 +08:00
Some CA changes.
This commit is contained in:
@@ -79,7 +79,7 @@ namespace NTwain.Data
|
||||
|
||||
// new method:
|
||||
// try to convert to enum's underlying type first then cast to the enum
|
||||
return (TEnum)Convert.ChangeType(value, rawType);
|
||||
return (TEnum)Convert.ChangeType(value, rawType, CultureInfo.InvariantCulture);
|
||||
}
|
||||
else if (typeof(IConvertible).IsAssignableFrom(returnType))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user