@@ -39,8 +39,8 @@ public class RelatedTopicCollection : KeyedCollection<string, NamedTopicCollecti
3939 /// The constructor requires a reference to a <see cref="Topic"/> instance, which the related topics are to be associated
4040 /// with. This will be used when setting incoming relationships. In addition, a <see cref="RelatedTopicCollection"/> may
4141 /// be set as <paramref name="isIncoming"/> if it is specifically intended to track incoming relationships; if this is not
42- /// set, then it will not allow incoming relationships to be set via the internal
43- /// <see cref= "SetTopic(String, Topic, Boolean, Boolean? )"/> overload.
42+ /// set, then it will not allow incoming relationships to be set via the internal <see cref=
43+ /// "SetTopic(String, Topic, Boolean? , Boolean)"/> overload.
4444 /// </remarks>
4545 public RelatedTopicCollection ( Topic parent , bool isIncoming = false ) : base ( StringComparer . OrdinalIgnoreCase ) {
4646 _parent = parent ;
@@ -124,6 +124,17 @@ public void ClearTopics(string relationshipKey) {
124124 /*==========================================================================================================================
125125 | METHOD: REMOVE TOPIC
126126 \-------------------------------------------------------------------------------------------------------------------------*/
127+ /// <summary>
128+ /// Removes a specific <see cref="Topic"/> object associated with a specific relationship key.
129+ /// </summary>
130+ /// <param name="relationshipKey">The key of the relationship.</param>
131+ /// <param name="topicKey">The key of the topic to be removed.</param>
132+ /// <returns>
133+ /// Returns true if the <see cref="Topic"/> is removed; returns false if either the relationship key or the
134+ /// <see cref="Topic"/> cannot be found.
135+ /// </returns>
136+ public bool RemoveTopic ( string relationshipKey , string topicKey ) => RemoveTopic ( relationshipKey , topicKey ) ;
137+
127138 /// <summary>
128139 /// Removes a specific <see cref="Topic"/> object associated with a specific relationship key.
129140 /// </summary>
@@ -136,7 +147,7 @@ public void ClearTopics(string relationshipKey) {
136147 /// Returns true if the <see cref="Topic"/> is removed; returns false if either the relationship key or the
137148 /// <see cref="Topic"/> cannot be found.
138149 /// </returns>
139- public bool RemoveTopic ( string relationshipKey , string topicKey , bool isIncoming = false ) {
150+ internal bool RemoveTopic ( string relationshipKey , string topicKey , bool isIncoming = false ) {
140151
141152 /*------------------------------------------------------------------------------------------------------------------------
142153 | Validate contracts
@@ -227,7 +238,11 @@ public bool RemoveTopic(string relationshipKey, Topic topic, bool isIncoming = f
227238 /// </remarks>
228239 /// <param name="relationshipKey">The key of the relationship.</param>
229240 /// <param name="topic">The topic to be added, if it doesn't already exist.</param>
230- public void SetTopic ( string relationshipKey , Topic topic ) => SetTopic ( relationshipKey , topic , false ) ;
241+ /// <param name="isDirty">
242+ /// Optionally forces the collection to a <see cref="NamedTopicCollection.IsDirty"/> state, assuming the topic was set.
243+ /// </param>
244+ public void SetTopic ( string relationshipKey , Topic topic , bool ? isDirty = null )
245+ => SetTopic ( relationshipKey , topic , isDirty , false ) ;
231246
232247 /// <summary>
233248 /// Ensures that an incoming <see cref="Topic"/> is associated with the specified relationship key.
@@ -243,7 +258,7 @@ public bool RemoveTopic(string relationshipKey, Topic topic, bool isIncoming = f
243258 /// <param name="isDirty">
244259 /// Optionally forces the collection to a <see cref="NamedTopicCollection.IsDirty"/> state, assuming the topic was set.
245260 /// </param>
246- public void SetTopic ( string relationshipKey , Topic topic , bool isIncoming , bool ? isDirty = null ) {
261+ internal void SetTopic ( string relationshipKey , Topic topic , bool ? isDirty , bool isIncoming ) {
247262
248263 /*------------------------------------------------------------------------------------------------------------------------
249264 | Validate contracts
0 commit comments