Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Nov 19, 2020
1 parent cba7503 commit 1c2618f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;

#nullable enable

namespace Microsoft.Interop
{
class CustomNativeTypeMarshaler : IMarshallingGenerator
class CustomNativeTypeMarshaller : IMarshallingGenerator
{
private const string MarshalerLocalSuffix = "__marshaler";
private readonly TypeSyntax _nativeTypeSyntax;
Expand All @@ -20,7 +18,7 @@ class CustomNativeTypeMarshaler : IMarshallingGenerator
private readonly bool _useValueProperty;
private readonly bool _marshalerTypePinnable;

public CustomNativeTypeMarshaler(NativeMarshallingAttributeInfo marshallingInfo)
public CustomNativeTypeMarshaller(NativeMarshallingAttributeInfo marshallingInfo)
{
ITypeSymbol nativeType = marshallingInfo.ValuePropertyType ?? marshallingInfo.NativeMarshallingType;
_nativeTypeSyntax = ParseTypeName(nativeType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
Expand All @@ -31,7 +29,7 @@ public CustomNativeTypeMarshaler(NativeMarshallingAttributeInfo marshallingInfo)
_marshalerTypePinnable = marshallingInfo.NativeTypePinnable;
}

public CustomNativeTypeMarshaler(GeneratedNativeMarshallingAttributeInfo marshallingInfo)
public CustomNativeTypeMarshaller(GeneratedNativeMarshallingAttributeInfo marshallingInfo)
{
_nativeTypeSyntax = _nativeLocalTypeSyntax = ParseTypeName(marshallingInfo.NativeMarshallingFullyQualifiedTypeName);
_marshallingMethods = SupportedMarshallingMethods.ManagedToNative | SupportedMarshallingMethods.NativeToManaged;
Expand Down

0 comments on commit 1c2618f

Please sign in to comment.