Skip to content

Commit 8b33664

Browse files
committed
Fix processing of value parameters
***NO_CI*** Signed-off-by: José Simões <[email protected]>
1 parent de55983 commit 8b33664

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/MetadataProcessor.Core/Utility/NativeMethodsCrc.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,10 @@ private static string GetParameterType(
103103
typeName += nanoCLR_DataType.DATATYPE_BYREF + "_" + GetnanoClrTypeName(parameterType.GetElementType());
104104
continueProcessing = false;
105105
}
106-
else if(!parameterType.IsPrimitive &&
107-
parameterType.IsValueType)
106+
else if(!parameterType.IsPrimitive)
108107
{
109108
// TBD
110-
continueProcessing = false;
109+
continueProcessing = true;
111110
}
112111

113112
if (continueProcessing)
@@ -117,7 +116,7 @@ private static string GetParameterType(
117116

118117
// clear 'DATATYPE_' prefixes
119118
// and make it upper case
120-
return typeName.Replace("DATATYPE_", "").ToUpper();
119+
return typeName.Replace("DATATYPE_", "");
121120
}
122121

123122
internal static string GetnanoClrTypeName(TypeReference parameterType)

0 commit comments

Comments
 (0)