Check out example codes for "assets\scripts\executeevents.cs(236,24): error cs0122: 'objectpool<t>' is inaccessible due to its protection level". It will help you in understanding the concepts better.

Code Example 1

public static ObjectPool<List<IEventSystemHandler>> s_HandlerListPool = new ObjectPool<List<IEventSystemHandler>>(null, l => l.Clear());

Learn ReactJs, React Native from akashmittal.com