Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,6 @@ public static MethodDesc FindMethodOnTypeWithMatchingTypicalMethod(this TypeDesc
return null;
}

/// <summary>
/// Retrieves the namespace qualified name of a <see cref="DefType"/>.
/// </summary>
public static ReadOnlySpan<byte> GetFullName(this DefType metadataType)
{
ReadOnlySpan<byte> ns = metadataType.Namespace;
return ns.Length > 0 ? ns.Append("."u8, metadataType.Name) : metadataType.Name;
}

/// <summary>
/// Retrieves all methods on a type, including the ones injected by the type system context.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public override MethodDesc GetFinalizer()
if (impl == null)
{
// TODO: invalid input: the type doesn't derive from our System.Object
throw new TypeLoadException(System.Text.Encoding.UTF8.GetString(this.GetFullName()));
ThrowHelper.ThrowTypeLoadException(this);
}

if (impl.OwningType != objectType)
Expand Down
Loading