private SchemaEntity GetEntity(XmlQualifiedName qname, bool fParameterEntity) { if (fParameterEntity) { return (SchemaEntity)schemaInfo.ParameterEntities[qname]; } else { return (SchemaEntity)schemaInfo.GeneralEntities[qname]; } }