Skip to content

Commit 39430f3

Browse files
committed
Generate string interpolation.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent 531f8f2 commit 39430f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MySqlConnector/Core/SchemaProvider.g.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public async ValueTask<DataTable> GetSchemaAsync(IOBehavior ioBehavior, string c
7272
else if (string.Equals(collectionName, "Views", StringComparison.OrdinalIgnoreCase))
7373
await FillViewsAsync(ioBehavior, dataTable, restrictionValues, cancellationToken).ConfigureAwait(false);
7474
else
75-
throw new ArgumentException("Invalid collection name: '" + collectionName + "'.", nameof(collectionName));
75+
throw new ArgumentException($"Invalid collection name: '{collectionName}'.", nameof(collectionName));
7676

7777
return dataTable;
7878
}

tools/SchemaCollectionGenerator/SchemaCollectionGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public async ValueTask<DataTable> GetSchemaAsync(IOBehavior ioBehavior, string c
3939
}
4040
codeWriter.WriteLine("""
4141
else
42-
throw new ArgumentException("Invalid collection name: '" + collectionName + "'.", nameof(collectionName));
42+
throw new ArgumentException($"Invalid collection name: '{collectionName}'.", nameof(collectionName));
4343
4444
return dataTable;
4545
}

0 commit comments

Comments
 (0)