You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@ -63,23 +63,7 @@ namespace System.Reflection
|
||||
protected ParameterInfo () {
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
Type elementType = ClassImpl;
|
||||
while (elementType.HasElementType) {
|
||||
elementType = elementType.GetElementType();
|
||||
}
|
||||
bool useShort = elementType.IsPrimitive || ClassImpl == typeof(void)
|
||||
|| ClassImpl.Namespace == MemberImpl.DeclaringType.Namespace;
|
||||
string result = useShort
|
||||
? ClassImpl.Name
|
||||
: ClassImpl.FullName;
|
||||
// MS.NET seems to skip this check and produce an extra space for return types
|
||||
if (!IsRetval) {
|
||||
result += ' ';
|
||||
result += NameImpl;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public override string ToString() => ClassImpl.FormatTypeName() + " " + Name;
|
||||
|
||||
internal static void FormatParameters (StringBuilder sb, ParameterInfo[] p, CallingConventions callingConvention, bool serialization)
|
||||
{
|
||||
|
Reference in New Issue
Block a user