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
- XPathDocumentIterator.cs
- Latin1Encoding.cs
- EDesignUtil.cs
- ThemeableAttribute.cs
- ResourceAssociationType.cs
- DataTableReader.cs
- SQLStringStorage.cs
- LinkedResourceCollection.cs
- CompositeCollection.cs
- PropertyDescriptorGridEntry.cs
- GridEntry.cs
- XAMLParseException.cs
- ImpersonationContext.cs
- safesecurityhelperavalon.cs
- DataError.cs
- XmlIlGenerator.cs
- GC.cs
- BamlRecordWriter.cs
- FactoryGenerator.cs
- MemoryResponseElement.cs
- DbConnectionClosed.cs
- UInt32Converter.cs
- WebPartManagerInternals.cs
- ProcessInfo.cs
- PropertyBuilder.cs
- WebConfigurationHostFileChange.cs
- DeobfuscatingStream.cs
- TargetParameterCountException.cs
- RoleService.cs
- SelectorAutomationPeer.cs
- RegistrySecurity.cs
- FormatterConverter.cs
- PageAsyncTaskManager.cs
- XhtmlBasicLiteralTextAdapter.cs
- ButtonPopupAdapter.cs
- ScrollableControlDesigner.cs
- PixelFormats.cs
- RangeBase.cs
- CachedFontFamily.cs
- SqlReferenceCollection.cs
- TrustSection.cs
- DebugViewWriter.cs
- CloseSequence.cs
- SoapSchemaImporter.cs
- WebBrowser.cs
- RsaSecurityKey.cs
- XmlAtomErrorReader.cs
- ImageConverter.cs
- WebPartUserCapability.cs
- DataSet.cs
- FamilyTypeface.cs
- EditBehavior.cs
- WpfPayload.cs
- TableSectionStyle.cs
- EmitterCache.cs
- Rect3D.cs
- _AcceptOverlappedAsyncResult.cs
- ConstructorNeedsTagAttribute.cs
- SafeHandles.cs
- IndexerNameAttribute.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DbModificationClause.cs
- Classification.cs
- X509CertificateChain.cs
- TogglePatternIdentifiers.cs
- ReadOnlyCollectionBase.cs
- XmlRootAttribute.cs
- WebPartDescription.cs
- PropertyGridView.cs
- HitTestWithPointDrawingContextWalker.cs
- RangeValuePattern.cs
- Helpers.cs
- MaterialGroup.cs
- unsafenativemethodsother.cs
- SqlInternalConnection.cs
- AuthorizationRule.cs
- EventItfInfo.cs
- XPathQilFactory.cs
- ActivitiesCollection.cs
- EditCommandColumn.cs
- BinaryParser.cs
- ProcessHostServerConfig.cs
- ParameterBinding.cs
- PathHelper.cs
- FilterableAttribute.cs
- ErrorHandler.cs
- ResourceReader.cs
- DialogResultConverter.cs
- coordinator.cs
- UnsafeNativeMethods.cs
- ObjectDataSourceStatusEventArgs.cs
- XsdValidatingReader.cs
- GenericNameHandler.cs
- QuaternionKeyFrameCollection.cs
- ExtensibleClassFactory.cs
- MachineKeyConverter.cs
- Keywords.cs
- DataContract.cs
- FolderLevelBuildProvider.cs
- InfoCardRSACryptoProvider.cs