我需要在 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;
}
有谁能够帮我?