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
- COM2AboutBoxPropertyDescriptor.cs
- AncestorChangedEventArgs.cs
- PersonalizationAdministration.cs
- VerticalAlignConverter.cs
- MemoryMappedFile.cs
- ModelItemCollectionImpl.cs
- DomainUpDown.cs
- EdmPropertyAttribute.cs
- ImageDesigner.cs
- StreamingContext.cs
- login.cs
- CodeTypeParameter.cs
- ListViewItemMouseHoverEvent.cs
- SrgsSubset.cs
- Peer.cs
- _SslStream.cs
- DbConnectionPool.cs
- File.cs
- DataDocumentXPathNavigator.cs
- ObjectContextServiceProvider.cs
- WebPartUtil.cs
- XPathSingletonIterator.cs
- _StreamFramer.cs
- QilUnary.cs
- DependencyProperty.cs
- DetailsViewDeletedEventArgs.cs
- BinarySerializer.cs
- Int32CollectionValueSerializer.cs
- TimerExtension.cs
- ProfilePropertySettingsCollection.cs
- ImportContext.cs
- ListBoxChrome.cs
- XsdBuilder.cs
- GeometryCollection.cs
- TranslateTransform.cs
- FloatSumAggregationOperator.cs
- ScriptReferenceEventArgs.cs
- DataObjectCopyingEventArgs.cs
- ScriptingRoleServiceSection.cs
- GridViewRowEventArgs.cs
- RuntimeHandles.cs
- CheckBox.cs
- Automation.cs
- Size3DConverter.cs
- WebHostUnsafeNativeMethods.cs
- PasswordRecovery.cs
- ConfigurationHelpers.cs
- OutputScope.cs
- MessageSecurityOverHttpElement.cs
- FileDialogCustomPlace.cs
- DeferredReference.cs
- BuildManagerHost.cs
- CellTreeNode.cs
- StandardCommands.cs
- StyleXamlTreeBuilder.cs
- ProtocolsConfigurationEntry.cs
- SqlBinder.cs
- DisplayInformation.cs
- PaginationProgressEventArgs.cs
- HtmlForm.cs
- LicenseManager.cs
- BoundPropertyEntry.cs
- _Win32.cs
- SynchronizationContext.cs
- TransformationRules.cs
- SQLInt16Storage.cs
- FlowSwitchDesigner.xaml.cs
- SafeSerializationManager.cs
- CellIdBoolean.cs
- ToolStripItemEventArgs.cs
- CodeMethodReturnStatement.cs
- FlowDocumentPaginator.cs
- RegexCapture.cs
- NewExpression.cs
- SplayTreeNode.cs
- Figure.cs
- HttpGetProtocolImporter.cs
- SurrogateEncoder.cs
- SqlProvider.cs
- TrustManagerMoreInformation.cs
- NumberFormatter.cs
- Vector3DIndependentAnimationStorage.cs
- AppearanceEditorPart.cs
- Compiler.cs
- Metafile.cs
- DbTransaction.cs
- StringArrayConverter.cs
- TrustManagerPromptUI.cs
- ToolBarButton.cs
- ScrollViewer.cs
- ReadOnlyTernaryTree.cs
- DetailsViewPagerRow.cs
- TextCharacters.cs
- LexicalChunk.cs
- ConsumerConnectionPoint.cs
- BrowserTree.cs
- PointCollection.cs
- WinFormsUtils.cs
- ContainerParagraph.cs
- ConfigurationLocation.cs