protected override void OnInitialized() { base.OnInitialized(); XConstructor <ReadOnlyCollection <T> > ctor = XType.Component <XConstructor <ReadOnlyCollection <T> > >(); if (ctor != null) { ctor.Enabled = false; } }
protected override void OnInitialized() { base.OnInitialized(); XConstructor <ReadOnlyDictionary <TKey, TValue> > ctor = XType.Component <XConstructor <ReadOnlyDictionary <TKey, TValue> > >(); if (ctor != null) { ctor.Enabled = false; } }
public async Task <IActionResult> OnPost() { XObject[] xparams = _XMethodInfoModel.XFromForm(x, XConstructor.XGetParameters(), xtypeConverter, Request.Form, XThis); try { XObject xobject = XConstructor.XInvoke(xparams); if (xobject != x.XNULL) { _XObjectModel.XToCache(XThis, xobject); string url = _XObjectModel.XToHref(xobject); return(LocalRedirect(url)); } } catch (Exception ex) { XException = x.XCatch(ex); } return(Page()); }