Mono.Types.Ensure C# (CSharp) Method

Ensure() static private method

static private Ensure ( Type type ) : void
type System.Type
return void
	 	internal static void Ensure (Type type)
		{
			//
			// Yup, we have to call Initialize to make sure that the DPs get registered
			//
			while (type != typeof (object)) {
				System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (type.TypeHandle);
				type = type.BaseType;
			}
		}