Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ItemCollection.cs
- ExpandableObjectConverter.cs
- ObjectFullSpanRewriter.cs
- PerspectiveCamera.cs
- ResourceManager.cs
- TableLayoutPanelCellPosition.cs
- QuestionEventArgs.cs
- TypeDescriptionProvider.cs
- DataProtection.cs
- DurableMessageDispatchInspector.cs
- StylusButtonCollection.cs
- DataListItemCollection.cs
- Parsers.cs
- ReadOnlyDataSource.cs
- XmlDeclaration.cs
- SizeFConverter.cs
- UnhandledExceptionEventArgs.cs
- COM2ComponentEditor.cs
- ProfileGroupSettingsCollection.cs
- FormClosedEvent.cs
- CacheDependency.cs
- WebBrowsableAttribute.cs
- SerializationInfo.cs
- ProfilePropertyNameValidator.cs
- UniqueSet.cs
- NativeMethods.cs
- ImpersonateTokenRef.cs
- WorkItem.cs
- ExtendedProperty.cs
- TrustManager.cs
- ControllableStoryboardAction.cs
- FirstMatchCodeGroup.cs
- CodeObjectCreateExpression.cs
- FileDialog.cs
- IncrementalHitTester.cs
- Timer.cs
- XPathNodeIterator.cs
- ToolTipService.cs
- DecimalMinMaxAggregationOperator.cs
- TypeTypeConverter.cs
- XmlMapping.cs
- SelectionService.cs
- HttpDictionary.cs
- WindowPatternIdentifiers.cs
- ExpressionNormalizer.cs
- ActivityValidationServices.cs
- InstancePersistenceCommandException.cs
- ExpressionNode.cs
- X509ThumbprintKeyIdentifierClause.cs
- TableLayoutColumnStyleCollection.cs
- ExpressionBinding.cs
- Multiply.cs
- LogicalMethodInfo.cs
- ByteAnimationUsingKeyFrames.cs
- EntityModelSchemaGenerator.cs
- SettingsBase.cs
- ForeignConstraint.cs
- StyleSelector.cs
- ItemsPanelTemplate.cs
- GraphicsContainer.cs
- CodeSubDirectory.cs
- EventRouteFactory.cs
- _SslSessionsCache.cs
- DataGridBoolColumn.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DbConnectionInternal.cs
- DictionarySectionHandler.cs
- Delegate.cs
- ToolStripManager.cs
- relpropertyhelper.cs
- OdbcConnection.cs
- UserControlBuildProvider.cs
- CroppedBitmap.cs
- IgnoreSectionHandler.cs
- smtpconnection.cs
- PathData.cs
- XsltException.cs
- Constants.cs
- SplashScreen.cs
- ElementAtQueryOperator.cs
- MetadataItem.cs
- SharedPersonalizationStateInfo.cs
- SqlDataSourceConnectionPanel.cs
- ActivityDesigner.cs
- WebAdminConfigurationHelper.cs
- ADMembershipProvider.cs
- SimpleHandlerFactory.cs
- ReachVisualSerializerAsync.cs
- ProxyFragment.cs
- XmlAttributeAttribute.cs
- TextFormatterImp.cs
- DataKeyCollection.cs
- XmlAnyElementAttribute.cs
- TextEditorTables.cs
- DbXmlEnabledProviderManifest.cs
- WorkflowExecutor.cs
- HealthMonitoringSectionHelper.cs
- CriticalExceptions.cs
- DataListItemEventArgs.cs
- IPeerNeighbor.cs