You absolutely should not take code from the SharpDevelop source code. It is GPL'd code, and they are quite strict about it. This means that any application you make that uses SharpDevelop code must both be open source, and have credit given to the SharpDevelop team. There are probably other restrictions too, but that's the basic idea.
Use it as a reference, sure, but don't extract code.