It does support both - SAP ECC is just the new name for the later versions of what was SAP R/3.
Note that the newest versions are labelled "S/4 Hana", and this can also work with the SAP .NET Connnector v3, though certain newer functionality might require up-to-date versions of the Connector.