Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HiddenFieldPageStatePersister.cs
- SelfSignedCertificate.cs
- ExtractorMetadata.cs
- BitStack.cs
- ArgumentNullException.cs
- DispatcherFrame.cs
- OutputCacheSettings.cs
- QilUnary.cs
- WebPartEditorOkVerb.cs
- ContentPlaceHolder.cs
- EncodingInfo.cs
- MessageQueuePermissionAttribute.cs
- Color.cs
- NullableFloatAverageAggregationOperator.cs
- X509Certificate.cs
- SessionPageStateSection.cs
- CodeExpressionStatement.cs
- TemplatedWizardStep.cs
- SQLByte.cs
- Int16Converter.cs
- PlainXmlWriter.cs
- XmlSerializerNamespaces.cs
- oledbconnectionstring.cs
- ComplusTypeValidator.cs
- VisualStyleRenderer.cs
- UserControlParser.cs
- ObjectDataSourceMethodEventArgs.cs
- XPathMultyIterator.cs
- CloudCollection.cs
- ToolStripLocationCancelEventArgs.cs
- ClientCultureInfo.cs
- StylusButtonEventArgs.cs
- SafeThreadHandle.cs
- XPathDocument.cs
- SafeNativeMethodsMilCoreApi.cs
- KeyInterop.cs
- ViewCellRelation.cs
- Operand.cs
- EditorAttribute.cs
- TextHidden.cs
- MappingMetadataHelper.cs
- ProxyGenerator.cs
- VisualStyleRenderer.cs
- Track.cs
- InputMethod.cs
- AttributeProviderAttribute.cs
- CompiledIdentityConstraint.cs
- RegularExpressionValidator.cs
- LogEntry.cs
- RsaSecurityToken.cs
- UITypeEditor.cs
- ParentQuery.cs
- EmptyControlCollection.cs
- hresults.cs
- QueryContinueDragEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- CustomAttribute.cs
- SafeNativeMethods.cs
- TagPrefixCollection.cs
- StringArrayEditor.cs
- GiveFeedbackEventArgs.cs
- ListViewInsertEventArgs.cs
- Pkcs7Recipient.cs
- TrailingSpaceComparer.cs
- XmlSchemaComplexContentRestriction.cs
- ExpressionNode.cs
- FileDialogCustomPlacesCollection.cs
- RelationshipConverter.cs
- PrintDialog.cs
- HttpCapabilitiesEvaluator.cs
- Rule.cs
- Int64Storage.cs
- CustomPopupPlacement.cs
- WebPartConnectVerb.cs
- Function.cs
- FullTextState.cs
- BitmapSourceSafeMILHandle.cs
- XmlValueConverter.cs
- BidOverLoads.cs
- CodeArrayCreateExpression.cs
- XmlSchemaSimpleContentRestriction.cs
- SingleResultAttribute.cs
- OleDbCommandBuilder.cs
- StructuredTypeEmitter.cs
- LiteralControl.cs
- SiteMapNodeItem.cs
- ComplexTypeEmitter.cs
- MenuItemBindingCollection.cs
- figurelengthconverter.cs
- Query.cs
- JsonSerializer.cs
- TransactionManager.cs
- DateTimePicker.cs
- RawMouseInputReport.cs
- SizeF.cs
- DesignTimeTemplateParser.cs
- XmlDataLoader.cs
- XmlCharType.cs
- SecurityDocument.cs
- propertytag.cs