send type as argument csharp

Code Example - send type as argument csharp

                
                        object GetColumnValue(string columnName, Type type)
{
    // Here, you can check specific types, as needed:

    if (type == typeof(int)) { // ...