Skip to content

Commit 52f6ffd

Browse files
committed
Simplified type names
Resolves `IDE0049`. In #2bf635e, when (re)introducing the `attributePrefix` parameter, it was accidentally defined as a `String` not a `string`. Fixed per code analysis standards.
1 parent 80e9751 commit 52f6ffd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OnTopic/Mapping/BindingModelValidator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static internal void ValidateModel(
9292
[AllowNull]Type sourceType,
9393
[AllowNull]MemberInfoCollection<PropertyInfo> properties,
9494
[AllowNull]ContentTypeDescriptor contentTypeDescriptor,
95-
[AllowNull]String attributePrefix = ""
95+
[AllowNull]string attributePrefix = ""
9696
) {
9797

9898
/*------------------------------------------------------------------------------------------------------------------------
@@ -146,7 +146,7 @@ static internal void ValidateProperty(
146146
[AllowNull]Type sourceType,
147147
[AllowNull]PropertyInfo property,
148148
[AllowNull]ContentTypeDescriptor contentTypeDescriptor,
149-
[AllowNull]String attributePrefix = ""
149+
[AllowNull]string attributePrefix = ""
150150
) {
151151

152152
/*------------------------------------------------------------------------------------------------------------------------
@@ -224,7 +224,7 @@ static internal void ValidateProperty(
224224
\-----------------------------------------------------------------------------------------------------------------------*/
225225
if (attributeDescriptor == null) {
226226
throw new InvalidOperationException(
227-
$"A {nameof(sourceType)} object was provided with a content type set to '{contentTypeDescriptor.Key}'. This " +
227+
$"A '{nameof(sourceType)}' object was provided with a content type set to '{contentTypeDescriptor.Key}'. This " +
228228
$"content type does not contain an attribute named '{compositeAttributeKey}', as requested by the " +
229229
$"'{configuration.Property.Name}' property. If this property is not intended to be mapped by the " +
230230
$"{nameof(ReverseTopicMappingService)}, then it should be decorated with {nameof(DisableMappingAttribute)}."

0 commit comments

Comments
 (0)