Check out example codes for "send type as argument c#". It will help you in understanding the concepts better.
Code Example 1
T GetColumnValue<T>(string columnName)
{
// If you need the type, you can use typeof(T)...
Code Example 2
object GetColumnValue(string columnName, Type type)
{
// Here, you can check specific types, as needed:
if (type == typeof(int)) { // ...
Learn ReactJs, React Native from akashmittal.com