Example #1
0
 void SetMethod_Disposed(object sender, EventArgs e)
 {
     if (this.setMethod != null)
     {
         this._setMethod.Disposed -= new EventHandler(SetMethod_Disposed);
         this.setMethod.Dispose();
         this._setMethod = null;
         this.setMethod  = null;
     }
 }
Example #2
0
 public override void Dispose()
 {
     base.Dispose();
     if (this.getMethod != null)
     {
         this.getMethod.Dispose();
         this.getMethod = null;
     }
     if (this._getMethod != null)
     {
         this._getMethod.Disposed -= GetMethod_Disposed;
         this._getMethod           = null;
     }
     if (this.setMethod != null)
     {
         this.setMethod.Dispose();
         this.setMethod = null;
     }
     if (this._setMethod != null)
     {
         this._setMethod.Disposed -= SetMethod_Disposed;
         this._setMethod           = null;
     }
 }
Example #3
0
 protected override IPropertyMethodMember OnGetMethod(IPropertyMethodMember originalMethod)
 {
     return(new _Method(Parent, (IStructPropertyMethodMember)originalMethod));
 }
Example #4
0
 protected abstract IPropertyMethodMember OnGetMethod(IPropertyMethodMember originalMethod);