Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / Util / DefaultValueMapping.cs / 1305376 / DefaultValueMapping.cs
namespace System.Web.DynamicData.Util { using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; internal class DefaultValueMapping { private IDictionary_defaultValues; public DictionaryCustomTypeDescriptor Instance { get; private set; } public IDictionary Values { get { return _defaultValues; } } public DefaultValueMapping(IDictionary defaultValues) { Debug.Assert(defaultValues != null); _defaultValues = defaultValues; // Build a custom type descriptor which will act as a lightweight wrapper around the dictionary. Instance = new DictionaryCustomTypeDescriptor(defaultValues); } public bool Contains(MetaColumn column) { Debug.Assert(_defaultValues != null); return Misc.IsColumnInDictionary(column, _defaultValues); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.DynamicData.Util { using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; internal class DefaultValueMapping { private IDictionary _defaultValues; public DictionaryCustomTypeDescriptor Instance { get; private set; } public IDictionary Values { get { return _defaultValues; } } public DefaultValueMapping(IDictionary defaultValues) { Debug.Assert(defaultValues != null); _defaultValues = defaultValues; // Build a custom type descriptor which will act as a lightweight wrapper around the dictionary. Instance = new DictionaryCustomTypeDescriptor(defaultValues); } public bool Contains(MetaColumn column) { Debug.Assert(_defaultValues != null); return Misc.IsColumnInDictionary(column, _defaultValues); } } } // 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
- CancelEventArgs.cs
- SqlFormatter.cs
- WindowsContainer.cs
- QilTernary.cs
- ResolveNameEventArgs.cs
- PersonalizationStateInfoCollection.cs
- PKCS1MaskGenerationMethod.cs
- QilVisitor.cs
- Oid.cs
- ProxyWebPartConnectionCollection.cs
- BackgroundWorker.cs
- ThemeDirectoryCompiler.cs
- AsyncStreamReader.cs
- XsltArgumentList.cs
- TextDecoration.cs
- MediaContext.cs
- RoleBoolean.cs
- SessionViewState.cs
- ToolStripItem.cs
- SelectionItemProviderWrapper.cs
- UnknownWrapper.cs
- WindowsStatusBar.cs
- EncryptedData.cs
- CommunicationObjectManager.cs
- IfAction.cs
- XmlLoader.cs
- ElementUtil.cs
- HtmlInputHidden.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- OdbcEnvironment.cs
- AtomicFile.cs
- ToolZoneDesigner.cs
- ThrowHelper.cs
- MetricEntry.cs
- SqlXmlStorage.cs
- SqlNodeAnnotation.cs
- QilValidationVisitor.cs
- DataGridTextBox.cs
- TrustLevel.cs
- SafeLibraryHandle.cs
- RoutedPropertyChangedEventArgs.cs
- HeaderUtility.cs
- Interlocked.cs
- Inline.cs
- PersistencePipeline.cs
- BitmapMetadataBlob.cs
- EmbossBitmapEffect.cs
- DataSvcMapFile.cs
- AmbientValueAttribute.cs
- XmlSchemaAnnotated.cs
- OrderedDictionary.cs
- ZipFileInfo.cs
- Facet.cs
- PeerReferralPolicy.cs
- DispatchWrapper.cs
- _HeaderInfoTable.cs
- ListArgumentProvider.cs
- FileAuthorizationModule.cs
- CultureInfo.cs
- Message.cs
- SecureStringHasher.cs
- Policy.cs
- ImplicitInputBrush.cs
- ArglessEventHandlerProxy.cs
- InternalConfigConfigurationFactory.cs
- ToolStripPanelDesigner.cs
- IERequestCache.cs
- FormViewUpdateEventArgs.cs
- FileDataSourceCache.cs
- NestPullup.cs
- NavigationService.cs
- CharacterString.cs
- NotImplementedException.cs
- FileDialogCustomPlace.cs
- util.cs
- WaitForChangedResult.cs
- ItemContainerGenerator.cs
- Mouse.cs
- SmtpLoginAuthenticationModule.cs
- DocumentSchemaValidator.cs
- ReaderWriterLockWrapper.cs
- SecondaryIndex.cs
- ContentValidator.cs
- MemberHolder.cs
- StaticFileHandler.cs
- OdbcReferenceCollection.cs
- ObjectViewFactory.cs
- SinglePageViewer.cs
- Not.cs
- CollectionBuilder.cs
- PoisonMessageException.cs
- PathSegment.cs
- UnsafeNativeMethods.cs
- HScrollBar.cs
- ValueType.cs
- FormsAuthenticationEventArgs.cs
- FileDetails.cs
- SocketException.cs
- DataGridViewTopRowAccessibleObject.cs
- DataGridViewCellValueEventArgs.cs