I am trying to connect to SharePoint Online using c# application. I created a App Registration under Azure Active Directory and added the certification. I have also tested the connection using Powershell(using PnP module) with client, tenant, Cert Thumbprint details and able to connect to SharePoint Online.
Now, I am trying to achieve the same thing using a C# console app(.Net Framework 4.8) but could not find much documention over internet. Could someone please share any C# sample code or refer me to any documention helping me doing this?