In below code, I am wondering how to identify which class is being executed in order to personalize it by applying a switch case or so. I tried by checking the Param T, however it didn't work for me. 

Thanks in advance!

```
ExecuteCalculationsWith<RoofMaterialQuantityCalculator>();
ExecuteCalculationsWith<WallMaterialQuantityCalculator>();
ExecuteCalculationsWith<CurtainWallPanelsMaterialQuantityCalculator>();
ExecuteCalculationsWith<FloorMaterialQuantityCalculator>();

private void ExecuteCalculationsWith<T>() where T : MaterialQuantityCalculator, new()
{
    T calculator = new T();
    calculator.SetDocument(m_doc);
    calculator.CalculateMaterialQuantities();

    switch (typeof(T))
    {
        case RoofMaterialQuantityCalculator:
            calculator.InsertDataTableintoSQLTableusingSQLBulkCopy();
            break;
        case WallMaterialQuantityCalculator:
            calculator.InsertDataTableintoSQLTable_walls();
            break;
        default:
            break;
    }
}

```