Skip to main content
Namespace: OpenTD
Assembly: OpenTD.dll
A submodel name. Implicitly converts to/from string. Automatically converts to uppercase.

Inheritance

object ← SubmodelNameData

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

SubmodelNameData()

Initializes a new instance of the SubmodelNameData class with default thermal submodel name.

SubmodelNameData(string)

Initializes a new instance of the SubmodelNameData class.

Parameters

name string The submodel name.

Properties

Name

Property Value

string

Methods

Check()

Equals(object)

Determines whether the specified object is equal to the current object.

Parameters

obj object The object to compare with the current object.

Returns

bool true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

Returns

int A hash code for the current object.

ToString()

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Operators

operator ==(SubmodelNameData, SubmodelNameData)

Parameters

first SubmodelNameData second SubmodelNameData

Returns

bool

implicit operator SubmodelNameData(string)

Parameters

submodelName string

Returns

SubmodelNameData

implicit operator string(SubmodelNameData)

Parameters

s SubmodelNameData

Returns

string

operator !=(SubmodelNameData, SubmodelNameData)

Parameters

first SubmodelNameData second SubmodelNameData

Returns

bool