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 });
}
}