Search Results for

    Show / Hide Table of Contents

    Struct SegmentId

    Type-safe wrapper around a segment identifier

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

    Constructors

    SegmentId(Int64)

    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
    System.Int64 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
    System.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
    System.String

    Methods

    Equals(Object)

    Compares the id values.

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

    GetHashCode()

    Hash code for the id value

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

    ToString()

    The id as a string

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

    Operators

    Equality(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
    System.Boolean

    Inequality(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
    System.Boolean

    On this page

    • Constructors
      • SegmentId(Int64)
      • SegmentId(String)
    • Properties
      • Id
    • Methods
      • Equals(Object)
      • GetHashCode()
      • ToString()
    • Operators
      • Equality(SegmentId, SegmentId)
      • Inequality(SegmentId, SegmentId)
    Back to top Generated by DocFX