示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.isValid)
         {
             Console.WriteLine("~Resource");
             Resource.RemoveResource(this.id);
             this.isValid = false;
             Console.WriteLine("~Resource done");
         }
     }
 }
示例#2
0

        
示例#3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.image != null)
         {
             Console.WriteLine("~ResourceImage '{0}'", this.name);
             Resource.RemoveResource(this.id);
             this.image.Dispose();
             this.image = null;
             Console.WriteLine("~ResourceImage '{0}' done", this.name);
         }
     }
 }