Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / System / Windows / Markup / XmlnsCompatibleWithAttribute.cs / 1 / XmlnsCompatibleWithAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: XmlnsCompatibleWithAttribute.cs // // Contents: Namespace compatiblity support // Created: 01/19/2005 weibz // //----------------------------------------------------------------------- using System; using System.ComponentModel; namespace System.Windows.Markup { ////// /// This attribute allows an assembly to declare that previously published /// XmlnsDefinitions are subsumed by a new version. /// /// Such as /// /// "http://schemas.example.com/2003/mynamespace" /// /// is changed to /// /// "http://schemas.example.com/2005/mynamespace" /// /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class XmlnsCompatibleWithAttribute: Attribute { ////// Constructor /// /// old Xml namespce /// new xml namespace public XmlnsCompatibleWithAttribute(string oldNamespace, string newNamespace) { // Validate Input Arguments if (oldNamespace == null) { throw new ArgumentNullException("oldNamespace"); } if (newNamespace == null) { throw new ArgumentNullException("newNamespace"); } _oldNamespace = oldNamespace; _newNamespace = newNamespace; } #region public properties ////// Old Xml Namespace /// public string OldNamespace { get { return _oldNamespace; } } ////// New Xml Namespace /// public string NewNamespace { get { return _newNamespace; } } #endregion public properties #region Private Fields private string _oldNamespace; private string _newNamespace; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: XmlnsCompatibleWithAttribute.cs // // Contents: Namespace compatiblity support // Created: 01/19/2005 weibz // //----------------------------------------------------------------------- using System; using System.ComponentModel; namespace System.Windows.Markup { ////// /// This attribute allows an assembly to declare that previously published /// XmlnsDefinitions are subsumed by a new version. /// /// Such as /// /// "http://schemas.example.com/2003/mynamespace" /// /// is changed to /// /// "http://schemas.example.com/2005/mynamespace" /// /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class XmlnsCompatibleWithAttribute: Attribute { ////// Constructor /// /// old Xml namespce /// new xml namespace public XmlnsCompatibleWithAttribute(string oldNamespace, string newNamespace) { // Validate Input Arguments if (oldNamespace == null) { throw new ArgumentNullException("oldNamespace"); } if (newNamespace == null) { throw new ArgumentNullException("newNamespace"); } _oldNamespace = oldNamespace; _newNamespace = newNamespace; } #region public properties ////// Old Xml Namespace /// public string OldNamespace { get { return _oldNamespace; } } ////// New Xml Namespace /// public string NewNamespace { get { return _newNamespace; } } #endregion public properties #region Private Fields private string _oldNamespace; private string _newNamespace; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsRebar.cs
- Soap12ProtocolReflector.cs
- GeneralTransform2DTo3DTo2D.cs
- ConstructorArgumentAttribute.cs
- RetrieveVirtualItemEventArgs.cs
- XsltSettings.cs
- FunctionImportMapping.cs
- ControlBuilder.cs
- DBConnection.cs
- UserControlParser.cs
- CustomAttributeSerializer.cs
- TextEncodedRawTextWriter.cs
- NaturalLanguageHyphenator.cs
- SpellerError.cs
- SystemFonts.cs
- WorkflowInstanceSuspendedRecord.cs
- ClearCollection.cs
- WebBrowserPermission.cs
- BrowserCapabilitiesCodeGenerator.cs
- XXXOnTypeBuilderInstantiation.cs
- updateconfighost.cs
- ConfigurationSection.cs
- VarInfo.cs
- ModelItemKeyValuePair.cs
- XmlBindingWorker.cs
- TitleStyle.cs
- ObservableCollection.cs
- EntityProviderServices.cs
- StaticExtensionConverter.cs
- DataTableMapping.cs
- FrugalList.cs
- EntityDataSourceMemberPath.cs
- TreeViewHitTestInfo.cs
- basecomparevalidator.cs
- RegexGroupCollection.cs
- FixUpCollection.cs
- RadioButtonFlatAdapter.cs
- ProxyWebPartConnectionCollection.cs
- MetadataLocation.cs
- CatalogPartCollection.cs
- ElementAction.cs
- MenuItemBinding.cs
- StylusPlugInCollection.cs
- _Win32.cs
- odbcmetadatafactory.cs
- WindowInteropHelper.cs
- ReaderWriterLock.cs
- DataGridViewColumnConverter.cs
- MsmqIntegrationElement.cs
- ControlBindingsCollection.cs
- DataObjectAttribute.cs
- XmlElement.cs
- Rule.cs
- DbParameterHelper.cs
- EncoderNLS.cs
- ListViewItem.cs
- DesignerActionUI.cs
- WebConfigurationHost.cs
- DataSetMappper.cs
- Button.cs
- MeasurementDCInfo.cs
- ImageMapEventArgs.cs
- TableCellCollection.cs
- CategoryNameCollection.cs
- ToolbarAUtomationPeer.cs
- TextParagraph.cs
- PropertyStore.cs
- PlaceHolder.cs
- DelegateSerializationHolder.cs
- BinaryMethodMessage.cs
- SqlInfoMessageEvent.cs
- DbConnectionPoolIdentity.cs
- WaveHeader.cs
- X509SecurityToken.cs
- HyperLinkStyle.cs
- TableRowGroup.cs
- DropSourceBehavior.cs
- WebPermission.cs
- SafeMemoryMappedViewHandle.cs
- LocationSectionRecord.cs
- RootProfilePropertySettingsCollection.cs
- IPAddress.cs
- ComponentConverter.cs
- SByteConverter.cs
- PropertyBuilder.cs
- GB18030Encoding.cs
- VectorConverter.cs
- ColorIndependentAnimationStorage.cs
- ArgumentValidation.cs
- EraserBehavior.cs
- IBuiltInEvidence.cs
- MemberListBinding.cs
- Scene3D.cs
- DataReceivedEventArgs.cs
- AuthenticationModulesSection.cs
- ValueQuery.cs
- Pair.cs
- MultilineStringConverter.cs
- WorkflowPageSetupDialog.cs
- NegotiateStream.cs