Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- InstalledVoice.cs
- EventSourceCreationData.cs
- HtmlWindowCollection.cs
- VisualTreeFlattener.cs
- VariableDesigner.xaml.cs
- MemberJoinTreeNode.cs
- UnaryNode.cs
- CancellationHandlerDesigner.cs
- QueryConverter.cs
- OdbcConnectionString.cs
- ParserOptions.cs
- SqlCommand.cs
- Number.cs
- DesignerCategoryAttribute.cs
- DataGridViewColumnConverter.cs
- TableParagraph.cs
- XmlArrayAttribute.cs
- CodeLabeledStatement.cs
- AxImporter.cs
- ConsumerConnectionPoint.cs
- Update.cs
- ToolboxItemLoader.cs
- AvTraceFormat.cs
- Substitution.cs
- WebRequestModulesSection.cs
- DocumentViewerAutomationPeer.cs
- HandleExceptionArgs.cs
- Renderer.cs
- DocumentOrderComparer.cs
- SchemaConstraints.cs
- Odbc32.cs
- FontConverter.cs
- EncodingConverter.cs
- ContentOperations.cs
- Command.cs
- SettingsPropertyNotFoundException.cs
- Thread.cs
- DeleteMemberBinder.cs
- Validator.cs
- CompiledXpathExpr.cs
- ExpandableObjectConverter.cs
- ListBase.cs
- SectionXmlInfo.cs
- TaiwanLunisolarCalendar.cs
- GetLedgerRequest.cs
- ThreadAttributes.cs
- ConfigurationSectionCollection.cs
- ButtonFieldBase.cs
- ModuleElement.cs
- COM2PropertyPageUITypeConverter.cs
- DbResourceAllocator.cs
- _AutoWebProxyScriptHelper.cs
- WebZone.cs
- OdbcConnectionString.cs
- StylusPointPropertyId.cs
- DictionaryContent.cs
- StreamUpdate.cs
- ImplicitInputBrush.cs
- BaseDataBoundControlDesigner.cs
- ListItemParagraph.cs
- BaseDataBoundControl.cs
- Error.cs
- PerspectiveCamera.cs
- ErrorWrapper.cs
- XpsViewerException.cs
- Binding.cs
- PrintController.cs
- SecurityUniqueId.cs
- CharacterMetrics.cs
- FrameSecurityDescriptor.cs
- SQLBoolean.cs
- StylusDevice.cs
- AddInStore.cs
- XmlDocumentFragment.cs
- TextElement.cs
- PropertyStore.cs
- SchemaMerger.cs
- ShaperBuffers.cs
- ZipFileInfo.cs
- ExpressionEditorAttribute.cs
- PbrsForward.cs
- FilteredXmlReader.cs
- TextElementEnumerator.cs
- TextDecoration.cs
- CoTaskMemHandle.cs
- SafeNativeMethods.cs
- XmlAnyAttributeAttribute.cs
- RadioButtonRenderer.cs
- ProcessManager.cs
- WindowsFormsSectionHandler.cs
- IISMapPath.cs
- PreservationFileWriter.cs
- ServicePointManager.cs
- NegotiateStream.cs
- RoleManagerModule.cs
- DES.cs
- ISCIIEncoding.cs
- FontNamesConverter.cs
- UnknownWrapper.cs
- Int16Converter.cs