Mono.CSharp.Indexer.ApplyAttributeBuilder C# (CSharp) Method

ApplyAttributeBuilder() public method

public ApplyAttributeBuilder ( Attribute a, MethodSpec ctor, byte cdata, Mono.CSharp.PredefinedAttributes pa ) : void
a Attribute
ctor MethodSpec
cdata byte
pa Mono.CSharp.PredefinedAttributes
return void
        public override void ApplyAttributeBuilder(Attribute a, MethodSpec ctor, byte[] cdata, PredefinedAttributes pa)
        {
            if (a.Type == pa.IndexerName) {
                if (IsExplicitImpl) {
                    Report.Error (415, a.Location,
                        "The `{0}' attribute is valid only on an indexer that is not an explicit interface member declaration",
                        TypeManager.CSharpName (a.Type));
                }

                // Attribute was copied to container
                return;
            }

            base.ApplyAttributeBuilder (a, ctor, cdata, pa);
        }