Implemented a hacky ToRepr function for C# that mimics Python's repr function.