Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / LowerCaseStringConverter.cs / 2 / LowerCaseStringConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /***************************************************************************** From machine.config******************************************************************************/ namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class LowerCaseStringConverter : TypeConverter { public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type) { return (type == typeof(string)); } public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) { if (value == null) { return String.Empty; } return ((string)value).ToLower(CultureInfo.InvariantCulture); } public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data) { Debug.Assert(data != null); Debug.Assert(data is string); return ((string)data).ToLower(CultureInfo.InvariantCulture); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlIlVisitor.cs
- SimpleMailWebEventProvider.cs
- FrameworkElementFactoryMarkupObject.cs
- Properties.cs
- PropertyConverter.cs
- FormViewUpdatedEventArgs.cs
- PublisherIdentityPermission.cs
- ObjectCacheSettings.cs
- CommandID.cs
- HttpAsyncResult.cs
- HttpClientCertificate.cs
- RequestQueryParser.cs
- LinkTarget.cs
- HitTestWithPointDrawingContextWalker.cs
- ToolStripPanelCell.cs
- ServiceOperationWrapper.cs
- OleStrCAMarshaler.cs
- PictureBoxDesigner.cs
- PasswordPropertyTextAttribute.cs
- BoolExpression.cs
- QilIterator.cs
- XmlEntity.cs
- Point3D.cs
- GreenMethods.cs
- RadioButtonFlatAdapter.cs
- WebHttpSecurityModeHelper.cs
- AnimationException.cs
- EntityContainer.cs
- FocusChangedEventArgs.cs
- ProfileModule.cs
- DesignerAttribute.cs
- InfoCardSymmetricCrypto.cs
- TabControl.cs
- ValueOfAction.cs
- Aggregates.cs
- ResourceProperty.cs
- SR.Designer.cs
- TraversalRequest.cs
- XPathNavigatorKeyComparer.cs
- EditModeSwitchButton.cs
- DataSourceCacheDurationConverter.cs
- Compress.cs
- ControlBindingsCollection.cs
- WinInet.cs
- CodeObject.cs
- SafePipeHandle.cs
- AutomationProperties.cs
- IPipelineRuntime.cs
- ToolStripItemRenderEventArgs.cs
- WebPartDeleteVerb.cs
- TagPrefixInfo.cs
- QilFunction.cs
- WeakEventTable.cs
- COM2IDispatchConverter.cs
- RijndaelManaged.cs
- BigInt.cs
- HeaderElement.cs
- TypedDatasetGenerator.cs
- XPathDocumentNavigator.cs
- BinHexEncoder.cs
- Stackframe.cs
- ProvidePropertyAttribute.cs
- WinOEToolBoxItem.cs
- IChannel.cs
- Assert.cs
- QilTernary.cs
- AnnotationHighlightLayer.cs
- RemotingConfiguration.cs
- XmlCDATASection.cs
- SettingsContext.cs
- PropertyValueUIItem.cs
- TypeUsage.cs
- CmsInterop.cs
- xmlfixedPageInfo.cs
- InputChannel.cs
- EventDescriptor.cs
- SyndicationDeserializer.cs
- Claim.cs
- QilTypeChecker.cs
- WinEventTracker.cs
- DtdParser.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- DatasetMethodGenerator.cs
- serverconfig.cs
- ComMethodElement.cs
- KeyInterop.cs
- AsyncCompletedEventArgs.cs
- DataGridRelationshipRow.cs
- TextBox.cs
- ConstructorNeedsTagAttribute.cs
- FlowDocumentScrollViewer.cs
- MainMenu.cs
- StringFreezingAttribute.cs
- XmlNotation.cs
- MaterializeFromAtom.cs
- Stylesheet.cs
- MachinePropertyVariants.cs
- AutomationPatternInfo.cs
- BooleanAnimationUsingKeyFrames.cs
- PersonalizationStateQuery.cs