public XamlReaderSettings (XamlReaderSettings settings) { // null settings is allowed (!) var s = settings; if (s == null) return; AllowProtectedMembersOnRoot = s.AllowProtectedMembersOnRoot; BaseUri = s.BaseUri; IgnoreUidsOnPropertyElements = s.IgnoreUidsOnPropertyElements; LocalAssembly = s.LocalAssembly; ProvideLineInfo = s.ProvideLineInfo; ValuesMustBeString = s.ValuesMustBeString; }
public XamlReaderSettings(XamlReaderSettings settings) { // null settings is allowed (!) var s = settings; if (s == null) { return; } AllowProtectedMembersOnRoot = s.AllowProtectedMembersOnRoot; BaseUri = s.BaseUri; IgnoreUidsOnPropertyElements = s.IgnoreUidsOnPropertyElements; LocalAssembly = s.LocalAssembly; ProvideLineInfo = s.ProvideLineInfo; ValuesMustBeString = s.ValuesMustBeString; }