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
- SqlFormatter.cs
- Pens.cs
- GiveFeedbackEventArgs.cs
- SmtpAuthenticationManager.cs
- DesignerCapabilities.cs
- TextBox.cs
- PropertiesTab.cs
- RIPEMD160.cs
- InvokeMethodActivityDesigner.cs
- IsolatedStorageFileStream.cs
- _Events.cs
- ConfigXmlCDataSection.cs
- UIElement.cs
- EventLogEntryCollection.cs
- ClientBuildManager.cs
- ColorConverter.cs
- OperationAbortedException.cs
- CallbackValidator.cs
- List.cs
- XmlDsigSep2000.cs
- FilterEventArgs.cs
- ManagedIStream.cs
- ClientSettingsStore.cs
- FileSystemWatcher.cs
- PolicyException.cs
- CheckBox.cs
- CornerRadius.cs
- objectquery_tresulttype.cs
- WebPartCloseVerb.cs
- BlobPersonalizationState.cs
- BridgeDataReader.cs
- RegionInfo.cs
- DesignerProperties.cs
- UndirectedGraph.cs
- UniformGrid.cs
- ContentPresenter.cs
- Cell.cs
- CodeTypeReferenceExpression.cs
- ExclusiveTcpListener.cs
- RtfNavigator.cs
- DesignerWidgets.cs
- MailWriter.cs
- SoapExtension.cs
- ConstraintCollection.cs
- SetIterators.cs
- storagemappingitemcollection.viewdictionary.cs
- SecureEnvironment.cs
- ActivityPreviewDesigner.cs
- Debugger.cs
- ControllableStoryboardAction.cs
- MenuItem.cs
- RandomDelayQueuedSendsAsyncResult.cs
- BooleanFacetDescriptionElement.cs
- JsonDataContract.cs
- HttpFileCollectionBase.cs
- TabItem.cs
- ServiceRouteHandler.cs
- DateTimeFormatInfoScanner.cs
- ProcessHostMapPath.cs
- ToolStripRenderEventArgs.cs
- XPathNodeInfoAtom.cs
- AlphabeticalEnumConverter.cs
- DirectoryObjectSecurity.cs
- _ListenerRequestStream.cs
- AuthenticationModulesSection.cs
- WorkflowServiceHostFactory.cs
- newitemfactory.cs
- LabelLiteral.cs
- DataGridViewCellCancelEventArgs.cs
- Constraint.cs
- Base64Encoder.cs
- ProfilePropertyNameValidator.cs
- IgnoreDataMemberAttribute.cs
- Int16.cs
- DataGridViewButtonColumn.cs
- ExpressionBindings.cs
- TypeInitializationException.cs
- EdmTypeAttribute.cs
- CommentAction.cs
- SmtpReplyReaderFactory.cs
- SqlMethodAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- PropertyChangeTracker.cs
- TextComposition.cs
- TypeLoader.cs
- ExclusiveTcpListener.cs
- PolyBezierSegment.cs
- RecognizedAudio.cs
- HtmlShimManager.cs
- SymbolEqualComparer.cs
- EventProviderTraceListener.cs
- WebDisplayNameAttribute.cs
- LayoutSettings.cs
- TemplateControlCodeDomTreeGenerator.cs
- ScaleTransform.cs
- ToolStripSystemRenderer.cs
- TextMetrics.cs
- DataRowChangeEvent.cs
- ToolStripDropDown.cs
- XXXInfos.cs