public override void WrapUp() { _defaultVal = _defaultVal.Select(x => FormKeySettingsVM.StripOrigin(x)).ToArray(); Values.SetTo(_defaultVal.Select(x => { return(new FormKeyItemViewModel(x)); })); if (LoquiRegistration.TryGetRegisterByFullName(_typeName, out var regis)) { ScopedTypes = regis.GetterType.AsEnumerable(); } else if (LinkInterfaceMapping.TryGetByFullName(_typeName, out var interfType)) { ScopedTypes = interfType.AsEnumerable(); } else { throw new ArgumentException($"Can't create a formlink control for type: {_typeName}"); } }