Good Afternoon Rajesh,
Not exactly what you wanted but here is the google documentation on using the oauth api with .net:
https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth
Here is the smtp page with examples in Java and python on sending emails:
https://developers.google.com/workspace/gmail/api/guides/sending#python
If there is a specific error or issue you are facing please let me know and I will do my best to assist.
Hope this helps. If you need further help on this, tag me in a comment. If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.