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
コード例 #1
0
ファイル: BaseForwarder.cs プロジェクト: ijsgaus/dynamitey
 /// <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));
 }
コード例 #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);
 }