public MethodParameterSpec(ClrMethodParameterName Name, ClrTypeReference ParameterType, int?Position = null, bool IsParameterArray = false, CodeDocumentationSpec Documentation = null, IEnumerable <AttributionSpec> Attributions = null) : base(Name, Documentation, ClrAccessKind.Default, Attributions) { this.ParameterType = ParameterType; this.Position = Position; this.IsParameterArray = IsParameterArray; }
public MethodArgumentValueSpec(int ArgumentPosition, ClrMethodParameterName ArgumentName, IClrExpressionSpec ValueExpression) { this.ArgumentName = ArgumentName; this.ValueExpression = ValueExpression == null ? none <IClrExpressionSpec>() : some(ValueExpression); this.ArgumentPosition = ArgumentPosition; }
public static MethodArgumentValueSpec SpecifyArgumentValue(this ClrMethodParameterName ParameterName, IClrExpressionSpec ValueExpression) => new MethodArgumentValueSpec(ParameterName, ValueExpression);