コード例 #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))
 {
 }