Search Results for

    Show / Hide Table of Contents

    Class IdGenerator

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

    Inheritance
    Object
    IdGenerator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM.Skeleton
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public class IdGenerator

    Constructors

    IdGenerator()

    Declaration
    public IdGenerator()

    Methods

    GetNext<T>()

    Gets the next ID.

    Declaration
    public int GetNext<T>()
        where T : SkeletonItem
    Returns
    Type Description
    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(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.

    UpdateFrom<T>(SkeletonCollection<T>)

    Updates the ID sequence with the values from the specified SkeletonCollection

    Declaration
    public void UpdateFrom<T>(SkeletonCollection<T> skeletonCollection)
        where T : SkeletonItem
    Parameters
    Type Name Description
    SkeletonCollection<T> skeletonCollection
    Type Parameters
    Name Description
    T
    In this article
    Back to top Generated by DocFX