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
- SamlDelegatingWriter.cs
- WorkflowStateRollbackService.cs
- WindowHideOrCloseTracker.cs
- Config.cs
- TcpChannelHelper.cs
- Menu.cs
- SimpleModelProvider.cs
- DataPagerField.cs
- ListViewDataItem.cs
- NonSerializedAttribute.cs
- Properties.cs
- glyphs.cs
- AsyncInvokeOperation.cs
- NativeMethods.cs
- ClientOptions.cs
- EndEvent.cs
- InkPresenter.cs
- Site.cs
- SoapInteropTypes.cs
- CopyAction.cs
- ArraySet.cs
- RadioButtonRenderer.cs
- SlipBehavior.cs
- Scripts.cs
- GeometryConverter.cs
- ComboBoxAutomationPeer.cs
- StringResourceManager.cs
- RelativeSource.cs
- FormDocumentDesigner.cs
- DataFormats.cs
- OleDbError.cs
- BlurBitmapEffect.cs
- coordinatorscratchpad.cs
- XmlSchemaInferenceException.cs
- RightsManagementEncryptionTransform.cs
- MetadataStore.cs
- DataAdapter.cs
- XmlWriter.cs
- MessageDecoder.cs
- XmlDocumentSurrogate.cs
- AmbientLight.cs
- ObjectItemNoOpAssemblyLoader.cs
- SafeSystemMetrics.cs
- StorageModelBuildProvider.cs
- EmptyEnumerable.cs
- clipboard.cs
- SubqueryRules.cs
- EntityClientCacheKey.cs
- ErrorsHelper.cs
- Point3DAnimation.cs
- BuilderPropertyEntry.cs
- Directory.cs
- WebPartConnectVerb.cs
- DoubleCollectionValueSerializer.cs
- DbConnectionPoolOptions.cs
- StreamHelper.cs
- ZipIOExtraFieldZip64Element.cs
- ElementProxy.cs
- PriorityBinding.cs
- HMACSHA1.cs
- ContentDefinition.cs
- EventPropertyMap.cs
- PropertyEmitterBase.cs
- DecoderBestFitFallback.cs
- DropTarget.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- MimeMapping.cs
- NativeMethods.cs
- _NTAuthentication.cs
- Duration.cs
- TraversalRequest.cs
- Stack.cs
- MdImport.cs
- WebCategoryAttribute.cs
- TdsValueSetter.cs
- XsltArgumentList.cs
- EncodingFallbackAwareXmlTextWriter.cs
- NativeWindow.cs
- XamlPathDataSerializer.cs
- ListViewHitTestInfo.cs
- PerformanceCounterPermissionAttribute.cs
- SplitterPanel.cs
- SqlDataSourceWizardForm.cs
- TcpClientSocketManager.cs
- ColorInterpolationModeValidation.cs
- TcpClientCredentialType.cs
- SafeBitVector32.cs
- CultureInfoConverter.cs
- TextDecorationCollection.cs
- BuildProvidersCompiler.cs
- TokenBasedSet.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlSchemaSimpleTypeRestriction.cs
- CancellationTokenSource.cs
- ToolboxDataAttribute.cs
- ModifierKeysConverter.cs
- RenderData.cs
- CultureSpecificStringDictionary.cs
- SelectionRangeConverter.cs
- ThreadAbortException.cs