Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / TypeConverterAttribute.cs / 1305376 / TypeConverterAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System.Diagnostics; using System.Globalization; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class TypeConverterAttribute : Attribute { private string typeName; ///Specifies what type to use as /// a converter for the object /// this /// attribute is bound to. This class cannot /// be inherited. ////// public static readonly TypeConverterAttribute Default = new TypeConverterAttribute(); ///Specifies the type to use as /// a converter for the object this attribute is bound to. This /// ///field is read-only. /// public TypeConverterAttribute() { this.typeName = string.Empty; } ////// Initializes a new instance of the ///class with the /// default type converter, which /// is an /// empty string (""). /// /// public TypeConverterAttribute(Type type) { this.typeName = type.AssemblyQualifiedName; } ///Initializes a new instance of the ///class, using /// the specified type as the data converter for the object this attribute /// is bound /// to. /// public TypeConverterAttribute(string typeName) { string temp = typeName.ToUpper(CultureInfo.InvariantCulture); Debug.Assert(temp.IndexOf(".DLL") == -1, "Came across: " + typeName + " . Please remove the .dll extension"); this.typeName = typeName; } ///Initializes a new instance of the ///class, using /// the specified type name as the data converter for the object this attribute is bound to. /// public string ConverterTypeName { get { return typeName; } } public override bool Equals(object obj) { TypeConverterAttribute other = obj as TypeConverterAttribute; return (other != null) && other.ConverterTypeName == typeName; } public override int GetHashCode() { return typeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the fully qualified type name of the ////// to use as a converter for the object this attribute /// is bound to.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReadOnlyDictionary.cs
- SystemIPGlobalProperties.cs
- UserControlAutomationPeer.cs
- FactoryGenerator.cs
- GridToolTip.cs
- Header.cs
- RemoteWebConfigurationHostStream.cs
- MD5Cng.cs
- baseaxisquery.cs
- SpellCheck.cs
- FormParameter.cs
- UnSafeCharBuffer.cs
- CustomExpressionEventArgs.cs
- PrintDocument.cs
- GridViewActionList.cs
- CurrentChangedEventManager.cs
- MailAddressCollection.cs
- ProfileInfo.cs
- QueuePathDialog.cs
- SoapSchemaExporter.cs
- SaveCardRequest.cs
- InputProcessorProfilesLoader.cs
- TemplateControlCodeDomTreeGenerator.cs
- XamlSerializer.cs
- DbDataSourceEnumerator.cs
- PersonalizationEntry.cs
- InternalBase.cs
- CoTaskMemHandle.cs
- InternalBase.cs
- ConfigViewGenerator.cs
- SafeNativeMethodsMilCoreApi.cs
- HttpServerVarsCollection.cs
- CookielessHelper.cs
- StateManagedCollection.cs
- MetadataItem_Static.cs
- DebugView.cs
- HostingPreferredMapPath.cs
- InfoCardKeyedHashAlgorithm.cs
- InternalConfigHost.cs
- PageParserFilter.cs
- ReferencedType.cs
- XmlLanguage.cs
- Fonts.cs
- WebPartZone.cs
- StringFormat.cs
- Normalization.cs
- CompareInfo.cs
- HistoryEventArgs.cs
- AvTraceDetails.cs
- PtsContext.cs
- ProxyWebPart.cs
- DirectionalLight.cs
- EntityStoreSchemaFilterEntry.cs
- SqlInternalConnectionTds.cs
- ArraySortHelper.cs
- GeneralTransform3DTo2DTo3D.cs
- FontWeight.cs
- QuaternionAnimationUsingKeyFrames.cs
- ListBindableAttribute.cs
- SmtpCommands.cs
- DataGridViewAdvancedBorderStyle.cs
- SoapReflectionImporter.cs
- MetadataCollection.cs
- StylusSystemGestureEventArgs.cs
- WindowsAuthenticationModule.cs
- WebBrowsableAttribute.cs
- HttpRequest.cs
- TypeLoadException.cs
- PasswordBox.cs
- PointAnimation.cs
- HitTestParameters.cs
- DesignerAdRotatorAdapter.cs
- StoreAnnotationsMap.cs
- DataGridViewBindingCompleteEventArgs.cs
- CapabilitiesState.cs
- RawStylusInputCustomData.cs
- ListBoxAutomationPeer.cs
- XmlCharCheckingReader.cs
- FloatUtil.cs
- ZipPackage.cs
- PagerSettings.cs
- CalloutQueueItem.cs
- ScrollContentPresenter.cs
- OleDbReferenceCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- DBPropSet.cs
- StreamGeometry.cs
- OleDbInfoMessageEvent.cs
- NativeMethods.cs
- ContainerVisual.cs
- QuaternionAnimationUsingKeyFrames.cs
- DataConnectionHelper.cs
- InternalResources.cs
- _ListenerRequestStream.cs
- FaultContractInfo.cs
- _AcceptOverlappedAsyncResult.cs
- ServiceNameElement.cs
- InternalUserCancelledException.cs
- SqlSelectStatement.cs
- TiffBitmapEncoder.cs