Code:
/ DotNET / DotNET / 8.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
- StorageBasedPackageProperties.cs
- BulletDecorator.cs
- CommandSet.cs
- DependencyObjectPropertyDescriptor.cs
- CharacterShapingProperties.cs
- MenuBase.cs
- ConditionedDesigner.cs
- WrappedIUnknown.cs
- DbModificationCommandTree.cs
- DashStyle.cs
- EmptyControlCollection.cs
- SecurityTokenAuthenticator.cs
- SourceFilter.cs
- CompressStream.cs
- ConnectionStringsExpressionBuilder.cs
- FileDialogPermission.cs
- WebPartConnectionsDisconnectVerb.cs
- NonSerializedAttribute.cs
- TextFormatterHost.cs
- EntityDataSourceWizardForm.cs
- ResizeGrip.cs
- CheckBoxBaseAdapter.cs
- BaseParagraph.cs
- SamlAuthenticationStatement.cs
- DecoderFallback.cs
- SAPICategories.cs
- DataSourceConverter.cs
- TextEndOfParagraph.cs
- DataGridSortCommandEventArgs.cs
- DEREncoding.cs
- SQLInt64.cs
- Stopwatch.cs
- elementinformation.cs
- FormatterServices.cs
- WebServiceMethodData.cs
- RoutedEventConverter.cs
- MessageQueueKey.cs
- NullableDecimalSumAggregationOperator.cs
- LambdaCompiler.Binary.cs
- StackSpiller.Temps.cs
- XmlSchemaSequence.cs
- TextParaLineResult.cs
- ExpressionBuilderContext.cs
- IDReferencePropertyAttribute.cs
- LinqDataSourceHelper.cs
- ThreadStaticAttribute.cs
- DynamicMethod.cs
- DispatcherOperation.cs
- EdmTypeAttribute.cs
- DependentList.cs
- DataGridPagerStyle.cs
- DataGridViewLinkColumn.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TileBrush.cs
- DataTableExtensions.cs
- TableRowGroupCollection.cs
- ResourceDisplayNameAttribute.cs
- ButtonDesigner.cs
- SplineKeyFrames.cs
- FullTextLine.cs
- SSmlParser.cs
- QilReference.cs
- BinaryOperationBinder.cs
- TreeNodeStyleCollection.cs
- CodeObject.cs
- ProvidersHelper.cs
- SqlBulkCopyColumnMappingCollection.cs
- VisualTransition.cs
- TimeSpanOrInfiniteConverter.cs
- QilExpression.cs
- GeometryDrawing.cs
- newinstructionaction.cs
- ImageFormat.cs
- InteropAutomationProvider.cs
- TranslateTransform.cs
- DirectoryObjectSecurity.cs
- PeerNameRegistration.cs
- StateRuntime.cs
- Line.cs
- List.cs
- MediaTimeline.cs
- OrderedDictionary.cs
- codemethodreferenceexpression.cs
- DesignerTextBoxAdapter.cs
- ConfigurationPermission.cs
- SubtreeProcessor.cs
- DependencyPropertyDescriptor.cs
- Attributes.cs
- SslStream.cs
- LinearGradientBrush.cs
- FixedTextPointer.cs
- OutputCacheSettingsSection.cs
- TypeUnloadedException.cs
- ProjectionCamera.cs
- TextWriterTraceListener.cs
- DocumentPage.cs
- FormDesigner.cs
- Style.cs
- LinqDataSourceValidationException.cs
- MultilineStringEditor.cs