MoreAsserts.AssertAssignableFrom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AssertAssignableFrom(Class, Class) |
Asserts that class |
| AssertAssignableFrom(Class, Object) |
Asserts that the class |
AssertAssignableFrom(Class, Class)
Asserts that class expected is assignable from the class
actual.
[Android.Runtime.Register("assertAssignableFrom", "(Ljava/lang/Class;Ljava/lang/Class;)V", "")]
public static void AssertAssignableFrom(Java.Lang.Class? expected, Java.Lang.Class? actual);
[<Android.Runtime.Register("assertAssignableFrom", "(Ljava/lang/Class;Ljava/lang/Class;)V", "")>]
static member AssertAssignableFrom : Java.Lang.Class * Java.Lang.Class -> unit
Parameters
- expected
- Class
- actual
- Class
- Attributes
Remarks
Asserts that class expected is assignable from the class actual. This verifies expected is a parent class or a interface that actual implements.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
AssertAssignableFrom(Class, Object)
Asserts that the class expected is assignable from the object
actual.
[Android.Runtime.Register("assertAssignableFrom", "(Ljava/lang/Class;Ljava/lang/Object;)V", "")]
public static void AssertAssignableFrom(Java.Lang.Class? expected, Java.Lang.Object? actual);
[<Android.Runtime.Register("assertAssignableFrom", "(Ljava/lang/Class;Ljava/lang/Object;)V", "")>]
static member AssertAssignableFrom : Java.Lang.Class * Java.Lang.Object -> unit
Parameters
- expected
- Class
- actual
- Object
- Attributes
Remarks
Asserts that the class expected is assignable from the object actual. This verifies expected is a parent class or a interface that actual implements.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.