public override void OnRelease() { if (this.stKeyInfo != null) { this.stKeyInfo.Release(); this.stKeyInfo = null; } if (this.stValueInfo != null) { this.stValueInfo.Release(); this.stValueInfo = null; } }
public COMDT_STATISTIC_BASE_STRUCT() { this.stKeyInfo = (COMDT_STATISTIC_BASE_STRUCT_KEY_INFO)ProtocolObjectPool.Get(COMDT_STATISTIC_BASE_STRUCT_KEY_INFO.CLASS_ID); this.stValueInfo = (COMDT_STATISTIC_BASE_STRUCT_VALUE_INFO)ProtocolObjectPool.Get(COMDT_STATISTIC_BASE_STRUCT_VALUE_INFO.CLASS_ID); }