<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6" -->

---
title: In C# code, make a class -- don&#x27;t format a giant string.
description: A developer shares guidance on writing idiomatic C# code when working with AI tooling: use positional records and proper classes instead of formatting giant...
canonical: https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: In C# code, make a class -- don&#x27;t format a giant string. | daily.dev
og:description: A developer shares guidance on writing idiomatic C# code when working with AI tooling: use positional records and proper classes instead of formatting giant...
og:url: https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6
og:image: https://api.daily.dev/og/posts/bU89yWaw6.png
og:image:alt: In C# code, make a class -- don&#x27;t format a giant string.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# In C# code, make a class -- don't format a giant string.

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 1 min read · 2 upvotes · 1 comments

## Summary

A developer shares guidance on writing idiomatic C# code when working with AI tooling: use positional records and proper classes instead of formatting giant strings, configure Semantic Kernel's kernel builder to support multiple LLM providers (starting with Azure OpenAI), and structure plugins around the single responsibility principle for better modularity.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/shorts/yeZF8r-qQBc>

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> Nothing says "trust the type system" like hiding everything inside one giant formatted string.

## Similar posts on daily.dev

- [Build an AI Task Planner with Semantic Kernel in C\#](https://daily.dev/posts/build-an-ai-task-planner-with-semantic-kernel-in-c--y2sy4rfb4) · We Are .NET · 0 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#c#](https://daily.dev/tags/c#), [#semantic-kernel](https://daily.dev/tags/semantic-kernel), [#azure-openai](https://daily.dev/tags/azure-openai)

[View this post on daily.dev](https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"In C# code, make a class -- don't format a giant string.","url":"https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6"},"datePublished":"2026-07-20T17:04:26.403Z","dateModified":"2026-09-13T20:17:45.628Z","description":"A developer shares guidance on writing idiomatic C# code when working with AI tooling: use positional records and proper classes instead of formatting giant...","image":"https://i.ytimg.com/vi/yeZF8r-qQBc/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/yeZF8r-qQBc/sddefault.jpg","isAccessibleForFree":true,"articleSection":"We Are .NET","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"llm,c#,semantic-kernel,azure-openai","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"In C# code, make a class -- don't format a giant string.","description":"A developer shares guidance on writing idiomatic C# code when working with AI tooling: use positional records and proper classes instead of formatting giant...","thumbnailUrl":"https://i.ytimg.com/vi/yeZF8r-qQBc/sddefault.jpg","uploadDate":"2026-07-20T17:04:26.403Z","duration":"PT1M","url":"https://api.daily.dev/r/bU89yWaw6","embedUrl":"https://www.youtube.com/embed/yeZF8r-qQBc"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"In C# code, make a class -- don't format a giant string."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/in-c-code-make-a-class----don-t-format-a-giant-string--bu89ywaw6","comment":[{"@type":"Comment","text":"Nothing says “trust the type system” like hiding everything inside one giant formatted string.","datePublished":"2026-08-02T23:02:00.747Z","url":"https://daily.dev/posts/bU89yWaw6#c-wQklgHnKD","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
```

