标签:
1、显示|隐示转换:
public static explicit operator ImplicitClass(ExplicitClass explicitClass) //implicit { ImplicitClass returnClass = new ImplicitClass(); returnClass.iVal = (int)explicitClass.dVal; return returnClass; }
标签:
原文地址:http://www.cnblogs.com/shenchao/p/4421688.html