private static string CreateBaseCall(CompositeTypeCs model) { if (model.BaseModelType != null) { IEnumerable <ConstructorParameterModel> parameters = (model.BaseModelType as CompositeTypeCs)._constructorModel.Parameters; if (parameters.Any()) { return($": base({string.Join(", ", parameters.Select(p => p.Name))})"); } } return(string.Empty); }
public ConstructorModel(CompositeTypeCs model) { _model = model; }
private static string CreateBaseCall(CompositeTypeCs model) { if (model.BaseModelType != null) { IEnumerable<ConstructorParameterModel> parameters = (model.BaseModelType as CompositeTypeCs)._constructorModel.Parameters; if (parameters.Any()) { return $": base({string.Join(", ", parameters.Select(p => p.Name))})"; } } return string.Empty; }