示例#1
0
 public AttributeGen <T> BeginAttribute(AttributeType type, params object[] args)
 {
     return(AttributeGen <T> .CreateAndAdd(typedThis, ref customAttributes, AttributeTarget, type, args));
 }
示例#2
0
 void IDelayedCompletion.Complete()
 {
     AttributeGen.ApplyList(ref customAttributes, fb.SetCustomAttribute);
 }
示例#3
0
 public AttributeGen <DelegateGen> BeginAttribute(AttributeType type, params object[] args)
 {
     return(AttributeGen <DelegateGen> .CreateAndAdd(this, ref customAttributes, AttributeTargets.Delegate, type, args));
 }
 public override AttributeGen <T> BeginAttribute(AttributeType type, params object[] args)
 {
     return(AttributeGen <T> .CreateAndAdd(TypedThis, ref _customAttributes, AttributeTarget, type, args, TypeMapper));
 }
示例#5
0
 public AttributeGen <EventGen> BeginAttribute(AttributeType type, params object[] args)
 {
     return(AttributeGen <EventGen> .CreateAndAdd(this, ref _customAttributes, AttributeTargets.Event, type, args, _owner.TypeMapper));
 }
示例#6
0
 public AttributeGen <ParameterGen> BeginAttribute(AttributeType type, params object[] args)
 {
     return(AttributeGen <ParameterGen> .CreateAndAdd(this, ref customAttributes, position == 0?AttributeTargets.ReturnValue : AttributeTargets.Parameter, type, args));
 }
示例#7
0
 public AttributeGen <AssemblyGen> BeginModuleAttribute(AttributeType type, params object[] args)
 {
     return(AttributeGen <AssemblyGen> .CreateAndAdd(this, ref _moduleAttributes, AttributeTargets.Module, type, args, TypeMapper));
 }