Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / MinimizableAttributeTypeConverter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DrawingServices.cs
- ImportDesigner.xaml.cs
- DesignerTransaction.cs
- ViewStateException.cs
- OdbcReferenceCollection.cs
- BaseTreeIterator.cs
- PointAnimationClockResource.cs
- LineInfo.cs
- AdministrationHelpers.cs
- TypeRestriction.cs
- ContractListAdapter.cs
- EarlyBoundInfo.cs
- AlternateViewCollection.cs
- ConstantProjectedSlot.cs
- TextAnchor.cs
- DocumentApplication.cs
- MessagingDescriptionAttribute.cs
- DateTime.cs
- FunctionNode.cs
- ConnectionsZone.cs
- CompilationPass2TaskInternal.cs
- cookiecollection.cs
- SafeNativeMethodsCLR.cs
- Parsers.cs
- CookieParameter.cs
- EncoderParameters.cs
- LinqDataSourceHelper.cs
- ButtonChrome.cs
- BackgroundFormatInfo.cs
- FixedHighlight.cs
- StrokeNodeData.cs
- XmlSchemaObjectTable.cs
- Model3DCollection.cs
- DesignerExtenders.cs
- EdgeModeValidation.cs
- InstanceCreationEditor.cs
- ErrorHandler.cs
- DesignTimeVisibleAttribute.cs
- ControlAdapter.cs
- IgnoreSectionHandler.cs
- SignatureResourceHelper.cs
- GlyphingCache.cs
- DataTableCollection.cs
- HttpRequestTraceRecord.cs
- CatalogPartCollection.cs
- MonitoringDescriptionAttribute.cs
- CodeLinePragma.cs
- CodeVariableDeclarationStatement.cs
- MenuItemCollection.cs
- odbcmetadatacolumnnames.cs
- safex509handles.cs
- ThreadStateException.cs
- XmlQueryCardinality.cs
- ParentQuery.cs
- BigInt.cs
- TagMapCollection.cs
- Listbox.cs
- DependsOnAttribute.cs
- ContextStack.cs
- AudioStateChangedEventArgs.cs
- EventDescriptorCollection.cs
- PingOptions.cs
- HyperlinkAutomationPeer.cs
- ZipIOBlockManager.cs
- XslTransform.cs
- LinqDataSourceEditData.cs
- ListControlConvertEventArgs.cs
- TargetControlTypeAttribute.cs
- OdbcReferenceCollection.cs
- CodeMemberMethod.cs
- TextBoxView.cs
- BindingMemberInfo.cs
- HtmlInputControl.cs
- NetworkAddressChange.cs
- NameScope.cs
- CodeAccessPermission.cs
- Subtract.cs
- EmptyStringExpandableObjectConverter.cs
- BitmapCodecInfo.cs
- Converter.cs
- PlainXmlDeserializer.cs
- XmlNodeList.cs
- CryptoApi.cs
- ResourcePool.cs
- TaskScheduler.cs
- SwitchLevelAttribute.cs
- thaishape.cs
- WindowsListViewItemStartMenu.cs
- EntityParameter.cs
- StringUtil.cs
- CompareInfo.cs
- LinkDesigner.cs
- EntityClientCacheEntry.cs
- ComponentGuaranteesAttribute.cs
- ObjectDataSourceChooseTypePanel.cs
- ILGen.cs
- PropertyGridEditorPart.cs
- StrongNameKeyPair.cs
- XmlWriter.cs
- TranslateTransform.cs