Exemple #1
0
        private string GetObjectType(BASE_ID typeId)
        {
            switch (typeId)
            {
            case BASE_ID.BOOLEAN_TYPE:
                return(ObjectType = "bool");

            case BASE_ID.INTEGER_TYPE:
                return(ObjectType = "int");

            case BASE_ID.FLOATING_TYPE:
                return(ObjectType = "float");

            case BASE_ID.CHARACTER_TYPE:
                return(ObjectType = "char");

            case BASE_ID.STRING_TYPE:
                return(ObjectType = "string");

            case BASE_ID.DICT_TYPE:
                return(ObjectType = "System.Collections.Generic.Dictionnary<string, dynamic>");

            case BASE_ID.ANY_TYPE:
                return(ObjectType = "dynamic");

            case BASE_ID.MATRIX_TYPE:
                return(ObjectType = "MathNet.Numerics.LinearAlgebra.Matrix<double>");

            case BASE_ID.RESSOURCE_TYPE:
                return(ObjectType = "string");

            default:
                if (_registeredClasses.ContainsKey((uint)typeId))
                {
                    return(_registeredClasses[(uint)typeId]);
                }
                return("object");
            }
        }
 /// <summary>
 /// Find basic an entity from its id
 /// </summary>
 /// <param name="definition_uid">Identifier of the basic entity</param>
 /// <returns>Basic entity to find</returns>
 public IDefinition Find(BASE_ID definition_uid)
 {
     return(Find((uint)definition_uid));
 }