Struct FileTypeDefinitionId
Type safe wrapper around a file type file type definition ID.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Sdl.FileTypeSupport.Framework
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public struct FileTypeDefinitionId
Constructors
FileTypeDefinitionId(String)
Create from a string ID.
Declaration
public FileTypeDefinitionId(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id |
Properties
Id
The ID for this file type definition as a string.
Declaration
public readonly string Id { get; }
Property Value
| Type | Description |
|---|---|
| System.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 |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.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 |
|---|---|
| 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(FileTypeDefinitionId, FileTypeDefinitionId)
Returns true if the two IDs have the same Id value.
Declaration
public static bool operator ==(FileTypeDefinitionId first, FileTypeDefinitionId second)
Parameters
| Type | Name | Description |
|---|---|---|
| FileTypeDefinitionId | first | |
| FileTypeDefinitionId | second |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(FileTypeDefinitionId, FileTypeDefinitionId)
Returns true if the two IDs have different Id values.
Declaration
public static bool operator !=(FileTypeDefinitionId first, FileTypeDefinitionId second)
Parameters
| Type | Name | Description |
|---|---|---|
| FileTypeDefinitionId | first | |
| FileTypeDefinitionId | second |
Returns
| Type | Description |
|---|---|
| System.Boolean |