M_Object Class |
Namespace: MicaSystems.Utils
[SerializableAttribute] public abstract class M_Object : IJsonDeserializableRoot
The M_Object type exposes the following members.
| Name | Description | |
|---|---|---|
| Compare |
Compates this object to another. Returns True if similar.
| |
| Deserialized |
Method called after a JSON deserialization.
| |
| Equals |
Compares this object to another object.
(Overrides ObjectEquals(Object).) | |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.) | |
| M_GetChildren |
Gets the children collection of this object.
Will return an empty collection by default.
| |
| M_GetCreationDateTime |
Gets the creation time of this object.
| |
| M_GetCreationDateTimeOffset |
Gets the creation time of this object.
| |
| M_GetDescription |
Gets the description of this object. Will return an empty string by default.
| |
| M_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. | |
| M_GetIcon |
Project relative image path OR image resource name OR any file path
(from which icon will be taken).
| |
| M_GetIconColor |
Gets the icon color code. (Ex : for font-awesome icons)
Will return an empty string by default.
| |
| M_GetOrderKey |
Gets a value used to order objects.
Will return the result of M_GetTitle by default.
| |
| M_GetParent |
Gets the parent of this object in the object tree.
Will return null by default.
| |
| M_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.
| |
| M_GetTitleColor |
Gets the title color of this object. Will return Color.Black by default.
| |
| M_GetUniqueGuid |
Gets the unique id of this object. Will return a generated guid by default.
| |
| M_IsEnabled |
Gets a value indicating whether this object should be enabled.
Will return true by default.
| |
| M_IsSelected |
Gets a value indicating whether this object should be selected.
Will return false by default.
| |
| M_IsVisible |
Gets a value indicating whether this object should be visible.
Will return true by default.
| |
| M_SubNodesUseGroup |
Gets a value indicating whether the children of this object
should be displayed by group. Will return false by default.
| |
| M_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.
| |
| ToString |
Gets a description of this object for debug.
Will return the result of M_GetTitle by default.
(Overrides ObjectToString.) |
| Name | Description | |
|---|---|---|
| AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
| EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
| EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
| GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
| IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
| IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
| Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |