C# Refactorings

This just highlights a few refactorings - please see the complete list

Check Dictionary Key Value

Compute Constant Value

Convert Bitwise Flag Comparison To Has Flag

Replace Direct Cast With Safe Cast

Convert While To Do While Loop

Copy Comments From Base Code

Create ChangedEvent

Convert Switch To If

Add null check

Create delegate

Create overload without parameter

Put inside 'using'