Visual C# 2010 Recipes A Problem-Solution Approach 代码7——定义转换运算符
<br />能够把字符串转换为Word类型,同时能够把Word类型转换为int类型<br />using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Dynamic;namespace Apress.VisualCSharpRecipes.Chapter01{ public class Word { publi