Programing using Audacity features

Can i program in c# using Audacity features such as:
recording sound
receive data about the pitch of a certain wav file


Audacity is primarily written in C++.
See here for information for developers:
Note that Audacity is open source, licensed under the terms of GPL v2