示例#1
0
 protected override IEnumerable <MembersCollector> GetCollectors()
 {
     foreach (var @interface in interfaces)
     {
         var item = new InterfaceMembersCollector(@interface);
         yield return(item);
     }
 }
示例#2
0
 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);
     }
 }
示例#4
0
 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);
     }
 }
示例#5
0
 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);
     }
 }