Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InternalDispatchObject.cs
- Shape.cs
- ListViewUpdateEventArgs.cs
- ProviderCollection.cs
- PhoneCall.cs
- DataServiceQueryContinuation.cs
- CalendarButtonAutomationPeer.cs
- DataGridViewLinkColumn.cs
- AssociationTypeEmitter.cs
- BackgroundFormatInfo.cs
- WinEventHandler.cs
- IDispatchConstantAttribute.cs
- QueryRewriter.cs
- LineSegment.cs
- BinaryConverter.cs
- ConfigurationSection.cs
- AppDomainProtocolHandler.cs
- BinaryExpression.cs
- SystemWebSectionGroup.cs
- MimeTypeAttribute.cs
- IncrementalHitTester.cs
- FileSystemEventArgs.cs
- ParserStreamGeometryContext.cs
- RoutedCommand.cs
- XmlMapping.cs
- GeometryValueSerializer.cs
- OleAutBinder.cs
- Setter.cs
- OuterGlowBitmapEffect.cs
- EditorZone.cs
- RenderContext.cs
- CodeCastExpression.cs
- FixedSOMLineRanges.cs
- BitmapScalingModeValidation.cs
- Pen.cs
- InputGestureCollection.cs
- DocumentPaginator.cs
- ProgressBarRenderer.cs
- DataMemberListEditor.cs
- CodeIdentifier.cs
- TdsParserStaticMethods.cs
- HttpListenerPrefixCollection.cs
- WebPartZoneBase.cs
- PhysicalFontFamily.cs
- BitArray.cs
- ADMembershipProvider.cs
- NumericUpDown.cs
- JavaScriptString.cs
- CardSpaceShim.cs
- ValidatingPropertiesEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- EdmFunction.cs
- Command.cs
- TypeValidationEventArgs.cs
- XmlFormatWriterGenerator.cs
- SynchronizationContext.cs
- VirtualDirectoryMappingCollection.cs
- GeometryGroup.cs
- PropertyRef.cs
- Int16Converter.cs
- JsonReaderWriterFactory.cs
- HttpContext.cs
- SafeCryptContextHandle.cs
- EntitySetDataBindingList.cs
- SmiRecordBuffer.cs
- XPathNodeIterator.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NameValueConfigurationCollection.cs
- StringUtil.cs
- UInt64.cs
- ShortcutKeysEditor.cs
- BinaryCommonClasses.cs
- DrawingGroup.cs
- PageContentAsyncResult.cs
- TextEffect.cs
- LifetimeServices.cs
- Part.cs
- WebHttpSecurityElement.cs
- UnknownBitmapDecoder.cs
- MobileListItemCollection.cs
- Convert.cs
- XsdValidatingReader.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ListControl.cs
- XPathBuilder.cs
- GregorianCalendar.cs
- InvokeProviderWrapper.cs
- ErrorReporting.cs
- FixUp.cs
- ProxyFragment.cs
- PersonalizableAttribute.cs
- filewebresponse.cs
- Compress.cs
- AttributeUsageAttribute.cs
- Single.cs
- WebBrowserDesigner.cs
- EntityDataSourceState.cs
- DecoderExceptionFallback.cs
- TextPattern.cs
- NonBatchDirectoryCompiler.cs