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
- _KerberosClient.cs
- RuntimeHelpers.cs
- XamlClipboardData.cs
- ListBoxItemAutomationPeer.cs
- BaseDataBoundControl.cs
- ThreadExceptionDialog.cs
- ControlEvent.cs
- BridgeDataRecord.cs
- SQLInt32.cs
- Rule.cs
- PrimaryKeyTypeConverter.cs
- SqlRetyper.cs
- HtmlFormWrapper.cs
- Queue.cs
- TextElementEnumerator.cs
- FontStyle.cs
- SafeProcessHandle.cs
- CodeSnippetExpression.cs
- StringWriter.cs
- ToggleButton.cs
- TCPListener.cs
- HGlobalSafeHandle.cs
- OletxCommittableTransaction.cs
- PixelFormat.cs
- HostProtectionPermission.cs
- XmlC14NWriter.cs
- ScriptDescriptor.cs
- FormViewUpdateEventArgs.cs
- PixelFormatConverter.cs
- RecognitionResult.cs
- xamlnodes.cs
- TrackingParameters.cs
- NameValueConfigurationCollection.cs
- TableLayoutPanelResizeGlyph.cs
- ExpressionEditorAttribute.cs
- IteratorFilter.cs
- HashHelper.cs
- StackSpiller.Bindings.cs
- Transactions.cs
- SafeProcessHandle.cs
- XmlUtil.cs
- Property.cs
- FileUtil.cs
- DataSysAttribute.cs
- DrawingState.cs
- ViewStateModeByIdAttribute.cs
- WebPartVerbCollection.cs
- BooleanStorage.cs
- ExpressionBinding.cs
- metadatamappinghashervisitor.cs
- SQLRoleProvider.cs
- ObjectAnimationUsingKeyFrames.cs
- BindingOperations.cs
- SQLDateTimeStorage.cs
- UnhandledExceptionEventArgs.cs
- CrossSiteScriptingValidation.cs
- GridViewColumnHeaderAutomationPeer.cs
- CodeNamespaceImportCollection.cs
- ViewPort3D.cs
- ActiveDocumentEvent.cs
- SmtpTransport.cs
- ZipIOCentralDirectoryFileHeader.cs
- BindingGraph.cs
- ReceiveContextCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- ItemCheckEvent.cs
- ExtensionMethods.cs
- XmlSerializer.cs
- CompleteWizardStep.cs
- LockCookie.cs
- UnmanagedMarshal.cs
- HwndSubclass.cs
- DataGridViewColumnCollectionDialog.cs
- ImmutableObjectAttribute.cs
- MemberMaps.cs
- DBBindings.cs
- WebPartCancelEventArgs.cs
- Int32Rect.cs
- AspNetCompatibilityRequirementsMode.cs
- CodeDirectoryCompiler.cs
- WorkflowServiceHostFactory.cs
- FixedSOMPage.cs
- SharedPerformanceCounter.cs
- Vector3DAnimation.cs
- NTAccount.cs
- KnownTypeHelper.cs
- XmlDocumentFragment.cs
- CoTaskMemHandle.cs
- CmsUtils.cs
- TdsParserSessionPool.cs
- DataTableMappingCollection.cs
- ArrayListCollectionBase.cs
- SQLResource.cs
- WorkflowOperationBehavior.cs
- Brushes.cs
- DefaultValidator.cs
- DecimalAnimationBase.cs
- FieldNameLookup.cs
- MouseCaptureWithinProperty.cs
- FontFamilyConverter.cs