Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / MinimizableAttributeTypeConverter.cs / 1 / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedSOMElement.cs
- TextSpanModifier.cs
- PathStreamGeometryContext.cs
- DrawingImage.cs
- HtmlWindow.cs
- FlowLayoutPanel.cs
- grammarelement.cs
- QueryExpression.cs
- GuidelineSet.cs
- ImmutableObjectAttribute.cs
- LoadRetryHandler.cs
- QilInvokeLateBound.cs
- RtfControlWordInfo.cs
- Model3D.cs
- Figure.cs
- SpecularMaterial.cs
- TypeContext.cs
- LOSFormatter.cs
- OracleRowUpdatedEventArgs.cs
- ToolStripLocationCancelEventArgs.cs
- ItemList.cs
- webclient.cs
- CodeSnippetTypeMember.cs
- ValueProviderWrapper.cs
- XmlHelper.cs
- TimeSpanSecondsConverter.cs
- MarkupWriter.cs
- StrongName.cs
- XmlCustomFormatter.cs
- HelloMessage11.cs
- DataKey.cs
- ChannelServices.cs
- SecurityContextTokenCache.cs
- SID.cs
- BinarySerializer.cs
- UrlAuthorizationModule.cs
- SafeCloseHandleCritical.cs
- DebugInfoGenerator.cs
- GZipDecoder.cs
- ItemCollectionEditor.cs
- FilteredSchemaElementLookUpTable.cs
- TextPatternIdentifiers.cs
- DataGrid.cs
- SimpleMailWebEventProvider.cs
- FontFamilyValueSerializer.cs
- WebBrowserProgressChangedEventHandler.cs
- VoiceInfo.cs
- DateTimeConverter2.cs
- RadioButtonPopupAdapter.cs
- PrimitiveType.cs
- GridViewEditEventArgs.cs
- serverconfig.cs
- OleDbConnectionFactory.cs
- SendMailErrorEventArgs.cs
- PathTooLongException.cs
- UpdateEventArgs.cs
- DefaultTextStore.cs
- CloseSequence.cs
- UnsafeNativeMethods.cs
- Decoder.cs
- HttpListenerResponse.cs
- SafeProcessHandle.cs
- SequenceNumber.cs
- DynamicDataManager.cs
- HttpCacheVary.cs
- CommandHelper.cs
- CharStorage.cs
- UpDownEvent.cs
- PaginationProgressEventArgs.cs
- ProxyManager.cs
- RemoveStoryboard.cs
- AnnotationObservableCollection.cs
- PowerModeChangedEventArgs.cs
- XmlArrayItemAttributes.cs
- DesignerAttributeInfo.cs
- ObjectDataProvider.cs
- BamlRecords.cs
- BitmapEffectOutputConnector.cs
- _BaseOverlappedAsyncResult.cs
- WizardDesigner.cs
- LambdaCompiler.ControlFlow.cs
- InkCanvasInnerCanvas.cs
- DelayLoadType.cs
- TableLayoutSettings.cs
- DependentList.cs
- MethodAccessException.cs
- TailCallAnalyzer.cs
- SiteMapPath.cs
- ProgressBarHighlightConverter.cs
- ProviderSettings.cs
- XamlClipboardData.cs
- PropagationProtocolsTracing.cs
- LogReserveAndAppendState.cs
- SoapWriter.cs
- WindowsTitleBar.cs
- Ipv6Element.cs
- Triplet.cs
- PropertyInfo.cs
- Control.cs
- NameValuePair.cs