AddOnPropertyChangedMethod() public method

public AddOnPropertyChangedMethod ( TypeDefinition targetType ) : EventInvokerMethod,
targetType TypeDefinition
return EventInvokerMethod,
    public void Execute()
    {
        foreach (var notifyNode in typeNodeBuilder.NotifyNodes)
        {
            var eventInvoker = RecursiveFindMethod(notifyNode.TypeDefinition);
            if (eventInvoker == null)
            {
                eventInvoker = methodInjector.AddOnPropertyChangedMethod(notifyNode.TypeDefinition);
                if (eventInvoker == null)
                {
                    logger.LogWarning(string.Format(
                                          "\tCould not derive or inject '{0}' into '{1}'. It is possible you are inheriting from a base class and have not correctly set 'WeavingTask.EventInvokerName' or you are using a explicit PropertyChanged event and the event field is not visible to this instance. Please either correct 'WeavingTask.EventInvokerName' or implement your own EventInvoker on this class. No derived types will be processed. If you want to supress this message place a [DoNotNotifyAttribute] on {1}.", string.Join(", ", eventInvokerNameResolver.EventInvokerNames), notifyNode.TypeDefinition.Name));
                    continue;
                }
            }

            notifyNode.EventInvoker = eventInvoker;

            foreach (var childNode in notifyNode.Nodes)
            {
                ProcessChildNode(childNode, eventInvoker);
            }
        }
    }