Ber*_*ron 7 c# xml xsd
我在这里遇到困难,是否有正确的方法来检查是否XmlSchemaParticle是一个EmptyParticle?
XmlSchemaParticle
EmptyParticle
XmlSchemaParticle.EmptyParticle似乎是一个私人的内部阶级XmlSchemaParticle.
XmlSchemaParticle.EmptyParticle
我现在正在做的是particle.GetType().Name == "EmptyParticle",我发现它相当难看.
particle.GetType().Name == "EmptyParticle"
还有其他选择吗?
小智 1
我尝试了与你相同的解决方案,但它很混乱。即将尝试:http://www.c-sharpcorner.com/Forums/Thread/54685/detecting-xmlschemacomplextype-contentarticletype-is-equal.aspx
归档时间:
15 年,3 月 前
查看次数:
912 次
最近记录:
10 年,5 月 前