OkraFramework / Okra.Core

Okra App Framework - The Okra App Framework is designed to support the development of .Net Windows Store applications, in particular those following the MVVM pattern.
http://okraframework.github.io
Apache License 2.0
10 stars 6 forks source link

Check API surface for anywhere that uses 'bool' where another type would be better #28

Closed Andy-Wilkinson closed 10 years ago

Andy-Wilkinson commented 10 years ago

Use of 'bool' types in an API can lead to quite difficult to read code. In many cases they can be replaced by enumerations or other types.

See: http://blog.iannelson.systems/back-to-basics-on-the-use-and-abuse-of-the-humble-boolean/

Andy-Wilkinson commented 10 years ago

For consideration,

Task INavigationManager.RestoreNavigationStack() Task IActivationManager.Activate(...) Task IActivationHandler.Activate(...)

void OkraBootstrapper.Initialize(bool registerForActivation)