Skip to content

Commit

Permalink
Check if there's an Easier way to use InheritDoc
Browse files Browse the repository at this point in the history
Verify Different way of using InheritDoc will allow usage as attribute header.
  • Loading branch information
H-Yeo committed Feb 5, 2024
1 parent a1e5a1f commit cf03fb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public partial class SqlBatchCommand : System.Data.Common.DbBatchCommand
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommand.xml' path='docs/members[@name="SqlBatchCommand"]/DbParameterCollection/*'/>
protected override System.Data.Common.DbParameterCollection DbParameterCollection => throw null;
}
/// <inheritdoc cref="System.Data.Common.DbBatchCommandCollection"/>
/// <include file='../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommandCollection.xml' path='docs/members[@name="SqlBatchCommandCollection"]/SqlBatchCommandCollection/*'/>
public class SqlBatchCommandCollection : System.Data.Common.DbBatchCommandCollection, System.Collections.Generic.IList<SqlBatchCommand>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Microsoft.Data.SqlClient
{
/// <inheritdoc cref="DbBatchCommandCollection"/>
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBatchCommandCollection.xml' path='docs/members[@name="SqlBatchCommandCollection"]/SqlBatchCommandCollection/*'/>
public class SqlBatchCommandCollection : DbBatchCommandCollection, IList<SqlBatchCommand>
{
Expand Down Expand Up @@ -76,7 +77,6 @@ SqlBatchCommand IList<SqlBatchCommand>.this[int index]
/// <inheritdoc />
protected override void SetBatchCommand(int index, DbBatchCommand batchCommand)
=> _list[index] = (SqlBatchCommand)batchCommand;

}
}

Expand Down

0 comments on commit cf03fb0

Please sign in to comment.