Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaObjectCollection.cs / 1 / XmlSchemaObjectCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.ComponentModel; using System.Xml.Serialization; ////// /// public class XmlSchemaObjectCollection : CollectionBase { XmlSchemaObject parent; ///[To be supplied.] ////// /// public XmlSchemaObjectCollection() { } ///[To be supplied.] ////// /// public XmlSchemaObjectCollection(XmlSchemaObject parent) { this.parent = parent; } ///[To be supplied.] ////// /// public virtual XmlSchemaObject this[int index] { get { return (XmlSchemaObject)List[index]; } set { List[index] = value; } } ///[To be supplied.] ////// /// public new XmlSchemaObjectEnumerator GetEnumerator() { return new XmlSchemaObjectEnumerator(InnerList.GetEnumerator()); } ///[To be supplied.] ////// /// public int Add(XmlSchemaObject item) { return List.Add(item); } ///[To be supplied.] ////// /// public void Insert(int index, XmlSchemaObject item) { List.Insert(index, item); } ///[To be supplied.] ////// /// public int IndexOf(XmlSchemaObject item) { return List.IndexOf(item); } ///[To be supplied.] ////// /// public bool Contains(XmlSchemaObject item) { return List.Contains(item); } ///[To be supplied.] ////// /// public void Remove(XmlSchemaObject item) { List.Remove(item); } ///[To be supplied.] ////// /// public void CopyTo(XmlSchemaObject[] array, int index) { List.CopyTo(array, index); } ///[To be supplied.] ////// /// protected override void OnInsert(int index, object item) { if (parent != null) { parent.OnAdd(this, item); } } ///[To be supplied.] ////// /// protected override void OnSet(int index, object oldValue, object newValue) { if (parent != null) { parent.OnRemove(this, oldValue); parent.OnAdd(this, newValue); } } ///[To be supplied.] ////// /// protected override void OnClear() { if (parent != null) { parent.OnClear(this); } } ///[To be supplied.] ////// /// protected override void OnRemove(int index, object item) { if (parent != null) { parent.OnRemove(this, item); } } internal XmlSchemaObjectCollection Clone() { XmlSchemaObjectCollection coll = new XmlSchemaObjectCollection(); coll.Add(this); return coll; } private void Add(XmlSchemaObjectCollection collToAdd) { this.InnerList.InsertRange(0, collToAdd); } } ///[To be supplied.] ////// /// public class XmlSchemaObjectEnumerator: IEnumerator { IEnumerator enumerator; internal XmlSchemaObjectEnumerator( IEnumerator enumerator ) { this.enumerator = enumerator; } ///[To be supplied.] ////// /// public void Reset() { enumerator.Reset(); } ///[To be supplied.] ////// /// public bool MoveNext() { return enumerator.MoveNext(); } ///[To be supplied.] ////// /// public XmlSchemaObject Current { get { return (XmlSchemaObject)enumerator.Current; } } ///[To be supplied.] ////// void IEnumerator.Reset() { enumerator.Reset(); } /// /// bool IEnumerator.MoveNext() { return enumerator.MoveNext(); } /// /// object IEnumerator.Current { get { return enumerator.Current; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CryptoKeySecurity.cs
- Wizard.cs
- PenThreadWorker.cs
- BindingMAnagerBase.cs
- SchemaInfo.cs
- SymbolMethod.cs
- ServiceModelPerformanceCounters.cs
- codemethodreferenceexpression.cs
- CommentEmitter.cs
- ADMembershipProvider.cs
- TextDecorationCollection.cs
- SymbolMethod.cs
- DataGridViewButtonCell.cs
- XXXInfos.cs
- NetCodeGroup.cs
- LoadItemsEventArgs.cs
- ResourceReader.cs
- XmlEncApr2001.cs
- Stylus.cs
- WebPartMovingEventArgs.cs
- MultiTouchSystemGestureLogic.cs
- NativeMethods.cs
- XmlSchemaFacet.cs
- UrlUtility.cs
- LocalTransaction.cs
- OracleString.cs
- MultiSelector.cs
- DES.cs
- TextServicesCompartmentContext.cs
- DirectionalLight.cs
- ObjectDataSourceSelectingEventArgs.cs
- SchemaObjectWriter.cs
- PropertyMapper.cs
- Symbol.cs
- FixedPosition.cs
- LoginNameDesigner.cs
- PreDigestedSignedInfo.cs
- InplaceBitmapMetadataWriter.cs
- DbProviderFactories.cs
- SettingsPropertyCollection.cs
- IgnoreFileBuildProvider.cs
- MessagePropertyVariants.cs
- PasswordRecovery.cs
- NGCSerializationManager.cs
- TemplateControl.cs
- NameNode.cs
- AttributeInfo.cs
- SqlTransaction.cs
- CodePageEncoding.cs
- IndexedEnumerable.cs
- SafeNativeMethods.cs
- ButtonDesigner.cs
- QilUnary.cs
- OuterGlowBitmapEffect.cs
- EntityCommand.cs
- CollectionBase.cs
- ToolStripDropDownMenu.cs
- RangeValidator.cs
- PrintEvent.cs
- DbConnectionFactory.cs
- XmlHierarchicalDataSourceView.cs
- WindowsGraphicsCacheManager.cs
- DataGridViewCellValueEventArgs.cs
- DataGridColumnHeaderCollection.cs
- Duration.cs
- FileDialogCustomPlace.cs
- Ref.cs
- TabControlAutomationPeer.cs
- TreeNodeStyleCollection.cs
- XmlAnyElementAttribute.cs
- SqlRetyper.cs
- BaseHashHelper.cs
- SecurityRuntime.cs
- GridViewCommandEventArgs.cs
- NamedPipeChannelListener.cs
- ReadOnlyCollectionBase.cs
- NavigationCommands.cs
- BindableTemplateBuilder.cs
- ItemList.cs
- HandlerBase.cs
- SolidColorBrush.cs
- ResourceDefaultValueAttribute.cs
- MembershipPasswordException.cs
- ISFTagAndGuidCache.cs
- EventLogEntryCollection.cs
- ConstraintConverter.cs
- ComboBoxRenderer.cs
- ThreadInterruptedException.cs
- HostedElements.cs
- ToolStripSplitButton.cs
- Root.cs
- BufferedGraphicsContext.cs
- PlainXmlWriter.cs
- XmlDataSourceView.cs
- ZipIOCentralDirectoryFileHeader.cs
- HtmlInputSubmit.cs
- CodeNamespaceImportCollection.cs
- MergeLocalizationDirectives.cs
- ISAPIWorkerRequest.cs
- ToolboxDataAttribute.cs