Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / Validation / PropertyValidationContext.cs / 1305376 / PropertyValidationContext.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.Reflection; #region PropertyValidationContext public sealed class PropertyValidationContext { private string propertyName = string.Empty; private object propertyOwner = null; private object propertyInfo = null; public PropertyValidationContext(object propertyOwner, PropertyInfo propertyInfo, string propertyName) { if (propertyName == null) throw new ArgumentNullException("propertyName"); if (propertyOwner == null) throw new ArgumentNullException("propertyOwner"); this.propertyOwner = propertyOwner; this.propertyName = propertyName; this.propertyInfo = propertyInfo; } public PropertyValidationContext(object propertyOwner, DependencyProperty dependencyProperty) { if (propertyOwner == null) throw new ArgumentNullException("propertyOwner"); this.propertyOwner = propertyOwner; this.propertyInfo = dependencyProperty; } public string PropertyName { get { if (this.propertyInfo is DependencyProperty) return ((DependencyProperty)this.propertyInfo).Name; else return this.propertyName; } } public object PropertyOwner { get { return this.propertyOwner; } } public object Property { get { return this.propertyInfo; } } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel.Compiler { using System; using System.Reflection; #region PropertyValidationContext public sealed class PropertyValidationContext { private string propertyName = string.Empty; private object propertyOwner = null; private object propertyInfo = null; public PropertyValidationContext(object propertyOwner, PropertyInfo propertyInfo, string propertyName) { if (propertyName == null) throw new ArgumentNullException("propertyName"); if (propertyOwner == null) throw new ArgumentNullException("propertyOwner"); this.propertyOwner = propertyOwner; this.propertyName = propertyName; this.propertyInfo = propertyInfo; } public PropertyValidationContext(object propertyOwner, DependencyProperty dependencyProperty) { if (propertyOwner == null) throw new ArgumentNullException("propertyOwner"); this.propertyOwner = propertyOwner; this.propertyInfo = dependencyProperty; } public string PropertyName { get { if (this.propertyInfo is DependencyProperty) return ((DependencyProperty)this.propertyInfo).Name; else return this.propertyName; } } public object PropertyOwner { get { return this.propertyOwner; } } public object Property { get { return this.propertyInfo; } } } #endregion } // 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
- WindowsScroll.cs
- PageParserFilter.cs
- MarshalByValueComponent.cs
- AlternateView.cs
- ellipse.cs
- Rect3D.cs
- NewArrayExpression.cs
- ParseHttpDate.cs
- XmlDocumentSerializer.cs
- StaticTextPointer.cs
- GregorianCalendarHelper.cs
- ForEachAction.cs
- DataGridRelationshipRow.cs
- BoundingRectTracker.cs
- ListenerElementsCollection.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- OletxTransactionManager.cs
- DynamicResourceExtensionConverter.cs
- ListMarkerSourceInfo.cs
- validation.cs
- GridPattern.cs
- MaskInputRejectedEventArgs.cs
- CngAlgorithm.cs
- DefaultBinder.cs
- AtlasWeb.Designer.cs
- XmlSchemaCollection.cs
- DiagnosticsConfigurationHandler.cs
- SecurityDocument.cs
- RtfNavigator.cs
- CardSpaceException.cs
- WindowsNonControl.cs
- ChangeNode.cs
- FilteredAttributeCollection.cs
- TraceContextEventArgs.cs
- Color.cs
- DbParameterCollectionHelper.cs
- BuildResultCache.cs
- XmlArrayItemAttributes.cs
- OrderPreservingMergeHelper.cs
- EntityTypeEmitter.cs
- DebugHandleTracker.cs
- BamlReader.cs
- AnimationException.cs
- Asn1IntegerConverter.cs
- IUnknownConstantAttribute.cs
- SourceLineInfo.cs
- SecurityTokenReferenceStyle.cs
- Serializer.cs
- SplayTreeNode.cs
- exports.cs
- CssStyleCollection.cs
- Stylus.cs
- CompressionTransform.cs
- ProfileServiceManager.cs
- Message.cs
- StateMachineAction.cs
- HyperLinkDataBindingHandler.cs
- TransactionChannelListener.cs
- MatrixValueSerializer.cs
- TextSelectionHelper.cs
- CodeAttributeDeclarationCollection.cs
- FirewallWrapper.cs
- CompilerTypeWithParams.cs
- EnglishPluralizationService.cs
- HtmlSelect.cs
- TextBounds.cs
- XmlReturnReader.cs
- OleDragDropHandler.cs
- XmlWriter.cs
- MenuItemStyleCollection.cs
- CollectionViewGroupInternal.cs
- SystemWebCachingSectionGroup.cs
- HierarchicalDataSourceIDConverter.cs
- PropertyGridView.cs
- CodeSnippetCompileUnit.cs
- WebPartVerbsEventArgs.cs
- SystemIcons.cs
- StdValidatorsAndConverters.cs
- PersistenceTypeAttribute.cs
- UnionCqlBlock.cs
- DataContext.cs
- InternalConfigEventArgs.cs
- Knowncolors.cs
- SelectionHighlightInfo.cs
- ConditionCollection.cs
- ValueTypeFixupInfo.cs
- CompilationLock.cs
- TextEffect.cs
- TagPrefixAttribute.cs
- ClientCredentials.cs
- TraceContextRecord.cs
- COM2Enum.cs
- ProcessActivityTreeOptions.cs
- GenericTextProperties.cs
- ElapsedEventArgs.cs
- FrameworkTemplate.cs
- DataGridBoundColumn.cs
- ToolStripItemClickedEventArgs.cs
- BasicBrowserDialog.designer.cs
- ReflectionTypeLoadException.cs