---
title: "Codeunit 3007 DotNet_String"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/3007-dotnet-string/
type: codeunit
id: 3007
name: "DotNet_String"
app: "Base Application"
namespace: System.Text
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/3007-dotnet-string/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 3007 DotNet_String

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/3007-dotnet-string/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Text |
| Versions | 17-28 |
| Source file | Modules/System/DotNetWrappers/DotNetString.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| FromCharArray | (Codeunit DotNet_Array) | - | public | 17-28 | - | - |
| Set | (Text) | - | public | 17-28 | - | - |
| Replace | (Text, Text) | Text | public | 17-28 | - | - |
| Split | (Codeunit DotNet_Array, var Codeunit DotNet_Array) | - | public | 17-28 | - | - |
| ToCharArray | (Integer, Integer, var Codeunit DotNet_Array) | - | public | 17-28 | - | - |
| Length | () | Integer | public | 17-28 | - | - |
| StartsWith | (Text) | Boolean | public | 17-28 | - | - |
| EndsWith | (Text) | Boolean | public | 17-28 | - | - |
| ToString | () | Text | public | 17-28 | - | - |
| IsDotNetNull | () | Boolean | public | 17-28 | - | - |
| GetString | (var DotNet String) | - | public | 17-28 | - | - |
| SetString | (DotNet String) | - | public | 17-28 | - | - |
| PadRight | (Integer, Char) | Text | public | 17-28 | - | - |
| PadLeft | (Integer, Char) | Text | public | 17-28 | - | - |
| IndexOfChar | (Char, Integer) | Integer | public | 17-28 | - | - |
| IndexOfString | (Text, Integer) | Integer | public | 17-28 | - | - |
| LastIndexOfString | (Text) | Integer | public | 17-28 | - | - |
| Substring | (Integer, Integer) | Text | public | 17-28 | - | - |
| Trim | () | Text | public | 17-28 | - | - |
| TrimStart | (var Codeunit DotNet_Array) | Text | public | 17-28 | - | - |
| TrimEnd | (var Codeunit DotNet_Array) | Text | public | 17-28 | - | - |
| Normalize | (Codeunit DotNet_NormalizationForm) | Text | public | 17-28 | - | - |
| Normalize | () | Text | public | 17-28 | - | - |
| IsNormalized | (Codeunit DotNet_NormalizationForm) | Boolean | public | 17-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
