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
- TrackingRecordPreFilter.cs
- RNGCryptoServiceProvider.cs
- InstanceView.cs
- XPathEmptyIterator.cs
- AspProxy.cs
- PackageDigitalSignature.cs
- StyleModeStack.cs
- TabControlAutomationPeer.cs
- CollectionBuilder.cs
- TextEditorContextMenu.cs
- DefinitionBase.cs
- CodeVariableDeclarationStatement.cs
- EdmSchemaError.cs
- Message.cs
- DbConnectionOptions.cs
- ITextView.cs
- CodeIdentifier.cs
- ELinqQueryState.cs
- DrawToolTipEventArgs.cs
- DataStreams.cs
- SqlRowUpdatedEvent.cs
- WebConfigurationHostFileChange.cs
- StringFreezingAttribute.cs
- HiddenFieldPageStatePersister.cs
- Identifier.cs
- DesignerDeviceConfig.cs
- SingleKeyFrameCollection.cs
- DataException.cs
- ValidationHelpers.cs
- WebUtil.cs
- WebControl.cs
- GlyphInfoList.cs
- SqlReferenceCollection.cs
- HttpClientProtocol.cs
- HighlightComponent.cs
- StrokeNode.cs
- TableItemProviderWrapper.cs
- WebControl.cs
- IncrementalCompileAnalyzer.cs
- User.cs
- XmlILAnnotation.cs
- Pen.cs
- ErrorHandler.cs
- WebBaseEventKeyComparer.cs
- XPathNavigatorReader.cs
- LambdaCompiler.ControlFlow.cs
- TypeCollectionDesigner.xaml.cs
- XmlWrappingReader.cs
- ControlBindingsCollection.cs
- TextBox.cs
- AsmxEndpointPickerExtension.cs
- WebPartConnection.cs
- Ops.cs
- FromRequest.cs
- NativeWindow.cs
- DoubleUtil.cs
- WpfPayload.cs
- UIHelper.cs
- MemoryFailPoint.cs
- IssuanceLicense.cs
- AppearanceEditorPart.cs
- QuaternionIndependentAnimationStorage.cs
- SafeFileMappingHandle.cs
- SvcFileManager.cs
- DetailsViewDeleteEventArgs.cs
- ListCommandEventArgs.cs
- BufferModesCollection.cs
- ConfigXmlElement.cs
- ProtocolsConfigurationEntry.cs
- XPathSingletonIterator.cs
- RefreshPropertiesAttribute.cs
- Context.cs
- WsdlBuildProvider.cs
- CreateDataSourceDialog.cs
- CompatibleComparer.cs
- ExcludeFromCodeCoverageAttribute.cs
- TrimSurroundingWhitespaceAttribute.cs
- DBSchemaTable.cs
- TransactionChannel.cs
- SHA384Managed.cs
- RunWorkerCompletedEventArgs.cs
- MultiPropertyDescriptorGridEntry.cs
- ProjectionCamera.cs
- PointLightBase.cs
- DoubleUtil.cs
- OracleBinary.cs
- KeyEvent.cs
- EntityKey.cs
- ReachFixedPageSerializer.cs
- OuterGlowBitmapEffect.cs
- ContentValidator.cs
- WindowPatternIdentifiers.cs
- CodeDirectionExpression.cs
- Visual3D.cs
- OleDbCommandBuilder.cs
- SetMemberBinder.cs
- smtpconnection.cs
- MetaChildrenColumn.cs
- FrameworkElementAutomationPeer.cs
- AssemblyNameProxy.cs