I had a 2009 128i 6MT for about a year. It was a phenomenal daily driver and I only sold it because I needed to finally buy a tow vehicle for my E36 M3. Yes, I had the two cars at the same time, though the E36 was well on its way to being a caged time trial/W2W race car by then. In any case, as others have said, they are very similar power/weight ratio and the E82 has a MUCH better interior than any E36 could dream of.
Mine was Jet Black (blah) on Coral Red (yasss) with Sport, Premium, and Cold Weather packages. I threw a set of BBS wheels on it, removed the clutch delay valve, and added an AFE intake that was kind of worthless.
My car also had the CIC second-generation iDrive which I really liked (started in 2009). Some of the later cars got NBT iDrive which feels even snappier and more modern. In either case, you can update nav maps through the grey market for like $50 and the system works really well. Do note that CIC iDrive will only allow Bluetooth phone calls, no music streaming. NBT supports Bluetooth calls and music both natively. If you get a car with CIC, you can use a Bovee A2DP Bluetooth adapter with the BMW iPod cord to stream music from your iPhone or Android phone.
As others have said, the N52 is a very solid engine, keep an eye on the oil filter housing gasket and the drive belt tensioner. If either is leaking (the tensioner can leak whatever fluid/grease is inside) replace them ASAP. The electric water pump sounds like a PITA but aside from being more costly to replace, is easy enough to do yourself. I believe the car can set a CEL/iDrive message for "reduced flow" so you know the pump is on its way out instead of just failing out of nowhere. The coolant bleed procedure is all done with the Engine Start button and throttle pedal, i.e. you do a dance and the electronics handle it. Super cool.
They accept E90 M3 suspension bits if you want to mess with things. It's hard to fit big wheels/tires up front on a stock setup. I think I ran 235s on a 17x8.5" wheel and ended up with too tall of a sidewall, which rubbed on bumps.
The Sport seats are a must (look for extendable thigh support to tell), I also really enjoyed the adaptive HID headlamps that turned with the steering wheel (part of Premium package, I think). My car had the Logic7 top-end sound system, which had a subwoofer under each seat and was generally very excellent.
They're great cars and likely the last N/A, rear-drive, inline-six, manual-trans car BMW will ever make. Buy one.