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
- HttpRuntime.cs
- ExtendedPropertyDescriptor.cs
- XmlSchemaElement.cs
- ArgIterator.cs
- AmbientLight.cs
- Wizard.cs
- Stylesheet.cs
- ValueTypeFixupInfo.cs
- AdornerLayer.cs
- RenderingEventArgs.cs
- sqlcontext.cs
- _ListenerRequestStream.cs
- IsolatedStorage.cs
- SourceChangedEventArgs.cs
- SystemIcmpV6Statistics.cs
- SessionSwitchEventArgs.cs
- XXXInfos.cs
- WebPartMenuStyle.cs
- XmlSchemaCompilationSettings.cs
- DbXmlEnabledProviderManifest.cs
- DetailsViewRow.cs
- SafeMILHandle.cs
- ReadonlyMessageFilter.cs
- WebSysDescriptionAttribute.cs
- QilInvoke.cs
- RunInstallerAttribute.cs
- EntityContainer.cs
- ArglessEventHandlerProxy.cs
- NameValueCollection.cs
- DetailsViewModeEventArgs.cs
- CharacterBufferReference.cs
- ParenthesizePropertyNameAttribute.cs
- PropertyConverter.cs
- ProcessHostConfigUtils.cs
- control.ime.cs
- Ops.cs
- PreProcessor.cs
- DataList.cs
- AssemblyAttributesGoHere.cs
- RuleSettingsCollection.cs
- CounterSet.cs
- SmtpCommands.cs
- peernodestatemanager.cs
- DynamicDataExtensions.cs
- XmlBoundElement.cs
- XamlTreeBuilder.cs
- XmlAttributeOverrides.cs
- TopClause.cs
- SpeechSeg.cs
- KeyboardEventArgs.cs
- HandleInitializationContext.cs
- MemberHolder.cs
- OutputCacheSection.cs
- ReadWriteControlDesigner.cs
- DocumentEventArgs.cs
- Int64AnimationBase.cs
- DecimalAnimationBase.cs
- ColumnMapCopier.cs
- DefaultPrintController.cs
- TemplateInstanceAttribute.cs
- EntitySqlQueryState.cs
- ColorConvertedBitmap.cs
- WebPartEventArgs.cs
- RoutedPropertyChangedEventArgs.cs
- ISSmlParser.cs
- EdmRelationshipRoleAttribute.cs
- LayoutUtils.cs
- WmlTextBoxAdapter.cs
- NeutralResourcesLanguageAttribute.cs
- ExpandSegmentCollection.cs
- ExeContext.cs
- SingleAnimationBase.cs
- CheckBox.cs
- controlskin.cs
- CornerRadiusConverter.cs
- DataTableTypeConverter.cs
- Point.cs
- Point4D.cs
- Queue.cs
- WorkflowDataContext.cs
- VarRefManager.cs
- RemotingConfigParser.cs
- ProviderConnectionPointCollection.cs
- WebPartConnectionCollection.cs
- CompositionDesigner.cs
- EventWaitHandleSecurity.cs
- ProfileElement.cs
- RowUpdatingEventArgs.cs
- CodeSnippetStatement.cs
- CodeDomConfigurationHandler.cs
- XmlSchemaInclude.cs
- ActivityMarkupSerializer.cs
- DataViewSettingCollection.cs
- basevalidator.cs
- precedingquery.cs
- DataGridParentRows.cs
- ParserOptions.cs
- OptimisticConcurrencyException.cs
- HMACRIPEMD160.cs
- OverloadGroupAttribute.cs