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
- TextTreeUndo.cs
- Int32AnimationUsingKeyFrames.cs
- SpnEndpointIdentity.cs
- BamlStream.cs
- ListSourceHelper.cs
- Number.cs
- InternalException.cs
- SwitchAttribute.cs
- SqlGenerator.cs
- TransformCollection.cs
- DataGridViewColumnEventArgs.cs
- Brushes.cs
- SafeNativeMethods.cs
- DataGridViewMethods.cs
- SqlMultiplexer.cs
- ItemMap.cs
- StateMachineAction.cs
- ListView.cs
- SafeNativeMethods.cs
- FileDataSourceCache.cs
- StringUtil.cs
- Triplet.cs
- HtmlWindowCollection.cs
- ComponentEditorForm.cs
- AspNetHostingPermission.cs
- SiteOfOriginPart.cs
- LinqToSqlWrapper.cs
- BinaryParser.cs
- _CookieModule.cs
- XmlWellformedWriter.cs
- DataGridViewRowEventArgs.cs
- WebServiceTypeData.cs
- RenderDataDrawingContext.cs
- ActiveXContainer.cs
- LineProperties.cs
- DbFunctionCommandTree.cs
- Byte.cs
- DataServiceQueryContinuation.cs
- DetailsViewModeEventArgs.cs
- XmlLinkedNode.cs
- TextParaClient.cs
- CachedPathData.cs
- WorkflowPageSetupDialog.cs
- StringArrayEditor.cs
- IDispatchConstantAttribute.cs
- LayoutTable.cs
- AssemblyInfo.cs
- CharAnimationBase.cs
- OleDbParameterCollection.cs
- SplitterCancelEvent.cs
- ListBindableAttribute.cs
- Listbox.cs
- DataTableNewRowEvent.cs
- ConfigXmlAttribute.cs
- KnownColorTable.cs
- EmptyCollection.cs
- ProfilePropertyNameValidator.cs
- ListControlConvertEventArgs.cs
- PixelFormats.cs
- MouseGestureConverter.cs
- ViewManager.cs
- ExpressionPrinter.cs
- WorkflowInstance.cs
- BitmapEffectGeneralTransform.cs
- ApplyHostConfigurationBehavior.cs
- DataControlFieldHeaderCell.cs
- InfoCardCryptoHelper.cs
- XmlDataSourceDesigner.cs
- DesignerDataStoredProcedure.cs
- DataGridViewLayoutData.cs
- XmlDataSourceView.cs
- TreeNodeClickEventArgs.cs
- ApplicationManager.cs
- MD5CryptoServiceProvider.cs
- ArrayTypeMismatchException.cs
- MessageAction.cs
- CTreeGenerator.cs
- BufferedMessageWriter.cs
- TemplateXamlParser.cs
- UserControl.cs
- PrePostDescendentsWalker.cs
- RootBuilder.cs
- IPPacketInformation.cs
- ControlCollection.cs
- XmlSchemaComplexContent.cs
- StorageMappingItemCollection.cs
- FileStream.cs
- DataObject.cs
- CacheVirtualItemsEvent.cs
- CollectionBase.cs
- IncrementalHitTester.cs
- AutoGeneratedFieldProperties.cs
- View.cs
- ThousandthOfEmRealPoints.cs
- HttpValueCollection.cs
- BrowserDefinitionCollection.cs
- TextBreakpoint.cs
- StringInfo.cs
- KeyboardNavigation.cs
- FlowDocumentScrollViewerAutomationPeer.cs