In C# 4, this problem can be solved in a neat way using dynamic typing. As a simple example, I’ll show you how to access internals of the List<T> class from the BCL standard library. Let’s create an instance of the List<int> type: // This is messy, but DirectX, OpenGl 3.3 and Opengl ES 3.0 doesn't support dynamic indexing of the sampler array // With any luck the shader compiler will optimise this if the hardware supports dynamic indexing. Write a C++ Program to Find Area of Shapes using Function Overloading. Here’s a Simple C++ Program to Find Area and Volume of Circle, Rectangle, Square, Cone, Cylinder, Triangle, Sphere using Function Overloading in C++ Programming Language.