protected override void Initialize(SonarAnalysisContext context) { ObjectCreationTracker.Track(context, ObjectCreationTracker.WhenDerivesFrom(KnownType.System_Security_Cryptography_HashAlgorithm)); InvocationTracker.Track(context, InvocationTracker.MethodNameIs("Create"), InvocationTracker.MethodReturnTypeIs(KnownType.System_Security_Cryptography_HashAlgorithm)); BaseTypeTracker.Track(context, BaseTypeTracker.MatchSubclassesOf(KnownType.System_Security_Cryptography_HashAlgorithm)); }