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
- MulticastNotSupportedException.cs
- ExceptionAggregator.cs
- SqlMethodTransformer.cs
- StopStoryboard.cs
- NativeMethods.cs
- ProgressBarBrushConverter.cs
- TextServicesCompartmentContext.cs
- CompositionTarget.cs
- DataControlReferenceCollection.cs
- PointF.cs
- EdmItemCollection.cs
- DocumentReference.cs
- sqlmetadatafactory.cs
- EventsTab.cs
- EventListenerClientSide.cs
- TextEndOfParagraph.cs
- FormsAuthenticationEventArgs.cs
- RegexCharClass.cs
- COM2FontConverter.cs
- Rect.cs
- XslException.cs
- SmiMetaDataProperty.cs
- DNS.cs
- ReferenceTypeElement.cs
- CollectionConverter.cs
- System.Data.OracleClient_BID.cs
- HttpCacheVaryByContentEncodings.cs
- DataGridViewRowPrePaintEventArgs.cs
- XmlSchemaChoice.cs
- TextElementAutomationPeer.cs
- TdsEnums.cs
- ContentIterators.cs
- ReachPageContentCollectionSerializerAsync.cs
- RegisteredHiddenField.cs
- _Semaphore.cs
- OdbcUtils.cs
- WorkflowApplicationAbortedException.cs
- SmtpException.cs
- JournalEntryStack.cs
- DbBuffer.cs
- ListSortDescriptionCollection.cs
- AnnotationObservableCollection.cs
- ByteAnimationBase.cs
- XmlSiteMapProvider.cs
- IdentityManager.cs
- HMACSHA384.cs
- TreeViewHitTestInfo.cs
- DiscoveryClientChannelFactory.cs
- SmiEventSink_Default.cs
- GeneralTransform.cs
- DependencyPropertyDescriptor.cs
- mansign.cs
- WinFormsComponentEditor.cs
- ping.cs
- DataGridViewCellStateChangedEventArgs.cs
- WebUtil.cs
- PriorityBindingExpression.cs
- XamlToRtfWriter.cs
- SplayTreeNode.cs
- Base64Decoder.cs
- NamedPermissionSet.cs
- AppDomainUnloadedException.cs
- ResourceReferenceExpression.cs
- GenericTextProperties.cs
- TextOnlyOutput.cs
- Matrix3DConverter.cs
- Terminate.cs
- remotingproxy.cs
- FastPropertyAccessor.cs
- CompiledRegexRunnerFactory.cs
- HandlerWithFactory.cs
- ApplicationServiceManager.cs
- SubMenuStyle.cs
- EmissiveMaterial.cs
- DetailsViewCommandEventArgs.cs
- Normalization.cs
- FixedDocumentPaginator.cs
- SmtpReplyReader.cs
- XmlSignificantWhitespace.cs
- WebUtil.cs
- StructuralType.cs
- MergeFailedEvent.cs
- MultipleViewPattern.cs
- PanelStyle.cs
- LowerCaseStringConverter.cs
- DataKeyArray.cs
- BindingCompleteEventArgs.cs
- NativeMethods.cs
- DbProviderFactoriesConfigurationHandler.cs
- StyleTypedPropertyAttribute.cs
- CodeDomSerializationProvider.cs
- StreamSecurityUpgradeInitiator.cs
- ControlBuilder.cs
- WeakReferenceList.cs
- ChannelOptions.cs
- ComponentCollection.cs
- AmbientEnvironment.cs
- SigningCredentials.cs
- TracingConnectionInitiator.cs
- DynamicResourceExtensionConverter.cs