Code:
/ FX-1434 / FX-1434 / 1.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
- TableLayoutRowStyleCollection.cs
- TreeViewBindingsEditor.cs
- ImageAutomationPeer.cs
- _HTTPDateParse.cs
- SiteMapHierarchicalDataSourceView.cs
- SubMenuStyle.cs
- MarkupCompilePass1.cs
- SettingsPropertyNotFoundException.cs
- XmlValueConverter.cs
- DeferredReference.cs
- AccessDataSource.cs
- ExtendedPropertyCollection.cs
- Maps.cs
- XmlBoundElement.cs
- InstanceStore.cs
- CollectionChangedEventManager.cs
- MetadataSection.cs
- DeviceContext.cs
- SqlCaseSimplifier.cs
- IPAddress.cs
- NetTcpBindingElement.cs
- DesignerObjectListAdapter.cs
- ForceCopyBuildProvider.cs
- RichTextBoxAutomationPeer.cs
- PathGeometry.cs
- KeyedCollection.cs
- SafeViewOfFileHandle.cs
- ListSourceHelper.cs
- HtmlInputButton.cs
- BitmapCodecInfo.cs
- DataGridViewTextBoxEditingControl.cs
- COMException.cs
- UTF8Encoding.cs
- EventLogTraceListener.cs
- UInt32Storage.cs
- ReaderOutput.cs
- Vector3DIndependentAnimationStorage.cs
- Encoding.cs
- RelationshipConverter.cs
- ActivityCodeDomReferenceService.cs
- ObjectListFieldsPage.cs
- XmlArrayAttribute.cs
- HttpListenerContext.cs
- LogWriteRestartAreaAsyncResult.cs
- Scene3D.cs
- Assert.cs
- SyntaxCheck.cs
- Light.cs
- GridViewColumnHeaderAutomationPeer.cs
- ToolTipService.cs
- InternalControlCollection.cs
- UserControlCodeDomTreeGenerator.cs
- ObjectDataSource.cs
- DefaultBindingPropertyAttribute.cs
- ActivationServices.cs
- XmlText.cs
- ToolStripArrowRenderEventArgs.cs
- AutoCompleteStringCollection.cs
- XmlMemberMapping.cs
- PkcsMisc.cs
- Stylesheet.cs
- MissingFieldException.cs
- MSAAEventDispatcher.cs
- FontWeights.cs
- FormatterConverter.cs
- BatchWriter.cs
- FacetChecker.cs
- SoapAttributeAttribute.cs
- CatalogPartChrome.cs
- DataMisalignedException.cs
- SqlProfileProvider.cs
- OleDbConnectionInternal.cs
- MessageSecurityOverHttpElement.cs
- ConcurrentDictionary.cs
- SoapCodeExporter.cs
- SafeRightsManagementSessionHandle.cs
- FilterableAttribute.cs
- DuplicateDetector.cs
- WebPartUtil.cs
- ErrorProvider.cs
- ParentQuery.cs
- DataGridTable.cs
- SafePointer.cs
- ParserContext.cs
- DynamicPropertyReader.cs
- SqlConnectionHelper.cs
- SchemaMapping.cs
- ExceptionAggregator.cs
- ApplyImportsAction.cs
- ScriptingJsonSerializationSection.cs
- xmlformatgeneratorstatics.cs
- UpDownBase.cs
- TreeWalker.cs
- WindowsContainer.cs
- XmlTextAttribute.cs
- RootBrowserWindowAutomationPeer.cs
- SizeAnimationUsingKeyFrames.cs
- CodeGenerator.cs
- TextEffectResolver.cs
- MustUnderstandSoapException.cs