public void SetViewStackConstraints(NSMutableArray stackConstraints) { if (this._viewStackConstraints != stackConstraints) { if (this._viewStackConstraints != null) { this.RemoveConstraints (this._viewStackConstraints); } this._viewStackConstraints.SafeRelease (); this._viewStackConstraints = stackConstraints.SafeRetain<NSMutableArray> (); if (this._viewStackConstraints != null) { this.AddConstraints (this._viewStackConstraints); } else { this.NeedsUpdateConstraints = true; } } }