Browse Source

Hide compiler-generated delegates used for ref/out callsites

pull/1165/head
Siegfried Pammer 7 years ago
parent
commit
91c59dd5cf
  1. 2
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

2
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -231,6 +231,8 @@ namespace ICSharpCode.Decompiler.CSharp @@ -231,6 +231,8 @@ namespace ICSharpCode.Decompiler.CSharp
return true;
if (settings.AnonymousTypes && type.IsAnonymousType())
return true;
if (settings.Dynamic && type.IsDelegate() && type.Name.StartsWith("<>A{", StringComparison.Ordinal))
return true;
}
if (settings.ArrayInitializers && settings.SwitchStatementOnString && type.Name.StartsWith("<PrivateImplementationDetails>", StringComparison.Ordinal))
return true;

Loading…
Cancel
Save