我需要在C#代码中模拟(使用ilGenerator.Emit)以下函数
public void AssignAttribute(ref ValueHolder output, Assignment assignment) {
ResultAttribute attribute = null;
if ( (attribute = output.MultipleResults.Find(delegate(ResultAttribute o) {
return o.Name == assignment.Name;
})) != null)
attribute.Value = assignment.Value;
}
Run Code Online (Sandbox Code Playgroud)
有谁能够帮我?