Struct TableReference
It is possible to reference a table via either the table name of the table name guid.
The TableReference provides a flexible way to reference via either of these methods and also includes editor functionality.
Syntax
[Serializable]
public struct TableReference : ISerializationCallbackReceiver, IEquatable<TableReference>
Properties
ReferenceType
Declaration
public TableReference.Type ReferenceType { get; }
Property Value
TableName
Declaration
public string TableName { get; }
Property Value
TableNameGuid
Declaration
public Guid TableNameGuid { get; set; }
Property Value
Methods
Equals(Object)
Compare the TableReference to another TableReference.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Equals(TableReference)
Compare 2 TableReferences.
Declaration
public bool Equals(TableReference other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
OnAfterDeserialize()
Converts the serializable string into the correct reference type.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Converts the reference into a serializable string.
Declaration
public void OnBeforeSerialize()
ToString()
Returns a string representation.
Declaration
public override string ToString()
Returns
Overrides
Operators
Implicit(Guid to TableReference)
Declaration
public static implicit operator TableReference(Guid tableNameGuid)
Parameters
Type |
Name |
Description |
Guid |
tableNameGuid |
The table name guid.
|
Returns
Implicit(String to TableReference)
Declaration
public static implicit operator TableReference(string tableName)
Parameters
Type |
Name |
Description |
String |
tableName |
The name of the table.
|
Returns
Implicit(TableReference to Guid)
Declaration
public static implicit operator Guid(TableReference tableReference)
Parameters
Returns
Implicit(TableReference to String)
Declaration
public static implicit operator string (TableReference tableReference)
Parameters
Returns