ApplyAttributeBuilder() public méthode

public ApplyAttributeBuilder ( Attribute a, MethodSpec ctor, byte cdata, Mono.CSharp.PredefinedAttributes pa ) : void
a Attribute
ctor MethodSpec
cdata byte
pa Mono.CSharp.PredefinedAttributes
Résultat void
Exemple #1
0
		public override void ApplyAttributeBuilder (Attribute a, MethodSpec ctor, byte[] cdata, PredefinedAttributes pa)
		{
			if (a.Target == AttributeTargets.ReturnValue) {
				if (return_attributes == null)
					return_attributes = new ReturnParameter (this, InvokeBuilder.MethodBuilder, Location);

				return_attributes.ApplyAttributeBuilder (a, ctor, cdata, pa);
				return;
			}

			base.ApplyAttributeBuilder (a, ctor, cdata, pa);
		}
Exemple #2
0
        public override void ApplyAttributeBuilder(Attribute a, CustomAttributeBuilder cb, PredefinedAttributes pa)
        {
            if (a.Target == AttributeTargets.ReturnValue)
            {
                if (return_attributes == null)
                {
                    return_attributes = new ReturnParameter(InvokeBuilder, Location);
                }

                return_attributes.ApplyAttributeBuilder(a, cb, pa);
                return;
            }

            base.ApplyAttributeBuilder(a, cb, pa);
        }
Exemple #3
0
        public override void ApplyAttributeBuilder(Attribute a, MethodSpec ctor, byte[] cdata, PredefinedAttributes pa)
        {
            if (a.Target == AttributeTargets.ReturnValue)
            {
                CreateReturnBuilder();
                return_attributes.ApplyAttributeBuilder(a, ctor, cdata, pa);
                return;
            }

            if (a.IsValidSecurityAttribute())
            {
                a.ExtractSecurityPermissionSet(ctor, ref declarative_security);
                return;
            }

            base.ApplyAttributeBuilder(a, ctor, cdata, pa);
        }
Exemple #4
0
        public override void ApplyAttributeBuilder(Attribute a, MethodSpec ctor, byte[] cdata, PredefinedAttributes pa)
        {
            if (a.Target == AttributeTargets.ReturnValue)
            {
                if (return_attributes == null)
                {
                    return_attributes = new ReturnParameter(this, InvokeBuilder.MethodBuilder, Location);
                }

                return_attributes.ApplyAttributeBuilder(a, ctor, cdata, pa);
                return;
            }

            if (a.IsValidSecurityAttribute())
            {
                a.ExtractSecurityPermissionSet(ctor, ref declarative_security);
                return;
            }

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