Skip to content

Commit 3d39bd3

Browse files
committed
the static property for holding default values is now internal instead of private.
1 parent 1a50452 commit 3d39bd3

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

LinqToXsd.Schemas/XsdFeatureTests/Attributes/ListTypeWithDefaults.xsd.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public virtual string surname {
105105
protected internal static readonly System.Xml.Linq.XName milestoneYearsXName = System.Xml.Linq.XName.Get("milestoneYears", "");
106106

107107
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
108-
private static IList<int> milestoneYearsDefaultValue = new int[] {
108+
internal static IList<int> milestoneYearsDefaultValue = new int[] {
109109
System.Xml.XmlConvert.ToInt32("1"),
110110
System.Xml.XmlConvert.ToInt32("2"),
111111
System.Xml.XmlConvert.ToInt32("3"),
@@ -135,7 +135,7 @@ public virtual IList<int> milestoneYears {
135135
protected internal static readonly System.Xml.Linq.XName tagsXName = System.Xml.Linq.XName.Get("tags", "");
136136

137137
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
138-
private static IList<string> tagsDefaultValue = new string[] {
138+
internal static IList<string> tagsDefaultValue = new string[] {
139139
"human",
140140
"bipedal"};
141141

LinqToXsd.Schemas/XsdFeatureTests/Elements/ElementsListTypeWithDefaults.xsd.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public name() {
7171
protected internal static readonly System.Xml.Linq.XName namesXName = System.Xml.Linq.XName.Get("names", "");
7272

7373
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
74-
private static IList<string> namesDefaultValue = new string[] {
74+
internal static IList<string> namesDefaultValue = new string[] {
7575
"firstName",
7676
"middleName",
7777
"lastName"};

XObjectsCode/Src/ClrPropertyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ protected void CreateFixedDefaultValue(CodeTypeDeclaration typeDecl)
12691269

12701270
fixedOrDefaultField.Attributes =
12711271
(fixedOrDefaultField.Attributes & ~MemberAttributes.AccessMask & ~MemberAttributes.ScopeMask)
1272-
| MemberAttributes.Private
1272+
| MemberAttributes.FamilyAndAssembly
12731273
| MemberAttributes.Static;
12741274

12751275
fixedOrDefaultField.InitExpression =

0 commit comments

Comments
 (0)