Struct TableReference
It is possible to reference a table via either the table collection name of the table collection 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
TableCollectionName
Declaration
public string TableCollectionName { get; }
Property Value
TableCollectionNameGuid
Declaration
public Guid TableCollectionNameGuid { get; }
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 tableCollectionNameGuid)
Parameters
Type |
Name |
Description |
Guid |
tableCollectionNameGuid |
The table collection name guid.
|
Returns
Implicit(String to TableReference)
Declaration
public static implicit operator TableReference(string tableCollectionName)
Parameters
Type |
Name |
Description |
String |
tableCollectionName |
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