diff --git a/System.Resources.NetStandard/WinformsTypeMappers.cs b/System.Resources.NetStandard/WinformsTypeMappers.cs index 073a7b8..b30380c 100644 --- a/System.Resources.NetStandard/WinformsTypeMappers.cs +++ b/System.Resources.NetStandard/WinformsTypeMappers.cs @@ -8,19 +8,14 @@ public static Func InterceptWinformsTypes(Func typeNa { if (type.AssemblyQualifiedName == typeof(ResXFileRef).AssemblyQualifiedName) { - return NetStandard.ResXConstants.ResxFileRefTypeInfo; - } - - if (type.AssemblyQualifiedName == typeof(ResXNullRef).AssemblyQualifiedName) + return ResXConstants.ResxFileRefTypeInfo; + } + else if (type.AssemblyQualifiedName == typeof(ResXNullRef).AssemblyQualifiedName) { - return NetStandard.ResXConstants.ResxNullRefTypeInfo; + return ResXConstants.ResxNullRefTypeInfo; } - - - if (typeNameConverter != null) - return typeNameConverter(type); - - return null; + else if (typeNameConverter != null) return typeNameConverter(type); + else return null; }; }