---
title: "Discussion on \"Empty string and array best practices in C#\" | Hashnode"
description: "Discussion on \"Empty string and array best practices in C#\". Just a very short blog post... for everyone who is not yet known to it. Since .Net Framework 4.6 for two immutable types we got new static fields in the framework:\n\nArray.Empty<T>\n\nstring.Empty\n\n\n// instead of\nstring foo = \"\";\nbyte[] bar = new byte[0..."
url: "https://hashnode.com/posts/empty-string-and-array-best-practices-in-c/665b6a4e870803bb2e36b98f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Empty string and array best practices in C#](https://blog.sigterm.eu/empty-string-and-array-best-practices-in-c?utm_source=hashnode&utm_medium=feed)

Just a very short blog post... for everyone who is not yet known to it. Since .Net Framework 4.6 for two immutable types we got new static fields in the framework: Array.Empty<T> string.Empty // instead of string foo = ""; byte\[\] bar = new byte\[0...

Jun 1, 2024 · 1 min read · blog.sigterm.eu  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#string](https://hashnode.com/tag/string)
-   [#strings](https://hashnode.com/tag/strings)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#array](https://hashnode.com/tag/array)
-   [#empty](https://hashnode.com/tag/empty)

## Written by

[Dominik Schischma](https://hashnode.com/@del)

@del · Germany

  
[View profile](https://hashnode.com/@del)

Coding, operating, teaching...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
