protected override IEnumerable <MembersCollector> GetCollectors() { foreach (var @interface in interfaces) { var item = new InterfaceMembersCollector(@interface); yield return(item); } }
protected override IEnumerable<MembersCollector> CollectElementsToProxyInternal(IProxyGenerationHook hook) { foreach (var @interface in interfaces) { var item = new InterfaceMembersCollector(@interface); item.CollectMembersToProxy(hook); yield return item; } }
protected override IEnumerable <MembersCollector> CollectElementsToProxyInternal(IProxyGenerationHook hook) { foreach (var @interface in interfaces) { var item = new InterfaceMembersCollector(@interface); item.CollectMembersToProxy(hook); yield return(item); } }
protected override IEnumerable <MembersCollector> GetCollectors() { foreach (var @interface in interfaces) { MembersCollector item; if (@interface.IsInterface) { item = new InterfaceMembersCollector(@interface); } else { Debug.Assert(@interface.IsDelegateType()); item = new DelegateTypeMembersCollector(@interface); } yield return(item); } }
protected override IEnumerable <MembersCollector> CollectElementsToProxyInternal(IProxyGenerationHook hook) { foreach (var @interface in interfaces) { MembersCollector item; if (@interface.GetTypeInfo().IsInterface) { item = new InterfaceMembersCollector(@interface); } else { Debug.Assert(@interface.IsDelegateType()); item = new DelegateTypeMembersCollector(@interface); } item.CollectMembersToProxy(hook); yield return(item); } }