Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / MultilineStringConverter.cs / 1 / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReachPageContentSerializer.cs
- AnimatedTypeHelpers.cs
- _AcceptOverlappedAsyncResult.cs
- EventDrivenDesigner.cs
- PrintPreviewDialog.cs
- EdmRelationshipRoleAttribute.cs
- CompilationUtil.cs
- ListViewDeletedEventArgs.cs
- EntityClassGenerator.cs
- DynamicDocumentPaginator.cs
- Emitter.cs
- ChannelManager.cs
- AsyncContentLoadedEventArgs.cs
- BamlLocalizationDictionary.cs
- figurelength.cs
- RightsManagementInformation.cs
- NotifyIcon.cs
- TextSpan.cs
- SByteStorage.cs
- Literal.cs
- GridEntryCollection.cs
- UserValidatedEventArgs.cs
- Registry.cs
- CharEntityEncoderFallback.cs
- MailSettingsSection.cs
- ListViewDeleteEventArgs.cs
- MultiAsyncResult.cs
- SoapIgnoreAttribute.cs
- Currency.cs
- RealProxy.cs
- TimeSpanConverter.cs
- CharacterShapingProperties.cs
- QilTernary.cs
- TypeConverterValueSerializer.cs
- TransactionBridgeSection.cs
- FileLogRecordHeader.cs
- Margins.cs
- AutomationPatternInfo.cs
- RsaElement.cs
- MdImport.cs
- BinaryObjectInfo.cs
- TextEditorMouse.cs
- SettingsBindableAttribute.cs
- TransformerInfo.cs
- Image.cs
- HostedTransportConfigurationBase.cs
- Rectangle.cs
- ActivityBindForm.cs
- IntSecurity.cs
- SafeLibraryHandle.cs
- METAHEADER.cs
- CuspData.cs
- AsyncStreamReader.cs
- SettingsSection.cs
- ExpressionTextBoxAutomationPeer.cs
- HitTestParameters.cs
- XPathArrayIterator.cs
- SynchronizationLockException.cs
- CharEntityEncoderFallback.cs
- CodeGenerator.cs
- NativeRecognizer.cs
- ValueProviderWrapper.cs
- shaperfactory.cs
- GenericArgumentsUpdater.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SslStream.cs
- DispatchChannelSink.cs
- GestureRecognitionResult.cs
- UnsignedPublishLicense.cs
- GridViewItemAutomationPeer.cs
- SafeSecurityHandles.cs
- InputBinding.cs
- WebPartVerbsEventArgs.cs
- ActionFrame.cs
- AutomationProperty.cs
- SharedUtils.cs
- LinkDescriptor.cs
- CodeCatchClause.cs
- BaseTemplatedMobileComponentEditor.cs
- NativeMethods.cs
- ProcessModelSection.cs
- RIPEMD160.cs
- TypeTypeConverter.cs
- IOException.cs
- LinkUtilities.cs
- BaseTransportHeaders.cs
- TdsParserStateObject.cs
- SimpleLine.cs
- _NativeSSPI.cs
- FixedNode.cs
- TypeRestriction.cs
- IntSecurity.cs
- WebResourceAttribute.cs
- OrderedDictionaryStateHelper.cs
- TemplateBindingExpression.cs
- EventLogEntry.cs
- SqlDataSourceSelectingEventArgs.cs
- UnsafeNativeMethods.cs
- XsltException.cs
- ClrProviderManifest.cs