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
- TableLayoutPanelCellPosition.cs
- SchemaCollectionCompiler.cs
- Compiler.cs
- MailMessage.cs
- StoryFragments.cs
- AsymmetricAlgorithm.cs
- StrongNameMembershipCondition.cs
- GroupStyle.cs
- DateTimeStorage.cs
- Socket.cs
- DateTimeOffsetAdapter.cs
- DesignerVerbToolStripMenuItem.cs
- WebReferenceCollection.cs
- XmlWriterTraceListener.cs
- SystemInfo.cs
- PolyLineSegment.cs
- AttributeEmitter.cs
- OracleCommandSet.cs
- LogExtent.cs
- ActivityExecutionWorkItem.cs
- SqlSelectClauseBuilder.cs
- LongValidatorAttribute.cs
- TextElementEnumerator.cs
- LiteralText.cs
- SchemaConstraints.cs
- CodeThrowExceptionStatement.cs
- XsdValidatingReader.cs
- SQLSingle.cs
- WorkItem.cs
- ArcSegment.cs
- TextBoxView.cs
- FixedFindEngine.cs
- initElementDictionary.cs
- RuleSettingsCollection.cs
- typedescriptorpermissionattribute.cs
- OpenTypeCommon.cs
- UnhandledExceptionEventArgs.cs
- FixedSOMLineCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- CompletionCallbackWrapper.cs
- DataAccessor.cs
- XmlDictionaryReaderQuotas.cs
- SmiContext.cs
- DeferrableContentConverter.cs
- TransactionBehavior.cs
- Calendar.cs
- ColumnBinding.cs
- CleanUpVirtualizedItemEventArgs.cs
- PartManifestEntry.cs
- FileNotFoundException.cs
- UncommonField.cs
- ConfigurationElement.cs
- BitmapEffectGroup.cs
- DbParameterCollectionHelper.cs
- OleDbDataAdapter.cs
- TransformedBitmap.cs
- SessionSwitchEventArgs.cs
- LookupBindingPropertiesAttribute.cs
- ControlSerializer.cs
- ClipboardData.cs
- DesignerSerializerAttribute.cs
- AutomationProperty.cs
- ListBoxItem.cs
- CompositeActivityTypeDescriptorProvider.cs
- CalendarDesigner.cs
- XmlILModule.cs
- CompiledQueryCacheKey.cs
- MonitorWrapper.cs
- QueryOperationResponseOfT.cs
- FixUp.cs
- PathSegment.cs
- cookiecollection.cs
- RectangleF.cs
- StandardBindingImporter.cs
- EventLogPermission.cs
- SQLDouble.cs
- CreateUserWizardStep.cs
- ConfigXmlElement.cs
- DataSysAttribute.cs
- COM2ExtendedUITypeEditor.cs
- serverconfig.cs
- TimeoutException.cs
- PrintingPermission.cs
- StreamingContext.cs
- DataContractAttribute.cs
- ServiceHostFactory.cs
- DataReaderContainer.cs
- HtmlControlAdapter.cs
- DataTableMapping.cs
- GcHandle.cs
- ConfigurationPropertyAttribute.cs
- SubpageParaClient.cs
- RepeatEnumerable.cs
- NestedContainer.cs
- StringUtil.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- FormViewPagerRow.cs
- StdRegProviderWrapper.cs
- HandlerBase.cs
- LiteralTextParser.cs