public override bool IsInstanceOf(ScopeMember template) { if (template == this.template) { return(true); } if (factory != null) { return(factory.IsInstanceOf(this.template)); } return(false); }