Skip to content

Commit

Permalink
Clarify the exclusivity of cases in winforms type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
farlee2121 committed Mar 4, 2024
1 parent affcd3c commit 0c2680b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions System.Resources.NetStandard/WinformsTypeMappers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@ public static Func<Type, string> InterceptWinformsTypes(Func<Type,string> 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;
};
}

Expand Down

0 comments on commit 0c2680b

Please sign in to comment.