/// <inheritdoc /> public object CreateInstance(Type type) { if (!_modLoader.IsContentTypeAccessAllowed(type)) { throw new SandboxArgumentException("Creating non-content types is not allowed."); } return(CreateInstanceUnchecked(type)); }