Search Results for

    Show / Hide Table of Contents

    Class IdGenerator

    Creates unique numeric IDs for all the elements in different FileSkeleton collection.

    Inheritance
    System.Object
    IdGenerator
    Namespace: Sdl.Core.Bcm.BcmModel.Skeleton
    Assembly: Sdl.Core.Bcm.BcmModel.dll
    Syntax
    public class IdGenerator : Object

    Constructors

    IdGenerator()

    Declaration
    public IdGenerator()

    Methods

    GetNext<T>()

    Gets the next ID.

    Declaration
    public int GetNext<T>()
        where T : SkeletonItem
    Returns
    Type Description
    System.Int32

    The next ID in the sequence.

    Type Parameters
    Name Description
    T

    Update<T>(T)

    Updates the ID sequence with the ID of the specified item.

    Declaration
    public void Update<T>(T item)
        where T : SkeletonItem
    Parameters
    Type Name Description
    T item

    The item.

    Type Parameters
    Name Description
    T

    UpdateFrom(Document)

    Updates the ID sequence with the values from the specified Document.

    Declaration
    public void UpdateFrom(Document document)
    Parameters
    Type Name Description
    Document document

    The Document.

    UpdateFrom(FileSkeleton)

    Updates the ID sequence with the values from the specified FileSkeleton.

    Declaration
    public void UpdateFrom(FileSkeleton skeleton)
    Parameters
    Type Name Description
    FileSkeleton skeleton

    The FileSkeleton.

    On this page

    Back to top Generated by DocFX