public Stream OpenResource(string resource){Stream stream = this.clazz.GetTypeInfo().Assembly.FindAndGetManifestResourceStream(clazz, resource);if (stream == null){throw new IOException("Resource not found: " + resource);}return stream;}