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
- SignatureTargetIdManager.cs
- ComplexBindingPropertiesAttribute.cs
- DeviceOverridableAttribute.cs
- SecUtil.cs
- DPAPIProtectedConfigurationProvider.cs
- FrugalList.cs
- RawTextInputReport.cs
- TextRangeAdaptor.cs
- ConfigDefinitionUpdates.cs
- ProcessProtocolHandler.cs
- SqlParameter.cs
- BuildResult.cs
- PipelineModuleStepContainer.cs
- SmiRecordBuffer.cs
- EmptyStringExpandableObjectConverter.cs
- XmlChoiceIdentifierAttribute.cs
- CalendarTable.cs
- TemplateComponentConnector.cs
- RadioButtonRenderer.cs
- SendKeys.cs
- RC2CryptoServiceProvider.cs
- DesignerHost.cs
- NTAccount.cs
- designeractionlistschangedeventargs.cs
- Emitter.cs
- RoutedCommand.cs
- RtType.cs
- BitmapInitialize.cs
- IisTraceListener.cs
- CodeSubDirectory.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- Atom10ItemFormatter.cs
- TextServicesLoader.cs
- BaseAppDomainProtocolHandler.cs
- ComponentResourceKeyConverter.cs
- Visual.cs
- DateTimePickerDesigner.cs
- DynamicActivityXamlReader.cs
- ProfileSettingsCollection.cs
- LayoutManager.cs
- ListViewAutomationPeer.cs
- BulletedListDesigner.cs
- QilScopedVisitor.cs
- shaperfactoryquerycacheentry.cs
- QuarticEase.cs
- Timeline.cs
- WebException.cs
- XmlStreamStore.cs
- FontUnit.cs
- ExtensibleClassFactory.cs
- SchemaNotation.cs
- ProfilePropertySettingsCollection.cs
- TextDocumentView.cs
- RegistryDataKey.cs
- TcpStreams.cs
- DiagnosticsConfiguration.cs
- AppDomainFactory.cs
- MarginsConverter.cs
- Triangle.cs
- HtmlTableRowCollection.cs
- ControlParameter.cs
- GeneralTransform3D.cs
- ImageCodecInfoPrivate.cs
- WebConfigurationHost.cs
- WindowsSysHeader.cs
- AspCompat.cs
- Process.cs
- DeferredTextReference.cs
- QueryCursorEventArgs.cs
- TextCompositionManager.cs
- ObjectDataSourceFilteringEventArgs.cs
- ServiceOperation.cs
- WindowProviderWrapper.cs
- PageContent.cs
- FileLoadException.cs
- ClipboardData.cs
- DefaultDialogButtons.cs
- PageRouteHandler.cs
- Unit.cs
- ComponentResourceKeyConverter.cs
- BulletedListEventArgs.cs
- PolyLineSegment.cs
- TextChange.cs
- MaskDesignerDialog.cs
- Int16.cs
- SystemResources.cs
- BridgeDataReader.cs
- WebPartCloseVerb.cs
- SoapSchemaMember.cs
- TemplateDefinition.cs
- MailWebEventProvider.cs
- PathFigureCollectionValueSerializer.cs
- DbConnectionStringBuilder.cs
- login.cs
- WmpBitmapEncoder.cs
- GlobalizationSection.cs
- MarkupProperty.cs
- XmlSchemaGroup.cs
- GPRECT.cs