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
- FamilyTypefaceCollection.cs
- SoundPlayerAction.cs
- Attachment.cs
- SSmlParser.cs
- EmptyQuery.cs
- PropertyAccessVisitor.cs
- PatternMatcher.cs
- UdpChannelFactory.cs
- HtmlMeta.cs
- securestring.cs
- LambdaCompiler.cs
- BitmapCodecInfoInternal.cs
- HttpRuntime.cs
- SemaphoreFullException.cs
- StylusPointPropertyUnit.cs
- CompressEmulationStream.cs
- Variable.cs
- ResourcesChangeInfo.cs
- FormViewInsertedEventArgs.cs
- ReliableDuplexSessionChannel.cs
- SystemFonts.cs
- PipeConnection.cs
- MetadataPropertyvalue.cs
- FunctionUpdateCommand.cs
- SyndicationCategory.cs
- FixedTextView.cs
- AssemblyBuilder.cs
- DrawToolTipEventArgs.cs
- DataMemberConverter.cs
- ConstNode.cs
- X509CertificateEndpointIdentity.cs
- SqlCacheDependency.cs
- MenuBase.cs
- ListBoxChrome.cs
- XmlArrayItemAttribute.cs
- GridViewColumnCollection.cs
- StrongNameUtility.cs
- Matrix.cs
- PrinterUnitConvert.cs
- Collection.cs
- QueueException.cs
- DEREncoding.cs
- DefaultWorkflowLoaderService.cs
- ConditionedDesigner.cs
- BackStopAuthenticationModule.cs
- TextEditorSelection.cs
- FormsAuthenticationCredentials.cs
- ObjectStateManagerMetadata.cs
- ValueTable.cs
- DownloadProgressEventArgs.cs
- OleDbConnectionInternal.cs
- DictionaryContent.cs
- Speller.cs
- FileDetails.cs
- CompModSwitches.cs
- LinqDataSourceDisposeEventArgs.cs
- unsafenativemethodstextservices.cs
- DataSet.cs
- WebCategoryAttribute.cs
- XPathPatternParser.cs
- HttpPostedFile.cs
- LoginName.cs
- SqlLiftWhereClauses.cs
- PageBuildProvider.cs
- RoutingSection.cs
- AspProxy.cs
- StatusBarPanelClickEvent.cs
- DescriptionAttribute.cs
- ResourcePart.cs
- BitFlagsGenerator.cs
- DrawingContextDrawingContextWalker.cs
- TableCellAutomationPeer.cs
- FixedFlowMap.cs
- ContextStack.cs
- HeaderCollection.cs
- TerminatorSinks.cs
- DesignTable.cs
- SQLInt64Storage.cs
- ToolStripRenderer.cs
- TemplateParser.cs
- ExtentJoinTreeNode.cs
- HtmlFormWrapper.cs
- ResetableIterator.cs
- DynamicUpdateCommand.cs
- activationcontext.cs
- SymbolMethod.cs
- MutexSecurity.cs
- CompilerState.cs
- ScrollableControlDesigner.cs
- ConfigXmlWhitespace.cs
- WindowClosedEventArgs.cs
- ClockGroup.cs
- PartBasedPackageProperties.cs
- DesignerTransaction.cs
- UserPreferenceChangingEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DiagnosticsElement.cs
- RequestCacheManager.cs
- MessageBuffer.cs
- PersianCalendar.cs