Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / LocalIdCollection.cs / 1 / LocalIdCollection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections.Generic; // // Summary: // The collection of LocalIds used during search operations. // // Remarks: // This is for internal store use only. // internal class LocalIdCollection { SortedListm_inner; public LocalIdCollection() { m_inner = new SortedList (); } // // Summary: // Adds an item to the list to the correct spot in the list. // Parameters: // item: The value to add to the list // public void Add( int item ) { if( !m_inner.ContainsKey( item ) ) { m_inner.Add( item, item ); } } public void Clear() { m_inner.Clear(); } public int Count { get { return m_inner.Count; } } // // Summary: // Filters the current list of localIds, // // Remarks: // Opearation is O(n) // // Parameters: // itemsToKeep: the list of items not to remove from the list. // // public void Filter( LocalIdCollection itemsToKeep ) { int count = m_inner.Count; for( int i = count - 1; i >=0; i-- ) { if( !itemsToKeep.m_inner.ContainsKey( m_inner.Keys[i] ) ) { m_inner.RemoveAt( i ); } } } public IList Keys { get { return m_inner.Keys; } } // } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItemCollection.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- CssTextWriter.cs
- MobileContainerDesigner.cs
- ThreadAttributes.cs
- DataGridViewTextBoxColumn.cs
- _DisconnectOverlappedAsyncResult.cs
- RuleEngine.cs
- LineSegment.cs
- ProvideValueServiceProvider.cs
- ServiceOperationListItem.cs
- StateMachine.cs
- BmpBitmapEncoder.cs
- loginstatus.cs
- DbMetaDataCollectionNames.cs
- RawKeyboardInputReport.cs
- MultilineStringConverter.cs
- AttributeUsageAttribute.cs
- GridPattern.cs
- EventItfInfo.cs
- DataControlButton.cs
- SingleResultAttribute.cs
- StrokeNodeData.cs
- XmlHierarchicalDataSourceView.cs
- ControlUtil.cs
- WSDualHttpBindingCollectionElement.cs
- SpotLight.cs
- ArgIterator.cs
- JoinSymbol.cs
- XmlQueryTypeFactory.cs
- ListManagerBindingsCollection.cs
- StrongNamePublicKeyBlob.cs
- ComplexPropertyEntry.cs
- ServiceReference.cs
- ManifestSignedXml.cs
- ClientConfigurationHost.cs
- Dispatcher.cs
- SecurityRuntime.cs
- HttpCapabilitiesEvaluator.cs
- NotifyParentPropertyAttribute.cs
- CodeDOMProvider.cs
- CodeTypeReferenceCollection.cs
- ColumnWidthChangingEvent.cs
- UnauthorizedWebPart.cs
- AsmxEndpointPickerExtension.cs
- ResourcePermissionBaseEntry.cs
- CommandBinding.cs
- DataObjectAttribute.cs
- Helper.cs
- TypeBuilder.cs
- HostedNamedPipeTransportManager.cs
- TextDecorationCollectionConverter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- UriTemplateLiteralQueryValue.cs
- _OverlappedAsyncResult.cs
- HMACSHA384.cs
- Brush.cs
- SqlStatistics.cs
- ColorConverter.cs
- FrameworkTextComposition.cs
- SafeProcessHandle.cs
- FontEmbeddingManager.cs
- RangeValueProviderWrapper.cs
- RightNameExpirationInfoPair.cs
- ThousandthOfEmRealDoubles.cs
- CompModSwitches.cs
- EnumConverter.cs
- SqlMethodAttribute.cs
- HttpConfigurationContext.cs
- basemetadatamappingvisitor.cs
- GetCryptoTransformRequest.cs
- SQLStringStorage.cs
- SafeBuffer.cs
- NavigationPropertyEmitter.cs
- MembershipPasswordException.cs
- AlphaSortedEnumConverter.cs
- XmlDataDocument.cs
- PrintPreviewGraphics.cs
- DataListItemEventArgs.cs
- RelationshipEndMember.cs
- GZipStream.cs
- _FixedSizeReader.cs
- PropertySegmentSerializer.cs
- DataGridViewElement.cs
- CellPartitioner.cs
- TextDecorationCollectionConverter.cs
- BrowserCapabilitiesFactory.cs
- HttpClientCertificate.cs
- ParentQuery.cs
- SqlBinder.cs
- Listen.cs
- CompilerGlobalScopeAttribute.cs
- PointLightBase.cs
- SqlClientWrapperSmiStreamChars.cs
- ColorIndependentAnimationStorage.cs
- ModifierKeysConverter.cs
- ArcSegment.cs
- RoleGroupCollection.cs
- ThreadExceptionDialog.cs
- PointLightBase.cs