而C#的enum默认是int型的,自然然与char不匹配, 于是就出现了上面的错误.
Stack around the variable 'data' was corrupted.
原文:http://blog.csdn.net/along1976/article/details/45506723