private KnockoutCollection(HtmlHelper helper, Expression <Func <TModel, ICollection <TItem> > > collectionExpression, string collectionName, IParentCollection parentCollection) { _helper = helper; _parentCollection = parentCollection; if (!string.IsNullOrEmpty(collectionName)) { CollectionName = collectionName; } else { CollectionName = ExpressionHelper.GetExpressionText(collectionExpression); } }
public void Dispose() { this._helper = null; this._parentCollection = null; }