Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / MultilineStringConverter.cs / 1305376 / MultilineStringConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; ////// Provides a type converter to convert multiline strings to a simple string. /// [HostProtection(SharedState = true)] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] public class MultilineStringConverter : TypeConverter { ////// Converts the given value object to the specified destination type. /// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == null) { throw new ArgumentNullException("destinationType"); } if (destinationType == typeof(string)) { if (value is string) { return SR.GetString(SR.MultilineStringConverterText); } } return base.ConvertTo(context, culture, value, destinationType); } ////// Gets a collection of properties for the type of array specified by the value /// parameter using the specified context and attributes. /// public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { return null; } ////// Gets a value indicating whether this object supports properties. /// public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return false; } } } // 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
- LogManagementAsyncResult.cs
- LocalizabilityAttribute.cs
- HyperLinkField.cs
- AmbientLight.cs
- SafeRightsManagementPubHandle.cs
- CompilationUtil.cs
- PageThemeCodeDomTreeGenerator.cs
- Divide.cs
- OutputCacheSection.cs
- EncodingDataItem.cs
- CollectionBuilder.cs
- SourceLineInfo.cs
- InputManager.cs
- odbcmetadatafactory.cs
- ClientConfigurationHost.cs
- MenuItem.cs
- UIElement.cs
- SoapCommonClasses.cs
- SerializationException.cs
- ViewManager.cs
- DateTimeStorage.cs
- SinglePhaseEnlistment.cs
- SqlCacheDependencyDatabaseCollection.cs
- TextElementCollectionHelper.cs
- DisplayInformation.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ComPlusDiagnosticTraceRecords.cs
- BinaryReader.cs
- DependencyPropertyValueSerializer.cs
- HoistedLocals.cs
- UIntPtr.cs
- TouchFrameEventArgs.cs
- XmlSchemas.cs
- SrgsElementFactoryCompiler.cs
- Hashtable.cs
- ToolStripContainer.cs
- LiteralText.cs
- PageAsyncTaskManager.cs
- SerializationInfoEnumerator.cs
- ToolStripItem.cs
- PrintPageEvent.cs
- ExceptionUtil.cs
- log.cs
- SpnEndpointIdentity.cs
- ConnectionPool.cs
- ConvertersCollection.cs
- QilBinary.cs
- Scheduler.cs
- BinarySerializer.cs
- TypeElement.cs
- IdentifierService.cs
- HierarchicalDataBoundControlAdapter.cs
- BitmapEffectDrawingContextState.cs
- CacheModeConverter.cs
- TwoPhaseCommit.cs
- ResourceAssociationSet.cs
- DirtyTextRange.cs
- HostingEnvironment.cs
- StyleBamlTreeBuilder.cs
- ProgressBarRenderer.cs
- COM2Enum.cs
- DynamicControlParameter.cs
- WindowsAltTab.cs
- OptimalTextSource.cs
- TemplateControl.cs
- DataGridViewEditingControlShowingEventArgs.cs
- WebRequest.cs
- InputManager.cs
- ContextMenu.cs
- StylusPointPropertyInfo.cs
- DPAPIProtectedConfigurationProvider.cs
- Literal.cs
- BehaviorEditorPart.cs
- EntityClientCacheEntry.cs
- ControlCollection.cs
- GB18030Encoding.cs
- SelectorAutomationPeer.cs
- OleDbReferenceCollection.cs
- SpotLight.cs
- MinMaxParagraphWidth.cs
- QuaternionAnimation.cs
- _ChunkParse.cs
- TypeConverter.cs
- XmlMembersMapping.cs
- ManipulationLogic.cs
- PostBackTrigger.cs
- ProcessHostFactoryHelper.cs
- SQLMoneyStorage.cs
- SemaphoreSecurity.cs
- oledbmetadatacollectionnames.cs
- CodeDirectoryCompiler.cs
- WindowsGraphics2.cs
- UnitySerializationHolder.cs
- SoapEnumAttribute.cs
- SymbolEqualComparer.cs
- ValueExpressions.cs
- TreeNodeCollection.cs
- TableStyle.cs
- DeferredBinaryDeserializerExtension.cs
- DiscoveryOperationContextExtension.cs