You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MsgPack/Serialization/SerializationExceptions.cs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,7 @@ public static Exception NewMissingItem( int index )
155
155
returnnewInvalidMessagePackStreamException(String.Format(CultureInfo.CurrentCulture,"Items at index '{0}' is missing.",index));
156
156
}
157
157
158
+
#if !UNITY
158
159
/// <summary>
159
160
/// <strong>This is intended to MsgPack for CLI internal use. Do not use this type from application directly.</strong>
160
161
/// Returns new exception to notify that target type is not serializable because it does not have public default constructor.
@@ -170,6 +171,7 @@ internal static Exception NewTargetDoesNotHavePublicDefaultConstructor( Type typ
170
171
171
172
returnnewSerializationException(String.Format(CultureInfo.CurrentCulture,"Type '{0}' does not have default (parameterless) public constructor.",type));
172
173
}
174
+
#endif // !UNITY
173
175
174
176
/// <summary>
175
177
/// <strong>This is intended to MsgPack for CLI internal use. Do not use this type from application directly.</strong>
0 commit comments