Skip to content

Commit

Permalink
Fixed a bug that prevented DelegateGen from completing due to missing…
Browse files Browse the repository at this point in the history
… ParameterBuilder

--HG--
branch : attributes
  • Loading branch information
ssimek committed Oct 16, 2009
1 parent f52057b commit c0cae54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RunSharp/ParameterGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ public AttributeGen<ParameterGen> BeginAttribute(AttributeType type, params obje
internal void Complete(ISignatureGen sig)
{
ParameterBuilder pb = sig.DefineParameter(position, attributes, name);
AttributeGen.ApplyList(ref customAttributes, pb.SetCustomAttribute);

if (customAttributes != null && pb != null)
{
AttributeGen.ApplyList(ref customAttributes, pb.SetCustomAttribute);
}
}
}

Expand Down

0 comments on commit c0cae54

Please sign in to comment.