Beispiel #1
0
        private void CheckEventUnsubscribe(BinaryExpression node, IEvent eventInfo)
        {
            var expected = ((ICallableType)eventInfo.Type).GetSignature();
            var actual   = GetCallableSignature(node.Right);

            if (expected != actual)
            {
                Warnings.Add(
                    CompilerWarningFactory.InvalidEventUnsubscribe(node, eventInfo, expected));
            }
        }