This is a long-standing issue, in fact LinqToXsd.Schemas.csproj contains this:
<!-- CS0108: ... hides inherited member ... Use the new keyword if hiding was intended. -->
<NoWarn>$(NoWarn);108;114;1591</NoWarn>
I have removed the generation of static XName fields for properties that are inherited, as a field was already generated in parent and is accessible.
To ensure that it's always accessible, I added the protected modified, although you'd have to split your inherited classes accross assemblies for this to actually matter.
This fixes the instance of warning that was reported in #63, not sure if there are other situations where CS0108 could happen.
Fixes #63
This is a long-standing issue, in fact LinqToXsd.Schemas.csproj contains this:
I have removed the generation of static XName fields for properties that are inherited, as a field was already generated in parent and is accessible. To ensure that it's always accessible, I added the
protected
modified, although you'd have to split your inherited classes accross assemblies for this to actually matter.This fixes the instance of warning that was reported in #63, not sure if there are other situations where CS0108 could happen.