Ejemplo n.º 1
0
        string IMatlabScript.ToScript()
        {
            var builder = new StringBuilder();

            builder.AppendLine(Matlab.BlockLine("Setting " +
                                                typeof(T).Name.Substring(0, typeof(T).Name
                                                                         .IndexOf("Controller", System.StringComparison.Ordinal)).ToLower()) +
                               " controllers parameters");
            builder.AppendLine();
            foreach (var controller in this)
            {
                builder.AppendLine(((IMatlabScript)controller).ToScript());
            }
            return(builder.ToString());
        }