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
- BasicHttpSecurityElement.cs
- ObjectConverter.cs
- Application.cs
- GridViewSelectEventArgs.cs
- TableRowCollection.cs
- ConcurrencyMode.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- VirtualPath.cs
- CodeTypeDeclarationCollection.cs
- DetailsView.cs
- SecurityUtils.cs
- LingerOption.cs
- OraclePermission.cs
- FrameworkElementFactory.cs
- ILGen.cs
- TextCompositionManager.cs
- ExtendedProperty.cs
- RegexBoyerMoore.cs
- DesignSurfaceEvent.cs
- ImageListUtils.cs
- ListViewCommandEventArgs.cs
- XPathPatternParser.cs
- NonClientArea.cs
- SystemUdpStatistics.cs
- WebConfigurationHost.cs
- DoWorkEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- sqlinternaltransaction.cs
- ProjectionRewriter.cs
- SQLUtility.cs
- FileEnumerator.cs
- UrlParameterWriter.cs
- List.cs
- CurrentChangedEventManager.cs
- TraceContextEventArgs.cs
- PerformanceCounterManager.cs
- TargetParameterCountException.cs
- ConfigurationManager.cs
- ToolStripDesignerAvailabilityAttribute.cs
- TileBrush.cs
- FileStream.cs
- MatrixKeyFrameCollection.cs
- SafeNativeMethods.cs
- UserControl.cs
- Transform3DGroup.cs
- GridProviderWrapper.cs
- TraceShell.cs
- LogAppendAsyncResult.cs
- BaseTemplateBuildProvider.cs
- ProxyElement.cs
- KeyboardNavigation.cs
- IconConverter.cs
- RepeaterCommandEventArgs.cs
- TransformerInfoCollection.cs
- arabicshape.cs
- AssociationSetEnd.cs
- AncestorChangedEventArgs.cs
- TrustLevelCollection.cs
- ParseHttpDate.cs
- Control.cs
- ReachVisualSerializer.cs
- InputBuffer.cs
- baseshape.cs
- DispatcherTimer.cs
- DataGridItem.cs
- RadioButtonBaseAdapter.cs
- X509ThumbprintKeyIdentifierClause.cs
- PKCS1MaskGenerationMethod.cs
- LinkButton.cs
- HttpResponseBase.cs
- KoreanCalendar.cs
- SqlFacetAttribute.cs
- CookielessHelper.cs
- DurableEnlistmentState.cs
- PropertyValidationContext.cs
- ApplicationManager.cs
- RtfToXamlLexer.cs
- NavigationService.cs
- ConfigsHelper.cs
- XmlStreamStore.cs
- TargetParameterCountException.cs
- Sql8ExpressionRewriter.cs
- ReflectionUtil.cs
- SplitterEvent.cs
- BaseProcessProtocolHandler.cs
- ClientEventManager.cs
- BufferedReadStream.cs
- BitmapPalettes.cs
- LabelAutomationPeer.cs
- DataSourceControl.cs
- UdpReplyToBehavior.cs
- AtlasWeb.Designer.cs
- unsafeIndexingFilterStream.cs
- EdmProperty.cs
- Filter.cs
- PresentationTraceSources.cs
- SecureStringHasher.cs
- HttpWebRequest.cs
- PermissionListSet.cs
- NativeCppClassAttribute.cs