Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Serializer / TypeExtensionSerializer.cs / 1305376 / TypeExtensionSerializer.cs
namespace System.Workflow.ComponentModel.Serialization { using System; using System.Xml; using System.Reflection; using System.Workflow.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Text; using System.Diagnostics; using System.ComponentModel; using System.Collections.Generic; #region Class TypeExtensionSerializer internal class TypeExtensionSerializer : MarkupExtensionSerializer { protected override InstanceDescriptor GetInstanceDescriptor(WorkflowMarkupSerializationManager serializationManager, object value) { TypeExtension typeExtension = value as TypeExtension; if (typeExtension == null) throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(TypeExtension).FullName), "value"); if(typeExtension.Type != null) return new InstanceDescriptor(typeof(TypeExtension).GetConstructor(new Type[] { typeof(System.Type) }), new object[] { typeExtension.Type }); return new InstanceDescriptor(typeof(TypeExtension).GetConstructor(new Type[] { typeof(string) }), new object[] { typeExtension.TypeName }); } } #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
- IndexedWhereQueryOperator.cs
- DataPagerField.cs
- Assembly.cs
- ClientFactory.cs
- WriteableBitmap.cs
- COM2ComponentEditor.cs
- TextMetrics.cs
- TokenBasedSet.cs
- DefaultAutoFieldGenerator.cs
- SqlBuilder.cs
- XmlDataLoader.cs
- DataGridViewCellStyleConverter.cs
- SqlParameter.cs
- DependencyObjectProvider.cs
- SymmetricAlgorithm.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ProxyGenerationError.cs
- BevelBitmapEffect.cs
- DelegatingHeader.cs
- DesignSurfaceEvent.cs
- GeneralTransform3DTo2D.cs
- XmlUTF8TextReader.cs
- AutoGeneratedField.cs
- IDQuery.cs
- JsonFormatWriterGenerator.cs
- ClientTarget.cs
- ResourceCategoryAttribute.cs
- DbFunctionCommandTree.cs
- PropVariant.cs
- Boolean.cs
- Pts.cs
- StdValidatorsAndConverters.cs
- TraceEventCache.cs
- ImageClickEventArgs.cs
- DependencyStoreSurrogate.cs
- Propagator.cs
- EdmTypeAttribute.cs
- StateMachine.cs
- RelationshipConverter.cs
- EventDescriptorCollection.cs
- BuildProvider.cs
- ClientTargetCollection.cs
- LassoHelper.cs
- CodeIdentifiers.cs
- ObjectHelper.cs
- ResetableIterator.cs
- ProfileServiceManager.cs
- ConnectionOrientedTransportBindingElement.cs
- Aggregates.cs
- NamespaceDecl.cs
- HwndStylusInputProvider.cs
- Parameter.cs
- SqlCacheDependency.cs
- PerfCounters.cs
- DeploymentSectionCache.cs
- CodeTypeParameter.cs
- GeneralTransform2DTo3DTo2D.cs
- ConsumerConnectionPointCollection.cs
- FindCriteriaCD1.cs
- InputScopeAttribute.cs
- Drawing.cs
- XmlLinkedNode.cs
- GridViewUpdatedEventArgs.cs
- SelectingProviderEventArgs.cs
- Tile.cs
- XmlSchemaComplexContentExtension.cs
- TabControlCancelEvent.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- TableAdapterManagerGenerator.cs
- NoneExcludedImageIndexConverter.cs
- AlternationConverter.cs
- DrawingContextDrawingContextWalker.cs
- SqlNotificationRequest.cs
- ExpressionHelper.cs
- FrameworkElement.cs
- EntityFrameworkVersions.cs
- BaseCodeDomTreeGenerator.cs
- ExtensionSimplifierMarkupObject.cs
- SamlDelegatingWriter.cs
- SelectionChangedEventArgs.cs
- EnumValidator.cs
- WebBrowserNavigatedEventHandler.cs
- TagPrefixAttribute.cs
- SingleAnimationBase.cs
- Type.cs
- DocumentPageTextView.cs
- Exceptions.cs
- RC2.cs
- SecureStringHasher.cs
- CompoundFileStorageReference.cs
- TextCompositionEventArgs.cs
- InternalConfigSettingsFactory.cs
- LocalizedNameDescriptionPair.cs
- designeractionlistschangedeventargs.cs
- InboundActivityHelper.cs
- ConfigurationStrings.cs
- ObjectAnimationUsingKeyFrames.cs
- FontDialog.cs
- SamlAudienceRestrictionCondition.cs
- Int32Animation.cs