Get Active Directory Email of Current User In C#

This one.. was something I thought would be much easier to retrieve when I was developing an Microsoft c# Addin to Outlook, retrieving the current user’s active directory primary email address right?

/**
 *  get the Current active session
 *  user's email address from the Active
 *  directory. Common in Workspaces.
 *
 *  @Params none
 *  @Returns String
**/
private string getExchangeEmail()
{
     return this.Application.ActiveExplorer().Session.CurrentUser.AddressEntry.GetExchangeUser().PrimarySmtpAddress.ToString();
}

A slight mouthful but, I do hope it saves someone the time to dig through each instance to find what they needed 🙂