//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.1.4322.573 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace GeneratedCode { public class CodeCompileUnit { // Creates the code for this code element. public static System.CodeDom.CodeCompileUnit CreateDom() { System.CodeDom.CodeCompileUnit compileUnit = new System.CodeDom.CodeCompileUnit(); compileUnit.Namespaces.AddRange(new System.CodeDom.CodeNamespace[] { nGineer_CodeNamespace0.CreateDom()}); return compileUnit; } public class nGineer_CodeNamespace0 { // Creates the code for this code element. public static System.CodeDom.CodeNamespace CreateDom() { System.CodeDom.CodeNamespace codeNamespace = new System.CodeDom.CodeNamespace(); codeNamespace.Name = "nGineer"; codeNamespace.Imports.AddRange(new System.CodeDom.CodeNamespaceImport[] { new System.CodeDom.CodeNamespaceImport("System"), new System.CodeDom.CodeNamespaceImport("System.Data"), new System.CodeDom.CodeNamespaceImport("System.Xml"), new System.CodeDom.CodeNamespaceImport("System.Runtime.Serialization")}); codeNamespace.Types.AddRange(new System.CodeDom.CodeTypeDeclaration[] { MyDataSet_CodeTypeDeclaration1.CreateDom()}); return codeNamespace; } public class MyDataSet_CodeTypeDeclaration1 { // Creates the code for this code element. public static System.CodeDom.CodeTypeDeclaration CreateDom() { System.CodeDom.CodeTypeDeclaration codeTypeDeclaration = new System.CodeDom.CodeTypeDeclaration(); codeTypeDeclaration.Name = "MyDataSet"; codeTypeDeclaration.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeTypeDeclaration.CustomAttributes.AddRange(new System.CodeDom.CodeAttributeDeclaration[] { CodeAttributeDeclaration2.CreateDom(), CodeAttributeDeclaration3.CreateDom(), CodeAttributeDeclaration5.CreateDom(), CodeAttributeDeclaration6.CreateDom()}); codeTypeDeclaration.TypeAttributes = System.Reflection.TypeAttributes.Public; codeTypeDeclaration.BaseTypes.AddRange(new System.CodeDom.CodeTypeReference[] { new System.CodeDom.CodeTypeReference("DataSet")}); codeTypeDeclaration.IsClass = true; codeTypeDeclaration.Members.AddRange(new System.CodeDom.CodeTypeMember[] { tableMyTable_CodeMemberField8.CreateDom(), CodeConstructor9.CreateDom(), CodeConstructor10.CreateDom(), Clone_CodeMemberMethod11.CreateDom(), ShouldSerializeTables_CodeMemberMethod12.CreateDom(), ShouldSerializeRelations_CodeMemberMethod13.CreateDom(), ReadXmlSerializable_CodeMemberMethod14.CreateDom(), GetSchemaSerializable_CodeMemberMethod15.CreateDom(), InitVars_CodeMemberMethod16.CreateDom(), InitClass_CodeMemberMethod17.CreateDom(), MyTable_CodeMemberProperty18.CreateDom(), ShouldSerializeMyTable_CodeMemberMethod23.CreateDom(), SchemaChanged_CodeMemberMethod24.CreateDom(), MyTableRowChangeEventHandler_CodeTypeDeclaration25.CreateDom(), MyTableDataTable_CodeTypeDeclaration26.CreateDom(), MyTableRow_CodeTypeDeclaration58.CreateDom(), MyTableRowChangeEvent_CodeTypeDeclaration66.CreateDom()}); return codeTypeDeclaration; } public class CodeAttributeDeclaration2 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "Serializable"; return codeAttributeDeclaration; } } public class CodeAttributeDeclaration3 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.ComponentModel.DesignerCategoryAttribute"; codeAttributeDeclaration.Arguments.AddRange(new System.CodeDom.CodeAttributeArgument[] { CodeAttributeArgument4.CreateDom()}); return codeAttributeDeclaration; } public class CodeAttributeArgument4 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeArgument CreateDom() { System.CodeDom.CodeAttributeArgument codeAttributeArgument = new System.CodeDom.CodeAttributeArgument(); codeAttributeArgument.Name = ""; codeAttributeArgument.Value = new System.CodeDom.CodePrimitiveExpression("code"); return codeAttributeArgument; } } } public class CodeAttributeDeclaration5 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.Diagnostics.DebuggerStepThrough"; return codeAttributeDeclaration; } } public class CodeAttributeDeclaration6 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.ComponentModel.ToolboxItem"; codeAttributeDeclaration.Arguments.AddRange(new System.CodeDom.CodeAttributeArgument[] { CodeAttributeArgument7.CreateDom()}); return codeAttributeDeclaration; } public class CodeAttributeArgument7 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeArgument CreateDom() { System.CodeDom.CodeAttributeArgument codeAttributeArgument = new System.CodeDom.CodeAttributeArgument(); codeAttributeArgument.Name = ""; codeAttributeArgument.Value = new System.CodeDom.CodePrimitiveExpression(true); return codeAttributeArgument; } } } public class tableMyTable_CodeMemberField8 { // Creates the code for this code element. public static System.CodeDom.CodeMemberField CreateDom() { System.CodeDom.CodeMemberField codeMemberField = new System.CodeDom.CodeMemberField(); codeMemberField.Name = "tableMyTable"; codeMemberField.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeMemberField.Type = new System.CodeDom.CodeTypeReference("MyTableDataTable"); return codeMemberField; } } public class CodeConstructor9 { // Creates the code for this code element. public static System.CodeDom.CodeConstructor CreateDom() { System.CodeDom.CodeConstructor codeConstructor = new System.CodeDom.CodeConstructor(); codeConstructor.Name = ".ctor"; codeConstructor.Attributes = System.CodeDom.MemberAttributes.Public; codeConstructor.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeConstructor.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "InitClass"))), new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("System.ComponentModel.CollectionChangeEventHandler"), "schemaChangedHandler", new System.CodeDom.CodeDelegateCreateExpression(new System.CodeDom.CodeTypeReference("System.ComponentModel.CollectionChangeEventHandler"), new System.CodeDom.CodeThisReferenceExpression(), "SchemaChanged")), new System.CodeDom.CodeAttachEventStatement(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Tables"), "CollectionChanged"), new System.CodeDom.CodeVariableReferenceExpression("schemaChangedHandler")), new System.CodeDom.CodeAttachEventStatement(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Relations"), "CollectionChanged"), new System.CodeDom.CodeVariableReferenceExpression("schemaChangedHandler"))}); return codeConstructor; } } public class CodeConstructor10 { // Creates the code for this code element. public static System.CodeDom.CodeConstructor CreateDom() { System.CodeDom.CodeConstructor codeConstructor = new System.CodeDom.CodeConstructor(); codeConstructor.Name = ".ctor"; codeConstructor.Attributes = System.CodeDom.MemberAttributes.Family; codeConstructor.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressioninfo = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("SerializationInfo"), "info"); codeConstructor.Parameters.Add(codeParameterDeclarationExpressioninfo); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressioncontext = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("StreamingContext"), "context"); codeConstructor.Parameters.Add(codeParameterDeclarationExpressioncontext); codeConstructor.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference(typeof(string)), "strSchema", new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference(typeof(string)), new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("info"), "GetValue"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("XmlSchema"), new System.CodeDom.CodeTypeOfExpression(new System.CodeDom.CodeTypeReference(typeof(string)))}))), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeVariableReferenceExpression("strSchema"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("DataSet"), "ds", new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("DataSet"))), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "ReadXmlSchema"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("XmlTextReader"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference(typeof(System.IO.StringReader)), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeVariableReferenceExpression("strSchema")})})})), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Tables"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyTable")}), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Tables"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Tables"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyTable")})})}))}, new System.CodeDom.CodeStatement[0]), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "DataSetName"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "DataSetName")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Prefix"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Prefix")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Namespace"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Namespace")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Locale"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Locale")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "CaseSensitive"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "CaseSensitive")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "EnforceConstraints"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "EnforceConstraints")), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Merge"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeVariableReferenceExpression("ds"), new System.CodeDom.CodePrimitiveExpression(false), new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.Data.MissingSchemaAction")), "Add")})), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "InitVars")))}, new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "InitClass")))}), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "GetSerializationData"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("info"), new System.CodeDom.CodeArgumentReferenceExpression("context")})), new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("System.ComponentModel.CollectionChangeEventHandler"), "schemaChangedHandler", new System.CodeDom.CodeDelegateCreateExpression(new System.CodeDom.CodeTypeReference("System.ComponentModel.CollectionChangeEventHandler"), new System.CodeDom.CodeThisReferenceExpression(), "SchemaChanged")), new System.CodeDom.CodeAttachEventStatement(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Tables"), "CollectionChanged"), new System.CodeDom.CodeVariableReferenceExpression("schemaChangedHandler")), new System.CodeDom.CodeAttachEventStatement(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Relations"), "CollectionChanged"), new System.CodeDom.CodeVariableReferenceExpression("schemaChangedHandler"))}); return codeConstructor; } } public class Clone_CodeMemberMethod11 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "Clone"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("DataSet"); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("MyDataSet"), "cln", new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyDataSet"), new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeBaseReferenceExpression(), "Clone")))), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("cln"), "InitVars"))), new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeVariableReferenceExpression("cln"))}); return codeMemberMethod; } } public class ShouldSerializeTables_CodeMemberMethod12 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "ShouldSerializeTables"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(bool)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodePrimitiveExpression(false))}); return codeMemberMethod; } } public class ShouldSerializeRelations_CodeMemberMethod13 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "ShouldSerializeRelations"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(bool)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodePrimitiveExpression(false))}); return codeMemberMethod; } } public class ReadXmlSerializable_CodeMemberMethod14 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "ReadXmlSerializable"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionreader = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("XmlReader"), "reader"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionreader); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Reset"))), new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("DataSet"), "ds", new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("DataSet"))), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "ReadXml"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("reader")})), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Tables"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyTable")}), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Tables"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Tables"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyTable")})})}))}, new System.CodeDom.CodeStatement[0]), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "DataSetName"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "DataSetName")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Prefix"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Prefix")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Namespace"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Namespace")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Locale"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "Locale")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "CaseSensitive"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "CaseSensitive")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "EnforceConstraints"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("ds"), "EnforceConstraints")), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Merge"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeVariableReferenceExpression("ds"), new System.CodeDom.CodePrimitiveExpression(false), new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.Data.MissingSchemaAction")), "Add")})), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "InitVars")))}); return codeMemberMethod; } } public class GetSchemaSerializable_CodeMemberMethod15 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "GetSchemaSerializable"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("System.Xml.Schema.XmlSchema"); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference(typeof(System.IO.MemoryStream)), "stream", new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference(typeof(System.IO.MemoryStream)))), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "WriteXmlSchema"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("XmlTextWriter"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("stream"), new System.CodeDom.CodePrimitiveExpression(null)})})), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("stream"), "Position"), new System.CodeDom.CodePrimitiveExpression(0)), new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.Xml.Schema.XmlSchema")), "Read"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("XmlTextReader"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("stream")}), new System.CodeDom.CodePrimitiveExpression(null)}))}); return codeMemberMethod; } } public class InitVars_CodeMemberMethod16 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "InitVars"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable"), new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Tables"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyTable")}))), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "InitVars")))}, new System.CodeDom.CodeStatement[0])}); return codeMemberMethod; } } public class InitClass_CodeMemberMethod17 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "InitClass"; codeMemberMethod.Attributes = System.CodeDom.MemberAttributes.Private; codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "DataSetName"), new System.CodeDom.CodePrimitiveExpression("MyDataSet")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Prefix"), new System.CodeDom.CodePrimitiveExpression("")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Namespace"), new System.CodeDom.CodePrimitiveExpression("http://tempuri.org/MyDataSet.xsd")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Locale"), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference(typeof(System.Globalization.CultureInfo)), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("en-US")})), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "CaseSensitive"), new System.CodeDom.CodePrimitiveExpression(false)), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "EnforceConstraints"), new System.CodeDom.CodePrimitiveExpression(true)), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable"))), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Tables"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable")}))}); return codeMemberMethod; } } public class MyTable_CodeMemberProperty18 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "MyTable"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.CustomAttributes.AddRange(new System.CodeDom.CodeAttributeDeclaration[] { CodeAttributeDeclaration19.CreateDom(), CodeAttributeDeclaration21.CreateDom()}); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference("MyTableDataTable"); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"))}); return codeMemberProperty; } public class CodeAttributeDeclaration19 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.ComponentModel.Browsable"; codeAttributeDeclaration.Arguments.AddRange(new System.CodeDom.CodeAttributeArgument[] { CodeAttributeArgument20.CreateDom()}); return codeAttributeDeclaration; } public class CodeAttributeArgument20 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeArgument CreateDom() { System.CodeDom.CodeAttributeArgument codeAttributeArgument = new System.CodeDom.CodeAttributeArgument(); codeAttributeArgument.Name = ""; codeAttributeArgument.Value = new System.CodeDom.CodePrimitiveExpression(false); return codeAttributeArgument; } } } public class CodeAttributeDeclaration21 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.ComponentModel.DesignerSerializationVisibilityAttribute"; codeAttributeDeclaration.Arguments.AddRange(new System.CodeDom.CodeAttributeArgument[] { CodeAttributeArgument22.CreateDom()}); return codeAttributeDeclaration; } public class CodeAttributeArgument22 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeArgument CreateDom() { System.CodeDom.CodeAttributeArgument codeAttributeArgument = new System.CodeDom.CodeAttributeArgument(); codeAttributeArgument.Name = ""; codeAttributeArgument.Value = new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.ComponentModel.DesignerSerializationVisibility")), "Content"); return codeAttributeArgument; } } } } public class ShouldSerializeMyTable_CodeMemberMethod23 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "ShouldSerializeMyTable"; codeMemberMethod.Attributes = System.CodeDom.MemberAttributes.Private; codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(bool)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodePrimitiveExpression(false))}); return codeMemberMethod; } } public class SchemaChanged_CodeMemberMethod24 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "SchemaChanged"; codeMemberMethod.Attributes = System.CodeDom.MemberAttributes.Private; codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionsender = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference(typeof(object)), "sender"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionsender); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressione = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("System.ComponentModel.CollectionChangeEventArgs"), "e"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressione); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Action"), System.CodeDom.CodeBinaryOperatorType.ValueEquality, new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.ComponentModel.CollectionChangeAction")), "Remove")), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "InitVars")))}, new System.CodeDom.CodeStatement[0])}); return codeMemberMethod; } } public class MyTableRowChangeEventHandler_CodeTypeDeclaration25 { // Creates the code for this code element. public static System.CodeDom.CodeTypeDeclaration CreateDom() { System.CodeDom.CodeTypeDeclaration codeTypeDeclaration = new System.CodeDom.CodeTypeDeclaration(); codeTypeDeclaration.Name = "MyTableRowChangeEventHandler"; codeTypeDeclaration.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeTypeDeclaration.TypeAttributes = System.Reflection.TypeAttributes.Public; codeTypeDeclaration.BaseTypes.AddRange(new System.CodeDom.CodeTypeReference[] { new System.CodeDom.CodeTypeReference(typeof(System.Delegate))}); codeTypeDeclaration.IsClass = true; return codeTypeDeclaration; } } public class MyTableDataTable_CodeTypeDeclaration26 { // Creates the code for this code element. public static System.CodeDom.CodeTypeDeclaration CreateDom() { System.CodeDom.CodeTypeDeclaration codeTypeDeclaration = new System.CodeDom.CodeTypeDeclaration(); codeTypeDeclaration.Name = "MyTableDataTable"; codeTypeDeclaration.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeTypeDeclaration.CustomAttributes.AddRange(new System.CodeDom.CodeAttributeDeclaration[] { CodeAttributeDeclaration27.CreateDom()}); codeTypeDeclaration.TypeAttributes = System.Reflection.TypeAttributes.Public; codeTypeDeclaration.BaseTypes.AddRange(new System.CodeDom.CodeTypeReference[] { new System.CodeDom.CodeTypeReference("DataTable"), new System.CodeDom.CodeTypeReference(typeof(System.Collections.IEnumerable))}); codeTypeDeclaration.IsClass = true; codeTypeDeclaration.Members.AddRange(new System.CodeDom.CodeTypeMember[] { columnSomeColumn_CodeMemberField28.CreateDom(), columnSomeOtherColumn_CodeMemberField29.CreateDom(), MyTableRowChanged_CodeMemberEvent30.CreateDom(), MyTableRowChanging_CodeMemberEvent31.CreateDom(), MyTableRowDeleted_CodeMemberEvent32.CreateDom(), MyTableRowDeleting_CodeMemberEvent33.CreateDom(), CodeConstructor34.CreateDom(), CodeConstructor35.CreateDom(), Count_CodeMemberProperty36.CreateDom(), SomeColumnColumn_CodeMemberProperty39.CreateDom(), SomeOtherColumnColumn_CodeMemberProperty40.CreateDom(), Item_CodeMemberProperty41.CreateDom(), AddMyTableRow_CodeMemberMethod42.CreateDom(), AddMyTableRow_CodeMemberMethod43.CreateDom(), FindBySomeColumn_CodeMemberMethod44.CreateDom(), GetEnumerator_CodeMemberMethod45.CreateDom(), Clone_CodeMemberMethod46.CreateDom(), CreateInstance_CodeMemberMethod47.CreateDom(), InitVars_CodeMemberMethod48.CreateDom(), InitClass_CodeMemberMethod49.CreateDom(), NewMyTableRow_CodeMemberMethod50.CreateDom(), NewRowFromBuilder_CodeMemberMethod51.CreateDom(), GetRowType_CodeMemberMethod52.CreateDom(), OnRowChanged_CodeMemberMethod53.CreateDom(), OnRowChanging_CodeMemberMethod54.CreateDom(), OnRowDeleted_CodeMemberMethod55.CreateDom(), OnRowDeleting_CodeMemberMethod56.CreateDom(), RemoveMyTableRow_CodeMemberMethod57.CreateDom()}); return codeTypeDeclaration; } public class CodeAttributeDeclaration27 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.Diagnostics.DebuggerStepThrough"; return codeAttributeDeclaration; } } public class columnSomeColumn_CodeMemberField28 { // Creates the code for this code element. public static System.CodeDom.CodeMemberField CreateDom() { System.CodeDom.CodeMemberField codeMemberField = new System.CodeDom.CodeMemberField(); codeMemberField.Name = "columnSomeColumn"; codeMemberField.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeMemberField.Type = new System.CodeDom.CodeTypeReference("DataColumn"); return codeMemberField; } } public class columnSomeOtherColumn_CodeMemberField29 { // Creates the code for this code element. public static System.CodeDom.CodeMemberField CreateDom() { System.CodeDom.CodeMemberField codeMemberField = new System.CodeDom.CodeMemberField(); codeMemberField.Name = "columnSomeOtherColumn"; codeMemberField.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeMemberField.Type = new System.CodeDom.CodeTypeReference("DataColumn"); return codeMemberField; } } public class MyTableRowChanged_CodeMemberEvent30 { // Creates the code for this code element. public static System.CodeDom.CodeMemberEvent CreateDom() { System.CodeDom.CodeMemberEvent codeMemberEvent = new System.CodeDom.CodeMemberEvent(); codeMemberEvent.Name = "MyTableRowChanged"; codeMemberEvent.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberEvent.Type = new System.CodeDom.CodeTypeReference("MyTableRowChangeEventHandler"); return codeMemberEvent; } } public class MyTableRowChanging_CodeMemberEvent31 { // Creates the code for this code element. public static System.CodeDom.CodeMemberEvent CreateDom() { System.CodeDom.CodeMemberEvent codeMemberEvent = new System.CodeDom.CodeMemberEvent(); codeMemberEvent.Name = "MyTableRowChanging"; codeMemberEvent.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberEvent.Type = new System.CodeDom.CodeTypeReference("MyTableRowChangeEventHandler"); return codeMemberEvent; } } public class MyTableRowDeleted_CodeMemberEvent32 { // Creates the code for this code element. public static System.CodeDom.CodeMemberEvent CreateDom() { System.CodeDom.CodeMemberEvent codeMemberEvent = new System.CodeDom.CodeMemberEvent(); codeMemberEvent.Name = "MyTableRowDeleted"; codeMemberEvent.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberEvent.Type = new System.CodeDom.CodeTypeReference("MyTableRowChangeEventHandler"); return codeMemberEvent; } } public class MyTableRowDeleting_CodeMemberEvent33 { // Creates the code for this code element. public static System.CodeDom.CodeMemberEvent CreateDom() { System.CodeDom.CodeMemberEvent codeMemberEvent = new System.CodeDom.CodeMemberEvent(); codeMemberEvent.Name = "MyTableRowDeleting"; codeMemberEvent.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberEvent.Type = new System.CodeDom.CodeTypeReference("MyTableRowChangeEventHandler"); return codeMemberEvent; } } public class CodeConstructor34 { // Creates the code for this code element. public static System.CodeDom.CodeConstructor CreateDom() { System.CodeDom.CodeConstructor codeConstructor = new System.CodeDom.CodeConstructor(); codeConstructor.Name = ".ctor"; codeConstructor.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeConstructor.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeConstructor.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "InitClass")))}); codeConstructor.BaseConstructorArgs.AddRange(new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyTable")}); return codeConstructor; } } public class CodeConstructor35 { // Creates the code for this code element. public static System.CodeDom.CodeConstructor CreateDom() { System.CodeDom.CodeConstructor codeConstructor = new System.CodeDom.CodeConstructor(); codeConstructor.Name = ".ctor"; codeConstructor.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeConstructor.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressiontable = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataTable"), "table"); codeConstructor.Parameters.Add(codeParameterDeclarationExpressiontable); codeConstructor.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "CaseSensitive"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "DataSet"), "CaseSensitive")), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "CaseSensitive"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "CaseSensitive"))}, new System.CodeDom.CodeStatement[0]), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "Locale"), "ToString")), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "DataSet"), "Locale"), "ToString"))), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Locale"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "Locale"))}, new System.CodeDom.CodeStatement[0]), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "Namespace"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "DataSet"), "Namespace")), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Namespace"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "Namespace"))}, new System.CodeDom.CodeStatement[0]), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Prefix"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "Prefix")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MinimumCapacity"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "MinimumCapacity")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "DisplayExpression"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "DisplayExpression"))}); codeConstructor.BaseConstructorArgs.AddRange(new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("table"), "TableName")}); return codeConstructor; } } public class Count_CodeMemberProperty36 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "Count"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.CustomAttributes.AddRange(new System.CodeDom.CodeAttributeDeclaration[] { CodeAttributeDeclaration37.CreateDom()}); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference(typeof(int)); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), "Count"))}); return codeMemberProperty; } public class CodeAttributeDeclaration37 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.ComponentModel.Browsable"; codeAttributeDeclaration.Arguments.AddRange(new System.CodeDom.CodeAttributeArgument[] { CodeAttributeArgument38.CreateDom()}); return codeAttributeDeclaration; } public class CodeAttributeArgument38 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeArgument CreateDom() { System.CodeDom.CodeAttributeArgument codeAttributeArgument = new System.CodeDom.CodeAttributeArgument(); codeAttributeArgument.Name = ""; codeAttributeArgument.Value = new System.CodeDom.CodePrimitiveExpression(false); return codeAttributeArgument; } } } } public class SomeColumnColumn_CodeMemberProperty39 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "SomeColumnColumn"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference("DataColumn"); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn"))}); return codeMemberProperty; } } public class SomeOtherColumnColumn_CodeMemberProperty40 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "SomeOtherColumnColumn"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference("DataColumn"); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeOtherColumn"))}); return codeMemberProperty; } } public class Item_CodeMemberProperty41 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "Item"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference("MyTableRow"); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionindex = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference(typeof(int)), "index"); codeMemberProperty.Parameters.Add(codeParameterDeclarationExpressionindex); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("index")})))}); return codeMemberProperty; } } public class AddMyTableRow_CodeMemberMethod42 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "AddMyTableRow"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionrow = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), "row"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionrow); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("row")}))}); return codeMemberMethod; } } public class AddMyTableRow_CodeMemberMethod43 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "AddMyTableRow"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("MyTableRow"); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionSomeColumn = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference(typeof(int)), "SomeColumn"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionSomeColumn); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionSomeOtherColumn = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference(typeof(string)), "SomeOtherColumn"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionSomeOtherColumn); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("MyTableRow"), "rowMyTableRow", new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "NewRow")))), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("rowMyTableRow"), "ItemArray"), new System.CodeDom.CodeArrayCreateExpression(new System.CodeDom.CodeTypeReference(typeof(object)), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("SomeColumn"), new System.CodeDom.CodeArgumentReferenceExpression("SomeOtherColumn")})), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeVariableReferenceExpression("rowMyTableRow")})), new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeVariableReferenceExpression("rowMyTableRow"))}); return codeMemberMethod; } } public class FindBySomeColumn_CodeMemberMethod44 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "FindBySomeColumn"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("MyTableRow"); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionSomeColumn = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference(typeof(int)), "SomeColumn"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionSomeColumn); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), "Find"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArrayCreateExpression(new System.CodeDom.CodeTypeReference(typeof(object)), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("SomeColumn")})})))}); return codeMemberMethod; } } public class GetEnumerator_CodeMemberMethod45 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "GetEnumerator"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(System.Collections.IEnumerator)); codeMemberMethod.ImplementationTypes.AddRange(new System.CodeDom.CodeTypeReference[] { new System.CodeDom.CodeTypeReference(typeof(System.Collections.IEnumerable))}); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), "GetEnumerator")))}); return codeMemberMethod; } } public class Clone_CodeMemberMethod46 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "Clone"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("DataTable"); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeVariableDeclarationStatement(new System.CodeDom.CodeTypeReference("MyTableDataTable"), "cln", new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable"), new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeBaseReferenceExpression(), "Clone")))), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeVariableReferenceExpression("cln"), "InitVars"))), new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeVariableReferenceExpression("cln"))}); return codeMemberMethod; } } public class CreateInstance_CodeMemberMethod47 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "CreateInstance"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("DataTable"); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable")))}); return codeMemberMethod; } } public class InitVars_CodeMemberMethod48 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "InitVars"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn"), new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Columns"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("SomeColumn")})), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeOtherColumn"), new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Columns"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("SomeOtherColumn")}))}); return codeMemberMethod; } } public class InitClass_CodeMemberMethod49 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "InitClass"; codeMemberMethod.Attributes = System.CodeDom.MemberAttributes.Private; codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn"), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("DataColumn"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("SomeColumn"), new System.CodeDom.CodeTypeOfExpression(new System.CodeDom.CodeTypeReference(typeof(int))), new System.CodeDom.CodePrimitiveExpression(null), new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.Data.MappingType")), "Element")})), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Columns"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn")})), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeOtherColumn"), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("DataColumn"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("SomeOtherColumn"), new System.CodeDom.CodeTypeOfExpression(new System.CodeDom.CodeTypeReference(typeof(string))), new System.CodeDom.CodePrimitiveExpression(null), new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference("System.Data.MappingType")), "Element")})), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Columns"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeOtherColumn")})), new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Constraints"), "Add"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("UniqueConstraint"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("MyDataSetKey1"), new System.CodeDom.CodeArrayCreateExpression(new System.CodeDom.CodeTypeReference("DataColumn"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn")}), new System.CodeDom.CodePrimitiveExpression(true)})})), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn"), "AllowDBNull"), new System.CodeDom.CodePrimitiveExpression(false)), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "columnSomeColumn"), "Unique"), new System.CodeDom.CodePrimitiveExpression(true))}); return codeMemberMethod; } } public class NewMyTableRow_CodeMemberMethod50 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "NewMyTableRow"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("MyTableRow"); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "NewRow"))))}); return codeMemberMethod; } } public class NewRowFromBuilder_CodeMemberMethod51 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "NewRowFromBuilder"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference("DataRow"); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionbuilder = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowBuilder"), "builder"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionbuilder); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("builder")}))}); return codeMemberMethod; } } public class GetRowType_CodeMemberMethod52 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "GetRowType"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(System.Type)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeTypeOfExpression(new System.CodeDom.CodeTypeReference("MyTableRow")))}); return codeMemberMethod; } } public class OnRowChanged_CodeMemberMethod53 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "OnRowChanged"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressione = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowChangeEventArgs"), "e"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressione); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeBaseReferenceExpression(), "OnRowChanged"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("e")})), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowChanged"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeDelegateInvokeExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowChanged"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableRowChangeEvent"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Row")), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Action")})}))}, new System.CodeDom.CodeStatement[0])}); return codeMemberMethod; } } public class OnRowChanging_CodeMemberMethod54 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "OnRowChanging"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressione = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowChangeEventArgs"), "e"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressione); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeBaseReferenceExpression(), "OnRowChanging"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("e")})), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowChanging"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeDelegateInvokeExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowChanging"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableRowChangeEvent"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Row")), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Action")})}))}, new System.CodeDom.CodeStatement[0])}); return codeMemberMethod; } } public class OnRowDeleted_CodeMemberMethod55 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "OnRowDeleted"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressione = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowChangeEventArgs"), "e"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressione); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeBaseReferenceExpression(), "OnRowDeleted"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("e")})), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowDeleted"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeDelegateInvokeExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowDeleted"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableRowChangeEvent"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Row")), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Action")})}))}, new System.CodeDom.CodeStatement[0])}); return codeMemberMethod; } } public class OnRowDeleting_CodeMemberMethod56 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "OnRowDeleting"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Family | System.CodeDom.MemberAttributes.Override); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressione = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowChangeEventArgs"), "e"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressione); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeBaseReferenceExpression(), "OnRowDeleting"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("e")})), new System.CodeDom.CodeConditionStatement(new System.CodeDom.CodeBinaryOperatorExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowDeleting"), System.CodeDom.CodeBinaryOperatorType.IdentityInequality, new System.CodeDom.CodePrimitiveExpression(null)), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeDelegateInvokeExpression(new System.CodeDom.CodeEventReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "MyTableRowDeleting"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("MyTableRowChangeEvent"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Row")), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeArgumentReferenceExpression("e"), "Action")})}))}, new System.CodeDom.CodeStatement[0])}); return codeMemberMethod; } } public class RemoveMyTableRow_CodeMemberMethod57 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "RemoveMyTableRow"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionrow = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), "row"); codeMemberMethod.Parameters.Add(codeParameterDeclarationExpressionrow); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeExpressionStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Rows"), "Remove"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("row")}))}); return codeMemberMethod; } } } public class MyTableRow_CodeTypeDeclaration58 { // Creates the code for this code element. public static System.CodeDom.CodeTypeDeclaration CreateDom() { System.CodeDom.CodeTypeDeclaration codeTypeDeclaration = new System.CodeDom.CodeTypeDeclaration(); codeTypeDeclaration.Name = "MyTableRow"; codeTypeDeclaration.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeTypeDeclaration.CustomAttributes.AddRange(new System.CodeDom.CodeAttributeDeclaration[] { CodeAttributeDeclaration59.CreateDom()}); codeTypeDeclaration.TypeAttributes = System.Reflection.TypeAttributes.Public; codeTypeDeclaration.BaseTypes.AddRange(new System.CodeDom.CodeTypeReference[] { new System.CodeDom.CodeTypeReference("DataRow")}); codeTypeDeclaration.IsClass = true; codeTypeDeclaration.Members.AddRange(new System.CodeDom.CodeTypeMember[] { tableMyTable_CodeMemberField60.CreateDom(), CodeConstructor61.CreateDom(), SomeColumn_CodeMemberProperty62.CreateDom(), SomeOtherColumn_CodeMemberProperty63.CreateDom(), IsSomeOtherColumnNull_CodeMemberMethod64.CreateDom(), SetSomeOtherColumnNull_CodeMemberMethod65.CreateDom()}); return codeTypeDeclaration; } public class CodeAttributeDeclaration59 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.Diagnostics.DebuggerStepThrough"; return codeAttributeDeclaration; } } public class tableMyTable_CodeMemberField60 { // Creates the code for this code element. public static System.CodeDom.CodeMemberField CreateDom() { System.CodeDom.CodeMemberField codeMemberField = new System.CodeDom.CodeMemberField(); codeMemberField.Name = "tableMyTable"; codeMemberField.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeMemberField.Type = new System.CodeDom.CodeTypeReference("MyTableDataTable"); return codeMemberField; } } public class CodeConstructor61 { // Creates the code for this code element. public static System.CodeDom.CodeConstructor CreateDom() { System.CodeDom.CodeConstructor codeConstructor = new System.CodeDom.CodeConstructor(); codeConstructor.Name = ".ctor"; codeConstructor.Attributes = (System.CodeDom.MemberAttributes.Assembly | System.CodeDom.MemberAttributes.Final); codeConstructor.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionrb = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowBuilder"), "rb"); codeConstructor.Parameters.Add(codeParameterDeclarationExpressionrb); codeConstructor.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference("MyTableDataTable"), new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "Table")))}); codeConstructor.BaseConstructorArgs.AddRange(new System.CodeDom.CodeExpression[] { new System.CodeDom.CodeArgumentReferenceExpression("rb")}); return codeConstructor; } } public class SomeColumn_CodeMemberProperty62 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "SomeColumn"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference(typeof(int)); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference(typeof(int)), new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "SomeColumnColumn")})))}); codeMemberProperty.HasSet = true; codeMemberProperty.SetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "SomeColumnColumn")}), new System.CodeDom.CodePropertySetValueReferenceExpression())}); return codeMemberProperty; } } public class SomeOtherColumn_CodeMemberProperty63 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "SomeOtherColumn"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference(typeof(string)); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeTryCatchFinallyStatement(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeCastExpression(new System.CodeDom.CodeTypeReference(typeof(string)), new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "SomeOtherColumnColumn")})))}, new System.CodeDom.CodeCatchClause[] { new System.CodeDom.CodeCatchClause("e", new System.CodeDom.CodeTypeReference("InvalidCastException"), new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeThrowExceptionStatement(new System.CodeDom.CodeObjectCreateExpression(new System.CodeDom.CodeTypeReference("StrongTypingException"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePrimitiveExpression("Cannot get value because it is DBNull."), new System.CodeDom.CodeVariableReferenceExpression("e")}))})}, new System.CodeDom.CodeStatement[0])}); codeMemberProperty.HasSet = true; codeMemberProperty.SetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "SomeOtherColumnColumn")}), new System.CodeDom.CodePropertySetValueReferenceExpression())}); return codeMemberProperty; } } public class IsSomeOtherColumnNull_CodeMemberMethod64 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "IsSomeOtherColumnNull"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(bool)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeMethodInvokeExpression(new System.CodeDom.CodeMethodReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "IsNull"), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "SomeOtherColumnColumn")}))}); return codeMemberMethod; } } public class SetSomeOtherColumnNull_CodeMemberMethod65 { // Creates the code for this code element. public static System.CodeDom.CodeMemberMethod CreateDom() { System.CodeDom.CodeMemberMethod codeMemberMethod = new System.CodeDom.CodeMemberMethod(); codeMemberMethod.Name = "SetSomeOtherColumnNull"; codeMemberMethod.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberMethod.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); codeMemberMethod.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeIndexerExpression(new System.CodeDom.CodeThisReferenceExpression(), new System.CodeDom.CodeExpression[] { new System.CodeDom.CodePropertyReferenceExpression(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "tableMyTable"), "SomeOtherColumnColumn")}), new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeTypeReferenceExpression(new System.CodeDom.CodeTypeReference(typeof(System.Convert))), "DBNull"))}); return codeMemberMethod; } } } public class MyTableRowChangeEvent_CodeTypeDeclaration66 { // Creates the code for this code element. public static System.CodeDom.CodeTypeDeclaration CreateDom() { System.CodeDom.CodeTypeDeclaration codeTypeDeclaration = new System.CodeDom.CodeTypeDeclaration(); codeTypeDeclaration.Name = "MyTableRowChangeEvent"; codeTypeDeclaration.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeTypeDeclaration.CustomAttributes.AddRange(new System.CodeDom.CodeAttributeDeclaration[] { CodeAttributeDeclaration67.CreateDom()}); codeTypeDeclaration.TypeAttributes = System.Reflection.TypeAttributes.Public; codeTypeDeclaration.BaseTypes.AddRange(new System.CodeDom.CodeTypeReference[] { new System.CodeDom.CodeTypeReference("EventArgs")}); codeTypeDeclaration.IsClass = true; codeTypeDeclaration.Members.AddRange(new System.CodeDom.CodeTypeMember[] { eventRow_CodeMemberField68.CreateDom(), eventAction_CodeMemberField69.CreateDom(), CodeConstructor70.CreateDom(), Row_CodeMemberProperty71.CreateDom(), Action_CodeMemberProperty72.CreateDom()}); return codeTypeDeclaration; } public class CodeAttributeDeclaration67 { // Creates the code for this code element. public static System.CodeDom.CodeAttributeDeclaration CreateDom() { System.CodeDom.CodeAttributeDeclaration codeAttributeDeclaration = new System.CodeDom.CodeAttributeDeclaration(); codeAttributeDeclaration.Name = "System.Diagnostics.DebuggerStepThrough"; return codeAttributeDeclaration; } } public class eventRow_CodeMemberField68 { // Creates the code for this code element. public static System.CodeDom.CodeMemberField CreateDom() { System.CodeDom.CodeMemberField codeMemberField = new System.CodeDom.CodeMemberField(); codeMemberField.Name = "eventRow"; codeMemberField.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeMemberField.Type = new System.CodeDom.CodeTypeReference("MyTableRow"); return codeMemberField; } } public class eventAction_CodeMemberField69 { // Creates the code for this code element. public static System.CodeDom.CodeMemberField CreateDom() { System.CodeDom.CodeMemberField codeMemberField = new System.CodeDom.CodeMemberField(); codeMemberField.Name = "eventAction"; codeMemberField.Attributes = (System.CodeDom.MemberAttributes.Private | System.CodeDom.MemberAttributes.Final); codeMemberField.Type = new System.CodeDom.CodeTypeReference("DataRowAction"); return codeMemberField; } } public class CodeConstructor70 { // Creates the code for this code element. public static System.CodeDom.CodeConstructor CreateDom() { System.CodeDom.CodeConstructor codeConstructor = new System.CodeDom.CodeConstructor(); codeConstructor.Name = ".ctor"; codeConstructor.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeConstructor.ReturnType = new System.CodeDom.CodeTypeReference(typeof(void)); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionrow = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("MyTableRow"), "row"); codeConstructor.Parameters.Add(codeParameterDeclarationExpressionrow); System.CodeDom.CodeParameterDeclarationExpression codeParameterDeclarationExpressionaction = new System.CodeDom.CodeParameterDeclarationExpression(new System.CodeDom.CodeTypeReference("DataRowAction"), "action"); codeConstructor.Parameters.Add(codeParameterDeclarationExpressionaction); codeConstructor.Statements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "eventRow"), new System.CodeDom.CodeArgumentReferenceExpression("row")), new System.CodeDom.CodeAssignStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "eventAction"), new System.CodeDom.CodeArgumentReferenceExpression("action"))}); return codeConstructor; } } public class Row_CodeMemberProperty71 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "Row"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference("MyTableRow"); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "eventRow"))}); return codeMemberProperty; } } public class Action_CodeMemberProperty72 { // Creates the code for this code element. public static System.CodeDom.CodeMemberProperty CreateDom() { System.CodeDom.CodeMemberProperty codeMemberProperty = new System.CodeDom.CodeMemberProperty(); codeMemberProperty.Name = "Action"; codeMemberProperty.Attributes = (System.CodeDom.MemberAttributes.Public | System.CodeDom.MemberAttributes.Final); codeMemberProperty.Type = new System.CodeDom.CodeTypeReference("DataRowAction"); codeMemberProperty.HasGet = true; codeMemberProperty.GetStatements.AddRange(new System.CodeDom.CodeStatement[] { new System.CodeDom.CodeMethodReturnStatement(new System.CodeDom.CodeFieldReferenceExpression(new System.CodeDom.CodeThisReferenceExpression(), "eventAction"))}); return codeMemberProperty; } } } } } } }