protected virtual void EmitVoid(Type type)
{
if (type == typeof(void)) {
}
else if (type == typeof(bool) ||
type == typeof(char) ||
type == typeof(int)) {
ilGenerator.Emit(OpCodes.Ldc_I4_0);
}
else {
ilGenerator.Emit(OpCodes.Ldnull);
}
}