Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Serialization / SoapAttributeOverrides.cs / 1 / SoapAttributeOverrides.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System.Collections; using System.IO; using System.Xml.Schema; using System; using System.ComponentModel; ////// /// public class SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes attributes) { Hashtable members = (Hashtable)types[type]; if (members == null) { members = new Hashtable(); types.Add(type, members); } else if (members[member] != null) { throw new InvalidOperationException(Res.GetString(Res.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)members[member]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization { using System.Reflection; using System.Collections; using System.IO; using System.Xml.Schema; using System; using System.ComponentModel; ////// /// public class SoapAttributeOverrides { Hashtable types = new Hashtable(); ///[To be supplied.] ////// /// public void Add(Type type, SoapAttributes attributes) { Add(type, string.Empty, attributes); } ///[To be supplied.] ////// /// public void Add(Type type, string member, SoapAttributes attributes) { Hashtable members = (Hashtable)types[type]; if (members == null) { members = new Hashtable(); types.Add(type, members); } else if (members[member] != null) { throw new InvalidOperationException(Res.GetString(Res.XmlMultipleAttributeOverrides, type.FullName, member)); } members.Add(member, attributes); } ///[To be supplied.] ////// /// public SoapAttributes this[Type type] { get { return this[type, string.Empty]; } } ///[To be supplied.] ////// /// public SoapAttributes this[Type type, string member] { get { Hashtable members = (Hashtable)types[type]; if (members == null) return null; return (SoapAttributes)members[member]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TransportContext.cs
- Mutex.cs
- CompositionCommandSet.cs
- InstallerTypeAttribute.cs
- TextServicesDisplayAttribute.cs
- RefreshEventArgs.cs
- MainMenu.cs
- BoolExpression.cs
- DynamicValueConverter.cs
- Attributes.cs
- newinstructionaction.cs
- ContentType.cs
- WarningException.cs
- AuthenticatedStream.cs
- HostingEnvironmentWrapper.cs
- CheckBoxList.cs
- TimeoutException.cs
- WindowsStartMenu.cs
- TriggerActionCollection.cs
- FormsAuthentication.cs
- HttpPostLocalhostServerProtocol.cs
- ImmutableCollection.cs
- Helpers.cs
- ThaiBuddhistCalendar.cs
- ObjectDataSourceView.cs
- Int64.cs
- ToolStripSplitStackLayout.cs
- ElementInit.cs
- versioninfo.cs
- RecognitionResult.cs
- JsonReader.cs
- SqlDataSource.cs
- ResourceDefaultValueAttribute.cs
- PropertySourceInfo.cs
- TextParentUndoUnit.cs
- BamlTreeMap.cs
- BaseValidatorDesigner.cs
- UrlAuthorizationModule.cs
- ListViewItem.cs
- _HelperAsyncResults.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- EventLogPermissionEntry.cs
- PropertyFilter.cs
- ByeOperationCD1AsyncResult.cs
- ModifierKeysValueSerializer.cs
- HostingEnvironment.cs
- InvokeProviderWrapper.cs
- TransactionOptions.cs
- ThrowHelper.cs
- ComAdminInterfaces.cs
- ThousandthOfEmRealPoints.cs
- SyndicationSerializer.cs
- CodeAccessPermission.cs
- RecognizerStateChangedEventArgs.cs
- SecurityDocument.cs
- ConnectionPoolManager.cs
- LockCookie.cs
- EntityClassGenerator.cs
- PartitionedStreamMerger.cs
- TreeNode.cs
- CheckBoxPopupAdapter.cs
- IPCCacheManager.cs
- GridItemProviderWrapper.cs
- UnionExpr.cs
- MergeFailedEvent.cs
- FormClosedEvent.cs
- SafeWaitHandle.cs
- WebCategoryAttribute.cs
- FlowchartDesigner.xaml.cs
- ItemContainerGenerator.cs
- Int16KeyFrameCollection.cs
- ContextBase.cs
- WebControl.cs
- QueryCorrelationInitializer.cs
- PropertyPath.cs
- UriTemplateLiteralQueryValue.cs
- AdvancedBindingPropertyDescriptor.cs
- BooleanFacetDescriptionElement.cs
- AutomationPatternInfo.cs
- EdmScalarPropertyAttribute.cs
- OleDbDataAdapter.cs
- CriticalFileToken.cs
- OptimizedTemplateContent.cs
- ToolStripPanelRenderEventArgs.cs
- TemplateInstanceAttribute.cs
- Grant.cs
- MetadataArtifactLoaderResource.cs
- TraceHelpers.cs
- StorageMappingFragment.cs
- BaseCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- DataGridCellsPresenter.cs
- MediaPlayer.cs
- Int16Converter.cs
- RadioButton.cs
- InputEventArgs.cs
- SwitchAttribute.cs
- DebugView.cs
- LongValidator.cs
- CustomCategoryAttribute.cs