Beispiel #1
0
 /// <summary>
 ///   Returns the enumeration of all dynamic member names.
 /// </summary>
 /// <returns> A sequence that contains dynamic member names. </returns>
 public override IEnumerable <string> GetDynamicMemberNames()
 {
     if (!KnownInterfaces.Any())
     {
         var tDyanmic = Impromptu.GetMemberNames(CallTarget, dynamicOnly: true);
         if (!tDyanmic.Any())
         {
             return(Impromptu.GetMemberNames(CallTarget));
         }
     }
     return(base.GetDynamicMemberNames());
 }
Beispiel #2
0
 public override IEnumerable <string> GetDynamicMemberNames()
 {
     if (!KnownInterfaces.Any())
     {
         var dynamicMemberNames = InvocationBinding.GetMemberNames(CallTarget, dynamicOnly: true);
         if (!dynamicMemberNames.Any())
         {
             return(InvocationBinding.GetMemberNames(CallTarget));
         }
     }
     return(base.GetDynamicMemberNames());
 }