Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionElementCollection.cs / 1305376 / SchemaImporterExtensionElementCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(SchemaImporterExtensionElement))] public sealed class SchemaImporterExtensionElementCollection : ConfigurationElementCollection { public SchemaImporterExtensionElementCollection() { } public SchemaImporterExtensionElement this[int index] { get { return (SchemaImporterExtensionElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new SchemaImporterExtensionElement this[string name] { get { return (SchemaImporterExtensionElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(SchemaImporterExtensionElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new SchemaImporterExtensionElement(); } protected override Object GetElementKey(ConfigurationElement element) { return ((SchemaImporterExtensionElement)element).Key; } public int IndexOf(SchemaImporterExtensionElement element) { return BaseIndexOf(element); } public void Remove(SchemaImporterExtensionElement element) { BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Serialization.Configuration { using System; using System.Configuration; using System.Security.Permissions; [ConfigurationCollection(typeof(SchemaImporterExtensionElement))] public sealed class SchemaImporterExtensionElementCollection : ConfigurationElementCollection { public SchemaImporterExtensionElementCollection() { } public SchemaImporterExtensionElement this[int index] { get { return (SchemaImporterExtensionElement)BaseGet(index); } set { if (BaseGet(index) != null) { BaseRemoveAt(index); } BaseAdd(index,value); } } public new SchemaImporterExtensionElement this[string name] { get { return (SchemaImporterExtensionElement)BaseGet(name); } set { if (BaseGet(name) != null) { BaseRemove(name); } BaseAdd(value); } } public void Add(SchemaImporterExtensionElement element) { BaseAdd(element); } public void Clear() { BaseClear(); } protected override ConfigurationElement CreateNewElement() { return new SchemaImporterExtensionElement(); } protected override Object GetElementKey(ConfigurationElement element) { return ((SchemaImporterExtensionElement)element).Key; } public int IndexOf(SchemaImporterExtensionElement element) { return BaseIndexOf(element); } public void Remove(SchemaImporterExtensionElement element) { BaseRemove(element.Key); } public void Remove(string name) { BaseRemove(name); } public void RemoveAt(int index) { BaseRemoveAt(index); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OlePropertyStructs.cs
- EditBehavior.cs
- ToolStripContentPanelDesigner.cs
- EventProxy.cs
- MailWebEventProvider.cs
- HtmlShimManager.cs
- PasswordTextContainer.cs
- PeerMessageDispatcher.cs
- WindowsFormsHost.cs
- OrderToken.cs
- TextServicesCompartment.cs
- DocumentGrid.cs
- FileDetails.cs
- NotifyInputEventArgs.cs
- SyndicationElementExtensionCollection.cs
- WebPartCloseVerb.cs
- PriorityChain.cs
- DirectoryObjectSecurity.cs
- Activator.cs
- Shape.cs
- TabletCollection.cs
- PartDesigner.cs
- COM2AboutBoxPropertyDescriptor.cs
- DocobjHost.cs
- AnimatedTypeHelpers.cs
- ExpressionWriter.cs
- COM2ExtendedTypeConverter.cs
- WebMethodAttribute.cs
- CalendarTable.cs
- HtmlGenericControl.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ErrorProvider.cs
- AssemblyBuilderData.cs
- OutputCacheProfileCollection.cs
- XmlValidatingReaderImpl.cs
- PagesSection.cs
- MgmtConfigurationRecord.cs
- InternalSafeNativeMethods.cs
- Merger.cs
- PrintPreviewGraphics.cs
- TextServicesCompartmentContext.cs
- DiffuseMaterial.cs
- MemberAssignment.cs
- _CacheStreams.cs
- DataControlField.cs
- Tile.cs
- DataContractSerializerServiceBehavior.cs
- WSDualHttpSecurity.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- UriTemplateTableMatchCandidate.cs
- WindowsGraphics2.cs
- MergePropertyDescriptor.cs
- ErrorRuntimeConfig.cs
- QueuePathEditor.cs
- PageHandlerFactory.cs
- ScrollChrome.cs
- CodeCommentStatementCollection.cs
- HostedTransportConfigurationManager.cs
- ObjectQueryState.cs
- ObjectSecurity.cs
- IncrementalHitTester.cs
- namescope.cs
- IntegerValidatorAttribute.cs
- ElementMarkupObject.cs
- DtdParser.cs
- IItemContainerGenerator.cs
- CompiledQuery.cs
- WebPartEditorOkVerb.cs
- cryptoapiTransform.cs
- ClientSettingsProvider.cs
- DiagnosticTraceSource.cs
- WebSysDisplayNameAttribute.cs
- DropDownButton.cs
- BulletedListEventArgs.cs
- BitmapPalettes.cs
- Axis.cs
- CultureMapper.cs
- TextTreeDeleteContentUndoUnit.cs
- XmlAttributeHolder.cs
- ToolStripComboBox.cs
- regiisutil.cs
- Point.cs
- SessionPageStateSection.cs
- PromptEventArgs.cs
- XmlChoiceIdentifierAttribute.cs
- TextFormatterContext.cs
- RandomNumberGenerator.cs
- ViewGenResults.cs
- PeerNearMe.cs
- DelegateTypeInfo.cs
- XmlSignatureProperties.cs
- SizeAnimationBase.cs
- ProfileModule.cs
- CodeConstructor.cs
- PrimarySelectionGlyph.cs
- TextParaLineResult.cs
- DynamicDocumentPaginator.cs
- SqlDataRecord.cs
- TimeoutException.cs
- WorkflowExecutor.cs