Class CategoryNameId
Data class used to set and save a category name pair as an id
Inheritance
CategoryNameId
Assembly: cs.temp.dll.dll
Syntax
public abstract class CategoryNameId : IEquatable<CategoryNameId>
Constructors
CategoryNameId()
Declaration
protected CategoryNameId()
CategoryNameId(String, String, Boolean)
Declaration
protected CategoryNameId(string category, string name, bool custom = false)
Parameters
Fields
Category
Declaration
Field Value
Custom
Flag used by the editor if to lookup the category name values in the database or not
Declaration
Field Value
Name
Declaration
Field Value
Properties
defaultCategory
Default string value for Category
Declaration
public static string defaultCategory { get; }
Property Value
defaultName
Default string value for Name
Declaration
public static string defaultName { get; }
Property Value
isDefaultCategory
Check if this Id uses the default value for Category (Category = "None")
Declaration
public bool isDefaultCategory { get; }
Property Value
isDefaultId
Check if this Id uses the default values for Category and Name (Category = "None", Name = "None")
Declaration
public bool isDefaultId { get; }
Property Value
isDefaultName
Check if this Id uses the default value for Name (Name = "None")
Declaration
public bool isDefaultName { get; }
Property Value
Methods
Equals(CategoryNameId)
Declaration
public bool Equals(CategoryNameId other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
String |
Pretty string
|
Operators
Equality(CategoryNameId, CategoryNameId)
Declaration
public static bool operator ==(CategoryNameId a, CategoryNameId b)
Parameters
Returns
Inequality(CategoryNameId, CategoryNameId)
Declaration
public static bool operator !=(CategoryNameId a, CategoryNameId b)
Parameters
Returns