Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Serialization / System / Runtime / Serialization / KnownTypeAttribute.cs / 1305376 / KnownTypeAttribute.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = true)] public sealed class KnownTypeAttribute : Attribute { string methodName; Type type; private KnownTypeAttribute() { // Disallow default constructor } public KnownTypeAttribute(Type type) { this.type = type; } public KnownTypeAttribute(string methodName) { this.methodName = methodName; } public string MethodName { get { return methodName; } //set { methodName = value; } } public Type Type { get { return type; } //set { type = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = true, AllowMultiple = true)] public sealed class KnownTypeAttribute : Attribute { string methodName; Type type; private KnownTypeAttribute() { // Disallow default constructor } public KnownTypeAttribute(Type type) { this.type = type; } public KnownTypeAttribute(string methodName) { this.methodName = methodName; } public string MethodName { get { return methodName; } //set { methodName = value; } } public Type Type { get { return type; } //set { type = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FocusTracker.cs
- EntityKeyElement.cs
- MergablePropertyAttribute.cs
- XmlDataSourceView.cs
- HttpTransportBindingElement.cs
- BoundField.cs
- FileEnumerator.cs
- SpStreamWrapper.cs
- RequestUriProcessor.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Dispatcher.cs
- PersistChildrenAttribute.cs
- Timer.cs
- ToolStripButton.cs
- MimeMapping.cs
- PreviewControlDesigner.cs
- InputReportEventArgs.cs
- EventlogProvider.cs
- SqlConnectionPoolProviderInfo.cs
- VisualStateChangedEventArgs.cs
- MaterialGroup.cs
- DiscriminatorMap.cs
- InstallerTypeAttribute.cs
- ExtensionDataReader.cs
- InputMethod.cs
- BufferAllocator.cs
- DebugView.cs
- MatrixCamera.cs
- AsymmetricSecurityBindingElement.cs
- MailSettingsSection.cs
- Parameter.cs
- WinInetCache.cs
- CodeBinaryOperatorExpression.cs
- EventEntry.cs
- TTSEvent.cs
- ArraySortHelper.cs
- Lasso.cs
- StringArrayConverter.cs
- Window.cs
- FontStyleConverter.cs
- TcpAppDomainProtocolHandler.cs
- OptimizerPatterns.cs
- SelectionRangeConverter.cs
- SchemaMapping.cs
- COM2ComponentEditor.cs
- XsltQilFactory.cs
- Filter.cs
- TypeInitializationException.cs
- MarginCollapsingState.cs
- ActivityDesigner.cs
- ResourceProperty.cs
- ErrorRuntimeConfig.cs
- SQlBooleanStorage.cs
- WsdlInspector.cs
- DetailsViewUpdatedEventArgs.cs
- ConnectionInterfaceCollection.cs
- EpmContentSerializerBase.cs
- ListenerConfig.cs
- TabControl.cs
- NumberFormatInfo.cs
- TypedTableBase.cs
- ListViewPagedDataSource.cs
- BufferedWebEventProvider.cs
- ValidationHelper.cs
- Bits.cs
- BufferedStream.cs
- CurrentTimeZone.cs
- StringDictionary.cs
- DrawingGroupDrawingContext.cs
- KoreanLunisolarCalendar.cs
- UpdatePanelTriggerCollection.cs
- Rotation3D.cs
- EventEntry.cs
- XmlWrappingReader.cs
- MasterPage.cs
- ScopedKnownTypes.cs
- BitmapEffectGroup.cs
- FunctionUpdateCommand.cs
- TextSearch.cs
- LocatorPartList.cs
- SqlAliasesReferenced.cs
- MapPathBasedVirtualPathProvider.cs
- _NestedSingleAsyncResult.cs
- HttpVersion.cs
- FrameworkContextData.cs
- NativeMethods.cs
- InfoCard.cs
- TaiwanCalendar.cs
- BatchServiceHost.cs
- WebPartEventArgs.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XamlVector3DCollectionSerializer.cs
- TableItemPattern.cs
- Visitors.cs
- ImageFormatConverter.cs
- Int16Storage.cs
- ZipIOExtraFieldZip64Element.cs
- NoneExcludedImageIndexConverter.cs
- DbDataRecord.cs
- Button.cs