Пример #1
0
 /// <summary>
 /// Construct a builtin attribute.
 /// </summary>
 public void Add(KnownAttribute type, ImmutableArray <CustomAttributeTypedArgument <IType> > fixedArguments)
 {
     Add(new DefaultAttribute(module.GetAttributeType(type), fixedArguments,
                              ImmutableArray.Create <CustomAttributeNamedArgument <IType> >()));
 }
Пример #2
0
 public AttributeBuilder(MetadataModule module, KnownAttribute attributeType)
     : this(module, module.GetAttributeType(attributeType))
 {
 }