Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Geometry3D.cs
- DynamicDataManager.cs
- OptimalTextSource.cs
- BitmapEffectGeneralTransform.cs
- StatusBarAutomationPeer.cs
- HttpServerUtilityBase.cs
- RuleCache.cs
- ReaderOutput.cs
- BitmapData.cs
- AnnotationService.cs
- PropertyKey.cs
- UnmanagedBitmapWrapper.cs
- XPathDocumentBuilder.cs
- RawTextInputReport.cs
- Message.cs
- COM2ExtendedTypeConverter.cs
- TypeConverter.cs
- ReachDocumentSequenceSerializer.cs
- ItemContainerGenerator.cs
- XmlSerializationGeneratedCode.cs
- FixedSOMFixedBlock.cs
- EnumMember.cs
- NativeMethods.cs
- RoleManagerSection.cs
- StateWorkerRequest.cs
- SafeThemeHandle.cs
- ObjectParameter.cs
- ObjectSet.cs
- OleDbConnectionFactory.cs
- SchemaNamespaceManager.cs
- SerializerWriterEventHandlers.cs
- OdbcDataAdapter.cs
- ProjectionPlan.cs
- ParserStack.cs
- OrderedHashRepartitionStream.cs
- PluralizationService.cs
- GeneralTransformGroup.cs
- PerfCounters.cs
- DynamicValueConverter.cs
- ContainsRowNumberChecker.cs
- SurrogateSelector.cs
- InheritanceRules.cs
- NumberFunctions.cs
- UITypeEditor.cs
- ConfigurationCollectionAttribute.cs
- UnitySerializationHolder.cs
- ConfigXmlElement.cs
- RenderContext.cs
- EventLogPermissionEntryCollection.cs
- PasswordDeriveBytes.cs
- XmlSchemaFacet.cs
- GuidTagList.cs
- HyperlinkAutomationPeer.cs
- Stylesheet.cs
- XmlSchemaComplexContentRestriction.cs
- TreeNode.cs
- AppSettingsSection.cs
- ByteAnimation.cs
- CompilerErrorCollection.cs
- OutputCacheSection.cs
- WebServiceReceiveDesigner.cs
- DurableErrorHandler.cs
- MouseActionConverter.cs
- SqlCharStream.cs
- fixedPageContentExtractor.cs
- AssemblyBuilder.cs
- SchemaImporterExtensionElementCollection.cs
- ActivationServices.cs
- Validator.cs
- GuidConverter.cs
- Int64Storage.cs
- cache.cs
- ProcessHost.cs
- SqlCacheDependency.cs
- MessageEventSubscriptionService.cs
- InkCanvasAutomationPeer.cs
- KeyGestureValueSerializer.cs
- ToolStripDropDownClosingEventArgs.cs
- DatePickerDateValidationErrorEventArgs.cs
- ImageFormat.cs
- XmlSchemaFacet.cs
- CaseInsensitiveComparer.cs
- MemoryStream.cs
- DeclarativeCatalogPartDesigner.cs
- WebScriptEndpointElement.cs
- GifBitmapDecoder.cs
- ContentDisposition.cs
- DiscoveryClientReferences.cs
- ZipIOFileItemStream.cs
- ColorKeyFrameCollection.cs
- VersionedStream.cs
- LocalIdKeyIdentifierClause.cs
- DataGridPagerStyle.cs
- SizeChangedEventArgs.cs
- EntityDataReader.cs
- ItemsChangedEventArgs.cs
- GlyphCollection.cs
- DbConnectionStringBuilder.cs
- DataContractJsonSerializer.cs
- DynamicQueryStringParameter.cs