public static T GetNewValue <T>(HandleRef cPtr) { int type = Extend.GetNativePropertyType(typeof(T)); IntPtr value = Noesis_RoutedPropertyChangedEventArgs_GetNewValue(cPtr, type); return(GetConvertedValue <T>(value)); }