Search Results for

    Show / Hide Table of Contents

    Class TuContext

    Encapsulates information about the context of a translation unit relative to other translation units within a document.

    Inheritance
    System.Object
    TuContext
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class TuContext

    Constructors

    TuContext()

    Initializes a new instance with default values.

    Declaration
    public TuContext()

    TuContext(Int64, Int64)

    Initializes a new instance of the TuContext class with the specified hash values.

    Declaration
    public TuContext(long context1, long context2)
    Parameters
    Type Name Description
    System.Int64 context1

    The source hash value of the preceding translation unit.

    System.Int64 context2

    The target hash value of the preceding translation unit, or the source hash value of the following translation unit.

    Properties

    Context1

    Gets or sets the source hash value of the preceding translation unit relative to this instance.

    Declaration
    public long Context1 { get; set; }
    Property Value
    Type Description
    System.Int64

    Context2

    Gets or sets the target hash value of the preceding translation unit relative to this instance, or the source hash value of the following translation unit relative to this instance.

    Declaration
    public long Context2 { get; set; }
    Property Value
    Type Description
    System.Int64

    LeftSource

    Deprecated

    Declaration
    [Obsolete]
    public long LeftSource { get; set; }
    Property Value
    Type Description
    System.Int64

    LeftTarget

    Deprecated

    Declaration
    [Obsolete]
    public long LeftTarget { get; set; }
    Property Value
    Type Description
    System.Int64

    Segment1

    When transferring context content, provides the content used to generate Context1

    Declaration
    public Segment Segment1 { get; set; }
    Property Value
    Type Description
    Segment

    Segment2

    When transferring context content, provides the content used to generate Context2

    Declaration
    public Segment Segment2 { get; set; }
    Property Value
    Type Description
    Segment

    Methods

    Equals(Object)

    System.Object.Equals(object)
    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The object to compare with the current object.

    Returns
    Type Description
    System.Boolean

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

    Simple hashcode, we don't care that much if there are some conflicts

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    On this page

    Back to top Generated by DocFX