diff --git a/Google.Protobuf/Collections/ReadOnlyDictionary.vb b/Google.Protobuf/Collections/ReadOnlyDictionary.vb index cfa9943..ce43426 100644 --- a/Google.Protobuf/Collections/ReadOnlyDictionary.vb +++ b/Google.Protobuf/Collections/ReadOnlyDictionary.vb @@ -30,12 +30,10 @@ ' OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #End Region -Imports System -Imports System.Collections -Imports System.Collections.Generic Imports System.Runtime.InteropServices Namespace Google.Protobuf.Collections + ''' ''' Read-only wrapper around another dictionary. ''' diff --git a/Google.Protobuf/Compatibility/PropertyInfoExtensions.vb b/Google.Protobuf/Compatibility/PropertyInfoExtensions.vb index a8db3ae..6e88304 100644 --- a/Google.Protobuf/Compatibility/PropertyInfoExtensions.vb +++ b/Google.Protobuf/Compatibility/PropertyInfoExtensions.vb @@ -34,20 +34,22 @@ Imports System.Reflection Imports System.Runtime.CompilerServices Namespace Google.Protobuf.Compatibility + ''' ''' Extension methods for , effectively providing ''' the familiar members from previous desktop framework versions while ''' targeting the newer releases, .NET Core etc. ''' Friend Module PropertyInfoExtensions + ''' ''' Returns the public getter of a property, or null if there is no such getter ''' (either because it's read-only, or the getter isn't public). ''' Friend Function GetGetMethod(target As PropertyInfo) As MethodInfo -#If DOTNET35 - var method = target.GetGetMethod(); +#If DOTNET35 Then + Dim method = target.GetGetMethod() #Else Dim method = target.GetMethod #End If @@ -60,8 +62,8 @@ Namespace Google.Protobuf.Compatibility ''' Friend Function GetSetMethod(target As PropertyInfo) As MethodInfo -#If DOTNET35 - var method = target.GetSetMethod(); +#If DOTNET35 Then + Dim method = target.GetSetMethod() #Else Dim method = target.SetMethod #End If diff --git a/Google.Protobuf/Compatibility/TypeExtensions.vb b/Google.Protobuf/Compatibility/TypeExtensions.vb index 75b61e4..a7fced6 100644 --- a/Google.Protobuf/Compatibility/TypeExtensions.vb +++ b/Google.Protobuf/Compatibility/TypeExtensions.vb @@ -30,12 +30,13 @@ ' OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #End Region -Imports System Imports System.Reflection Imports System.Runtime.CompilerServices -#If Not DOTNET35 +#If Not DOTNET35 Then + Namespace Google.Protobuf.Compatibility + ''' ''' Provides extension methods on Type that just proxy to TypeInfo. ''' These are used to support the new type system from .NET 4.5, without @@ -45,6 +46,7 @@ Namespace Google.Protobuf.Compatibility ''' evaluate each new use appropriately. ''' Friend Module TypeExtensions + ''' ''' See https://msdn.microsoft.com/en-us/library/system.type.isassignablefrom ''' diff --git a/Google.Protobuf/ICustomDiagnosticMessage.vb b/Google.Protobuf/ICustomDiagnosticMessage.vb index 4ba416b..eef2909 100644 --- a/Google.Protobuf/ICustomDiagnosticMessage.vb +++ b/Google.Protobuf/ICustomDiagnosticMessage.vb @@ -31,6 +31,7 @@ #End Region Namespace Google.Protobuf + ''' ''' A message type that has a custom string format for diagnostic purposes. ''' @@ -53,6 +54,7 @@ Namespace Google.Protobuf ''' Public Interface ICustomDiagnosticMessage Inherits IMessage + ''' ''' Returns a string representation of this object, for diagnostic purposes. '''