diff --git a/src/Compilers/Core/Portable/Diagnostic/DiagnosticInfo.cs b/src/Compilers/Core/Portable/Diagnostic/DiagnosticInfo.cs
index 885f8546eb8552edeedaad5dc51f1ca4167cd7ec..666c7b4f198f1d8b68b117902ce3dac7a636fae1 100644
--- a/src/Compilers/Core/Portable/Diagnostic/DiagnosticInfo.cs
+++ b/src/Compilers/Core/Portable/Diagnostic/DiagnosticInfo.cs
@@ -138,7 +138,7 @@ internal DiagnosticInfo GetInstanceWithSeverity(DiagnosticSeverity severity)
#region Serialization
- bool IObjectWritable.ShouldReuseInSerialization => true;
+ bool IObjectWritable.ShouldReuseInSerialization => false;
void IObjectWritable.WriteTo(ObjectWriter writer)
{
diff --git a/src/Compilers/Core/Portable/Diagnostic/LocalizableResourceString.cs b/src/Compilers/Core/Portable/Diagnostic/LocalizableResourceString.cs
index 11ed98821f0a2e0b4fc85cc7dac4e7db58b931b2..744906601808c21c4aeb6122bb197938e271f82e 100644
--- a/src/Compilers/Core/Portable/Diagnostic/LocalizableResourceString.cs
+++ b/src/Compilers/Core/Portable/Diagnostic/LocalizableResourceString.cs
@@ -93,7 +93,7 @@ private LocalizableResourceString(ObjectReader reader)
}
}
- bool IObjectWritable.ShouldReuseInSerialization => true;
+ bool IObjectWritable.ShouldReuseInSerialization => false;
void IObjectWritable.WriteTo(ObjectWriter writer)
{
diff --git a/src/Compilers/Core/Portable/Serialization/IObjectWritable.cs b/src/Compilers/Core/Portable/Serialization/IObjectWritable.cs
index de8a48b47a0c9c0a93ac52b5b8004b9b54fe9d16..3a331c4ff43f5f981ad793da2f4ea52119ea1d42 100644
--- a/src/Compilers/Core/Portable/Serialization/IObjectWritable.cs
+++ b/src/Compilers/Core/Portable/Serialization/IObjectWritable.cs
@@ -11,8 +11,8 @@ internal interface IObjectWritable
void WriteTo(ObjectWriter writer);
///
- /// Returns `true` when the same instance could be used more than once.
- /// Instances that return "false" should not be tracked or the purpose
+ /// Returns 'true' when the same instance could be used more than once.
+ /// Instances that return 'false' should not be tracked for the purpose
/// of de-duplication while serializing/deserializing.
///
bool ShouldReuseInSerialization { get; }
diff --git a/src/Compilers/Core/Portable/Serialization/ObjectBinderSnapshot.cs b/src/Compilers/Core/Portable/Serialization/ObjectBinderSnapshot.cs
index 333ff98863b5a4ecaa4b4127dcbf47a02097dffa..8ccf8c7bdef5f31ff7777976940867aa62cc4ba9 100644
--- a/src/Compilers/Core/Portable/Serialization/ObjectBinderSnapshot.cs
+++ b/src/Compilers/Core/Portable/Serialization/ObjectBinderSnapshot.cs
@@ -6,7 +6,7 @@
namespace Roslyn.Utilities
{
- internal struct ObjectBinderSnapshot
+ internal readonly struct ObjectBinderSnapshot
{
private readonly Dictionary _typeToIndex;
private readonly ImmutableArray _types;
diff --git a/src/Compilers/VisualBasic/Portable/Errors/MessageProvider.vb b/src/Compilers/VisualBasic/Portable/Errors/MessageProvider.vb
index 3c4d9fa05df83ca02f04a9a13794b5771e39d712..939c74ade92327b060e761c2b4731c223cc3f36f 100644
--- a/src/Compilers/VisualBasic/Portable/Errors/MessageProvider.vb
+++ b/src/Compilers/VisualBasic/Portable/Errors/MessageProvider.vb
@@ -18,7 +18,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Private Sub New()
End Sub
- Private ReadOnly Property IsReausable As Boolean Implements IObjectWritable.ShouldReuseInSerialization
+ Private ReadOnly Property IObjectWritable_ShouldReuseInSerialization As Boolean Implements IObjectWritable.ShouldReuseInSerialization
Get
Return True
End Get
diff --git a/src/Compilers/VisualBasic/Portable/Syntax/InternalSyntax/SyntaxToken.vb b/src/Compilers/VisualBasic/Portable/Syntax/InternalSyntax/SyntaxToken.vb
index 18814ac9498bc456875ec21247f770dbb8196cb9..d0efaa4704c2cb96e9e0c59d41c1a902254bf1c7 100644
--- a/src/Compilers/VisualBasic/Portable/Syntax/InternalSyntax/SyntaxToken.vb
+++ b/src/Compilers/VisualBasic/Portable/Syntax/InternalSyntax/SyntaxToken.vb
@@ -89,7 +89,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Me._trailingTrivia = DirectCast(reader.ReadValue(), GreenNode)
End Sub
- Private ReadOnly Property IsReausable As Boolean Implements IObjectWritable.ShouldReuseInSerialization
+ Private ReadOnly Property IObjectWritable_ShouldReuseInSerialization As Boolean Implements IObjectWritable.ShouldReuseInSerialization
Get
Return ShouldCacheTriviaInfo(_leadingTrivia, _trailingTrivia)
End Get