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
- PassportIdentity.cs
- listitem.cs
- GB18030Encoding.cs
- ModelItemCollectionImpl.cs
- AdapterDictionary.cs
- ObjectQuery_EntitySqlExtensions.cs
- GenericTypeParameterBuilder.cs
- HtmlSelectionListAdapter.cs
- CompModSwitches.cs
- AtomServiceDocumentSerializer.cs
- ConfigXmlText.cs
- VariableQuery.cs
- DataServiceResponse.cs
- HandlerWithFactory.cs
- SystemIPInterfaceStatistics.cs
- Transform.cs
- LoadMessageLogger.cs
- AppDomainProtocolHandler.cs
- NoResizeHandleGlyph.cs
- WindowsListViewItemCheckBox.cs
- ScriptReferenceEventArgs.cs
- ObjectViewQueryResultData.cs
- EpmContentSerializer.cs
- ScrollItemPatternIdentifiers.cs
- DataBindingExpressionBuilder.cs
- HttpCapabilitiesBase.cs
- ConfigurationPropertyCollection.cs
- CallbackValidatorAttribute.cs
- ExplicitDiscriminatorMap.cs
- PersonalizationDictionary.cs
- HierarchicalDataSourceIDConverter.cs
- QueryInterceptorAttribute.cs
- RelationshipDetailsRow.cs
- ObjectReaderCompiler.cs
- ListArgumentProvider.cs
- WindowsToolbarAsMenu.cs
- SelectionEditingBehavior.cs
- XmlSchemaInfo.cs
- XmlSubtreeReader.cs
- Compiler.cs
- WSDualHttpSecurityElement.cs
- AsyncDataRequest.cs
- UnknownBitmapEncoder.cs
- WebPartAddingEventArgs.cs
- LiteralDesigner.cs
- FlowLayoutPanel.cs
- Random.cs
- TreeNodeStyleCollection.cs
- ForeignKeyConstraint.cs
- DataGridRowAutomationPeer.cs
- TreeNode.cs
- BamlLocalizabilityResolver.cs
- ResolveCompletedEventArgs.cs
- Matrix.cs
- DashStyle.cs
- XamlReaderHelper.cs
- Action.cs
- MetadataCacheItem.cs
- LinqDataSourceDeleteEventArgs.cs
- CatalogPartCollection.cs
- XmlImplementation.cs
- Int64Animation.cs
- ResourceManagerWrapper.cs
- PresentationAppDomainManager.cs
- PenContexts.cs
- ExpressionBuilderCollection.cs
- CodeTypeReferenceExpression.cs
- LoginCancelEventArgs.cs
- PersonalizationState.cs
- ClientScriptManager.cs
- GeometryHitTestResult.cs
- InputMethod.cs
- DeclaredTypeValidator.cs
- SqlCacheDependencyDatabase.cs
- ProjectionCamera.cs
- ConstraintStruct.cs
- MessageBox.cs
- MultiTouchSystemGestureLogic.cs
- Resources.Designer.cs
- BoundsDrawingContextWalker.cs
- ExceptionUtil.cs
- DateTimeParse.cs
- Literal.cs
- SqlNotificationRequest.cs
- AbstractExpressions.cs
- Floater.cs
- RegexBoyerMoore.cs
- IMembershipProvider.cs
- ButtonChrome.cs
- FamilyCollection.cs
- ListViewGroupConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- FigureParaClient.cs
- processwaithandle.cs
- DataGridViewCellLinkedList.cs
- DataBindEngine.cs
- WsdlInspector.cs
- LayoutTable.cs
- EntityClassGenerator.cs
- EdmFunctions.cs