Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / EmptyStringExpandableObjectConverter.cs / 1 / EmptyStringExpandableObjectConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// Converts an object to String.Empty so it looks better in the designer property grid. /// internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { ////// Returns String.Empty so the object looks better in the designer property grid. /// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } throw GetConvertToException(value, destinationType); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// Converts an object to String.Empty so it looks better in the designer property grid. /// internal sealed class EmptyStringExpandableObjectConverter : ExpandableObjectConverter { ////// Returns String.Empty so the object looks better in the designer property grid. /// public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { return String.Empty; } throw GetConvertToException(value, destinationType); } } } // 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
- CSharpCodeProvider.cs
- ContourSegment.cs
- BrowserDefinitionCollection.cs
- ArithmeticException.cs
- AudioBase.cs
- TypeGeneratedEventArgs.cs
- TreeBuilder.cs
- HostExecutionContextManager.cs
- NeutralResourcesLanguageAttribute.cs
- WebPartConnectionsConnectVerb.cs
- BindingOperations.cs
- SafeCoTaskMem.cs
- DataGridColumnCollectionEditor.cs
- BindingList.cs
- ValueType.cs
- FixedElement.cs
- SqlError.cs
- ColorConverter.cs
- RtfToken.cs
- NativeMethods.cs
- UnsupportedPolicyOptionsException.cs
- PasswordBox.cs
- SiteMembershipCondition.cs
- Marshal.cs
- CharConverter.cs
- CurrentChangedEventManager.cs
- VisualStates.cs
- TypeUtil.cs
- SerialPort.cs
- Rect3D.cs
- TableSectionStyle.cs
- Bold.cs
- CultureInfoConverter.cs
- ThumbButtonInfo.cs
- CalendarDay.cs
- FileUtil.cs
- CodeDomSerializerException.cs
- _ConnectOverlappedAsyncResult.cs
- MailBnfHelper.cs
- FilteredSchemaElementLookUpTable.cs
- HostedHttpTransportManager.cs
- __Error.cs
- WeakHashtable.cs
- UrlMapping.cs
- CreateUserErrorEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- PropertyBuilder.cs
- ProfileSettings.cs
- HttpRequest.cs
- TimersDescriptionAttribute.cs
- ContractsBCL.cs
- InfoCardService.cs
- StringToken.cs
- TemplateControlParser.cs
- DateTimeValueSerializerContext.cs
- InputGestureCollection.cs
- NamespaceEmitter.cs
- XamlTemplateSerializer.cs
- MasterPageBuildProvider.cs
- WindowsGraphics.cs
- ImagingCache.cs
- SafeNativeMethods.cs
- DesignerSerializationOptionsAttribute.cs
- XmlStreamStore.cs
- SqlInfoMessageEvent.cs
- XmlNodeComparer.cs
- DataGridViewCellLinkedList.cs
- KerberosRequestorSecurityToken.cs
- SpanIndex.cs
- SqlProfileProvider.cs
- DbConnectionPoolGroup.cs
- _CacheStreams.cs
- WorkflowOperationBehavior.cs
- ReachFixedDocumentSerializerAsync.cs
- EastAsianLunisolarCalendar.cs
- StrokeFIndices.cs
- PrintPreviewGraphics.cs
- StructuredProperty.cs
- QilPatternVisitor.cs
- System.Data_BID.cs
- DateTimeValueSerializer.cs
- XamlReader.cs
- Mutex.cs
- WebScriptEnablingElement.cs
- FontDialog.cs
- BatchParser.cs
- ImmutableObjectAttribute.cs
- ListView.cs
- DataTemplate.cs
- DataTemplateSelector.cs
- Stopwatch.cs
- CharEntityEncoderFallback.cs
- BamlResourceContent.cs
- XmlSchemaImporter.cs
- ComboBoxRenderer.cs
- safex509handles.cs
- SQLResource.cs
- AssemblyBuilderData.cs
- ServiceErrorHandler.cs
- DataGridCaption.cs