Skip to content

Commit ff0f889

Browse files
medhatiwarijkotas
andauthored
Update src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeCustomAttributeData.cs
Co-authored-by: Jan Kotas <[email protected]>
1 parent 98554b6 commit ff0f889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeCustomAttributeData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ internal static object[] GetCustomAttributes(RuntimeType type, RuntimeType caTyp
12701270
for (int i = 0; i < pcas.Count; i++)
12711271
result.Add(pcas[i]);
12721272

1273-
while (type != null)
1273+
do
12741274
{
12751275
AddCustomAttributes(ref result, type.GetRuntimeModule(), type.MetadataToken, caType, mustBeInheritable, result);
12761276
mustBeInheritable = true;

0 commit comments

Comments
 (0)