Proxies Calls allows subclasser to override do extra actions before or after base invocation
This may not be as efficient as other proxies that can work on just static objects or just dynamic objects... Consider this when using.
Inheritance: BaseObject, IForwarder
Esempio n. 1
0
 /// <summary>
 /// Equals the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public bool Equals(BaseForwarder other)
 {
     if (ReferenceEquals(null, other))
     {
         return(ReferenceEquals(null, CallTarget));
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.CallTarget, CallTarget));
 }
Esempio n. 2
0
 /// <summary>
 /// Equals the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public bool Equals(BaseForwarder other)
 {
     if (ReferenceEquals(null, other)) return ReferenceEquals(null, CallTarget);
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.CallTarget, CallTarget);
 }