Resonant electromagnetic properties of nanoparticles fabricated from high-index semiconductor or dielectric materials are very promising for the realization of novel nanoantennas and metamaterials. In this paper we study optical resonances of Si nanocylinders located on a silica substrate. Multipole analysis of the experimental scattering spectra, based on the decomposed discrete dipole approximation, confirms resonant excitation of electric and magnetic dipole modes in the Si nanocylinders. Influences of light polarization and incident angle on the scattering properties of the nanocylinders are studied. It is shown that the dependence of resonant excitation of the electric and magnetic modes in the nanocylinders on incident angle and polarization of light allows controlling and manipulating the scattered light in this system. The demonstrated properties of Si nanocylinders can be used for the realization of dielectric metasurfaces with different functional optical properties.