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
- CharUnicodeInfo.cs
- CornerRadius.cs
- NotImplementedException.cs
- StandardOleMarshalObject.cs
- ContainerUtilities.cs
- WebZoneDesigner.cs
- SoapServerMessage.cs
- XmlTextReaderImplHelpers.cs
- SymbolMethod.cs
- StylusPlugin.cs
- FontFaceLayoutInfo.cs
- MetricEntry.cs
- TypefaceMetricsCache.cs
- Button.cs
- querybuilder.cs
- HttpPostClientProtocol.cs
- SmiRecordBuffer.cs
- TableColumn.cs
- DesignerForm.cs
- LocatorPart.cs
- MulticastDelegate.cs
- ListChangedEventArgs.cs
- Visual3DCollection.cs
- FixedSchema.cs
- LocalizationParserHooks.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TypeReference.cs
- RequestResponse.cs
- XmlDownloadManager.cs
- CompoundFileStorageReference.cs
- SettingsPropertyWrongTypeException.cs
- HttpCacheVary.cs
- RelatedImageListAttribute.cs
- WhitespaceReader.cs
- Property.cs
- ScrollBar.cs
- DSASignatureFormatter.cs
- XPathArrayIterator.cs
- NumberFunctions.cs
- MenuAdapter.cs
- WebScriptMetadataMessageEncoderFactory.cs
- DataServiceRequest.cs
- webbrowsersite.cs
- HttpSessionStateBase.cs
- _AuthenticationState.cs
- DictionaryEntry.cs
- ContainsRowNumberChecker.cs
- SudsWriter.cs
- cryptoapiTransform.cs
- HierarchicalDataTemplate.cs
- AutomationElement.cs
- CounterSampleCalculator.cs
- CTreeGenerator.cs
- Int32Rect.cs
- cookieexception.cs
- DbConnectionPoolIdentity.cs
- MenuItemStyle.cs
- ResourceFallbackManager.cs
- RenderData.cs
- CacheModeConverter.cs
- ServiceElementCollection.cs
- SessionEndingCancelEventArgs.cs
- ApplicationInterop.cs
- XmlProcessingInstruction.cs
- arc.cs
- MouseBinding.cs
- XsdBuilder.cs
- ConfigurationSection.cs
- SqlConnectionPoolProviderInfo.cs
- PhonemeConverter.cs
- EventOpcode.cs
- WindowsListViewItemStartMenu.cs
- FontFamilyValueSerializer.cs
- TextTreeRootTextBlock.cs
- BroadcastEventHelper.cs
- SiteMapNode.cs
- RuntimeArgumentHandle.cs
- FontCacheUtil.cs
- TabItemWrapperAutomationPeer.cs
- ThreadInterruptedException.cs
- DocumentsTrace.cs
- ResolveCriteria11.cs
- BitmapEffectInputData.cs
- SqlSupersetValidator.cs
- OracleRowUpdatingEventArgs.cs
- DbProviderManifest.cs
- ContentOperations.cs
- SetIndexBinder.cs
- ConfigurationConverterBase.cs
- IsolatedStorage.cs
- BamlMapTable.cs
- LoginName.cs
- SplineKeyFrames.cs
- WebPartEditVerb.cs
- RTLAwareMessageBox.cs
- DesignerSerializationOptionsAttribute.cs
- DllHostedComPlusServiceHost.cs
- ToolStripOverflow.cs
- OpCodes.cs