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
Now you can create a copy like this:
var tempWrap = new Benchmark.Struct.JobStructWrapper(); tempWrap.Fill(in item); var copyItem = tempWrap.GetValue();
But this way is slow.
You need to generate something like the following:
public static JobStruct DeepCopy(in JobStruct item) { var result = new JobStruct(); result.Int32 = item.Int32; result.Int64 = item.Int64; result.JobStruct2.Int32 = item.Int32; result.JobStruct2.Int64 = item.Int64; return result; }
Usage:
var copyItem = JobStructHelper.DeepCopy(in item);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Now you can create a copy like this:
But this way is slow.
You need to generate something like the following:
Usage:
The text was updated successfully, but these errors were encountered: