Original file: C# to C++ / Qt T4 generator cc.Name == p.PropertyType.Name); if(contains) WriteLine(“#include “); } } private void GenerateFromEnum(Type t, string objectName, bool useQTTypes) { FieldInfo[] memberInfos = t.GetFields(BindingFlags.Public | BindingFlags.Static); WriteLine(“enum class ” + objectName + “”); WriteLine(“{“); for(int i = 0; i < memberInfos.Length; i++){ Write("\t" + memberInfos[i].Name + " = " […]
Recent Comments