C# – Algorithm to determine how positive or negative a statement/text is

algorithmc++nlp

I need to implement sentiment analysis. Can anyone point me to examples/reference implementations?