[C#]Type Conversions in C Sharp
Type Conversions in C Sharp
Base Class to SubClass.
public class BaseClass {}
public class SubClass : BaseClass {}
BaseClass baseObject;
Solution 1: is
if(baseObject is SubClass subObject)
{...
原创
2018-06-21 16:09:28 ·
252 阅读 ·
0 评论