コード例 #1
0
        public static string WriteObjectTypeGuids(this Application app)
        {
            var str = new StringBuilder();

            str.AppendLine($"\t{WriterUtils.GetClass("ObjectTypeGuids")}");
            str.AppendLine("\t{");
            foreach (var obj in app.Objects)
            {
                str.AppendLine($"\t\t{WriterUtils.GetString(obj)}");
            }
            str.AppendLine("\t}");
            return(str.ToString());
        }
コード例 #2
0
        public static string WriteObjectGuids(this Application app)
        {
            var str = new StringBuilder();

            foreach (var obj in classWriter.FilterClassNames(app.Objects))
            {
                str.AppendLine($"\t{WriterUtils.GetClass(WriterUtils.GetFieldGuidClass(obj))}");
                str.AppendLine("\t{");
                foreach (var field in obj.Fields)
                {
                    str.AppendLine($"\t\t{WriterUtils.GetString(field)}");
                }
                str.AppendLine("\t}");
            }
            return(str.ToString());
        }