Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SizeChangedEventArgs.cs
- SourceFilter.cs
- HijriCalendar.cs
- X509Certificate.cs
- ParserStreamGeometryContext.cs
- PresentationTraceSources.cs
- Condition.cs
- DoubleConverter.cs
- BaseProcessor.cs
- SimpleHandlerFactory.cs
- DefaultValidator.cs
- ServiceNameElement.cs
- AppSettingsExpressionEditor.cs
- SimpleFieldTemplateUserControl.cs
- XmlCharCheckingReader.cs
- ProfileManager.cs
- WebPartDescription.cs
- AndMessageFilter.cs
- SecurityUtils.cs
- TraceData.cs
- MetafileHeaderWmf.cs
- _Win32.cs
- SimpleExpression.cs
- AuthenticationModuleElementCollection.cs
- MessageSecurityOverMsmqElement.cs
- XmlUrlResolver.cs
- Selection.cs
- DependencyObjectType.cs
- JoinElimination.cs
- DiscoveryReference.cs
- MissingMethodException.cs
- BinaryParser.cs
- EncryptedKeyIdentifierClause.cs
- ToolStripPanel.cs
- Expressions.cs
- ChannelProtectionRequirements.cs
- TextSerializer.cs
- RelationshipDetailsRow.cs
- PropertyChangingEventArgs.cs
- FamilyTypeface.cs
- XpsThumbnail.cs
- CodeExpressionStatement.cs
- ParsedRoute.cs
- Config.cs
- IncrementalCompileAnalyzer.cs
- ManipulationVelocities.cs
- GridViewColumnHeaderAutomationPeer.cs
- TypeNameConverter.cs
- PointIndependentAnimationStorage.cs
- SessionEndingCancelEventArgs.cs
- CancellationHandler.cs
- PipelineDeploymentState.cs
- AssemblyAttributes.cs
- TemplateEditingVerb.cs
- DataGridViewRowStateChangedEventArgs.cs
- BinaryObjectWriter.cs
- DataGridViewRowsAddedEventArgs.cs
- Image.cs
- FixedSOMSemanticBox.cs
- NonDualMessageSecurityOverHttp.cs
- ClientBuildManager.cs
- PointHitTestParameters.cs
- WmfPlaceableFileHeader.cs
- BuildResultCache.cs
- IndicFontClient.cs
- Misc.cs
- MimeBasePart.cs
- KeyValuePair.cs
- XmlChildNodes.cs
- XPathNodePointer.cs
- VisualStyleElement.cs
- HatchBrush.cs
- RegexWorker.cs
- TablePatternIdentifiers.cs
- ChannelManager.cs
- ProviderConnectionPointCollection.cs
- AutoSizeComboBox.cs
- System.Data_BID.cs
- WindowsTab.cs
- DocumentGridContextMenu.cs
- AttributeProviderAttribute.cs
- XmlDataLoader.cs
- ObjectStateFormatter.cs
- DBConcurrencyException.cs
- Pens.cs
- Token.cs
- TraceHandlerErrorFormatter.cs
- cookiecollection.cs
- XmlNodeList.cs
- ProcessThreadCollection.cs
- InvalidCastException.cs
- PermissionSetEnumerator.cs
- DataListItemCollection.cs
- EventSetter.cs
- Missing.cs
- CoreSwitches.cs
- XmlSchemaDocumentation.cs
- SerialPinChanges.cs
- ReachObjectContext.cs
- SettingsPropertyValueCollection.cs