[runtime] Change mono_object_castclass_mbyref not to throw
commit21b44cc5e0a027a9136ef1de298d0ecf4ad25293
authorAleksey Kliger <aleksey@xamarin.com>
Wed, 23 Mar 2016 20:21:52 +0000 (23 16:21 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Thu, 24 Mar 2016 23:27:22 +0000 (24 19:27 -0400)
treeb435f57cc818313143c31c5685370734d95a11e9
parent0589a490e05733732161c1da80400a173693d9cf
[runtime] Change mono_object_castclass_mbyref not to throw

Mark the function external only. (There are no uses inside the runtime).

Change behavior to return NULL if unable to cast, instead of throwing.
mono/metadata/object.c
mono/metadata/object.h