mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 22:52:10 +00:00
13 lines
450 B
C#
13 lines
450 B
C#
using System.Text;
|
|
|
|
namespace AIStudio.Tools;
|
|
|
|
public sealed class SlideTextContent(string textContent) : ISlideContent
|
|
{
|
|
//
|
|
// One builder per slide, created once: an expression-bodied property would hand out a fresh
|
|
// builder on every access, so appending further text to a slide would write into a throwaway
|
|
// object and the text would never reach the slide.
|
|
//
|
|
public StringBuilder Text { get; } = new(textContent);
|
|
} |