AOP01.Test2.NotifyPropertyInterceptor.raisePropertyChangedEvent C# (CSharp) Method

raisePropertyChangedEvent() static private method

static private raisePropertyChangedEvent ( IInvocation invocation, string propertyName, Type type ) : void
invocation IInvocation
propertyName string
type System.Type
return void
        static void raisePropertyChangedEvent(IInvocation invocation, string propertyName, Type type)
        {
            var methodInfo = type.GetMethod("RaisePropertyChanged");
            if (methodInfo == null)
            {
                if (type.BaseType != null)
                    raisePropertyChangedEvent(invocation, propertyName, type.BaseType);
            }
            else
            {
                methodInfo.Invoke(invocation.InvocationTarget, new object[] { propertyName });
            }
        }