Skip to content

Commit

Permalink
support for generic type "rename".
Browse files Browse the repository at this point in the history
  • Loading branch information
tesar-tech committed Dec 9, 2024
1 parent 7025b34 commit b58f17a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ private IReadOnlyList<ApiDocsForComponentProperty> Properties
bool success = ComponentsApiDocsSource.Instance.Components.TryGetValue( typeInheritFrom, out var component );
if ( !success || component is null )
continue;
string typeNameWoutGeneric = component.TypeName.Split( '<' ).First();//because inside cref (now inside <strong> it is wout the generic part (SomCom instead of SomCom<TValue>))
tempList.AddRange( component.OwnProperties.Select( x => new ApiDocsForComponentProperty( x.Name, x.Type, x.TypeName, x.DefaultValueString,
x.Summary.Replace( component.TypeName, this.TypeName ),
x.Remarks.Replace( component.TypeName, this.TypeName ),
x.Summary.Replace( typeNameWoutGeneric, this.TypeName ),
x.Remarks.Replace( typeNameWoutGeneric, this.TypeName ),
x.IsBlazoriseEnum ) ) );
}
properties = tempList;
Expand Down

0 comments on commit b58f17a

Please sign in to comment.