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
    object
    TuContext
    Inherited Members
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    public class TuContext

    Constructors

    TuContext()

    Initializes a new instance with default values.

    Declaration
    public TuContext()

    TuContext(long, long)

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

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

    The source hash value of the preceding translation unit.

    long 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
    [DataMember]
    public long Context1 { get; set; }
    Property Value
    Type Description
    long

    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
    [DataMember]
    public long Context2 { get; set; }
    Property Value
    Type Description
    long

    LeftSource

    Deprecated

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

    LeftTarget

    Deprecated

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

    Segment1

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

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

    Segment2

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

    Declaration
    [DataMember]
    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
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

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

    Overrides
    object.Equals(object)

    GetHashCode()

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

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    In this article
    • Constructors
      • TuContext()
      • TuContext(long, long)
    • Properties
      • Context1
      • Context2
      • LeftSource
      • LeftTarget
      • Segment1
      • Segment2
    • Methods
      • Equals(object)
      • GetHashCode()
    Back to top Generated by DocFX