(Inherits from MfObject)
Represents type declarations: class types, array types, enumeration types, type parameters, generic type definitions of Mini-Framework.
Name |
Description |
|
Creates a MfType instance with type information for obj. |
||
Creates a MfType instance with type information for obj and assigns TypeName to TypeName Property. |
Name |
Description |
|
Gets the Class name as a string var for the current type. |
||
Gets if the type is MfBool. |
||
Gets if the type is MfBigInt. |
||
Gets if the type is MfByte. |
||
Gets if the type is MfChar. |
||
IsEmpty Gets if the current MfType is Empty or null |
||
IsEnum Gets if the type is MfEnum. |
||
IsEnumItem Gets if the type is MfEnum.EnumItem. |
||
Gets if the type is MfFloat |
||
Gets if the type is MfInteger. |
||
Gets if the type is MfInt16. |
||
Gets if the type is MfInteger. |
||
Gets if the type is MfInt64. |
||
Gets if the current Type is integer |
||
Gets if the type is MfObject. |
||
Gets if the current Type is numeric |
||
Gets if the type is MfSByte. |
||
Gets if the type is MfString. |
||
Gets if the type is MfUInt16. |
||
Gets if the type is MfUInt32. |
||
Gets if the type is MfUInt64. |
||
Gets the TypeCode as a string var for the current type. |
||
Gets the TypeName as a string var for the current type. |
Name |
Description |
|
Compares the current instance of MfType with another instance of MfType and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. Overrides MfObject.CompareTo() |
||
Compares MfType instance to current instance to see if they are the same. |
||
Compares MfType objA and objB to see if they are the same. |
||
Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject. |
||
Formats a string var that contains the Inheritance Path for an object represented by obj. |
||
Get if the current class is an instance. Inherited from MfObject. |
||
Gets if the type for the MfType Instance is an Object or MfObject. |
||
Creates a shallow copy of the current MfObject instance. Inherited from MfObject. |
||
Gets a string containing the TypeName of the current type. Overrides MfObject.ToString(). |
||
Returns the type of the given Object |
||
Gets a string var of class or type name. |
GetIntNumber(obj) {
if (MfNull.IsNull(value)) {
ex := new MfArgumentNullException("obj")
ex.SetProp(A_LineFile, A_LineNumber, A_ThisFunc)
throw ex
}
T := new MfType(obj)
if (T.IsIntegerNumber)
{
return obj.Value
}
else
{
msg := MfEnvironment.Instance.GetResourceString("InvalidCastException_ValueToInteger")
ex := new MfArgumentException(msg, "obj")
ex.SetProp(A_LineFile, A_LineNumber, A_ThisFunc)
throw ex
}
}