Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / MultilineStringConverter.cs / 1305376 / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LeftCellWrapper.cs
- SafeViewOfFileHandle.cs
- MenuBase.cs
- UniqueIdentifierService.cs
- AttributeEmitter.cs
- LocalIdKeyIdentifierClause.cs
- RankException.cs
- XmlTextReaderImplHelpers.cs
- ThreadStaticAttribute.cs
- DirectoryRootQuery.cs
- WorkflowViewElement.cs
- PropertyItemInternal.cs
- NameValueConfigurationElement.cs
- SecurityContext.cs
- DataFormats.cs
- SqlTypeSystemProvider.cs
- StateMachine.cs
- RoleService.cs
- EditCommandColumn.cs
- EraserBehavior.cs
- XsltSettings.cs
- TCEAdapterGenerator.cs
- DataTableNewRowEvent.cs
- SelectionItemProviderWrapper.cs
- FixedPosition.cs
- CellTreeSimplifier.cs
- RelationshipEndCollection.cs
- AutomationPeer.cs
- NavigationProgressEventArgs.cs
- CustomError.cs
- DataColumnChangeEvent.cs
- SubordinateTransaction.cs
- SerializationStore.cs
- externdll.cs
- Rule.cs
- PolyLineSegment.cs
- IsolatedStorageFile.cs
- FileReservationCollection.cs
- ServiceOperation.cs
- DocumentCollection.cs
- Padding.cs
- SqlUserDefinedTypeAttribute.cs
- SectionInformation.cs
- BeginStoryboard.cs
- Stroke.cs
- BamlReader.cs
- ProxyHwnd.cs
- LinkClickEvent.cs
- SQLByteStorage.cs
- HyperLinkField.cs
- PointF.cs
- PartialList.cs
- PointCollectionConverter.cs
- webbrowsersite.cs
- DependencyObjectPropertyDescriptor.cs
- CaseKeyBox.ViewModel.cs
- KoreanLunisolarCalendar.cs
- DuplexChannelBinder.cs
- ClientOperation.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataSourceProvider.cs
- FontStretches.cs
- PrintPreviewDialog.cs
- DataGridClipboardCellContent.cs
- SevenBitStream.cs
- XmlSortKeyAccumulator.cs
- Table.cs
- BasicExpressionVisitor.cs
- ToolStripDropDownClosedEventArgs.cs
- StringPropertyBuilder.cs
- InputManager.cs
- EntityWithChangeTrackerStrategy.cs
- SignalGate.cs
- CancellableEnumerable.cs
- OutOfMemoryException.cs
- HttpHeaderCollection.cs
- ListManagerBindingsCollection.cs
- WebBrowsableAttribute.cs
- PersianCalendar.cs
- WebControl.cs
- DefaultHttpHandler.cs
- NodeInfo.cs
- ObjectContextServiceProvider.cs
- SystemTcpStatistics.cs
- DictionaryEntry.cs
- DesignOnlyAttribute.cs
- OwnerDrawPropertyBag.cs
- HMAC.cs
- EventlogProvider.cs
- DataSourceControlBuilder.cs
- Int16Animation.cs
- XmlSequenceWriter.cs
- AndCondition.cs
- StorageEndPropertyMapping.cs
- CultureSpecificCharacterBufferRange.cs
- ObjectTag.cs
- TemplateEditingService.cs
- XComponentModel.cs
- NetworkStream.cs
- XsltException.cs