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
- TextElementEditingBehaviorAttribute.cs
- processwaithandle.cs
- DataSourceSerializationException.cs
- RepeaterItemCollection.cs
- UIElementIsland.cs
- DataGridViewCellValueEventArgs.cs
- XmlSortKey.cs
- ElementAction.cs
- RotationValidation.cs
- XmlTypeMapping.cs
- PropertyHelper.cs
- ExceptionTrace.cs
- CodeAttributeDeclaration.cs
- Page.cs
- AppDomain.cs
- BookmarkEventArgs.cs
- ItemsPresenter.cs
- ColumnWidthChangingEvent.cs
- UIElementCollection.cs
- FileChangesMonitor.cs
- DispatcherOperation.cs
- SqlInternalConnection.cs
- XAMLParseException.cs
- Rotation3DKeyFrameCollection.cs
- RelatedCurrencyManager.cs
- ListBoxChrome.cs
- XmlWriterSettings.cs
- LinqDataSource.cs
- DuplexSecurityProtocolFactory.cs
- ProviderIncompatibleException.cs
- URLMembershipCondition.cs
- Panel.cs
- TargetException.cs
- MetadataItemEmitter.cs
- TransactionContextValidator.cs
- EntitySetRetriever.cs
- WebBrowser.cs
- ConnectionPoint.cs
- ProcessStartInfo.cs
- NullRuntimeConfig.cs
- ListInitExpression.cs
- ProfileProvider.cs
- SingleConverter.cs
- Baml2006ReaderFrame.cs
- Triangle.cs
- SignerInfo.cs
- AsynchronousChannelMergeEnumerator.cs
- HintTextMaxWidthConverter.cs
- NullableLongMinMaxAggregationOperator.cs
- DetailsViewInsertedEventArgs.cs
- EventDescriptorCollection.cs
- TextBox.cs
- CombinedGeometry.cs
- Propagator.cs
- MetadataCache.cs
- FacetDescriptionElement.cs
- AssemblyHelper.cs
- EdmSchemaError.cs
- StandardBindingElementCollection.cs
- SrgsElement.cs
- IERequestCache.cs
- DataGridViewRowConverter.cs
- OleDbEnumerator.cs
- ResizeGrip.cs
- Typography.cs
- InkCanvasSelectionAdorner.cs
- FormatVersion.cs
- ToolStripDropDownClosedEventArgs.cs
- AssemblyBuilder.cs
- Vector3DCollectionConverter.cs
- ValidationError.cs
- ValidatorAttribute.cs
- AuthenticationSection.cs
- XsltConvert.cs
- CSharpCodeProvider.cs
- TabletDevice.cs
- EdmRelationshipRoleAttribute.cs
- SingleBodyParameterMessageFormatter.cs
- SQLInt32Storage.cs
- XPathNavigatorReader.cs
- XPathDocumentNavigator.cs
- LingerOption.cs
- XmlNodeChangedEventArgs.cs
- BStrWrapper.cs
- ViewGenerator.cs
- TemplateField.cs
- PolicyStatement.cs
- ContractSearchPattern.cs
- RepeatInfo.cs
- FieldTemplateFactory.cs
- MarkupObject.cs
- PrintPreviewControl.cs
- FacetChecker.cs
- WebRequest.cs
- EndpointAddressMessageFilterTable.cs
- Nodes.cs
- XslTransform.cs
- Activity.cs
- WebPartHeaderCloseVerb.cs
- TypeLoadException.cs