You can use the .Net class libraries in the scripts you write for Unity. Depending on your .Net Compatibility level selected in your project settings, Unity supports more, or less of the full class libraries. To check the functions that are compatible with any specific setting, please check the .Net Compatibility page.