Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Number.cs
- DateTimeOffsetConverter.cs
- SqlRemoveConstantOrderBy.cs
- Timer.cs
- DynamicFilter.cs
- CallInfo.cs
- DataGridViewTopLeftHeaderCell.cs
- GridViewRowPresenter.cs
- SoapElementAttribute.cs
- InputLangChangeRequestEvent.cs
- UnmanagedMarshal.cs
- DataGridAddNewRow.cs
- RectangleGeometry.cs
- XmlDataProvider.cs
- FixedDSBuilder.cs
- DataGridViewComboBoxColumn.cs
- Attributes.cs
- ExecutionEngineException.cs
- ReachDocumentReferenceSerializerAsync.cs
- ConnectionManagementElementCollection.cs
- _IPv4Address.cs
- SpeechEvent.cs
- TextFormattingConverter.cs
- ArrangedElement.cs
- ApplicationFileParser.cs
- RbTree.cs
- UIElementIsland.cs
- XmlNodeList.cs
- CacheEntry.cs
- DSASignatureDeformatter.cs
- SaveWorkflowCommand.cs
- OpenTypeLayoutCache.cs
- FormatSelectingMessageInspector.cs
- SaveFileDialog.cs
- TouchesCapturedWithinProperty.cs
- CompModHelpers.cs
- HttpServerVarsCollection.cs
- SoapIgnoreAttribute.cs
- GridViewCancelEditEventArgs.cs
- TriggerCollection.cs
- LinkedDataMemberFieldEditor.cs
- SmtpFailedRecipientsException.cs
- HttpValueCollection.cs
- MimeParameters.cs
- ModelEditingScope.cs
- BindingExpression.cs
- ToolStripDropDownClosedEventArgs.cs
- XmlFormatReaderGenerator.cs
- CompletionProxy.cs
- WeakReference.cs
- InsufficientExecutionStackException.cs
- SQLSingleStorage.cs
- XmlReaderDelegator.cs
- IApplicationTrustManager.cs
- FunctionDescription.cs
- SafeBitVector32.cs
- SchemaNames.cs
- DiscoveryCallbackBehavior.cs
- RangeValidator.cs
- AttributeAction.cs
- SortDescription.cs
- XmlKeywords.cs
- TextPointer.cs
- MarkupCompilePass1.cs
- GridViewColumnCollection.cs
- IODescriptionAttribute.cs
- MultiSelector.cs
- SoapMessage.cs
- CompiledQueryCacheEntry.cs
- DisposableCollectionWrapper.cs
- CacheAxisQuery.cs
- OuterGlowBitmapEffect.cs
- SchemaEntity.cs
- BaseCodePageEncoding.cs
- MenuItem.cs
- MethodExpr.cs
- SafeViewOfFileHandle.cs
- DataServiceRequest.cs
- SecurityDescriptor.cs
- ValidationResult.cs
- wmiprovider.cs
- DrawingContextWalker.cs
- ImageButton.cs
- _RegBlobWebProxyDataBuilder.cs
- SymbolTable.cs
- XpsSerializerWriter.cs
- TableItemStyle.cs
- SqlClientWrapperSmiStreamChars.cs
- ReachIDocumentPaginatorSerializer.cs
- Visual3D.cs
- WebBrowser.cs
- odbcmetadatafactory.cs
- FormViewDeleteEventArgs.cs
- NavigationPropertyEmitter.cs
- ImageBrush.cs
- MachineKey.cs
- typedescriptorpermission.cs
- NamespaceEmitter.cs
- TemplateBindingExpressionConverter.cs
- ApplicationBuildProvider.cs