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
It is possible to add support for Microsoft Immutable Collections eg. ImmutableList?
Now when I use ImmutableList DeepCopy generates incorrect code and I get JIT error.
DeepCopy generates:
public class MyClass { public ImmutableList<String> MyProperty { get; set; } public MyClass(MyClass source) { ImmutableList<string> immutableList = new ImmutableList<string>(); foreach (string item in (IEnumerable<string>)source.MyProperty) { immutableList.Add((item != null) ? string.Copy(item) : null); } MyProperty = immutableList; } }
ImmutableList does not have empty constructor.
ImmutableList
DeepCopy should generate:
public class MyClass { public ImmutableList<String> MyProperty { get; set; } public MyClass(SituationAwarenessSendingModel source) { ImmutableList<string>.Builder immutableList = ImmutableList.CreateBuilder<string>(); foreach (string item in (IEnumerable<string>)source.MyProperty) { immutableList.Add((item != null) ? string.Copy(item) : null); } MyProperty = immutableList.ToImmutable(); } }
The text was updated successfully, but these errors were encountered:
I do not know this library. I will have a look. but this may take some time
Sorry, something went wrong.
Check default constructor for public access (#24)
5e7bb84
greuelpirat
No branches or pull requests
It is possible to add support for Microsoft Immutable Collections eg. ImmutableList?
Now when I use ImmutableList DeepCopy generates incorrect code and I get JIT error.
DeepCopy generates:
ImmutableList
does not have empty constructor.DeepCopy should generate:
The text was updated successfully, but these errors were encountered: