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
- RelatedView.cs
- SQLChars.cs
- HyperLinkColumn.cs
- DataColumnMappingCollection.cs
- UserUseLicenseDictionaryLoader.cs
- IChannel.cs
- ColorMap.cs
- SystemUdpStatistics.cs
- ColorPalette.cs
- ExpressionPrefixAttribute.cs
- AutomationPatternInfo.cs
- DataGridItemEventArgs.cs
- FlatButtonAppearance.cs
- SafeThreadHandle.cs
- HMAC.cs
- RecommendedAsConfigurableAttribute.cs
- ImageClickEventArgs.cs
- ListMarkerSourceInfo.cs
- KeyGestureValueSerializer.cs
- PersonalizationStateInfoCollection.cs
- DataAccessException.cs
- MdiWindowListStrip.cs
- CultureSpecificCharacterBufferRange.cs
- IgnorePropertiesAttribute.cs
- MetafileEditor.cs
- AdPostCacheSubstitution.cs
- AbstractDataSvcMapFileLoader.cs
- StandardToolWindows.cs
- ReadOnlyPermissionSet.cs
- KeyedCollection.cs
- SqlConnectionStringBuilder.cs
- IImplicitResourceProvider.cs
- CultureSpecificStringDictionary.cs
- StretchValidation.cs
- TracedNativeMethods.cs
- SimpleRecyclingCache.cs
- RubberbandSelector.cs
- ToolStripDropTargetManager.cs
- KeyGesture.cs
- BindingContext.cs
- WebPartAddingEventArgs.cs
- DelegatingConfigHost.cs
- BaseProcessor.cs
- ConstraintStruct.cs
- LocalizationParserHooks.cs
- ControlBuilderAttribute.cs
- ImageMapEventArgs.cs
- MessageEnumerator.cs
- IgnoreDataMemberAttribute.cs
- SafeRegistryKey.cs
- DataShape.cs
- BitmapEffectDrawingContextState.cs
- QueryableDataSourceView.cs
- HostProtectionPermission.cs
- CompModSwitches.cs
- AnonymousIdentificationModule.cs
- TextModifierScope.cs
- MessageDecoder.cs
- SpecularMaterial.cs
- NavigateEvent.cs
- SerializerProvider.cs
- ClientApiGenerator.cs
- ThousandthOfEmRealDoubles.cs
- UInt32Storage.cs
- ClientCredentialsSecurityTokenManager.cs
- PackageRelationshipCollection.cs
- ColumnReorderedEventArgs.cs
- FileLogRecord.cs
- HttpModuleAction.cs
- XmlCollation.cs
- TextDecorationCollectionConverter.cs
- UpdateManifestForBrowserApplication.cs
- Int32Animation.cs
- HtmlFormAdapter.cs
- SingleObjectCollection.cs
- _OSSOCK.cs
- Stylesheet.cs
- SqlCommandSet.cs
- EventManager.cs
- EventLogReader.cs
- StateRuntime.cs
- IODescriptionAttribute.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- EndpointBehaviorElement.cs
- HttpCookiesSection.cs
- SoapHeaders.cs
- SystemUdpStatistics.cs
- CodeStatementCollection.cs
- RootBuilder.cs
- ToolStripSeparatorRenderEventArgs.cs
- UInt16Storage.cs
- BamlTreeMap.cs
- CodeCompiler.cs
- ClaimTypes.cs
- SendActivityEventArgs.cs
- ToggleButtonAutomationPeer.cs
- ResourceReferenceKeyNotFoundException.cs
- UnsafeNativeMethods.cs
- PrivilegedConfigurationManager.cs
- Part.cs