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
- ResourceAttributes.cs
- ItemChangedEventArgs.cs
- HttpModuleAction.cs
- ListSourceHelper.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ToolStripItemCollection.cs
- TypedRowGenerator.cs
- COM2PropertyPageUITypeConverter.cs
- KnownTypeAttribute.cs
- PluralizationService.cs
- BinaryMessageEncodingBindingElement.cs
- _NegotiateClient.cs
- BitmapEffectCollection.cs
- EntitySqlQueryCacheEntry.cs
- RelationshipType.cs
- TreeNodeEventArgs.cs
- VoiceChangeEventArgs.cs
- XmlSchemaSet.cs
- MethodAccessException.cs
- SynchronizationContext.cs
- GeometryModel3D.cs
- CornerRadius.cs
- ConnectionsZone.cs
- InvalidOperationException.cs
- InstalledFontCollection.cs
- followingsibling.cs
- Underline.cs
- ChangesetResponse.cs
- RootBrowserWindow.cs
- BinHexDecoder.cs
- SqlServer2KCompatibilityCheck.cs
- HttpTransportSecurity.cs
- cookie.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ScrollPattern.cs
- TypeLoadException.cs
- CodeDefaultValueExpression.cs
- ParseNumbers.cs
- SessionStateUtil.cs
- CompiledAction.cs
- SQLMoneyStorage.cs
- COM2ExtendedUITypeEditor.cs
- GeneralTransform3DTo2D.cs
- HwndTarget.cs
- RootProfilePropertySettingsCollection.cs
- VisualStyleRenderer.cs
- SharedUtils.cs
- HtmlTextArea.cs
- MobileControlsSection.cs
- bidPrivateBase.cs
- ObjectContext.cs
- ImageDrawing.cs
- BackgroundWorker.cs
- GenericEnumConverter.cs
- VolatileEnlistmentMultiplexing.cs
- GPPOINTF.cs
- TextBox.cs
- MediaPlayer.cs
- InvokeSchedule.cs
- LinkUtilities.cs
- DocumentOutline.cs
- TdsParser.cs
- SHA1.cs
- NonSerializedAttribute.cs
- IgnorePropertiesAttribute.cs
- MULTI_QI.cs
- precedingquery.cs
- BindingCollection.cs
- ConsoleEntryPoint.cs
- StreamingContext.cs
- DictionaryContent.cs
- SerTrace.cs
- OdbcDataAdapter.cs
- ContextInformation.cs
- CodeSubDirectoriesCollection.cs
- ICollection.cs
- ResourcePermissionBase.cs
- WebSysDisplayNameAttribute.cs
- NetworkInterface.cs
- ContractMapping.cs
- LogStream.cs
- ChannelServices.cs
- Int16Converter.cs
- BooleanStorage.cs
- StaticTextPointer.cs
- MobileRedirect.cs
- Unit.cs
- CategoryState.cs
- SqlWebEventProvider.cs
- EntityDataSourceStatementEditor.cs
- LineBreakRecord.cs
- TemplateControlBuildProvider.cs
- PeerPresenceInfo.cs
- ShutDownListener.cs
- DateTime.cs
- HttpRequest.cs
- IconHelper.cs
- Image.cs
- ComPlusTypeLoader.cs
- AutomationElement.cs