예제 #1
0
		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;
		}
예제 #2
0
        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;
        }