//
// Urho's Object C# sugar
//
// Authors:
//   Miguel de Icaza (miguel@xamarin.com)
//
// Copyrigh 2015 Xamarin INc
//

using System;
using System.Runtime.InteropServices;

namespace Urho {

	public partial class UrhoObject : RefCounted {


		// Invoked by the subscribe methods
		[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
		static void ObjectCallback (IntPtr data, int stringHash, IntPtr variantMap)
		{
			GCHandle gch = GCHandle.FromIntPtr(data);
			Action<IntPtr> a = (Action<IntPtr>) gch.Target;
			a (variantMap);
		}
	}
}

//
// Urho's Object C# sugar
//
// Authors:
//   Miguel de Icaza (miguel@xamarin.com)
//
// Copyrigh 2015 Xamarin INc
//

using System;
using System.Runtime.InteropServices;

namespace Urho {

	public partial class UrhoObject : RefCounted {


		// Invoked by the subscribe methods
		static void ObjectCallback (IntPtr data, int stringHash, IntPtr variantMap)
		{
			GCHandle gch = GCHandle.FromIntPtr(data);
			Action<IntPtr> a = (Action<IntPtr>) gch.Target;
			a (variantMap);
		}
	}
}

Fix build, this is not allwoed on the method itself
Fix build, this is not allwoed on the method itself
