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. |
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. |
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. |
Methods
Equals(Object)
Compares the id values.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Hash code for the id value
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Overrides
System.ValueType.GetHashCode()
ToString()
The id as a string
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
Overrides
System.ValueType.ToString()
Operators
Equality(SegmentId, SegmentId)
Compares the id values.
Declaration
public static bool operator ==(SegmentId first, SegmentId second)
Parameters
Returns
Type | Description |
---|---|
System. |
Inequality(SegmentId, SegmentId)
Compares the id values.
Declaration
public static bool operator !=(SegmentId first, SegmentId second)
Parameters
Returns
Type | Description |
---|---|
System. |