コード例 #1
0
        private static void GenerateClass(this CodeNamespace codeNamespace, IRecordDescriptor descriptor, string className, out bool hasArrayType)
        {
            var targetClass = new CodeTypeDeclaration(className)
            {
                IsClass        = true,
                TypeAttributes = System.Reflection.TypeAttributes.Public | System.Reflection.TypeAttributes.Sealed
            };

            targetClass.AddProperties(codeNamespace, descriptor, out hasArrayType);

            codeNamespace.Types.Add(targetClass);
        }