Exemple #1
0
 public RequestAttribute(AttributeSyntax attributeSyntax)
 {
     this.ClassName = attributeSyntax.GetClassName();
     this.Arguments = attributeSyntax.ArgumentList?
                      .Arguments
                      .Select(x => SyntaxFactory.Argument(x.Expression))
                      .ToArray();
     this.ArgumentCount         = (this.Arguments?.Length).GetValueOrDefault();
     this.AttachedParameterName = attributeSyntax.GetParameterName();
     this.Type = attributeSyntax.GetRequestAttributeType();
 }