示例#1
0
 public virtual bool IsRegistered <T>()
     where T : Presenter
 {
     return(EH.Any(
                EH.OfType <T>(
                    this.presenters)));
 }
示例#2
0
 public override bool IsRegistered <T>()
 {
     lock (this.locker)
     {
         return(EH.Any(
                    EH.OfType <T>(
                        this.presenters)));
     }
 }
示例#3
0
 public virtual bool IsRegistered <T>(
     string name)
     where T : NamedPresenter
 {
     return(EH.Any(
                EH.OfType <T>(
                    this.presenters),
                p => p.Name == name));
 }
示例#4
0
 public override bool IsRegistered <T>(
     string name)
 {
     lock (this.locker)
     {
         return(EH.Any(
                    EH.OfType <T>(
                        this.presenters),
                    p => p.Name == name));
     }
 }