Some CA changes.

This commit is contained in:
soukoku
2015-02-18 21:52:17 -05:00
parent 77b3fdfee0
commit 6f49adb06d
13 changed files with 127 additions and 125 deletions

View File

@@ -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))
{