Use ISafeSerializationData to fix problems using the library in medium trust environments (fixes #120)
Merge pull request #170 from sharwell/fix-120

Use ISafeSerializationData to fix medium trust problems