ObjCRuntime.Class.ThrowOnInitFailure Field
Determines whether MonoTouch will check in the NSObject constructor if the corresponding native object was successfully created (the default value is true).

Syntax

public static bool ThrowOnInitFailure

Remarks

Traditionally MonoTouch has allowed managed objects to be created without a native peer. The behavior has however been inconsistent between types, and in the case of types from third-party libraries it would result in instances that would, if used, most likely crash the process with a stack overflow.

With this check the behavior will be consistent among all types.

Requirements

Namespace: ObjCRuntime
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0