The invention is a direct contact refrigerant cooling system using a refrigerant floating loop having a refrigerant and refrigeration devices. The cooling system has at least one hermetic container disposed in the refrigerant floating loop. The hermetic container has at least one electronic component selected from the group consisting of capacitors, power electronic switches and gating signal module. The refrigerant is in direct contact with the electronic component.