Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / Serialization / Configuration / SchemaImporterExtensionElementCollection.cs / 1 / 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
- UrlPath.cs
- MinimizableAttributeTypeConverter.cs
- Mouse.cs
- Debug.cs
- EntityCodeGenerator.cs
- OdbcEnvironmentHandle.cs
- TemplateLookupAction.cs
- UserControl.cs
- MarkupObject.cs
- TextSchema.cs
- PropertyStore.cs
- AnnotationResourceCollection.cs
- EpmSourceTree.cs
- DelegateBodyWriter.cs
- MimeMultiPart.cs
- DataControlReference.cs
- LinqDataSourceContextData.cs
- PointAnimationClockResource.cs
- CoreSwitches.cs
- WebEncodingValidator.cs
- MainMenu.cs
- ToolStripScrollButton.cs
- OleDbConnectionFactory.cs
- FocusManager.cs
- XsdDuration.cs
- FaultDesigner.cs
- CompatibleComparer.cs
- DbProviderFactories.cs
- CodePrimitiveExpression.cs
- HttpRawResponse.cs
- ServicesSection.cs
- ContextStaticAttribute.cs
- NativeMethods.cs
- UIElementParaClient.cs
- TagPrefixCollection.cs
- _NetworkingPerfCounters.cs
- TrackingStringDictionary.cs
- SpellerError.cs
- TableDetailsCollection.cs
- FrameworkContextData.cs
- KeyMatchBuilder.cs
- DocumentViewerBaseAutomationPeer.cs
- Accessible.cs
- ControlType.cs
- DbConnectionFactory.cs
- ExpressionWriter.cs
- RadioButton.cs
- CommandPlan.cs
- ArraySegment.cs
- SiteMapNodeItemEventArgs.cs
- PolicyManager.cs
- mactripleDES.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- querybuilder.cs
- ComPlusDiagnosticTraceSchemas.cs
- StrokeNodeOperations.cs
- EditModeSwitchButton.cs
- DependencyPropertyHelper.cs
- CqlLexer.cs
- StateMachineSubscriptionManager.cs
- InvalidComObjectException.cs
- EdmItemCollection.OcAssemblyCache.cs
- ToolbarAUtomationPeer.cs
- ColumnResizeUndoUnit.cs
- SizeAnimationUsingKeyFrames.cs
- StringArrayConverter.cs
- TextSelectionHighlightLayer.cs
- FontDialog.cs
- AutomationPatternInfo.cs
- SessionState.cs
- TypedLocationWrapper.cs
- MasterPageBuildProvider.cs
- StorageRoot.cs
- ObjRef.cs
- TypeForwardedToAttribute.cs
- DesignerView.cs
- Profiler.cs
- HtmlTableCell.cs
- EventBookmark.cs
- SystemColors.cs
- ISessionStateStore.cs
- PresentationTraceSources.cs
- DLinqColumnProvider.cs
- CallbackValidator.cs
- MultiSelector.cs
- OleDbPermission.cs
- MD5CryptoServiceProvider.cs
- InvariantComparer.cs
- FontWeightConverter.cs
- XPathNavigatorReader.cs
- CalloutQueueItem.cs
- OutputCacheProfileCollection.cs
- FixedElement.cs
- OdbcEnvironmentHandle.cs
- StrokeSerializer.cs
- controlskin.cs
- HostExecutionContextManager.cs
- FilterQuery.cs
- AcceleratedTokenAuthenticator.cs
- MenuTracker.cs