Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeReferenceCollection.cs / 1 / CodeTypeReferenceCollection.cs
// ------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTypeReferenceCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeReferenceCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeReferenceCollection(CodeTypeReferenceCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeReferenceCollection(CodeTypeReference[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeReference this[int index] { get { return ((CodeTypeReference)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeReference value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void Add(string value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void Add(Type value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void AddRange(CodeTypeReference[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///Copies the elements of an array to the end of the ///. /// public void AddRange(CodeTypeReferenceCollection value) { if (value == null) { throw new ArgumentNullException("value"); } int currentCount = value.Count; for (int i = 0; i < currentCount; i = ((i) + (1))) { this.Add(value[i]); } } ////// Adds the contents of another ///to the end of the collection. /// /// public bool Contains(CodeTypeReference value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeReference[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeReference value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeReference value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeReference value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ------------------------------------------------------------------------------ //Removes a specific ///from the /// . // Copyright (c) Microsoft Corporation. All rights reserved. // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTypeReferenceCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeReferenceCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeReferenceCollection(CodeTypeReferenceCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeReferenceCollection(CodeTypeReference[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeReference this[int index] { get { return ((CodeTypeReference)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeReference value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void Add(string value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void Add(Type value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void AddRange(CodeTypeReference[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///Copies the elements of an array to the end of the ///. /// public void AddRange(CodeTypeReferenceCollection value) { if (value == null) { throw new ArgumentNullException("value"); } int currentCount = value.Count; for (int i = 0; i < currentCount; i = ((i) + (1))) { this.Add(value[i]); } } ////// Adds the contents of another ///to the end of the collection. /// /// public bool Contains(CodeTypeReference value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeReference[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeReference value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeReference value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeReference value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ArrayItemValue.cs
- TargetPerspective.cs
- NativeRightsManagementAPIsStructures.cs
- FixedSOMLineRanges.cs
- MsmqIntegrationProcessProtocolHandler.cs
- WaveHeader.cs
- ReferenceEqualityComparer.cs
- Parser.cs
- WriteTimeStream.cs
- RbTree.cs
- PropertyFilterAttribute.cs
- OutOfMemoryException.cs
- AutoResizedEvent.cs
- AnnotationMap.cs
- EncodingConverter.cs
- BoundColumn.cs
- ServiceModelExtensionCollectionElement.cs
- ByeMessageCD1.cs
- ContainerCodeDomSerializer.cs
- XmlProcessingInstruction.cs
- Rotation3DAnimationBase.cs
- SrgsGrammarCompiler.cs
- DoubleUtil.cs
- PropertyDescriptorComparer.cs
- SqlNotificationEventArgs.cs
- ChooseAction.cs
- WindowsSpinner.cs
- SmiEventStream.cs
- ToolStripTextBox.cs
- FragmentQueryProcessor.cs
- TextBoxView.cs
- ActiveXHost.cs
- Decorator.cs
- SecurityRuntime.cs
- PeerNodeTraceRecord.cs
- EngineSiteSapi.cs
- SpellerInterop.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SelectorItemAutomationPeer.cs
- HttpRequestWrapper.cs
- ParameterReplacerVisitor.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DataGridViewHeaderCell.cs
- SqlDataSourceCommandEventArgs.cs
- UnsafeNetInfoNativeMethods.cs
- UnmanagedMemoryStream.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SimpleParser.cs
- ExpanderAutomationPeer.cs
- PropertyGeneratedEventArgs.cs
- DocComment.cs
- HtmlControlPersistable.cs
- FileLogRecord.cs
- EntitySqlQueryCacheKey.cs
- DynamicResourceExtension.cs
- EmptyStringExpandableObjectConverter.cs
- TypeViewSchema.cs
- SecurityManager.cs
- DataGrid.cs
- LOSFormatter.cs
- IdentityNotMappedException.cs
- SrgsElement.cs
- SqlXml.cs
- ApplicationException.cs
- DataObjectPastingEventArgs.cs
- GenerateScriptTypeAttribute.cs
- CommunicationObjectAbortedException.cs
- DesignerActionVerbList.cs
- WebPartTracker.cs
- sqlcontext.cs
- DropTarget.cs
- SmtpDateTime.cs
- ManagedIStream.cs
- DataProtectionSecurityStateEncoder.cs
- Win32SafeHandles.cs
- Window.cs
- RowUpdatedEventArgs.cs
- XPathMultyIterator.cs
- Schema.cs
- CharEnumerator.cs
- FtpWebResponse.cs
- PeerContact.cs
- CustomSignedXml.cs
- DataRecordInfo.cs
- PerfCounterSection.cs
- FixedHyperLink.cs
- RangeBaseAutomationPeer.cs
- SortDescription.cs
- LongValidator.cs
- ISO2022Encoding.cs
- xml.cs
- SystemFonts.cs
- XmlWellformedWriter.cs
- ArithmeticException.cs
- MembershipValidatePasswordEventArgs.cs
- UncommonField.cs
- MLangCodePageEncoding.cs
- ProcessDesigner.cs
- _SSPISessionCache.cs
- CompModSwitches.cs