コード例 #1
0
            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);
                }
            }
コード例 #2
0
 public void Dispose()
 {
     this._helper           = null;
     this._parentCollection = null;
 }