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
- DataSourceProvider.cs
- SemanticAnalyzer.cs
- InputBinding.cs
- InvokePattern.cs
- SSmlParser.cs
- StructuralCache.cs
- PasswordBoxAutomationPeer.cs
- CompensationToken.cs
- InfiniteIntConverter.cs
- DefaultValueTypeConverter.cs
- EdmToObjectNamespaceMap.cs
- FormsAuthenticationEventArgs.cs
- DropShadowBitmapEffect.cs
- TempFiles.cs
- KeyGestureValueSerializer.cs
- TextAction.cs
- QueryCacheKey.cs
- CultureTableRecord.cs
- SymDocumentType.cs
- ProcessingInstructionAction.cs
- HttpListenerPrefixCollection.cs
- RemotingConfiguration.cs
- WebConfigurationManager.cs
- SchemaNamespaceManager.cs
- SqlDataSourceCommandEventArgs.cs
- COM2Properties.cs
- Calendar.cs
- Validator.cs
- ValidatorCollection.cs
- QueueProcessor.cs
- WebPartVerbsEventArgs.cs
- MachineSettingsSection.cs
- WebReference.cs
- WebPartExportVerb.cs
- GridItem.cs
- SoapInteropTypes.cs
- PingOptions.cs
- DatePicker.cs
- QueueProcessor.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- XPathNodeIterator.cs
- Geometry3D.cs
- RijndaelManaged.cs
- Walker.cs
- X509Utils.cs
- RoleManagerSection.cs
- CodeBlockBuilder.cs
- CompilerResults.cs
- GridViewUpdateEventArgs.cs
- ConfigurationValue.cs
- _ListenerResponseStream.cs
- _StreamFramer.cs
- CharAnimationBase.cs
- Substitution.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- PropertyTab.cs
- SqlExpressionNullability.cs
- WebBaseEventKeyComparer.cs
- DataKeyArray.cs
- WebBrowsableAttribute.cs
- XmlCollation.cs
- ReflectEventDescriptor.cs
- ReadWriteObjectLock.cs
- PlatformNotSupportedException.cs
- CompareValidator.cs
- ContentElement.cs
- Icon.cs
- DrawingState.cs
- DataGridViewCell.cs
- MailWriter.cs
- X509ServiceCertificateAuthenticationElement.cs
- ConfigViewGenerator.cs
- TraceLevelStore.cs
- SoapAttributes.cs
- Image.cs
- ServicePointManager.cs
- HitTestWithGeometryDrawingContextWalker.cs
- AssemblyBuilderData.cs
- ContentIterators.cs
- FileStream.cs
- NamespaceCollection.cs
- GacUtil.cs
- Attributes.cs
- CallSiteBinder.cs
- DataColumnPropertyDescriptor.cs
- Options.cs
- Environment.cs
- _DigestClient.cs
- DetailsViewUpdateEventArgs.cs
- WebContentFormatHelper.cs
- PerformanceCounterPermission.cs
- ProcessRequestArgs.cs
- HyperlinkAutomationPeer.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ToolStripProgressBar.cs
- RegexWorker.cs
- DataGridViewRowPostPaintEventArgs.cs
- MetadataUtil.cs
- BitmapData.cs
- RegionData.cs