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
- BookmarkScopeHandle.cs
- ToolbarAUtomationPeer.cs
- SafeBuffer.cs
- x509store.cs
- ListenerHandler.cs
- DnsPermission.cs
- HttpHandlerAction.cs
- HtmlTableCellCollection.cs
- OleDbConnection.cs
- KeyInstance.cs
- ActivationServices.cs
- Message.cs
- regiisutil.cs
- ConfigurationValidatorAttribute.cs
- GridViewCommandEventArgs.cs
- CustomAttributeBuilder.cs
- MdiWindowListItemConverter.cs
- EqualityComparer.cs
- RtfToken.cs
- InstallerTypeAttribute.cs
- CounterSetInstanceCounterDataSet.cs
- HandlerBase.cs
- SqlIdentifier.cs
- AdPostCacheSubstitution.cs
- RenderTargetBitmap.cs
- ListViewGroup.cs
- InvokeWebServiceDesigner.cs
- XmlEventCache.cs
- PageThemeCodeDomTreeGenerator.cs
- SimpleRecyclingCache.cs
- connectionpool.cs
- ConvertersCollection.cs
- SkinBuilder.cs
- DatePicker.cs
- DesignerActionItemCollection.cs
- HideDisabledControlAdapter.cs
- WindowsBrush.cs
- ParentUndoUnit.cs
- HttpWebRequestElement.cs
- ReadWriteObjectLock.cs
- cookieexception.cs
- LinkedList.cs
- Style.cs
- Utils.cs
- PartialCachingAttribute.cs
- DataServiceCollectionOfT.cs
- InitializationEventAttribute.cs
- XPathNodeList.cs
- MetadataItemCollectionFactory.cs
- XamlStyleSerializer.cs
- WmlObjectListAdapter.cs
- TabControlCancelEvent.cs
- WindowsUpDown.cs
- EntryIndex.cs
- ClientRequest.cs
- DbConnectionInternal.cs
- StoreItemCollection.cs
- FixedDSBuilder.cs
- ConfigXmlElement.cs
- FamilyCollection.cs
- EncryptedPackageFilter.cs
- EmptyStringExpandableObjectConverter.cs
- COM2TypeInfoProcessor.cs
- SmtpDigestAuthenticationModule.cs
- ActivityCodeDomSerializationManager.cs
- CodeChecksumPragma.cs
- ButtonChrome.cs
- StyleModeStack.cs
- UrlMappingsModule.cs
- StaticContext.cs
- NullEntityWrapper.cs
- EmissiveMaterial.cs
- LinkClickEvent.cs
- TextContainerChangedEventArgs.cs
- DesignerDataStoredProcedure.cs
- IResourceProvider.cs
- HttpConfigurationContext.cs
- EncryptedReference.cs
- Listener.cs
- StandardToolWindows.cs
- TimelineClockCollection.cs
- DecoratedNameAttribute.cs
- WaitHandleCannotBeOpenedException.cs
- FontCacheLogic.cs
- CannotUnloadAppDomainException.cs
- ProcessHost.cs
- Int16.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- BamlTreeMap.cs
- HtmlAnchor.cs
- EventRoute.cs
- CodeIndexerExpression.cs
- TreeNodeBindingDepthConverter.cs
- DataBindingHandlerAttribute.cs
- SafeNativeMethods.cs
- PersonalizableTypeEntry.cs
- StringAnimationUsingKeyFrames.cs
- TraceContextRecord.cs
- ZipIOFileItemStream.cs
- DataColumn.cs