We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multivalue fields must be of type IEnumerable for example:
[EmbeddedValues("slides", typeof(HomepageCarouselSlideViewModel), IsMultiValue = true)] public IEnumerable Slides { get; set; }
This is bad because IEnumerables cannot be reliably updated so code like
foreach(var slide in model.Slides) { slide.SomeProp = "somevalue"; }
The value of SomeProp could not be guarenteed to be set on the next enumeration.
Current workaround is to enumerate with ToList and then set this back to the property
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Multivalue fields must be of type IEnumerable for example:
[EmbeddedValues("slides", typeof(HomepageCarouselSlideViewModel), IsMultiValue = true)]
public IEnumerable Slides { get; set; }
This is bad because IEnumerables cannot be reliably updated so code like
foreach(var slide in model.Slides)
{
slide.SomeProp = "somevalue";
}
The value of SomeProp could not be guarenteed to be set on the next enumeration.
Current workaround is to enumerate with ToList and then set this back to the property
The text was updated successfully, but these errors were encountered: