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
- SqlSelectStatement.cs
- HwndProxyElementProvider.cs
- ElementUtil.cs
- EncodingStreamWrapper.cs
- XslCompiledTransform.cs
- TraceEventCache.cs
- XmlSchemaException.cs
- RandomNumberGenerator.cs
- XmlTypeAttribute.cs
- FrameworkTextComposition.cs
- NumberEdit.cs
- CmsInterop.cs
- LocalizableResourceBuilder.cs
- HebrewCalendar.cs
- PersistChildrenAttribute.cs
- ConsoleCancelEventArgs.cs
- HandleValueEditor.cs
- CreateUserWizard.cs
- XmlChoiceIdentifierAttribute.cs
- VirtualizingPanel.cs
- ImageIndexEditor.cs
- Model3D.cs
- DocumentReferenceCollection.cs
- Wizard.cs
- EventSourceCreationData.cs
- SynchronizationLockException.cs
- SimpleWorkerRequest.cs
- ExceptionTranslationTable.cs
- ListViewItemEventArgs.cs
- DataTablePropertyDescriptor.cs
- DataSourceCollectionBase.cs
- backend.cs
- PeerApplication.cs
- XPathSingletonIterator.cs
- XmlNamespaceMapping.cs
- PipelineModuleStepContainer.cs
- DES.cs
- ExtenderControl.cs
- TextFindEngine.cs
- ExceptionUtility.cs
- TrackingServices.cs
- DelegatingConfigHost.cs
- Button.cs
- BooleanKeyFrameCollection.cs
- ExtensionFile.cs
- DataGridViewColumnHeaderCell.cs
- CharEntityEncoderFallback.cs
- XDeferredAxisSource.cs
- NameObjectCollectionBase.cs
- ScriptControl.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- AssertFilter.cs
- XLinq.cs
- ClientSideQueueItem.cs
- BuildProviderUtils.cs
- GridViewItemAutomationPeer.cs
- UnsupportedPolicyOptionsException.cs
- DateTimePicker.cs
- LoadItemsEventArgs.cs
- FrameworkRichTextComposition.cs
- CodeLabeledStatement.cs
- NumericUpDownAcceleration.cs
- LinkArea.cs
- RootBuilder.cs
- RelationshipWrapper.cs
- Knowncolors.cs
- HttpHostedTransportConfiguration.cs
- DesignerActionPanel.cs
- UnderstoodHeaders.cs
- RMEnrollmentPage1.cs
- TextTreeNode.cs
- CustomErrorsSectionWrapper.cs
- ReferencedAssemblyResolver.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ExpressionBuilderCollection.cs
- MD5Cng.cs
- AuthenticationManager.cs
- PeerTransportListenAddressConverter.cs
- ChtmlLinkAdapter.cs
- InheritanceContextChangedEventManager.cs
- HandlerElement.cs
- BaseValidatorDesigner.cs
- Collection.cs
- AssemblyEvidenceFactory.cs
- WpfKnownMemberInvoker.cs
- TokenBasedSet.cs
- filewebrequest.cs
- XPathAncestorIterator.cs
- safesecurityhelperavalon.cs
- DataGridCellAutomationPeer.cs
- CatalogPartCollection.cs
- CryptoApi.cs
- SqlBulkCopyColumnMappingCollection.cs
- SerializationSectionGroup.cs
- WebPartEditVerb.cs
- Crc32.cs
- PointF.cs
- StatusBarItemAutomationPeer.cs
- MessageSmuggler.cs
- XmlSchema.cs