public SCPKG_MASTERSTUDENT_INFO()
 {
     this.stMaster       = (CSDT_FRIEND_INFO)ProtocolObjectPool.Get(CSDT_FRIEND_INFO.CLASS_ID);
     this.astStudentList = new CSDT_FRIEND_INFO[6];
     for (int i = 0; i < 6; i++)
     {
         this.astStudentList[i] = (CSDT_FRIEND_INFO)ProtocolObjectPool.Get(CSDT_FRIEND_INFO.CLASS_ID);
     }
 }
 public override void OnUse()
 {
     this.stMaster = (CSDT_FRIEND_INFO)ProtocolObjectPool.Get(CSDT_FRIEND_INFO.CLASS_ID);
     if (this.astStudentList != null)
     {
         for (int i = 0; i < this.astStudentList.Length; i++)
         {
             this.astStudentList[i] = (CSDT_FRIEND_INFO)ProtocolObjectPool.Get(CSDT_FRIEND_INFO.CLASS_ID);
         }
     }
 }
 public override void OnRelease()
 {
     this.bStudentType = 0;
     if (this.stMaster != null)
     {
         this.stMaster.Release();
         this.stMaster = null;
     }
     this.bStudentNum = 0;
     if (this.astStudentList != null)
     {
         for (int i = 0; i < this.astStudentList.Length; i++)
         {
             if (this.astStudentList[i] != null)
             {
                 this.astStudentList[i].Release();
                 this.astStudentList[i] = null;
             }
         }
     }
 }