public EshuMethod GetEshuMethod() { EshuMethod eshuMethod = new EshuMethod(this.MethodName, this.MethodReturnType); eshuMethod.Parameters = new List <EshuProperty>(); foreach (ParameterEditor parameterEditor in this.listBoxParameters.Items.OfType <ParameterEditor>()) { EshuProperty eshuProperty = parameterEditor.GetEshuProperty(); eshuMethod.Parameters.Add(eshuProperty); } return(eshuMethod); }
internal EshuProperty GetEshuProperty() { EshuProperty eshuProperty = new EshuProperty(this.ParameterName, this.ParameterType); return(eshuProperty); }
public ParameterEditor(EshuProperty property) : this() { this.textBlockVariableName.Text = property.Name; this.textBlockType.Text = property.Type; }