Microsoft.Cci.MetadataReaderHost.Rewrite C# (CSharp) Method

Rewrite() public method

Provides the host with an opportunity to substitute a custom attribute with another during metadata reading. This avoids the cost of rewriting the entire unit in order to make such changes.
public Rewrite ( IUnit containingUnit, ICustomAttribute customAttribute ) : ICustomAttribute
containingUnit IUnit The unit that contains the custom attribute.
customAttribute ICustomAttribute The custom attribute to rewrite (fix up).
return ICustomAttribute
    public virtual ICustomAttribute Rewrite(IUnit containingUnit, ICustomAttribute customAttribute) {
      return customAttribute;
    }

Same methods

MetadataReaderHost::Rewrite ( IUnit containingUnit, IMethodDefinition methodDefinition ) : IMethodDefinition