Navigation : Introduction FAQ Setup, deployment & projects Getting started Examples Catel.Core - ApiCop -- Cops -- Rules -- Listeners - Argument checking - Caching - Configuration - Data handling - Exception handling - IoC (ServiceLocator and TypeFactory) - Logging - Messaging - Multilingual / Localization - Parallel invocation and tasks - Pooling - Preventing memory leaks - Reflection - Scoping - Serialization - Validation Catel.MVVM Catel.Fody Catel.ReSharper Tips & tricks API reference Cops The *IApiCop* is responsible for containing all the rules that are used inside a class. A class should contain only one *IApiCop* and one or more rules. Retrieving an IApiCop for a class To retrieve an IApiCop for a class, use the following code: private static readonly IApiCop = ApiCopManager.GetCurrentClassApiCop(); Have a question about Catel? Use StackOverflow with the Catel tag! Discussion Please enable JavaScript to view the comments powered by Disqus. ApiCop Rules