internal bool IsSetRetainResources() { return this._retainResources != null && this._retainResources.Count > 0; }