Skip to content

Commit 6f41a36

Browse files
committed
Cosmetic changes.
1 parent 7ca5396 commit 6f41a36

2 files changed

Lines changed: 22 additions & 21 deletions

File tree

src/MsgPack/Serialization/EnumSerializationOptions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ public EnumSerializationMethod SerializationMethod
7575
{
7676
case EnumSerializationMethod.ByName:
7777
case EnumSerializationMethod.ByUnderlyingValue:
78-
{
79-
break;
80-
}
78+
{
79+
break;
80+
}
8181
default:
82-
{
83-
throw new ArgumentOutOfRangeException( "value" );
84-
}
82+
{
83+
throw new ArgumentOutOfRangeException( "value" );
84+
}
8585
}
8686

8787
Contract.EndContractBlock();

src/MsgPack/Serialization/SerializationTarget.cs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,14 @@ private static ConstructorInfo FindDeserializationConstructor( Type targetType )
348348
}
349349
default:
350350
{
351-
throw
352-
new SerializationException(
353-
String.Format(
354-
CultureInfo.CurrentCulture,
355-
"Cannot serialize type '{0}' because it does not have any serializable fields nor properties, and serializer generator failed to determine constructor to deserialize among({1}).",
356-
targetType,
357-
String.Join( ", ", mostRichConstructors.Select( ctor => ctor.ToString() ).ToArray() )
358-
)
359-
);
351+
throw new SerializationException(
352+
String.Format(
353+
CultureInfo.CurrentCulture,
354+
"Cannot serialize type '{0}' because it does not have any serializable fields nor properties, and serializer generator failed to determine constructor to deserialize among({1}).",
355+
targetType,
356+
String.Join( ", ", mostRichConstructors.Select( ctor => ctor.ToString() ).ToArray() )
357+
)
358+
);
360359
}
361360
}
362361
}
@@ -368,11 +367,12 @@ private static IList<ConstructorInfo> FindExplicitDeserializationConstructors( I
368367

369368
private static SerializationException NewTypeCannotBeSerializedException( Type targetType )
370369
{
371-
return new SerializationException(
372-
String.Format(
373-
CultureInfo.CurrentCulture,
374-
"Cannot serialize type '{0}' because it does not have any serializable fields nor properties, and it does not have any public constructors with parameters.",
375-
targetType
370+
return
371+
new SerializationException(
372+
String.Format(
373+
CultureInfo.CurrentCulture,
374+
"Cannot serialize type '{0}' because it does not have any serializable fields nor properties, and it does not have any public constructors with parameters.",
375+
targetType
376376
)
377377
);
378378
}
@@ -446,7 +446,8 @@ private static IList<SerializingMember> ComplementMembers( IList<SerializingMemb
446446
if ( context.CompatibilityOptions.OneBoundDataMemberOrder && candidates[ 0 ].Contract.Id == 0 )
447447
{
448448
throw new NotSupportedException(
449-
"Cannot specify order value 0 on DataMemberAttribute when SerializationContext.CompatibilityOptions.OneBoundDataMemberOrder is set to true." );
449+
"Cannot specify order value 0 on DataMemberAttribute when SerializationContext.CompatibilityOptions.OneBoundDataMemberOrder is set to true."
450+
);
450451
}
451452

452453
#if !UNITY

0 commit comments

Comments
 (0)