有没有办法检查XmlSchemaParticle是否为EmptyParticle?

Ber*_*ron 7 c# xml xsd

我在这里遇到困难,是否有正确的方法来检查是否XmlSchemaParticle是一个EmptyParticle

XmlSchemaParticle.EmptyParticle似乎是一个私人的内部阶级XmlSchemaParticle.

我现在正在做的是particle.GetType().Name == "EmptyParticle",我发现它相当难看.

还有其他选择吗?