Skip to content

Commit

Permalink
Make Text property public
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Feb 5, 2015
1 parent 2e33f09 commit 1aa4900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1aa4900

Please sign in to comment.