Can't convert type 'bool' to 'int'
Hello ppl,
Chapter 5, User and Authentication, page 173, method Update:
public bool Update()
{
Configuration.ModuleSettings moduleSettings = Configuration.ModuleConfig.GetSettings();
Data.Role dataRole = new Data.Role(moduleSettings.ConnectionString);
return roleId = dataRole.Update(roleId, description);
}
This method causes 2 erros:
error CS0029: Cannot implicitly convert type 'bool' to 'int'
error CS0029: Cannot implicitly convert type 'int' to 'bool'
I understand implicit conversions, but I don't understand why this error doesn't come up in my downloaded code? What does it convert in theirs and not in mine?
Kim Gjerstad
__________________
Kim Gjerstad
|