public ScriptingParameter(ScriptingParameterTypes type, string name = "", object value = null, string description = "") { Type = type; Name = name; Value = value; Description = description; }
private string GetObjectType(ScriptingParameterTypes type) { switch (type) { case ScriptingParameterTypes.Int: return("int"); case ScriptingParameterTypes.Double: return("double"); case ScriptingParameterTypes.Bool: return("bool"); case ScriptingParameterTypes.String: return("string"); default: return(string.Empty); } }