/// <summary> /// Expert user tool that copies user data that has a positive /// CopyCount from the source object to a destination object. /// Generally speaking you don't need to use Copy(). /// Simply rely on things like the copy constructors to do the right thing. /// </summary> /// <param name="source">A source object for the data.</param> /// <param name="destination">A destination object for the data.</param> public static void Copy(Runtime.CommonObject source, Runtime.CommonObject destination) { IntPtr const_source = source.ConstPointer(); IntPtr ptr_destination = destination.NonConstPointer(); UnsafeNativeMethods.ON_Object_CopyUserData(const_source, ptr_destination); }