Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / MinimizableAttributeTypeConverter.cs / 2 / MinimizableAttributeTypeConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; ////// Summary description for MinimizableAttributeTypeConverter. /// internal class MinimizableAttributeTypeConverter : BooleanConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { if (sourceType == typeof(string)) { return true; } return base.CanConvertFrom(context, sourceType); } public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { string strValue = value as string; if (strValue != null) { if ((strValue.Length > 0) && !String.Equals(strValue, "false", StringComparison.OrdinalIgnoreCase)) { return true; } else { return false; } } return base.ConvertFrom(context, culture, value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AddressingVersion.cs
- DataGridHeaderBorder.cs
- MatrixValueSerializer.cs
- KeyValuePair.cs
- GAC.cs
- SizeFConverter.cs
- DirtyTextRange.cs
- XmlSortKey.cs
- DataGridHeaderBorder.cs
- ClientBuildManager.cs
- FreezableOperations.cs
- ComboBoxAutomationPeer.cs
- GridViewDeletedEventArgs.cs
- CompilerScope.Storage.cs
- CodeEntryPointMethod.cs
- DataStorage.cs
- DataControlHelper.cs
- WasEndpointConfigContainer.cs
- NetworkInterface.cs
- LoginView.cs
- LastQueryOperator.cs
- ContainsRowNumberChecker.cs
- TreeNodeBindingCollection.cs
- ApplicationManager.cs
- DesignBindingEditor.cs
- ProjectionPruner.cs
- EditableRegion.cs
- __TransparentProxy.cs
- NetworkInterface.cs
- DataSourceViewSchemaConverter.cs
- StyleHelper.cs
- FileDialogPermission.cs
- ServiceHostingEnvironmentSection.cs
- ColumnWidthChangingEvent.cs
- ManipulationDevice.cs
- ToReply.cs
- Underline.cs
- NetworkAddressChange.cs
- ViewPort3D.cs
- InstanceValue.cs
- UpdateException.cs
- BypassElementCollection.cs
- StagingAreaInputItem.cs
- SystemIPAddressInformation.cs
- WhileDesigner.cs
- WindowsRichEdit.cs
- FontStretches.cs
- XhtmlTextWriter.cs
- BindingExpression.cs
- TreeViewHitTestInfo.cs
- SelectingProviderEventArgs.cs
- KeyValueConfigurationElement.cs
- PropertyGrid.cs
- shaperfactory.cs
- StreamGeometry.cs
- PolyLineSegment.cs
- WebErrorHandler.cs
- BaseContextMenu.cs
- SourceFilter.cs
- Rect3D.cs
- InputProcessorProfilesLoader.cs
- DBCSCodePageEncoding.cs
- RangeBase.cs
- CatalogZoneDesigner.cs
- WindowsRebar.cs
- GridPattern.cs
- StylusShape.cs
- TextStore.cs
- PixelFormatConverter.cs
- ToggleButton.cs
- XmlDataImplementation.cs
- MdImport.cs
- ImageSource.cs
- VoiceSynthesis.cs
- CombinedGeometry.cs
- AdornerLayer.cs
- MetadataArtifactLoaderFile.cs
- DataTable.cs
- TypeHelpers.cs
- RuleConditionDialog.cs
- filewebresponse.cs
- AddDataControlFieldDialog.cs
- ParameterToken.cs
- StructuredTypeInfo.cs
- FragmentQueryProcessor.cs
- ParserStreamGeometryContext.cs
- UInt64.cs
- ButtonChrome.cs
- FrameworkContextData.cs
- BufferModeSettings.cs
- SafeMarshalContext.cs
- RegexStringValidator.cs
- XmlSignatureProperties.cs
- XmlSubtreeReader.cs
- SvcMapFile.cs
- UnhandledExceptionEventArgs.cs
- Transform.cs
- Main.cs
- BrushValueSerializer.cs
- Timer.cs