Programing using Audacity features

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

Thanks!

Audacity is primarily written in C++.
See here for information for developers: http://wiki.audacityteam.org/wiki/Category:For_Developers
Note that Audacity is open source, licensed under the terms of GPL v2 https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html