Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Collections / Generic / HashSetDebugView.cs / 1305376 / HashSetDebugView.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace System.Collections.Generic {
///
/// Debug view for HashSet
///
///
internal class HashSetDebugView {
private HashSet set;
public HashSetDebugView(HashSet set) {
if (set == null) {
throw new ArgumentNullException("set");
}
this.set = set;
}
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public T[] Items {
get {
return set.ToArray();
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace System.Collections.Generic {
///
/// Debug view for HashSet
///
///
internal class HashSetDebugView {
private HashSet set;
public HashSetDebugView(HashSet set) {
if (set == null) {
throw new ArgumentNullException("set");
}
this.set = set;
}
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public T[] Items {
get {
return set.ToArray();
}
}
}
}
// 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
- ExpressionVisitor.cs
- BitmapFrameDecode.cs
- clipboard.cs
- AudienceUriMode.cs
- Pens.cs
- TdsParserHelperClasses.cs
- DispatcherSynchronizationContext.cs
- pingexception.cs
- BitStack.cs
- FormatPage.cs
- Win32SafeHandles.cs
- DataRecordInternal.cs
- SplitContainer.cs
- SubstitutionResponseElement.cs
- EventLogEntryCollection.cs
- CollectionChangeEventArgs.cs
- DataRelationCollection.cs
- input.cs
- GridView.cs
- BinaryQueryOperator.cs
- DurableRuntimeValidator.cs
- ChannelManagerHelpers.cs
- DataGridViewRowPostPaintEventArgs.cs
- TrackingCondition.cs
- UniqueCodeIdentifierScope.cs
- TypeTypeConverter.cs
- ObjectItemCollection.cs
- EmptyStringExpandableObjectConverter.cs
- Oid.cs
- Gdiplus.cs
- TemplateControlBuildProvider.cs
- DataGridViewDataConnection.cs
- ArrayTypeMismatchException.cs
- RawContentTypeMapper.cs
- EntitySqlQueryState.cs
- TextBoxBaseDesigner.cs
- PropertyEntry.cs
- DefaultObjectMappingItemCollection.cs
- SqlNodeAnnotations.cs
- RegistrationServices.cs
- TableLayoutPanelCellPosition.cs
- _NtlmClient.cs
- InputDevice.cs
- SymbolType.cs
- PasswordRecovery.cs
- WinInetCache.cs
- DeferredSelectedIndexReference.cs
- StatusBarItemAutomationPeer.cs
- CustomError.cs
- QueryableDataSource.cs
- ValidationRuleCollection.cs
- SqlTypeConverter.cs
- SettingsPropertyIsReadOnlyException.cs
- Crc32Helper.cs
- StyleReferenceConverter.cs
- Internal.cs
- UIElementParaClient.cs
- WorkBatch.cs
- Variable.cs
- WebBrowserBase.cs
- FixedPageStructure.cs
- EmptyStringExpandableObjectConverter.cs
- DocumentPageView.cs
- BufferedWebEventProvider.cs
- ProfessionalColors.cs
- Model3D.cs
- CursorInteropHelper.cs
- HandledEventArgs.cs
- MultipartContentParser.cs
- EntityKey.cs
- MemoryMappedViewAccessor.cs
- XmlWhitespace.cs
- MarginCollapsingState.cs
- XmlSchemaAll.cs
- FactoryRecord.cs
- columnmapkeybuilder.cs
- Parser.cs
- StylusEditingBehavior.cs
- Stream.cs
- PointLightBase.cs
- ColumnMapTranslator.cs
- InvalidWMPVersionException.cs
- SchemaConstraints.cs
- ExpressionBindingCollection.cs
- FigureHelper.cs
- Section.cs
- ToolStripRenderer.cs
- TrackingServices.cs
- EnumMember.cs
- DbMetaDataCollectionNames.cs
- ReadOnlyCollection.cs
- OperationCanceledException.cs
- ServicePointManager.cs
- SqlCaseSimplifier.cs
- StylusButtonCollection.cs
- HealthMonitoringSectionHelper.cs
- ClientScriptManager.cs
- TextMessageEncodingElement.cs
- DataTableNewRowEvent.cs
- SiteMapProvider.cs