Skip to content

Commit

Permalink
Merge pull request #2972 from FirelyTeam/feature/2965-make-removealln…
Browse files Browse the repository at this point in the history
…oninheritableextensions-public

Make RemoveAllNonInheritableExtensions public
  • Loading branch information
mmsmits authored Nov 20, 2024
2 parents 16a2c29 + 40167ed commit cf1e39a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ public static void RemoveAllConstrainedByDiffExtensions<T>(this IEnumerable<T> e
}
}


internal static void RemoveAllNonInheritableExtensions(this Element element)
/// <summary>
/// This extension removes all non-inheritable extensions from the specified element definition and all it's child objects.
/// Non-inheritable extensions are extensions that should not be inherited by derived profiles.
/// </summary>
/// <param name="element"></param>
public static void RemoveAllNonInheritableExtensions(this Element element)
{
if (element == null) { throw Error.ArgumentNull(nameof(element)); }
element.RemoveNonInheritableExtensions();
Expand Down

0 comments on commit cf1e39a

Please sign in to comment.