From 1aa49007bbb0b1ef64b5a7aa4fb53c1e29bb2e59 Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Thu, 5 Feb 2015 13:29:46 +0100 Subject: [PATCH] Make Text property public --- XmlSchemaClassGenerator/TypeModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index dede705d..6c7e771a 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -268,6 +268,7 @@ public override CodeTypeDeclaration Generate() var text = new CodeMemberField(typeof(string), "Text"); // hack to generate automatic property text.Name += " { get; set; }"; + text.Attributes = MemberAttributes.Public; var xmlTextAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(XmlTextAttribute))); text.CustomAttributes.Add(xmlTextAttribute); classDeclaration.Members.Add(text);