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
- BasicHttpBindingCollectionElement.cs
- MetadataCache.cs
- DataFormats.cs
- ColumnMapVisitor.cs
- SchemaTypeEmitter.cs
- AsyncResult.cs
- BitVector32.cs
- DataGridViewUtilities.cs
- DictionaryContent.cs
- Light.cs
- DesignerSerializerAttribute.cs
- SqlConnectionFactory.cs
- RegexInterpreter.cs
- DataGridViewCellStateChangedEventArgs.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ListSortDescription.cs
- SecurityCredentialsManager.cs
- StatusBar.cs
- TextInfo.cs
- TextDecoration.cs
- AnnotationAuthorChangedEventArgs.cs
- ManagementClass.cs
- AppDomainProtocolHandler.cs
- AttachedPropertyDescriptor.cs
- CachedBitmap.cs
- SmtpNetworkElement.cs
- HelpProvider.cs
- WebScriptMetadataFormatter.cs
- UiaCoreTypesApi.cs
- TableCell.cs
- MetadataPropertyCollection.cs
- DocumentPage.cs
- SemanticKeyElement.cs
- VirtualizingStackPanel.cs
- PropertyItem.cs
- StreamReader.cs
- NativeMethods.cs
- ApplicationGesture.cs
- CodeLinePragma.cs
- StreamWithDictionary.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AxHostDesigner.cs
- TimeoutException.cs
- WebEventCodes.cs
- PaperSource.cs
- InputElement.cs
- FragmentNavigationEventArgs.cs
- EdmComplexTypeAttribute.cs
- HtmlInputReset.cs
- AmbientLight.cs
- NavigatorInput.cs
- StrokeDescriptor.cs
- WebScriptMetadataFormatter.cs
- XmlSchemaComplexType.cs
- ToolBarPanel.cs
- ProviderSettingsCollection.cs
- BinaryFormatterSinks.cs
- SqlCachedBuffer.cs
- DataServiceClientException.cs
- XPathPatternParser.cs
- RuleSettingsCollection.cs
- CodeGotoStatement.cs
- DesignParameter.cs
- PostBackTrigger.cs
- BuilderPropertyEntry.cs
- ValidatedControlConverter.cs
- CodeRegionDirective.cs
- Overlapped.cs
- Rotation3DAnimationBase.cs
- MemberProjectionIndex.cs
- EndpointBehaviorElement.cs
- WindowInteropHelper.cs
- AnchoredBlock.cs
- DocumentStream.cs
- List.cs
- ItemMap.cs
- ISO2022Encoding.cs
- AttributeAction.cs
- InstanceData.cs
- IpcManager.cs
- ModelMemberCollection.cs
- TextSchema.cs
- DragDrop.cs
- StorageRoot.cs
- CompilationLock.cs
- DataRecord.cs
- IndicFontClient.cs
- SerializationObjectManager.cs
- GifBitmapDecoder.cs
- SubpageParagraph.cs
- RepeaterItem.cs
- Point3DAnimationUsingKeyFrames.cs
- ContractBase.cs
- StreamWriter.cs
- NamedPipeTransportBindingElement.cs
- DesignerSerializationVisibilityAttribute.cs
- DecryptRequest.cs
- GeneralTransformGroup.cs
- PeerSecurityHelpers.cs
- ThicknessConverter.cs