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
- RawStylusActions.cs
- IsolatedStorage.cs
- XPathSelfQuery.cs
- RepeatEnumerable.cs
- GC.cs
- InstanceDataCollectionCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlSerializationWriter.cs
- PingReply.cs
- Domain.cs
- SmiConnection.cs
- XmlSerializerFactory.cs
- HtmlProps.cs
- IncrementalCompileAnalyzer.cs
- SecurityRuntime.cs
- ProfileEventArgs.cs
- SafeProcessHandle.cs
- ExeContext.cs
- DCSafeHandle.cs
- DataStreamFromComStream.cs
- AccessedThroughPropertyAttribute.cs
- ExpressionsCollectionConverter.cs
- DockAndAnchorLayout.cs
- ConfigXmlText.cs
- InvokeHandlers.cs
- ColumnTypeConverter.cs
- WebColorConverter.cs
- _DigestClient.cs
- ContainerCodeDomSerializer.cs
- XmlSortKeyAccumulator.cs
- LinqDataSource.cs
- Timer.cs
- RepeaterCommandEventArgs.cs
- ImageClickEventArgs.cs
- SafeNativeMethods.cs
- DriveInfo.cs
- ChangeInterceptorAttribute.cs
- WorkflowDesignerMessageFilter.cs
- AffineTransform3D.cs
- RijndaelManaged.cs
- GlyphRun.cs
- RuleEngine.cs
- DataGridViewElement.cs
- IndexedEnumerable.cs
- ToggleButtonAutomationPeer.cs
- ViewgenContext.cs
- ControlIdConverter.cs
- ThicknessConverter.cs
- COM2IDispatchConverter.cs
- LineSegment.cs
- FontFamilyIdentifier.cs
- HttpFormatExtensions.cs
- PropertyCondition.cs
- TraceSection.cs
- NameTable.cs
- TypeBuilderInstantiation.cs
- WriteStateInfoBase.cs
- InternalBase.cs
- XmlnsCompatibleWithAttribute.cs
- HtmlSelectionListAdapter.cs
- DataGridViewAccessibleObject.cs
- DelimitedListTraceListener.cs
- GradientBrush.cs
- BitmapEffectOutputConnector.cs
- ReadOnlyAttribute.cs
- XmlCodeExporter.cs
- CharConverter.cs
- DataGridViewButtonCell.cs
- DataObjectCopyingEventArgs.cs
- DataConnectionHelper.cs
- RequestQueryParser.cs
- MetadataCollection.cs
- NativeRecognizer.cs
- Query.cs
- PropertyChangedEventArgs.cs
- SQLSingleStorage.cs
- RemotingSurrogateSelector.cs
- JavaScriptString.cs
- SetStateEventArgs.cs
- DependencySource.cs
- RangeValidator.cs
- WebAdminConfigurationHelper.cs
- SingleAnimationUsingKeyFrames.cs
- WebPartDeleteVerb.cs
- HtmlWindow.cs
- Subtract.cs
- XmlDictionaryReader.cs
- SystemDiagnosticsSection.cs
- UpdatePanelTrigger.cs
- ViewGenResults.cs
- ItemChangedEventArgs.cs
- connectionpool.cs
- TextPenaltyModule.cs
- ToolStripSplitButton.cs
- X509IssuerSerialKeyIdentifierClause.cs
- DesignerActionMethodItem.cs
- PermissionToken.cs
- AddInController.cs
- IndependentAnimationStorage.cs
- BinaryFormatterWriter.cs