LogicalChildOfRoot.RenameLogicalElements

LogicalChildOfRoot.RenameLogicalElements<T> method

Renames all the unnamed and duplicate name items in the collection so all the items have a unique valid name.

public static void RenameLogicalElements<T>(IEnumerable<T> collection, string namePrefix)
    where T : LogicalChildOfRoot
ParameterDescription
TAny LogicalChildOfRoot derived type.
collectionThe source collection.
namePrefixThe name prefix to use.

See Also