File tree Expand file tree Collapse file tree
mdoc/Mono.Documentation/Updater/Formatters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,17 +16,16 @@ public DocIdFormatter(TypeMap map) : base(map)
1616 slashDocMemberFormatter = new SlashDocMemberFormatter ( map ) ;
1717 }
1818
19- public override string GetDeclaration ( TypeReference tref )
19+ public override string GetDeclaration ( TypeReference tref )
2020 {
21- return DocCommentId . GetDocCommentId ( tref . Resolve ( ) ) ;
21+ return DocCommentId . GetDocCommentId ( tref . Resolve ( ) ) ;
2222 }
23- public override string GetDeclaration ( MemberReference mreference )
23+ public override string GetDeclaration ( MemberReference mreference )
2424 {
25- if ( mreference is AttachedEventReference || mreference is AttachedPropertyReference )
26- {
27- return slashDocMemberFormatter . GetDeclaration ( mreference ) ;
28- }
29- return DocCommentId . GetDocCommentId ( mreference . Resolve ( ) ) ;
25+ string ret = mreference is AttachedEventReference || mreference is AttachedPropertyReference
26+ ? slashDocMemberFormatter . GetDeclaration ( mreference )
27+ : DocCommentId . GetDocCommentId ( mreference . Resolve ( ) ) ;
28+ return ret . Replace ( "|System.Runtime.InteropServices.InAttribute" , string . Empty ) ;
3029 }
3130 }
3231}
You can’t perform that action at this time.
0 commit comments