Click or drag to resize

M_Object Class

Generic representation of an object that can be inherited to allow some UI to display very different items. Currently used internally by Ticup. To be used externally, an Interface should be created.
Inheritance Hierarchy
SystemObject
  MicaSystems.UtilsM_Object

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
[SerializableAttribute]
public abstract class M_Object : IJsonDeserializableRoot

The M_Object type exposes the following members.

Constructors
  NameDescription
Protected methodM_Object
Top
Methods
  NameDescription
Public methodCompare
Compates this object to another. Returns True if similar.
Public methodDeserialized
Method called after a JSON deserialization.
Public methodEquals
Compares this object to another object.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodM_GetChildren
Gets the children collection of this object. Will return an empty collection by default.
Public methodM_GetCreationDateTime
Gets the creation time of this object.
Public methodM_GetCreationDateTimeOffset
Gets the creation time of this object.
Public methodM_GetDescription
Gets the description of this object. Will return an empty string by default.
Public methodM_GetGroupName
Gets the name of the group under which this object should be displayed.

Only used when the parent returns true for M_SubNodesUseGroup.

Will return an empty string by default.

Public methodM_GetIcon
Project relative image path OR image resource name OR any file path (from which icon will be taken).
Public methodM_GetIconColor
Gets the icon color code. (Ex : for font-awesome icons) Will return an empty string by default.
Public methodM_GetOrderKey
Gets a value used to order objects. Will return the result of M_GetTitle by default.
Public methodM_GetParent
Gets the parent of this object in the object tree. Will return null by default.
Public methodM_GetTitle
Gets the title of this object. Will return a descriptive text with the unique guid, type, and creation time of this object by default.
Public methodM_GetTitleColor
Gets the title color of this object. Will return Color.Black by default.
Public methodM_GetUniqueGuid
Gets the unique id of this object. Will return a generated guid by default.
Public methodM_IsEnabled
Gets a value indicating whether this object should be enabled. Will return true by default.
Public methodM_IsSelected
Gets a value indicating whether this object should be selected. Will return false by default.
Public methodM_IsVisible
Gets a value indicating whether this object should be visible. Will return true by default.
Public methodM_SubNodesUseGroup
Gets a value indicating whether the children of this object should be displayed by group. Will return false by default.
Public methodM_UseIndexAsOrderKey
Gets a value indicating whether the UI should use the index of this object among objects of the same collection instead of M_GetOrderKey.
Public methodToString
Gets a description of this object for debug. Will return the result of M_GetTitle by default.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also