Search Results for

    Show / Hide Table of Contents

    Struct SegmentId

    Type-safe wrapper around a segment identifier

    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Sdl.FileTypeSupport.Framework.NativeApi
    Assembly: Sdl.FileTypeSupport.Framework.Core.dll
    Syntax
    public struct SegmentId

    Constructors

    SegmentId(long)

    Convenience construction from a number. The string id is generated by calling ToString() on the number.

    Declaration
    public SegmentId(long number)
    Parameters
    Type Name Description
    long number

    The segment id as a number

    SegmentId(string)

    Construction from a string representation of the id

    Declaration
    public SegmentId(string id)
    Parameters
    Type Name Description
    string id

    The segment id as a string

    Properties

    Id

    The actual id as a string

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    Methods

    Equals(object)

    Compares the id values.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Hash code for the id value

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToString()

    The id as a string

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(SegmentId, SegmentId)

    Compares the id values.

    Declaration
    public static bool operator ==(SegmentId first, SegmentId second)
    Parameters
    Type Name Description
    SegmentId first
    SegmentId second
    Returns
    Type Description
    bool

    operator !=(SegmentId, SegmentId)

    Compares the id values.

    Declaration
    public static bool operator !=(SegmentId first, SegmentId second)
    Parameters
    Type Name Description
    SegmentId first
    SegmentId second
    Returns
    Type Description
    bool
    In this article
    • Constructors
      • SegmentId(long)
      • SegmentId(string)
    • Properties
      • Id
    • Methods
      • Equals(object)
      • GetHashCode()
      • ToString()
    • Operators
      • operator ==(SegmentId, SegmentId)
      • operator !=(SegmentId, SegmentId)
    Back to top Generated by DocFX