public QProperty(QAccessLimit accessLimit, QCompileType compileType, QTypeDefine type, string name, string getReturnCode, string comment = null) { AccessLimit = accessLimit; Type = QTypeUtil.GetCodeType(type); CompileType = compileType; Name = name; GetReturnCode = getReturnCode; Comment = comment; }
public Property(QAccessLimit accessLimit, QCompileType compileType, QTypeDefine type, string name, string getReturnCode, string comment = null) { this.AccessLimit = accessLimit; this.Type = TypeUtil.GetCodeType(type); this.CompileType = compileType; this.Name = name; this.GetReturnCode = getReturnCode; this.Comment = comment; }
public QVariable(QAccessLimit accessLimit, QCompileType compileType, QTypeDefine type, string name, string value, string comment = null) { AccessLimit = accessLimit; CompileType = compileType; Name = name; Value = value; Type = QTypeUtil.GetCodeType(type); CompileType = compileType; Comment = comment; }
public QVariable(QAccessLimit accessLimit, QCompileType compileType, QTypeDefine type, string name, string value, string comment = null) { this.AccessLimit = accessLimit; this.CompileType = compileType; this.Name = name; this.Value = value; this.Type = TypeUtil.GetCodeType(type); this.CompileType = compileType; this.Comment = comment; }
public static CodeTypeReference GetCodeType(QTypeDefine type) { CodeTypeReference retType = null; switch (type) { case QTypeDefine.Char: retType = new CodeTypeReference(typeof(System.Char)); break; case QTypeDefine.Double: retType = new CodeTypeReference(typeof(System.Double)); break; case QTypeDefine.Float: retType = new CodeTypeReference(typeof(System.Decimal)); break; case QTypeDefine.Int: retType = new CodeTypeReference(typeof(System.Int32)); break; case QTypeDefine.UInt: retType = new CodeTypeReference(typeof(System.UInt32)); break; case QTypeDefine.Short: retType = new CodeTypeReference(typeof(System.Int16)); break; case QTypeDefine.UShort: retType = new CodeTypeReference(typeof(System.UInt16)); break; case QTypeDefine.String: retType = new CodeTypeReference(typeof(System.String)); break; } return(retType); }