Struct GeneratorId
Type safe wrapper around an id for a native or bilingual document generator
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public struct GeneratorId
Constructors
GeneratorId(String)
Creates from a string id.
Declaration
public GeneratorId(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id |
Fields
Default
Id value that can be used to represent the default generator for a file type
Declaration
public static GeneratorId Default
Field Value
| Type | Description |
|---|---|
| GeneratorId |
Properties
Id
The id for this preview type as a string
Declaration
public readonly string Id { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
Equals(Object)
Returns true if the objects have the same id value.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Returns a hash code based on the id value.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
The id as a string
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |
Overrides
System.ValueType.ToString()
Operators
Equality(GeneratorId, GeneratorId)
Returns true if the two ids have the same Id value.
Declaration
public static bool operator ==(GeneratorId first, GeneratorId second)
Parameters
| Type | Name | Description |
|---|---|---|
| GeneratorId | first | |
| GeneratorId | second |
Returns
| Type | Description |
|---|---|
| Boolean |
Inequality(GeneratorId, GeneratorId)
Returns true if the two ids have different Id values.
Declaration
public static bool operator !=(GeneratorId first, GeneratorId second)
Parameters
| Type | Name | Description |
|---|---|---|
| GeneratorId | first | |
| GeneratorId | second |
Returns
| Type | Description |
|---|---|
| Boolean |