Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / System / Data / BaseCollection.cs / 1 / BaseCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.Collections; using System.ComponentModel; using System.Globalization; ////// #if WINFSInternalOnly internal #else public #endif class InternalDataCollectionBase : ICollection { internal static CollectionChangeEventArgs RefreshEventArgs = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null); //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// [ Browsable(false) ] public virtual int Count { get { return List.Count; } } public virtual void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } public virtual IEnumerator GetEnumerator() { return List.GetEnumerator(); } [ Browsable(false) ] public bool IsReadOnly { get { return false; } } [Browsable(false)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } // Return value: // > 0 (1) : CaseSensitve equal // < 0 (-1) : Case-Insensitive Equal // = 0 : Not Equal internal int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale) { if (fCaseSensitive) { if (String.Compare(s1, s2, false, locale) == 0) return 1; else return 0; } // Case, kana and width -Insensitive compare if (locale.CompareInfo.Compare(s1, s2, CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0) { if (String.Compare(s1, s2, false, locale) == 0) return 1; else return -1; } return 0; } [Browsable(false)] public object SyncRoot { get { return this; } } protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the total number of elements in a collection. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.Collections; using System.ComponentModel; using System.Globalization; ////// #if WINFSInternalOnly internal #else public #endif class InternalDataCollectionBase : ICollection { internal static CollectionChangeEventArgs RefreshEventArgs = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null); //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// [ Browsable(false) ] public virtual int Count { get { return List.Count; } } public virtual void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } public virtual IEnumerator GetEnumerator() { return List.GetEnumerator(); } [ Browsable(false) ] public bool IsReadOnly { get { return false; } } [Browsable(false)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } // Return value: // > 0 (1) : CaseSensitve equal // < 0 (-1) : Case-Insensitive Equal // = 0 : Not Equal internal int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale) { if (fCaseSensitive) { if (String.Compare(s1, s2, false, locale) == 0) return 1; else return 0; } // Case, kana and width -Insensitive compare if (locale.CompareInfo.Compare(s1, s2, CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0) { if (String.Compare(s1, s2, false, locale) == 0) return 1; else return -1; } return 0; } [Browsable(false)] public object SyncRoot { get { return this; } } protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the total number of elements in a collection. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNodeComparer.cs
- EventLogPermissionHolder.cs
- DependencyPropertyAttribute.cs
- ProfileEventArgs.cs
- CharUnicodeInfo.cs
- StylusPointProperties.cs
- SecurityTokenResolver.cs
- EventManager.cs
- ProfessionalColorTable.cs
- TextBoxView.cs
- EventLogException.cs
- FormsAuthenticationEventArgs.cs
- EdgeProfileValidation.cs
- SlotInfo.cs
- ToolTipService.cs
- ThreadStaticAttribute.cs
- XmlDocumentViewSchema.cs
- TextServicesContext.cs
- SQLDecimalStorage.cs
- Select.cs
- XmlValidatingReader.cs
- ConfigXmlText.cs
- RtType.cs
- ValidationErrorCollection.cs
- Line.cs
- DelegateBodyWriter.cs
- ExecutedRoutedEventArgs.cs
- DataGridViewColumn.cs
- ClientBuildManagerCallback.cs
- DeclarativeConditionsCollection.cs
- ServiceObjectContainer.cs
- ParserStreamGeometryContext.cs
- TextParaClient.cs
- XmlSchemaSimpleContentExtension.cs
- TextEditorMouse.cs
- PageCatalogPart.cs
- ContextMenuService.cs
- DbDataSourceEnumerator.cs
- MailHeaderInfo.cs
- Timer.cs
- OrCondition.cs
- DatagridviewDisplayedBandsData.cs
- TypedElement.cs
- PropertyGridCommands.cs
- ListViewSelectEventArgs.cs
- SchemaDeclBase.cs
- XhtmlTextWriter.cs
- NameValueSectionHandler.cs
- Enumerable.cs
- SimpleHandlerBuildProvider.cs
- ToolBarButtonDesigner.cs
- ActivityStatusChangeEventArgs.cs
- CommandConverter.cs
- APCustomTypeDescriptor.cs
- DataBinding.cs
- MatrixKeyFrameCollection.cs
- MessageBodyDescription.cs
- ProjectionPathSegment.cs
- XpsTokenContext.cs
- XmlUtil.cs
- DataGridViewTextBoxCell.cs
- XmlSequenceWriter.cs
- DataTablePropertyDescriptor.cs
- EventLogPropertySelector.cs
- WebRequestModuleElementCollection.cs
- XmlSortKeyAccumulator.cs
- uribuilder.cs
- UnsafePeerToPeerMethods.cs
- LineInfo.cs
- DataBindingHandlerAttribute.cs
- BaseCodePageEncoding.cs
- DependentList.cs
- TypeDependencyAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- EventProvider.cs
- SrgsElementFactory.cs
- IndentedTextWriter.cs
- DigestTraceRecordHelper.cs
- TrackingAnnotationCollection.cs
- EventHandlers.cs
- DependencyObjectValidator.cs
- SchemaImporter.cs
- SqlProfileProvider.cs
- RegexStringValidatorAttribute.cs
- TimeEnumHelper.cs
- SqlProfileProvider.cs
- BitmapEffectGeneralTransform.cs
- PathSegmentCollection.cs
- IndividualDeviceConfig.cs
- XmlUtf8RawTextWriter.cs
- SqlUserDefinedAggregateAttribute.cs
- WebPartMenuStyle.cs
- CatalogZone.cs
- CustomBindingElement.cs
- SharedStream.cs
- DefaultProxySection.cs
- EditorZoneBase.cs
- StrongNameMembershipCondition.cs
- OleDbConnectionPoolGroupProviderInfo.cs