Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / ReadOnlyKeyedCollection.cs / 1305376 / ReadOnlyKeyedCollection.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime
{
using System.Collections.ObjectModel;
class ReadOnlyKeyedCollection: ReadOnlyCollection
{
KeyedCollection innerCollection;
public ReadOnlyKeyedCollection(KeyedCollection innerCollection)
: base(innerCollection)
{
Fx.Assert(innerCollection != null, "innerCollection should not be null");
this.innerCollection = innerCollection;
}
public TValue this[TKey key]
{
get
{
return this.innerCollection[key];
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime
{
using System.Collections.ObjectModel;
class ReadOnlyKeyedCollection: ReadOnlyCollection
{
KeyedCollection innerCollection;
public ReadOnlyKeyedCollection(KeyedCollection innerCollection)
: base(innerCollection)
{
Fx.Assert(innerCollection != null, "innerCollection should not be null");
this.innerCollection = innerCollection;
}
public TValue this[TKey key]
{
get
{
return this.innerCollection[key];
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeLinePragma.cs
- BindingListCollectionView.cs
- RotateTransform.cs
- StringAnimationUsingKeyFrames.cs
- CodeTypeDeclarationCollection.cs
- ConfigXmlWhitespace.cs
- FormViewUpdatedEventArgs.cs
- DBNull.cs
- GregorianCalendarHelper.cs
- ContainerTracking.cs
- Int32CollectionConverter.cs
- Transform.cs
- XmlQualifiedNameTest.cs
- RtfNavigator.cs
- ReachDocumentSequenceSerializerAsync.cs
- TabOrder.cs
- AssemblyBuilderData.cs
- MSG.cs
- WindowsEditBoxRange.cs
- CellCreator.cs
- TcpActivation.cs
- EntityDataSourceUtil.cs
- SamlSerializer.cs
- _DomainName.cs
- SpinLock.cs
- BreadCrumbTextConverter.cs
- HostedTransportConfigurationManager.cs
- TextContainerChangeEventArgs.cs
- ConcurrentStack.cs
- FamilyTypefaceCollection.cs
- ZipIOModeEnforcingStream.cs
- MatrixTransform3D.cs
- ProvideValueServiceProvider.cs
- _NTAuthentication.cs
- WebPartsPersonalizationAuthorization.cs
- ListItemCollection.cs
- GenericUriParser.cs
- XmlSchemaSimpleTypeList.cs
- Bidi.cs
- MarshalByValueComponent.cs
- Inline.cs
- QuaternionAnimation.cs
- AvTraceDetails.cs
- Zone.cs
- Scanner.cs
- FontWeightConverter.cs
- OuterGlowBitmapEffect.cs
- FixedSOMGroup.cs
- LicenseManager.cs
- HeaderElement.cs
- ColumnHeader.cs
- XmlDictionaryReaderQuotasElement.cs
- Stroke.cs
- OleDbRowUpdatingEvent.cs
- StreamInfo.cs
- LinkConverter.cs
- AssociationType.cs
- CustomActivityDesigner.cs
- DateTimeEditor.cs
- Point4D.cs
- UdpRetransmissionSettings.cs
- SystemWebExtensionsSectionGroup.cs
- ToolStripContainerDesigner.cs
- RelOps.cs
- SkewTransform.cs
- GridViewItemAutomationPeer.cs
- StreamWriter.cs
- StringKeyFrameCollection.cs
- DetailsViewInsertEventArgs.cs
- CodeObject.cs
- FormsAuthenticationCredentials.cs
- Context.cs
- SiteMapHierarchicalDataSourceView.cs
- EdgeModeValidation.cs
- TypeFieldSchema.cs
- KnownIds.cs
- MimeFormReflector.cs
- XmlName.cs
- TextOptions.cs
- FileSystemWatcher.cs
- InvalidCastException.cs
- COM2PictureConverter.cs
- StringResourceManager.cs
- TextModifierScope.cs
- BitmapCacheBrush.cs
- DocumentOrderQuery.cs
- DataGridRowHeader.cs
- AssemblyName.cs
- ServiceAppDomainAssociationProvider.cs
- TriggerBase.cs
- SmuggledIUnknown.cs
- Size3DConverter.cs
- TextEditorCopyPaste.cs
- AppDomainAttributes.cs
- HighlightVisual.cs
- TCEAdapterGenerator.cs
- SessionStateContainer.cs
- ApplicationDirectoryMembershipCondition.cs
- ObjectDataSourceView.cs
- NamespaceInfo.cs