Struct SegmentId
Type-safe wrapper around a segment identifier
Inherited Members
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
GetHashCode()
Hash code for the id value
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
ToString()
The id as a string
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
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 |