Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Serializer / ModifyActivitiesPropertyDescriptor.cs / 1305376 / ModifyActivitiesPropertyDescriptor.cs
namespace System.Workflow.ComponentModel.Serialization { using System; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Resources; using System.Workflow.ComponentModel.Design; using System.Collections.Generic; using Microsoft.CSharp; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Compiler; using System.CodeDom.Compiler; using System.IO; using System.Reflection; using System.Diagnostics; #region ModifyActivitiesPropertyDescriptor internal class ModifyActivitiesPropertyDescriptor : PropertyDescriptor { private PropertyInfo propInfo = null; public ModifyActivitiesPropertyDescriptor(PropertyInfo propInfo) : base("CanModifyActivities", new Attribute[0]) { this.propInfo = propInfo; } public override bool CanResetValue(object component) { throw new NotImplementedException(); } public override Type ComponentType { get { return typeof(CompositeActivity); } } public override object GetValue(object component) { return this.propInfo.GetValue(component, null); } public override bool IsReadOnly { get { return false; } } public override Type PropertyType { get { return typeof(bool); } } public override void ResetValue(object component) { throw new NotImplementedException(); } public override void SetValue(object component, object value) { this.propInfo.SetValue(component, true, null); // Design time, allow changes if (component is CompositeActivity) (component as CompositeActivity).SetValue(CompositeActivity.CustomActivityProperty, false); } public override bool ShouldSerializeValue(object component) { return false; } } #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
- UnsafeNativeMethods.cs
- InternalBufferManager.cs
- NullableLongMinMaxAggregationOperator.cs
- ExpressionBuilder.cs
- PathGradientBrush.cs
- TransactionFlowBindingElement.cs
- IisTraceListener.cs
- EntityDesignerDataSourceView.cs
- WebPartMenuStyle.cs
- HwndAppCommandInputProvider.cs
- SystemIPInterfaceProperties.cs
- ButtonColumn.cs
- XmlAtomicValue.cs
- ProxyAttribute.cs
- Viewport2DVisual3D.cs
- DesignerHost.cs
- ValueChangedEventManager.cs
- MultiPageTextView.cs
- DataGridRow.cs
- ColumnWidthChangedEvent.cs
- DefaultValueTypeConverter.cs
- Win32MouseDevice.cs
- CustomWebEventKey.cs
- Util.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- NumberSubstitution.cs
- ChildrenQuery.cs
- SmiGettersStream.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SmtpClient.cs
- Memoizer.cs
- TypeDescriptionProviderAttribute.cs
- UsernameTokenFactoryCredential.cs
- ImageField.cs
- SqlNodeTypeOperators.cs
- SqlDelegatedTransaction.cs
- FlowDocument.cs
- BitmapEffectDrawing.cs
- PackageRelationship.cs
- ContourSegment.cs
- Typeface.cs
- FocusWithinProperty.cs
- IIS7ConfigurationLoader.cs
- SystemGatewayIPAddressInformation.cs
- DrawingContextWalker.cs
- HttpRuntimeSection.cs
- DisplayMemberTemplateSelector.cs
- dtdvalidator.cs
- DataGridViewHeaderCell.cs
- DataSvcMapFile.cs
- XmlUtil.cs
- TextReader.cs
- SizeAnimationUsingKeyFrames.cs
- XmlHelper.cs
- SizeChangedEventArgs.cs
- BitSet.cs
- OdbcHandle.cs
- FormParameter.cs
- BitmapDecoder.cs
- BaseValidator.cs
- CodeTypeDelegate.cs
- XmlDataSourceNodeDescriptor.cs
- LeaseManager.cs
- Point3DValueSerializer.cs
- OpenTypeCommon.cs
- CommandManager.cs
- AuthenticationSection.cs
- XmlIlGenerator.cs
- Schema.cs
- UInt16Converter.cs
- UrlAuthFailedErrorFormatter.cs
- MutableAssemblyCacheEntry.cs
- DataSourceExpressionCollection.cs
- DispatchOperation.cs
- TimeZone.cs
- RegexRunner.cs
- Parser.cs
- VScrollBar.cs
- CookieParameter.cs
- StyleSheetDesigner.cs
- ImageMetadata.cs
- SafeCryptHandles.cs
- ExpressionBuilder.cs
- ToolStripGripRenderEventArgs.cs
- SqlConnectionHelper.cs
- Completion.cs
- ListViewItemSelectionChangedEvent.cs
- MetadataArtifactLoaderFile.cs
- CommonDialog.cs
- CatalogPart.cs
- XComponentModel.cs
- SqlFunctions.cs
- ValidationRule.cs
- CachedBitmap.cs
- RunInstallerAttribute.cs
- GroupBoxDesigner.cs
- ImageUrlEditor.cs
- ButtonPopupAdapter.cs
- EventEntry.cs
- FormClosedEvent.cs