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
- TextContainerHelper.cs
- UnsettableComboBox.cs
- MemoryStream.cs
- BrushConverter.cs
- InkSerializer.cs
- Color.cs
- InternalConfigRoot.cs
- SmtpFailedRecipientsException.cs
- QueryCacheEntry.cs
- BuildProviderCollection.cs
- PropertyChangingEventArgs.cs
- ToolStripRenderEventArgs.cs
- ArithmeticException.cs
- AbsoluteQuery.cs
- IndicFontClient.cs
- TableLayoutSettingsTypeConverter.cs
- ResourceExpressionBuilder.cs
- SignerInfo.cs
- ImportedNamespaceContextItem.cs
- WebEvents.cs
- MaskInputRejectedEventArgs.cs
- ExceptionHandlers.cs
- PrinterResolution.cs
- SlipBehavior.cs
- BindingsCollection.cs
- MobileUserControlDesigner.cs
- SendMessageChannelCache.cs
- StructuredCompositeActivityDesigner.cs
- Color.cs
- RulePatternOps.cs
- XmlMtomWriter.cs
- SchemaCollectionCompiler.cs
- Attributes.cs
- PenContexts.cs
- EventMappingSettings.cs
- UTF8Encoding.cs
- VisualBrush.cs
- LineInfo.cs
- SafeHandles.cs
- Int32.cs
- MissingMemberException.cs
- XamlFigureLengthSerializer.cs
- DelegateArgumentValue.cs
- PathData.cs
- ProtectedConfiguration.cs
- RightsManagementPermission.cs
- NoneExcludedImageIndexConverter.cs
- TypeDependencyAttribute.cs
- IDQuery.cs
- XmlValidatingReaderImpl.cs
- SerializableAttribute.cs
- SqlUtil.cs
- ListViewItemSelectionChangedEvent.cs
- ExpandableObjectConverter.cs
- Property.cs
- CheckBox.cs
- VectorValueSerializer.cs
- Section.cs
- ObjectDataSourceWizardForm.cs
- TreeNodeCollectionEditorDialog.cs
- TextAutomationPeer.cs
- COM2ColorConverter.cs
- DateRangeEvent.cs
- SurrogateChar.cs
- TrustManagerMoreInformation.cs
- ObjectStateEntryDbDataRecord.cs
- TreeViewEvent.cs
- TraceUtility.cs
- ClientProxyGenerator.cs
- KerberosSecurityTokenAuthenticator.cs
- InstallerTypeAttribute.cs
- TakeOrSkipWhileQueryOperator.cs
- DatagridviewDisplayedBandsData.cs
- EpmContentDeSerializerBase.cs
- Rethrow.cs
- SystemIcmpV4Statistics.cs
- activationcontext.cs
- ContextMenu.cs
- BufferedGraphicsManager.cs
- ToolBarButton.cs
- TextRenderer.cs
- FlowDocumentView.cs
- FixedTextPointer.cs
- StrokeNodeOperations.cs
- GridViewSortEventArgs.cs
- NegotiateStream.cs
- ImageListUtils.cs
- CounterCreationDataCollection.cs
- IndicShape.cs
- RtfToXamlLexer.cs
- formatter.cs
- FileUpload.cs
- ImageAttributes.cs
- PublisherIdentityPermission.cs
- Menu.cs
- SqlHelper.cs
- InputManager.cs
- XsltSettings.cs
- BaseCollection.cs
- CodeComment.cs